Browse Source

Pull request #3545: BI-126280 fix: 兼容 【6.0.10发散】管理系统-目录管理,添加首页目录下拉框无内容

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

* commit '5b914de993a494fdcb73fac9cc8de2a6c946e32d':
  BI-126280 fix: 兼容 【6.0.10发散】管理系统-目录管理,添加首页目录下拉框无内容
es6
Dailer-刘荣歆 2 years ago
parent
commit
6a151171d5
  1. 54
      packages/fineui/src/case/button/node/treenode.js
  2. 62
      packages/fineui/src/case/button/treeitem/treeitem.js

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

@ -284,3 +284,57 @@ export class SelectTreeLastPlusGroupNode extends BasicTreeNode {
}); });
} }
} }
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeFirstPlusGroupNode extends BasicTreeNode {
static xtype = "bi.multilayer_single_tree_first_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-multilayer-single-tree-last-plus-group-node`,
isFirstNode: true,
isLastNode: false
});
}
}
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeLastPlusGroupNode extends BasicTreeNode {
static xtype = "bi.multilayer_single_tree_last_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-multilayer-single-tree-last-plus-group-node`,
isFirstNode: false,
isLastNode: true
});
}
}
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeMidPlusGroupNode extends BasicTreeNode {
static xtype = "bi.multilayer_single_tree_mid_plus_group_node";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
baseCls: `${conf.baseCls || ""} bi-multilayer-single-tree-mid-plus-group-node`,
isFirstNode: false,
isLastNode: false
});
}
}

62
packages/fineui/src/case/button/treeitem/treeitem.js

@ -121,6 +121,11 @@ export class BasicTreeItem extends NodeButton {
} }
} }
/**
* 下面的全是兼容,正常开发不要用
*/
export class FirstTreeLeafItem extends BasicTreeItem { export class FirstTreeLeafItem extends BasicTreeItem {
static xtype = "bi.first_tree_leaf_item"; static xtype = "bi.first_tree_leaf_item";
@ -133,6 +138,9 @@ export class FirstTreeLeafItem extends BasicTreeItem {
} }
} }
/**
* @deprecated
*/
@shortcut() @shortcut()
export class MidTreeLeafItem extends BasicTreeItem { export class MidTreeLeafItem extends BasicTreeItem {
static xtype = "bi.mid_tree_leaf_item"; static xtype = "bi.mid_tree_leaf_item";
@ -146,6 +154,9 @@ export class MidTreeLeafItem extends BasicTreeItem {
} }
} }
/**
* @deprecated
*/
@shortcut() @shortcut()
export class LastTreeLeafItem extends BasicTreeItem { export class LastTreeLeafItem extends BasicTreeItem {
static xtype = "bi.last_tree_leaf_item"; static xtype = "bi.last_tree_leaf_item";
@ -159,6 +170,9 @@ export class LastTreeLeafItem extends BasicTreeItem {
} }
} }
/**
* @deprecated
*/
@shortcut() @shortcut()
export class RootTreeLeafItem extends BasicTreeItem { export class RootTreeLeafItem extends BasicTreeItem {
static xtype = "bi.root_tree_leaf_item"; static xtype = "bi.root_tree_leaf_item";
@ -171,3 +185,51 @@ export class RootTreeLeafItem extends BasicTreeItem {
}); });
} }
} }
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeFirstTreeLeafItem extends BasicTreeItem {
static xtype = "bi.multilayer_single_tree_first_tree_leaf_item";
_defaultConfig() {
return extend(super._defaultConfig(...arguments), {
extraCls: "bi-multilayer-single-tree-first-tree-leaf-item",
isFirstNode: true,
isLastNode: false,
});
}
}
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeLastTreeLeafItem extends BasicTreeItem {
static xtype = "bi.multilayer_single_tree_last_tree_leaf_item";
_defaultConfig() {
return extend(super._defaultConfig(...arguments), {
extraCls: "bi-multilayer-single-tree-last-tree-leaf-item",
isFirstNode: false,
isLastNode: true,
});
}
}
/**
* @deprecated
*/
@shortcut()
export class MultiLayerSingleTreeMidTreeLeafItem extends BasicTreeItem {
static xtype = "bi.multilayer_single_tree_mid_tree_leaf_item";
_defaultConfig() {
return extend(super._defaultConfig(...arguments), {
extraCls: "bi-multilayer-single-tree-mid-tree-leaf-item",
isFirstNode: false,
isLastNode: false,
});
}
}

Loading…
Cancel
Save