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.

28 lines
738 B

import { shortcut, Widget, createWidget, deepClone } from "@/core";
8 years ago
@shortcut()
export class TreeValueChooser extends Widget {
static xtype = "demo.tree_value_chooser_combo";
props = { baseCls: "demo-tree-value-chooser-combo" };
render() {
const widget = createWidget({
8 years ago
type: "bi.tree_value_chooser_combo",
width: 300,
// items: deepClone(Demo.CONSTANTS.TREEITEMS),
itemsCreator(op, callback) {
callback(deepClone(Demo.CONSTANTS.TREEITEMS));
},
defaultText: "请选择",
8 years ago
});
8 years ago
return {
type: "bi.vertical",
hgap: 200,
vgap: 10,
items: [widget],
8 years ago
};
}
}