@cyberpunk-vue/components 1.12.0 → 1.12.2
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/index.cjs +1 -1
- package/dist/index.mjs +155 -113
- package/dist/table/index.d.ts +23 -0
- package/dist/table/src/table.d.ts +25 -0
- package/dist/table/src/table.vue.d.ts +13 -0
- package/package.json +4 -4
|
@@ -104,9 +104,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
104
104
|
readonly type: BooleanConstructor;
|
|
105
105
|
readonly default: false;
|
|
106
106
|
};
|
|
107
|
+
readonly checkedKeys: {
|
|
108
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
109
|
+
readonly default: undefined;
|
|
110
|
+
};
|
|
107
111
|
}>, {
|
|
108
112
|
/** 清空选择 */
|
|
109
113
|
clearSelection: () => void;
|
|
114
|
+
/** 程序式设置选中 rowKey 数组(不做级联归一化,与受控 prop 语义一致) */
|
|
115
|
+
setSelectionKeys: (keys: (string | number)[]) => void;
|
|
110
116
|
/** 获取完全选中行对象数组 */
|
|
111
117
|
getSelectionRows: () => any[];
|
|
112
118
|
/** 获取完全选中行的 rowKey 数组 */
|
|
@@ -133,6 +139,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
133
139
|
select: (selection: SelectionPayload, row: any) => void;
|
|
134
140
|
"select-all": (selection: SelectionPayload) => void;
|
|
135
141
|
"current-change": (currentRow: any, oldRow: any) => void;
|
|
142
|
+
"update:checkedKeys": (keys: (string | number)[]) => void;
|
|
136
143
|
"sort-change": (sortState: SortState) => void;
|
|
137
144
|
"row-click": (row: any, index: number, event: MouseEvent) => void;
|
|
138
145
|
"selection-change": (selection: SelectionPayload) => void;
|
|
@@ -231,10 +238,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
231
238
|
readonly type: BooleanConstructor;
|
|
232
239
|
readonly default: false;
|
|
233
240
|
};
|
|
241
|
+
readonly checkedKeys: {
|
|
242
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
243
|
+
readonly default: undefined;
|
|
244
|
+
};
|
|
234
245
|
}>> & Readonly<{
|
|
235
246
|
onSelect?: ((selection: SelectionPayload, row: any) => any) | undefined;
|
|
236
247
|
"onSelect-all"?: ((selection: SelectionPayload) => any) | undefined;
|
|
237
248
|
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
249
|
+
"onUpdate:checkedKeys"?: ((keys: (string | number)[]) => any) | undefined;
|
|
238
250
|
"onSort-change"?: ((sortState: SortState) => any) | undefined;
|
|
239
251
|
"onRow-click"?: ((row: any, index: number, event: MouseEvent) => any) | undefined;
|
|
240
252
|
"onSelection-change"?: ((selection: SelectionPayload) => any) | undefined;
|
|
@@ -250,6 +262,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
250
262
|
readonly loadingText: string;
|
|
251
263
|
readonly showHeader: boolean;
|
|
252
264
|
readonly defaultExpandAll: boolean;
|
|
265
|
+
readonly checkedKeys: (string | number)[];
|
|
253
266
|
readonly indent: number;
|
|
254
267
|
readonly stripe: boolean;
|
|
255
268
|
readonly highlightCurrentRow: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"vue": "^3.5.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cyberpunk-vue/hooks": "1.12.
|
|
27
|
-
"@cyberpunk-vue/
|
|
28
|
-
"@cyberpunk-vue/
|
|
26
|
+
"@cyberpunk-vue/hooks": "1.12.2",
|
|
27
|
+
"@cyberpunk-vue/constants": "1.12.2",
|
|
28
|
+
"@cyberpunk-vue/theme-chalk": "1.12.2"
|
|
29
29
|
},
|
|
30
30
|
"author": "Juxest",
|
|
31
31
|
"license": "MIT",
|