Browse Source

chore: 优化一下

es6
guy 3 years ago
parent
commit
0890e95611
  1. 34
      src/case/button/item.multiselect.js
  2. 28
      src/case/button/node/node.arrow.js
  3. 28
      src/case/button/node/node.plus.js

34
src/case/button/item.multiselect.js

@ -38,22 +38,24 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
type: "bi.center_adapt", type: "bi.center_adapt",
items: [this.checkbox] items: [this.checkbox]
}, { }, {
type: "bi.label", el: {
ref: function (_ref) { type: "bi.label",
self.text = _ref; ref: function (_ref) {
}, self.text = _ref;
cls: "list-item-text", },
textAlign: "left", cls: "list-item-text",
whiteSpace: "nowrap", textAlign: "left",
textHeight: o.height, whiteSpace: "nowrap",
height: o.height, textHeight: o.height,
hgap: o.hgap, height: o.height,
rgap: o.rgap, hgap: o.hgap,
lgap: o.textLgap, rgap: o.rgap,
text: o.text, lgap: o.textLgap,
keyword: o.keyword, text: o.text,
value: o.value, keyword: o.keyword,
py: o.py value: o.value,
py: o.py
}
}] }]
}; };
}, },

28
src/case/button/node/node.arrow.js

@ -32,19 +32,21 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
type: "bi.vertical_adapt", type: "bi.vertical_adapt",
columnSize: [o.iconWrapperWidth || o.height, "fill"], columnSize: [o.iconWrapperWidth || o.height, "fill"],
items: [this.checkbox, { items: [this.checkbox, {
type: "bi.label", el: {
ref: function (_ref) { type: "bi.label",
self.text = _ref; ref: function (_ref) {
}, self.text = _ref;
textAlign: "left", },
whiteSpace: "nowrap", textAlign: "left",
textHeight: o.height, whiteSpace: "nowrap",
height: o.height, textHeight: o.height,
hgap: o.hgap, height: o.height,
text: o.text, hgap: o.hgap,
value: o.value, text: o.text,
py: o.py, value: o.value,
keyword: o.keyword py: o.py,
keyword: o.keyword
}
}] }]
}; };
}, },

28
src/case/button/node/node.plus.js

@ -37,19 +37,21 @@ BI.PlusGroupNode = BI.inherit(BI.NodeButton, {
type: "bi.vertical_adapt", type: "bi.vertical_adapt",
columnSize: [o.iconWrapperWidth || o.height, "fill"], columnSize: [o.iconWrapperWidth || o.height, "fill"],
items: [this.checkbox, { items: [this.checkbox, {
type: "bi.label", el: {
ref: function (_ref) { type: "bi.label",
self.text = _ref; ref: function (_ref) {
}, self.text = _ref;
textAlign: "left", },
whiteSpace: "nowrap", textAlign: "left",
textHeight: o.height, whiteSpace: "nowrap",
height: o.height, textHeight: o.height,
hgap: o.hgap, height: o.height,
text: o.text, hgap: o.hgap,
value: o.value, text: o.text,
keyword: o.keyword, value: o.value,
py: o.py keyword: o.keyword,
py: o.py
}
}] }]
}; };
}, },

Loading…
Cancel
Save