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