chore: remove all hard code component name (#3445)
parent
f62681b9d4
commit
674933ae60
|
@ -225,8 +225,8 @@ const Select = defineComponent({
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
Select.install = function(app: App) {
|
Select.install = function(app: App) {
|
||||||
app.component(Select.name, Select);
|
app.component(Select.name, Select);
|
||||||
app.component('ASelectOption', Select.Option);
|
app.component(Select.Option.displayName, Select.Option);
|
||||||
app.component('ASelectOptGroup', Select.OptGroup);
|
app.component(Select.OptGroup.displayName, Select.OptGroup);
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
export default Select as typeof Select &
|
export default Select as typeof Select &
|
||||||
|
|
|
@ -200,7 +200,7 @@ const TreeSelect = defineComponent({
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
TreeSelect.install = function(app: App) {
|
TreeSelect.install = function(app: App) {
|
||||||
app.component(TreeSelect.name, TreeSelect);
|
app.component(TreeSelect.name, TreeSelect);
|
||||||
app.component('ATreeSelectNode', TreeSelect.TreeNode);
|
app.component(TreeSelect.TreeNode.displayName, TreeSelect.TreeNode);
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,4 +11,5 @@ export interface OptionGroupFC extends FunctionalComponent<OptGroupProps> {
|
||||||
|
|
||||||
const OptGroup: OptionGroupFC = () => null;
|
const OptGroup: OptionGroupFC = () => null;
|
||||||
OptGroup.isSelectOptGroup = true;
|
OptGroup.isSelectOptGroup = true;
|
||||||
|
OptGroup.displayName = 'ASelectOptGroup';
|
||||||
export default OptGroup;
|
export default OptGroup;
|
||||||
|
|
|
@ -14,4 +14,5 @@ export interface OptionFC extends FunctionalComponent<OptionProps> {
|
||||||
|
|
||||||
const Option: OptionFC = () => null;
|
const Option: OptionFC = () => null;
|
||||||
Option.isSelectOption = true;
|
Option.isSelectOption = true;
|
||||||
|
Option.displayName = 'ASelectOption';
|
||||||
export default Option;
|
export default Option;
|
||||||
|
|
|
@ -11,4 +11,5 @@ function SelectNode(_, { attrs, slots }) {
|
||||||
|
|
||||||
SelectNode.isTreeNode = true;
|
SelectNode.isTreeNode = true;
|
||||||
SelectNode.inheritAttrs = false;
|
SelectNode.inheritAttrs = false;
|
||||||
|
SelectNode.displayName = 'ATreeSelectNode';
|
||||||
export default SelectNode;
|
export default SelectNode;
|
||||||
|
|
Loading…
Reference in New Issue