Browse Source

REPORT-95210 fix: 【BI-地图配置】管理系统-地图配置中的地理信息显示为空白

es6
zsmj 2 years ago
parent
commit
318d5293c4
  1. 112
      packages/fineui/src/case/button/node/treenode.js

112
packages/fineui/src/case/button/node/treenode.js

@ -20,7 +20,7 @@ export class BasicTreeNode extends NodeButton {
isLastNode: false, isLastNode: false,
switcherIcon: {}, switcherIcon: {},
selectable: true, selectable: true,
disabled: false, // disabled不会影响展开收起功能 disabled: false // disabled不会影响展开收起功能
}); });
} }
@ -42,7 +42,7 @@ export class BasicTreeNode extends NodeButton {
iconWrapperWidth, iconWrapperWidth,
iconCls, iconCls,
switcherIcon, switcherIcon,
selectable, selectable
} = this.options; } = this.options;
const checkbox = { const checkbox = {
@ -68,9 +68,9 @@ export class BasicTreeNode extends NodeButton {
if (!this.isEnabled() || selectable) { if (!this.isEnabled() || selectable) {
this.isOpened() ? this.triggerCollapse() : this.triggerExpand(); this.isOpened() ? this.triggerCollapse() : this.triggerExpand();
} }
}, }
} }
], ]
}; };
// const indent = { // const indent = {
@ -90,8 +90,8 @@ export class BasicTreeNode extends NodeButton {
type: IconLabel.xtype, type: IconLabel.xtype,
// iconWidth, // iconWidth,
// iconHeight, // iconHeight,
cls: iconCls, cls: iconCls
}, }
// width: 24, // width: 24,
} : null; } : null;
@ -102,7 +102,7 @@ export class BasicTreeNode extends NodeButton {
{ {
el: checkbox, el: checkbox,
lgap: layer * SIZE_CONSANTS.LIST_ITEM_HEIGHT / 2, // 偏移公式为每一层的偏移量为节点高度的一半 lgap: layer * SIZE_CONSANTS.LIST_ITEM_HEIGHT / 2, // 偏移公式为每一层的偏移量为节点高度的一半
width: iconWrapperWidth || height, width: iconWrapperWidth || height
}, },
icon, icon,
{ {
@ -121,11 +121,11 @@ export class BasicTreeNode extends NodeButton {
rgap: textRgap, rgap: textRgap,
text, text,
value, value,
keyword, keyword
}, },
width: "fill", width: "fill"
} }
]), ])
}; };
} }
@ -154,6 +154,14 @@ export class BasicTreeNode extends NodeButton {
} }
} }
/**
* 下面的全是兼容,正常开发不要用
*/
/**
* @deprecated
*/
@shortcut() @shortcut()
export class FirstPlusGroupNode extends BasicTreeNode { export class FirstPlusGroupNode extends BasicTreeNode {
static xtype = "bi.first_plus_group_node"; static xtype = "bi.first_plus_group_node";
@ -164,11 +172,14 @@ export class FirstPlusGroupNode extends BasicTreeNode {
return extend(conf, { return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-first-plus-group-node`, baseCls: `${conf.baseCls || ""} bi-first-plus-group-node`,
isFirstNode: true, isFirstNode: true,
isLastNode: false, isLastNode: false
}); });
} }
} }
/**
* @deprecated
*/
@shortcut() @shortcut()
export class MidPlusGroupNode extends BasicTreeNode { export class MidPlusGroupNode extends BasicTreeNode {
static xtype = "bi.mid_plus_group_node"; static xtype = "bi.mid_plus_group_node";
@ -179,11 +190,14 @@ export class MidPlusGroupNode extends BasicTreeNode {
return extend(conf, { return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-mid-plus-group-node`, baseCls: `${conf.baseCls || ""} bi-mid-plus-group-node`,
isFirstNode: false, isFirstNode: false,
isLastNode: false, isLastNode: false
}); });
} }
} }
/**
* @deprecated
*/
@shortcut() @shortcut()
export class LastPlusGroupNode extends BasicTreeNode { export class LastPlusGroupNode extends BasicTreeNode {
static xtype = "bi.last_plus_group_node"; static xtype = "bi.last_plus_group_node";
@ -194,7 +208,79 @@ export class LastPlusGroupNode extends BasicTreeNode {
return extend(conf, { return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-last-plus-group-node`, baseCls: `${conf.baseCls || ""} bi-last-plus-group-node`,
isFirstNode: false, isFirstNode: false,
isLastNode: true, isLastNode: true
});
}
}
/**
* @deprecated
*/
@shortcut()
export class SelectTreeRootPlusGroupNode extends BasicTreeNode {
static xtype = "bi.select_tree_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-select-tree-plus-group-node`,
isFirstNode: true,
isLastNode: true
});
}
}
/**
* @deprecated
*/
@shortcut()
export class SelectTreeFirstPlusGroupNode extends BasicTreeNode {
static xtype = "bi.select_tree_first_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-select-tree-first-plus-group-node`,
isFirstNode: true,
isLastNode: false
});
}
}
/**
* @deprecated
*/
@shortcut()
export class SelectTreeMidPlusGroupNode extends BasicTreeNode {
static xtype = "bi.select_tree_mid_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-select-tree-mid-plus-group-node`,
isFirstNode: false,
isLastNode: false
});
}
}
/**
* @deprecated
*/
@shortcut()
export class SelectTreeLastPlusGroupNode extends BasicTreeNode {
static xtype = "bi.select_tree_last_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-select-tree-last-plus-group-node`,
isFirstNode: false,
isLastNode: true
}); });
} }
} }

Loading…
Cancel
Save