@vrojs/element-plus 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vro-el-table/index.d.ts +9 -3
- package/dist/vro-el-table/types.d.ts +19 -2
- package/dist/vro-el-table/types.js +8 -0
- package/dist/vro-el-table/useVroElTable.d.ts +15 -3
- package/dist/vro-el-table/useVroElTable.js +22 -22
- package/dist/vro-el-table/vro-el-table.vue.d.ts +6 -2
- package/dist/vro-el-table/vro-el-table.vue.js +32 -32
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +32 -35
- package/dist/vro-el-tree/index.d.ts +4 -3198
- package/dist/vro-el-tree/types.d.ts +16 -80
- package/dist/vro-el-tree/types.js +6 -4
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +4 -6000
- package/dist/vro-el-tree/vro-el-tree.vue.js +26 -25
- package/package.json +3 -3
|
@@ -31,6 +31,18 @@ export interface VroElTreeEmits {
|
|
|
31
31
|
'update:modelValue': [value: VroElTreeModelValue];
|
|
32
32
|
check: [data: VroElTreeOption, info: VroElTreeCheckInfo];
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* 组件内部使用的 ElTree 实例引用类型。
|
|
36
|
+
*
|
|
37
|
+
* 只声明实际用到的方法,而不是整个 ElTree 实例类型,
|
|
38
|
+
* 避免 ElTree 的完整实例类型被内联进类型声明产物。
|
|
39
|
+
*/
|
|
40
|
+
export interface VroElTreeRef {
|
|
41
|
+
/**
|
|
42
|
+
* 设置选中的节点 id 列表。
|
|
43
|
+
*/
|
|
44
|
+
setCheckedKeys: (keys: VroElTreeKey[]) => void;
|
|
45
|
+
}
|
|
34
46
|
export declare const vroElTreeProps: {
|
|
35
47
|
/**
|
|
36
48
|
* 选中的节点 id 列表,包含半选和全选节点。
|
|
@@ -43,6 +55,10 @@ export declare const vroElTreeProps: {
|
|
|
43
55
|
* 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
|
|
44
56
|
*/
|
|
45
57
|
options: PropType<VroElTreeOption[]>;
|
|
58
|
+
/**
|
|
59
|
+
* 树节点数据,兼容 el-tree 的 data,options 优先。
|
|
60
|
+
*/
|
|
61
|
+
data: PropType<VroElTreeOption[]>;
|
|
46
62
|
/**
|
|
47
63
|
* 根节点 id,用于判断顶层节点的选中链路。
|
|
48
64
|
*/
|
|
@@ -57,86 +73,6 @@ export declare const vroElTreeProps: {
|
|
|
57
73
|
type: StringConstructor;
|
|
58
74
|
default: string;
|
|
59
75
|
};
|
|
60
|
-
data: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData) | (((new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData)) | null)[], unknown, unknown, () => never[], boolean>;
|
|
61
|
-
emptyText: {
|
|
62
|
-
readonly type: PropType<string>;
|
|
63
|
-
readonly required: false;
|
|
64
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
|
-
__epPropKey: true;
|
|
66
|
-
};
|
|
67
|
-
renderAfterExpand: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
68
|
-
checkStrictly: BooleanConstructor;
|
|
69
|
-
defaultExpandAll: BooleanConstructor;
|
|
70
|
-
expandOnClickNode: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
71
|
-
checkOnClickNode: BooleanConstructor;
|
|
72
|
-
checkOnClickLeaf: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
73
|
-
checkDescendants: BooleanConstructor;
|
|
74
|
-
autoExpandParent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
75
|
-
defaultCheckedKeys: {
|
|
76
|
-
readonly type: PropType<import('element-plus').TreeKey[]>;
|
|
77
|
-
readonly required: false;
|
|
78
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
-
__epPropKey: true;
|
|
80
|
-
};
|
|
81
|
-
defaultExpandedKeys: {
|
|
82
|
-
readonly type: PropType<import('element-plus').TreeKey[]>;
|
|
83
|
-
readonly required: false;
|
|
84
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
-
__epPropKey: true;
|
|
86
|
-
};
|
|
87
|
-
currentNodeKey: {
|
|
88
|
-
readonly type: PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>>;
|
|
89
|
-
readonly required: false;
|
|
90
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
|
-
__epPropKey: true;
|
|
92
|
-
};
|
|
93
|
-
renderContent: {
|
|
94
|
-
readonly type: PropType<import('element-plus').RenderContentFunction>;
|
|
95
|
-
readonly required: false;
|
|
96
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
-
__epPropKey: true;
|
|
98
|
-
};
|
|
99
|
-
showCheckbox: BooleanConstructor;
|
|
100
|
-
draggable: BooleanConstructor;
|
|
101
|
-
allowDrag: {
|
|
102
|
-
readonly type: PropType<import('element-plus').AllowDragFunction>;
|
|
103
|
-
readonly required: false;
|
|
104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
-
__epPropKey: true;
|
|
106
|
-
};
|
|
107
|
-
allowDrop: {
|
|
108
|
-
readonly type: PropType<import('element-plus').AllowDropFunction>;
|
|
109
|
-
readonly required: false;
|
|
110
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
|
-
__epPropKey: true;
|
|
112
|
-
};
|
|
113
|
-
props: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').TreeOptionProps) | (() => import('element-plus').TreeOptionProps) | (((new (...args: any[]) => import('element-plus').TreeOptionProps) | (() => import('element-plus').TreeOptionProps)) | null)[], unknown, unknown, () => {
|
|
114
|
-
children: string;
|
|
115
|
-
label: string;
|
|
116
|
-
disabled: string;
|
|
117
|
-
}, boolean>;
|
|
118
|
-
lazy: BooleanConstructor;
|
|
119
|
-
highlightCurrent: BooleanConstructor;
|
|
120
|
-
load: {
|
|
121
|
-
readonly type: PropType<import('element-plus').LoadFunction>;
|
|
122
|
-
readonly required: false;
|
|
123
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
-
__epPropKey: true;
|
|
125
|
-
};
|
|
126
|
-
filterNodeMethod: {
|
|
127
|
-
readonly type: PropType<import('element-plus').FilterNodeMethodFunction>;
|
|
128
|
-
readonly required: false;
|
|
129
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
|
-
__epPropKey: true;
|
|
131
|
-
};
|
|
132
|
-
accordion: BooleanConstructor;
|
|
133
|
-
indent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 18, boolean>;
|
|
134
|
-
icon: {
|
|
135
|
-
readonly type: PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>>;
|
|
136
|
-
readonly required: false;
|
|
137
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
-
__epPropKey: true;
|
|
139
|
-
};
|
|
140
76
|
};
|
|
141
77
|
export type VroElTreeProps = ExtractPropTypes<typeof vroElTreeProps>;
|
|
142
78
|
export interface VroElTreeSlots {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const t = {
|
|
3
|
-
...e,
|
|
1
|
+
const e = {
|
|
4
2
|
/**
|
|
5
3
|
* 选中的节点 id 列表,包含半选和全选节点。
|
|
6
4
|
*/
|
|
@@ -12,6 +10,10 @@ const t = {
|
|
|
12
10
|
* 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
|
|
13
11
|
*/
|
|
14
12
|
options: Array,
|
|
13
|
+
/**
|
|
14
|
+
* 树节点数据,兼容 el-tree 的 data,options 优先。
|
|
15
|
+
*/
|
|
16
|
+
data: Array,
|
|
15
17
|
/**
|
|
16
18
|
* 根节点 id,用于判断顶层节点的选中链路。
|
|
17
19
|
*/
|
|
@@ -28,5 +30,5 @@ const t = {
|
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
e as vroElTreeProps
|
|
32
34
|
};
|