Browse Source

无jira任务,selecttree组件没传iconWidth:o.height导致全局配置尺寸后icon大小没变

es6
张敬峥 3 years ago
parent
commit
8d0c6b2efc
  1. 2
      src/case/button/node/node.plus.js
  2. 4
      src/case/checkbox/check.first.treenode.js
  3. 4
      src/case/checkbox/check.last.treenode.js
  4. 4
      src/case/checkbox/check.mid.treenode.js
  5. 4
      src/case/checkbox/check.treenode.js
  6. 4
      src/widget/selecttree/nodes/node.first.plus.js
  7. 4
      src/widget/selecttree/nodes/node.last.plus.js
  8. 4
      src/widget/selecttree/nodes/node.mid.plus.js
  9. 5
      src/widget/selecttree/nodes/node.plus.js

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

@ -14,8 +14,8 @@ BI.PlusGroupNode = BI.inherit(BI.NodeButton, {
}, },
id: "", id: "",
pId: "", pId: "",
open: false,
iconWrapperWidth: null, iconWrapperWidth: null,
open: false,
height: 24 height: 24
}); });
}, },

4
src/case/checkbox/check.first.treenode.js

@ -7,8 +7,8 @@ BI.FirstTreeNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend( BI.FirstTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), { return BI.extend( BI.FirstTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type2" : "tree-collapse-icon-type2", extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type2" : "tree-collapse-icon-type2",
iconWidth: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, iconWidth: 24,
iconHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT iconHeight: 24
}); });
}, },

4
src/case/checkbox/check.last.treenode.js

@ -7,8 +7,8 @@ BI.LastTreeNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.LastTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.LastTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type4" : "tree-collapse-icon-type4", extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type4" : "tree-collapse-icon-type4",
iconWidth: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, iconWidth: 24,
iconHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT iconHeight: 24
}); });
}, },

4
src/case/checkbox/check.mid.treenode.js

@ -7,8 +7,8 @@ BI.MidTreeNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend( BI.MidTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), { return BI.extend( BI.MidTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type3" : "tree-collapse-icon-type3", extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type3" : "tree-collapse-icon-type3",
iconWidth: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, iconWidth: 24,
iconHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT iconHeight: 24
}); });
}, },

4
src/case/checkbox/check.treenode.js

@ -7,8 +7,8 @@ BI.TreeNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend( BI.TreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), { return BI.extend( BI.TreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type1" : "tree-collapse-icon-type1", extraCls: BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "tree-solid-collapse-icon-type1" : "tree-collapse-icon-type1",
iconWidth: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, iconWidth: 24,
iconHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT iconHeight: 24
}); });
}, },

4
src/widget/selecttree/nodes/node.first.plus.js

@ -24,7 +24,9 @@ BI.SelectTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options; var self = this, o = this.options;
this.checkbox = BI.createWidget({ this.checkbox = BI.createWidget({
type: "bi.first_tree_node_checkbox", type: "bi.first_tree_node_checkbox",
stopPropagation: true stopPropagation: true,
iconHeight: o.height,
iconWidth: o.height
}); });
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.label",

4
src/widget/selecttree/nodes/node.last.plus.js

@ -24,7 +24,9 @@ BI.SelectTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options; var self = this, o = this.options;
this.checkbox = BI.createWidget({ this.checkbox = BI.createWidget({
type: "bi.last_tree_node_checkbox", type: "bi.last_tree_node_checkbox",
stopPropagation: true stopPropagation: true,
iconHeight: o.height,
iconWidth: o.height
}); });
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.label",

4
src/widget/selecttree/nodes/node.mid.plus.js

@ -24,7 +24,9 @@ BI.SelectTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options; var self = this, o = this.options;
this.checkbox = BI.createWidget({ this.checkbox = BI.createWidget({
type: "bi.mid_tree_node_checkbox", type: "bi.mid_tree_node_checkbox",
stopPropagation: true stopPropagation: true,
iconHeight: o.height,
iconWidth: o.height
}); });
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.label",

5
src/widget/selecttree/nodes/node.plus.js

@ -14,6 +14,7 @@ BI.SelectTreePlusGroupNode = BI.inherit(BI.NodeButton, {
}, },
id: "", id: "",
pId: "", pId: "",
iconWrapperWidth: null,
readonly: true, readonly: true,
open: false, open: false,
height: 24 height: 24
@ -24,7 +25,9 @@ BI.SelectTreePlusGroupNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options; var self = this, o = this.options;
this.checkbox = BI.createWidget({ this.checkbox = BI.createWidget({
type: "bi.tree_node_checkbox", type: "bi.tree_node_checkbox",
stopPropagation: true stopPropagation: true,
iconHeight: o.height,
iconWidth: o.iconWrapperWidth || o.height
}); });
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.label",

Loading…
Cancel
Save