fineui是帆软报表和BI产品线所使用的前端框架。
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.

30 lines
726 B

8 years ago
Demo.Center = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-center"
},
render: function () {
8 years ago
var self = this;
8 years ago
return {
8 years ago
type: "bi.tab",
8 years ago
ref: function () {
self.tab = this;
},
8 years ago
defaultShowIndex: 0,
cardCreator: function (v) {
8 years ago
if (v === 0) {
return BI.createWidget({
type: "demo.face"
})
}
8 years ago
return BI.createWidget({
8 years ago
type: v
8 years ago
});
}
8 years ago
}
8 years ago
},
8 years ago
setValue: function (v) {
this.tab.setSelect(v);
8 years ago
}
});
$.shortcut("demo.center", Demo.Center);