forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
604 B
26 lines
604 B
7 years ago
|
Demo.Center = BI.inherit(BI.Widget, {
|
||
|
props: {
|
||
|
baseCls: "demo-center"
|
||
|
},
|
||
|
render: function () {
|
||
|
var self = this;
|
||
|
return {
|
||
|
type: "bi.tab",
|
||
|
ref: function () {
|
||
|
self.tab = this;
|
||
|
},
|
||
|
single: true,
|
||
|
defaultShowIndex: "demo.face",
|
||
|
cardCreator: function (v) {
|
||
|
return BI.createWidget({
|
||
|
type: v
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
setValue: function (v) {
|
||
|
this.tab.setSelect(v);
|
||
|
}
|
||
|
});
|
||
|
BI.shortcut("demo.center", Demo.Center);
|