Browse Source

Pull request #2985: KERNEL-11286 feat: 下拉框value,text,defaultText属性规则统一

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'b3049e16d02963dbf5d98a05348a50638f623f0c':
  KERNEL-11286 feat: 下拉框value,text,defaultText属性规则统一
es6
Dailer 2 years ago
parent
commit
65334a67fc
  1. 2
      demo/js/widget/selecttree/demo.multilayer_select_tree_combo.js
  2. 2
      demo/js/widget/singletree/demo.multilayer_single_tree_combo.js
  3. 2
      src/widget/multilayersingletree/multilayersingletree.combo.js

2
demo/js/widget/selecttree/demo.multilayer_select_tree_combo.js

@ -16,7 +16,7 @@ Demo.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
ref: function (_ref) {
self.tree = _ref;
},
text: "默认值",
defaultText: "请选择",
items: items,
width: 300,
value: ["第五级文件1"]

2
demo/js/widget/singletree/demo.multilayer_single_tree_combo.js

@ -16,7 +16,7 @@ Demo.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
ref: function (_ref) {
self.tree = _ref;
},
text: "默认值",
defaultText: "请选择",
items: items,
width: 300
}, {

2
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -13,6 +13,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
isDefaultInit: false,
height: 24,
text: "",
defaultText: "",
itemsCreator: BI.emptyFn,
items: [],
value: "",
@ -177,6 +178,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
self.textTrigger = _ref;
},
text: o.text,
defaultText: o.defaultText,
height: o.height,
items: o.items,
value: o.value,

Loading…
Cancel
Save