@geelato/web-vue 2.57.1 → 2.58.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/arco-vue.js +891 -536
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +1648 -1546
- package/dist/arco-vue.min.js.map +1 -1
- package/dist/arco.css +39 -8
- package/dist/arco.min.css +1 -1
- package/es/_components/icon-hover.d.ts +3 -3
- package/es/_components/input-label/input-label.d.ts +5 -5
- package/es/_components/picker/input-range.d.ts +10 -10
- package/es/_components/picker/input.d.ts +8 -8
- package/es/_components/select-view/select-view.d.ts +6 -6
- package/es/_components/virtual-list-v2/virtual-list.d.ts +2 -2
- package/es/_hooks/use-form-item.d.ts +2 -2
- package/es/_hooks/use-size.d.ts +3 -3
- package/es/_utils/array.d.ts +1 -1
- package/es/_utils/array.js +18 -1
- package/es/alert/alert.d.ts +6 -6
- package/es/alert/index.d.ts +12 -12
- package/es/anchor/anchor.d.ts +1 -1
- package/es/anchor/index.d.ts +3 -3
- package/es/auto-complete/auto-complete.d.ts +3 -3
- package/es/auto-complete/index.d.ts +9 -9
- package/es/avatar/avatar.d.ts +1 -1
- package/es/avatar/index.d.ts +3 -3
- package/es/button/button-group.d.ts +2 -2
- package/es/button/button.d.ts +2 -2
- package/es/button/index.d.ts +5 -5
- package/es/calendar/calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +3 -3
- package/es/card/card.d.ts +2 -2
- package/es/card/index.d.ts +3 -3
- package/es/carousel/carousel-indicator.d.ts +1 -1
- package/es/cascader/cascader-panel.d.ts +7 -7
- package/es/cascader/cascader.d.ts +33 -33
- package/es/cascader/index.d.ts +85 -85
- package/es/checkbox/checkbox-group.d.ts +2 -2
- package/es/checkbox/checkbox.d.ts +6 -6
- package/es/checkbox/index.d.ts +14 -14
- package/es/collapse/collapse-item.d.ts +3 -3
- package/es/collapse/index.d.ts +3 -3
- package/es/color-picker/color-picker.d.ts +4 -4
- package/es/color-picker/index.d.ts +9 -9
- package/es/comment/comment.d.ts +2 -2
- package/es/comment/index.d.ts +3 -3
- package/es/config-provider/config-provider.d.ts +3 -3
- package/es/config-provider/index.d.ts +6 -6
- package/es/date-picker/index.d.ts +66 -66
- package/es/date-picker/panels/date/index.d.ts +8 -8
- package/es/date-picker/panels/footer.d.ts +5 -5
- package/es/date-picker/panels/shortcuts.d.ts +5 -5
- package/es/date-picker/panels/week/index.d.ts +8 -8
- package/es/date-picker/picker-panel.d.ts +26 -26
- package/es/date-picker/picker.d.ts +61 -61
- package/es/date-picker/range-picker-panel.d.ts +27 -27
- package/es/date-picker/range-picker.d.ts +66 -66
- package/es/descriptions/descriptions.d.ts +4 -4
- package/es/descriptions/index.d.ts +9 -9
- package/es/drawer/drawer.d.ts +33 -9
- package/es/drawer/drawer.js +61 -6
- package/es/drawer/index.d.ts +64 -19
- package/es/drawer/style/index.css +10 -0
- package/es/drawer/style/index.less +12 -0
- package/es/dropdown/dropdown-button.d.ts +26 -26
- package/es/dropdown/dropdown-option.d.ts +2 -2
- package/es/dropdown/dropdown-panel.d.ts +6 -6
- package/es/dropdown/dropdown-submenu.d.ts +21 -21
- package/es/dropdown/dropdown.d.ts +18 -18
- package/es/dropdown/index.d.ts +85 -85
- package/es/form/form-item-label.d.ts +28 -28
- package/es/form/form-item.d.ts +35 -35
- package/es/form/form.d.ts +2 -2
- package/es/form/index.d.ts +38 -38
- package/es/image/preview-action.d.ts +27 -27
- package/es/image/preview-toolbar.d.ts +27 -27
- package/es/index.css +39 -8
- package/es/input/index.d.ts +22 -22
- package/es/input/input-password.d.ts +8 -8
- package/es/input/input-search.d.ts +2 -2
- package/es/input/input.d.ts +5 -5
- package/es/input-number/index.d.ts +18 -18
- package/es/input-number/input-number.d.ts +8 -8
- package/es/input-tag/index.d.ts +30 -30
- package/es/input-tag/input-tag.d.ts +11 -11
- package/es/list/index.d.ts +12 -12
- package/es/list/list.d.ts +5 -5
- package/es/mention/index.d.ts +15 -15
- package/es/mention/mention.d.ts +5 -5
- package/es/menu/base-menu.d.ts +1 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +1 -1
- package/es/menu/sub-menu-pop.d.ts +15 -15
- package/es/message/message.d.ts +6 -6
- package/es/modal/index.d.ts +49 -19
- package/es/modal/modal.d.ts +24 -9
- package/es/modal/modal.js +23 -6
- package/es/modal/modal.vue_vue_type_script_lang.js +26 -2
- package/es/modal/style/index.css +7 -1
- package/es/modal/style/index.less +8 -1
- package/es/notification/notification.d.ts +4 -4
- package/es/page-header/index.d.ts +6 -6
- package/es/page-header/page-header.d.ts +3 -3
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/page-jumper.d.ts +18 -18
- package/es/pagination/page-options.d.ts +85 -85
- package/es/pagination/pagination.d.ts +2 -2
- package/es/popconfirm/index.d.ts +37 -37
- package/es/popconfirm/popconfirm.d.ts +18 -18
- package/es/popover/index.d.ts +24 -24
- package/es/popover/popover.d.ts +12 -12
- package/es/progress/circle.d.ts +5 -5
- package/es/progress/index.d.ts +36 -36
- package/es/progress/line.d.ts +5 -5
- package/es/progress/progress.d.ts +19 -19
- package/es/progress/steps.d.ts +2 -2
- package/es/radio/index.d.ts +16 -16
- package/es/radio/radio-group.d.ts +4 -4
- package/es/radio/radio.d.ts +5 -5
- package/es/rate/index.d.ts +9 -9
- package/es/rate/rate.d.ts +3 -3
- package/es/scrollbar/index.d.ts +6 -6
- package/es/scrollbar/scrollbar.d.ts +3 -3
- package/es/select/index.d.ts +85 -85
- package/es/select/option.d.ts +16 -16
- package/es/select/select-dropdown.d.ts +7 -7
- package/es/select/select.d.ts +30 -30
- package/es/skeleton/index.d.ts +3 -3
- package/es/skeleton/skeleton.d.ts +1 -1
- package/es/slider/index.d.ts +96 -96
- package/es/slider/slider-button.d.ts +27 -27
- package/es/slider/slider-input.d.ts +18 -18
- package/es/slider/slider.d.ts +47 -47
- package/es/space/index.d.ts +6 -6
- package/es/space/space.d.ts +3 -3
- package/es/split/index.d.ts +6 -6
- package/es/split/split.d.ts +2 -2
- package/es/statistic/countdown.d.ts +1 -1
- package/es/statistic/index.d.ts +4 -4
- package/es/statistic/statistic.d.ts +1 -1
- package/es/steps/index.d.ts +9 -9
- package/es/steps/step.d.ts +3 -3
- package/es/steps/steps.d.ts +3 -3
- package/es/switch/index.d.ts +15 -15
- package/es/switch/switch.d.ts +9 -9
- package/es/table/context.d.ts +3 -0
- package/es/table/hooks/use-row-selection.js +5 -3
- package/es/table/index.d.ts +24 -24
- package/es/table/interface.d.ts +1 -1
- package/es/table/style/index.css +22 -7
- package/es/table/style/index.less +25 -8
- package/es/table/table-column.d.ts +2 -2
- package/es/table/table-operation-td.d.ts +30 -30
- package/es/table/table-operation-td.js +6 -6
- package/es/table/table-operation-th.js +19 -7
- package/es/table/table-td.d.ts +1 -1
- package/es/table/table-td.js +2 -2
- package/es/table/table.d.ts +11 -11
- package/es/table/table.js +184 -34
- package/es/table/utils.d.ts +1 -1
- package/es/table/utils.js +9 -5
- package/es/tabs/index.d.ts +9 -9
- package/es/tabs/tabs-nav.d.ts +1 -1
- package/es/tabs/tabs-tab.d.ts +4 -4
- package/es/tabs/tabs.d.ts +4 -4
- package/es/tag/index.d.ts +12 -12
- package/es/tag/tag.d.ts +6 -6
- package/es/textarea/index.d.ts +15 -15
- package/es/textarea/textarea.d.ts +6 -6
- package/es/time-picker/index.d.ts +113 -113
- package/es/time-picker/panel.d.ts +8 -8
- package/es/time-picker/range-panel.d.ts +8 -8
- package/es/time-picker/time-picker.d.ts +54 -54
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +2 -2
- package/es/tooltip/index.d.ts +27 -27
- package/es/tooltip/tooltip.d.ts +13 -13
- package/es/transfer/index.d.ts +90 -90
- package/es/transfer/transfer-view.d.ts +37 -37
- package/es/transfer/transfer.d.ts +44 -44
- package/es/tree/base-node.d.ts +14 -14
- package/es/tree/index.d.ts +13 -13
- package/es/tree/transition-node-list.d.ts +14 -14
- package/es/tree/tree.d.ts +6 -6
- package/es/tree-select/index.d.ts +83 -83
- package/es/tree-select/panel.d.ts +13 -13
- package/es/tree-select/tree-select.d.ts +39 -39
- package/es/trigger/index.d.ts +12 -12
- package/es/trigger/trigger.d.ts +7 -7
- package/es/typography/base.d.ts +2 -2
- package/es/typography/edit-content.d.ts +67 -67
- package/es/typography/index.d.ts +3 -3
- package/es/typography/operations.d.ts +27 -27
- package/es/typography/title.d.ts +3 -3
- package/es/upload/index.d.ts +6 -6
- package/es/upload/upload.d.ts +2 -2
- package/es/verification-code/index.d.ts +12 -12
- package/es/verification-code/verification-code.d.ts +5 -5
- package/json/vetur-attributes.json +2116 -2116
- package/json/vetur-tags.json +757 -757
- package/json/web-types.json +4117 -4117
- package/lib/_utils/array.js +18 -1
- package/lib/drawer/drawer.js +63 -8
- package/lib/drawer/style/index.css +10 -0
- package/lib/drawer/style/index.less +12 -0
- package/lib/index.css +39 -8
- package/lib/modal/modal.js +23 -6
- package/lib/modal/modal.vue_vue_type_script_lang.js +36 -12
- package/lib/modal/style/index.css +7 -1
- package/lib/modal/style/index.less +8 -1
- package/lib/table/hooks/use-row-selection.js +5 -3
- package/lib/table/style/index.css +22 -7
- package/lib/table/style/index.less +25 -8
- package/lib/table/table-operation-td.js +6 -6
- package/lib/table/table-operation-th.js +19 -7
- package/lib/table/table-td.js +2 -2
- package/lib/table/table.js +183 -33
- package/lib/table/utils.js +9 -5
- package/package.json +25 -24
- package/LICENSE +0 -21
|
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
90
90
|
default: boolean;
|
|
91
91
|
};
|
|
92
92
|
value: {
|
|
93
|
-
type: (
|
|
93
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
94
94
|
};
|
|
95
95
|
disabled: {
|
|
96
96
|
type: BooleanConstructor;
|
|
@@ -105,8 +105,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
105
|
default: boolean;
|
|
106
106
|
};
|
|
107
107
|
}>> & Readonly<{
|
|
108
|
-
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
109
108
|
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
110
110
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
111
111
|
'update:modelValue': (value: boolean | (string | number | boolean)[]) => true;
|
|
112
112
|
change: (value: boolean | (string | number | boolean)[], ev: Event) => true;
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
123
123
|
type: StringConstructor;
|
|
124
124
|
};
|
|
125
125
|
size: {
|
|
126
|
-
type: PropType<"mini" | "
|
|
126
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
127
127
|
default: string;
|
|
128
128
|
};
|
|
129
129
|
disabled: {
|
|
@@ -137,7 +137,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
137
137
|
type: StringConstructor;
|
|
138
138
|
};
|
|
139
139
|
size: {
|
|
140
|
-
type: PropType<"mini" | "
|
|
140
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
141
141
|
default: string;
|
|
142
142
|
};
|
|
143
143
|
disabled: {
|
|
@@ -145,8 +145,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
145
145
|
default: boolean;
|
|
146
146
|
};
|
|
147
147
|
}>> & Readonly<{}>, {
|
|
148
|
+
size: "mini" | "small" | "medium" | "large";
|
|
148
149
|
disabled: boolean;
|
|
149
|
-
size: "mini" | "medium" | "large" | "small";
|
|
150
150
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
151
151
|
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
152
152
|
P: {};
|
|
@@ -165,7 +165,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
165
165
|
default: boolean;
|
|
166
166
|
};
|
|
167
167
|
value: {
|
|
168
|
-
type: (
|
|
168
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
169
169
|
};
|
|
170
170
|
disabled: {
|
|
171
171
|
type: BooleanConstructor;
|
|
@@ -180,8 +180,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
180
|
default: boolean;
|
|
181
181
|
};
|
|
182
182
|
}>> & Readonly<{
|
|
183
|
-
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
184
183
|
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
184
|
+
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
185
185
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
186
186
|
disabled: boolean;
|
|
187
187
|
modelValue: boolean | (string | number | boolean)[];
|
|
@@ -202,7 +202,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
202
|
default: boolean;
|
|
203
203
|
};
|
|
204
204
|
value: {
|
|
205
|
-
type: (
|
|
205
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
206
206
|
};
|
|
207
207
|
disabled: {
|
|
208
208
|
type: BooleanConstructor;
|
|
@@ -217,8 +217,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
217
217
|
default: boolean;
|
|
218
218
|
};
|
|
219
219
|
}>> & Readonly<{
|
|
220
|
-
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
221
220
|
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
221
|
+
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
222
222
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
223
223
|
'update:modelValue': (value: boolean | (string | number | boolean)[]) => true;
|
|
224
224
|
change: (value: boolean | (string | number | boolean)[], ev: Event) => true;
|
|
@@ -235,7 +235,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
235
235
|
type: StringConstructor;
|
|
236
236
|
};
|
|
237
237
|
size: {
|
|
238
|
-
type: PropType<"mini" | "
|
|
238
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
239
239
|
default: string;
|
|
240
240
|
};
|
|
241
241
|
disabled: {
|
|
@@ -249,7 +249,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
249
249
|
type: StringConstructor;
|
|
250
250
|
};
|
|
251
251
|
size: {
|
|
252
|
-
type: PropType<"mini" | "
|
|
252
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
253
253
|
default: string;
|
|
254
254
|
};
|
|
255
255
|
disabled: {
|
|
@@ -257,8 +257,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
257
257
|
default: boolean;
|
|
258
258
|
};
|
|
259
259
|
}>> & Readonly<{}>, {
|
|
260
|
+
size: "mini" | "small" | "medium" | "large";
|
|
260
261
|
disabled: boolean;
|
|
261
|
-
size: "mini" | "medium" | "large" | "small";
|
|
262
262
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
263
263
|
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
264
264
|
Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -311,12 +311,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
311
311
|
default: boolean;
|
|
312
312
|
};
|
|
313
313
|
}>> & Readonly<{
|
|
314
|
-
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
315
314
|
onChange?: ((value: (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
315
|
+
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
316
316
|
}>, {
|
|
317
317
|
disabled: boolean;
|
|
318
|
-
modelValue: (string | number | boolean)[];
|
|
319
318
|
defaultValue: (string | number | boolean)[];
|
|
319
|
+
modelValue: (string | number | boolean)[];
|
|
320
320
|
direction: "horizontal" | "vertical";
|
|
321
321
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
322
322
|
install: (app: import("vue").App<any>, options?: import("../_utils/types").ArcoOptions | undefined) => void;
|
|
@@ -348,16 +348,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
348
348
|
default: boolean;
|
|
349
349
|
};
|
|
350
350
|
}>> & Readonly<{
|
|
351
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
352
351
|
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
352
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
353
353
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
354
354
|
'update:modelValue': (value: string | number | boolean) => true;
|
|
355
355
|
change: (value: string | number | boolean, ev: Event) => true;
|
|
356
356
|
}, import("vue").PublicProps, {
|
|
357
357
|
disabled: boolean;
|
|
358
358
|
type: "button" | "radio";
|
|
359
|
-
modelValue: string | number | boolean;
|
|
360
359
|
value: string | number | boolean;
|
|
360
|
+
modelValue: string | number | boolean;
|
|
361
361
|
defaultChecked: boolean;
|
|
362
362
|
uninjectGroupContext: boolean;
|
|
363
363
|
}, true, {}, {}, {
|
|
@@ -366,7 +366,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
366
366
|
type: StringConstructor;
|
|
367
367
|
};
|
|
368
368
|
size: {
|
|
369
|
-
type: PropType<"mini" | "
|
|
369
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
370
370
|
default: string;
|
|
371
371
|
};
|
|
372
372
|
disabled: {
|
|
@@ -380,7 +380,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
380
380
|
type: StringConstructor;
|
|
381
381
|
};
|
|
382
382
|
size: {
|
|
383
|
-
type: PropType<"mini" | "
|
|
383
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
384
384
|
default: string;
|
|
385
385
|
};
|
|
386
386
|
disabled: {
|
|
@@ -388,8 +388,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
388
388
|
default: boolean;
|
|
389
389
|
};
|
|
390
390
|
}>> & Readonly<{}>, {
|
|
391
|
+
size: "mini" | "small" | "medium" | "large";
|
|
391
392
|
disabled: boolean;
|
|
392
|
-
size: "mini" | "medium" | "large" | "small";
|
|
393
393
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
394
394
|
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
395
395
|
P: {};
|
|
@@ -424,13 +424,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
424
424
|
default: boolean;
|
|
425
425
|
};
|
|
426
426
|
}>> & Readonly<{
|
|
427
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
428
427
|
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
428
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
429
429
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
430
430
|
disabled: boolean;
|
|
431
431
|
type: "button" | "radio";
|
|
432
|
-
modelValue: string | number | boolean;
|
|
433
432
|
value: string | number | boolean;
|
|
433
|
+
modelValue: string | number | boolean;
|
|
434
434
|
defaultChecked: boolean;
|
|
435
435
|
uninjectGroupContext: boolean;
|
|
436
436
|
}>;
|
|
@@ -463,16 +463,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
463
463
|
default: boolean;
|
|
464
464
|
};
|
|
465
465
|
}>> & Readonly<{
|
|
466
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
467
466
|
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
467
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
468
468
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
469
469
|
'update:modelValue': (value: string | number | boolean) => true;
|
|
470
470
|
change: (value: string | number | boolean, ev: Event) => true;
|
|
471
471
|
}, string, {
|
|
472
472
|
disabled: boolean;
|
|
473
473
|
type: "button" | "radio";
|
|
474
|
-
modelValue: string | number | boolean;
|
|
475
474
|
value: string | number | boolean;
|
|
475
|
+
modelValue: string | number | boolean;
|
|
476
476
|
defaultChecked: boolean;
|
|
477
477
|
uninjectGroupContext: boolean;
|
|
478
478
|
}, {}, string, {}, {
|
|
@@ -481,7 +481,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
481
481
|
type: StringConstructor;
|
|
482
482
|
};
|
|
483
483
|
size: {
|
|
484
|
-
type: PropType<"mini" | "
|
|
484
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
485
485
|
default: string;
|
|
486
486
|
};
|
|
487
487
|
disabled: {
|
|
@@ -495,7 +495,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
495
495
|
type: StringConstructor;
|
|
496
496
|
};
|
|
497
497
|
size: {
|
|
498
|
-
type: PropType<"mini" | "
|
|
498
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
499
499
|
default: string;
|
|
500
500
|
};
|
|
501
501
|
disabled: {
|
|
@@ -503,8 +503,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
503
503
|
default: boolean;
|
|
504
504
|
};
|
|
505
505
|
}>> & Readonly<{}>, {
|
|
506
|
+
size: "mini" | "small" | "medium" | "large";
|
|
506
507
|
disabled: boolean;
|
|
507
|
-
size: "mini" | "medium" | "large" | "small";
|
|
508
508
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
509
509
|
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
510
510
|
Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -521,7 +521,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
521
521
|
default: string;
|
|
522
522
|
};
|
|
523
523
|
size: {
|
|
524
|
-
type: PropType<"mini" | "
|
|
524
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
525
525
|
};
|
|
526
526
|
options: {
|
|
527
527
|
type: PropType<(string | number | import("../radio/interface").RadioOption)[]>;
|
|
@@ -551,7 +551,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
551
551
|
default: string;
|
|
552
552
|
};
|
|
553
553
|
size: {
|
|
554
|
-
type: PropType<"mini" | "
|
|
554
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
555
555
|
};
|
|
556
556
|
options: {
|
|
557
557
|
type: PropType<(string | number | import("../radio/interface").RadioOption)[]>;
|
|
@@ -565,13 +565,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
565
|
default: boolean;
|
|
566
566
|
};
|
|
567
567
|
}>> & Readonly<{
|
|
568
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
569
568
|
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
569
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
570
570
|
}>, {
|
|
571
571
|
disabled: boolean;
|
|
572
572
|
type: "button" | "radio";
|
|
573
|
-
modelValue: string | number | boolean;
|
|
574
573
|
defaultValue: string | number | boolean;
|
|
574
|
+
modelValue: string | number | boolean;
|
|
575
575
|
direction: "horizontal" | "vertical";
|
|
576
576
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
577
577
|
install: (app: import("vue").App<any>, options?: import("../_utils/types").ArcoOptions | undefined) => void;
|
|
@@ -67,11 +67,11 @@ var OperationTd = defineComponent({
|
|
|
67
67
|
}, ...getOperationFixedCls(prefixCls, props.operationColumn)]);
|
|
68
68
|
const leafKeys = computed(() => getLeafKeys(props.record));
|
|
69
69
|
const selectionStatus = computed(() => {
|
|
70
|
-
var _a;
|
|
71
|
-
return getSelectionStatus((_a = tableCtx.
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return getSelectionStatus((_b = (_a = tableCtx.currentSelectedRowKeySet) != null ? _a : tableCtx.currentSelectedRowKeys) != null ? _b : [], leafKeys.value);
|
|
72
72
|
});
|
|
73
73
|
const renderContent = () => {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f;
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
75
75
|
if (props.summary) {
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
@@ -94,7 +94,7 @@ var OperationTd = defineComponent({
|
|
|
94
94
|
}, null);
|
|
95
95
|
}
|
|
96
96
|
return createVNode(Checkbox, {
|
|
97
|
-
"modelValue": (
|
|
97
|
+
"modelValue": (_d = (_c = (_a = tableCtx.selectedRowKeySet) == null ? void 0 : _a.has(value)) != null ? _c : (_b = props.selectedRowKeys) == null ? void 0 : _b.includes(value)) != null ? _d : false,
|
|
98
98
|
"disabled": Boolean(props.record.disabled),
|
|
99
99
|
"uninjectGroupContext": true,
|
|
100
100
|
"onChange": (checked) => {
|
|
@@ -107,7 +107,7 @@ var OperationTd = defineComponent({
|
|
|
107
107
|
if (props.operationColumn.name === "selection-radio") {
|
|
108
108
|
const value = props.record.key;
|
|
109
109
|
return createVNode(Radio, {
|
|
110
|
-
"modelValue": (
|
|
110
|
+
"modelValue": (_h = (_g = (_e = tableCtx.selectedRowKeySet) == null ? void 0 : _e.has(value)) != null ? _g : (_f = props.selectedRowKeys) == null ? void 0 : _f.includes(value)) != null ? _h : false,
|
|
111
111
|
"disabled": Boolean(props.record.disabled),
|
|
112
112
|
"uninjectGroupContext": true,
|
|
113
113
|
"onChange": (checked) => {
|
|
@@ -124,7 +124,7 @@ var OperationTd = defineComponent({
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
if (props.operationColumn.name === "drag-handle") {
|
|
127
|
-
return (
|
|
127
|
+
return (_j = (_i = slots["drag-handle-icon"]) == null ? void 0 : _i.call(slots)) != null ? _j : createVNode(IconDragDotVertical, null, null);
|
|
128
128
|
}
|
|
129
129
|
return null;
|
|
130
130
|
};
|
|
@@ -28,15 +28,27 @@ var OperationTh = defineComponent({
|
|
|
28
28
|
const prefixCls = getPrefixCls("table");
|
|
29
29
|
const tableCtx = inject(tableInjectionKey, {});
|
|
30
30
|
const checkboxStatus = computed(() => {
|
|
31
|
-
var _a, _b, _c, _d;
|
|
31
|
+
var _a, _b, _c, _d, _e;
|
|
32
32
|
let checked = false;
|
|
33
33
|
let indeterminate = false;
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
const totalEnabledNumber = (_b = (_a = tableCtx.currentAllEnabledRowKeys) == null ? void 0 : _a.length) != null ? _b : 0;
|
|
35
|
+
if (totalEnabledNumber === 0) {
|
|
36
|
+
return {
|
|
37
|
+
checked,
|
|
38
|
+
indeterminate
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const enabledKeySet = (_d = tableCtx.currentAllEnabledRowKeySet) != null ? _d : new Set((_c = tableCtx.currentAllEnabledRowKeys) != null ? _c : []);
|
|
42
|
+
const currentSelectedRowKeys = (_e = tableCtx.currentSelectedRowKeys) != null ? _e : [];
|
|
43
|
+
let selectedNumber = 0;
|
|
44
|
+
for (const key of currentSelectedRowKeys) {
|
|
45
|
+
if (enabledKeySet.has(key)) {
|
|
46
|
+
selectedNumber += 1;
|
|
47
|
+
if (selectedNumber >= totalEnabledNumber) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
40
52
|
if (selectedNumber > 0) {
|
|
41
53
|
if (selectedNumber >= totalEnabledNumber) {
|
|
42
54
|
checked = true;
|
package/es/table/table-td.d.ts
CHANGED
|
@@ -107,9 +107,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
109
|
}>> & Readonly<{}>, {
|
|
110
|
+
type: "normal" | "checkbox" | "radio" | "expand" | "operation";
|
|
110
111
|
column: TableColumnData;
|
|
111
112
|
summary: boolean;
|
|
112
|
-
type: "normal" | "checkbox" | "radio" | "expand" | "operation";
|
|
113
113
|
indentSize: number;
|
|
114
114
|
record: TableDataWithRaw;
|
|
115
115
|
operations: TableOperationColumn[];
|
package/es/table/table-td.js
CHANGED
|
@@ -106,13 +106,13 @@ var Td = defineComponent({
|
|
|
106
106
|
};
|
|
107
107
|
const style = computed(() => {
|
|
108
108
|
var _a;
|
|
109
|
-
const
|
|
109
|
+
const fixedStyle = getStyle(props.column, {
|
|
110
110
|
dataColumns: props.dataColumns,
|
|
111
111
|
operations: props.operations
|
|
112
112
|
});
|
|
113
113
|
const customStyle = getCustomStyle();
|
|
114
114
|
return {
|
|
115
|
-
...
|
|
115
|
+
...fixedStyle,
|
|
116
116
|
...(_a = props.column) == null ? void 0 : _a.cellStyle,
|
|
117
117
|
...customStyle
|
|
118
118
|
};
|
package/es/table/table.d.ts
CHANGED
|
@@ -26,15 +26,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
29
|
-
type: PropType<"mini" | "
|
|
30
|
-
default: () => "mini" | "
|
|
29
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
30
|
+
default: () => "mini" | "small" | "medium" | "large";
|
|
31
31
|
};
|
|
32
32
|
tableLayoutFixed: {
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
36
|
loading: {
|
|
37
|
-
type: (
|
|
37
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
rowSelection: {
|
|
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
110
110
|
type: PropType<TableDraggable>;
|
|
111
111
|
};
|
|
112
112
|
rowNumber: {
|
|
113
|
-
type: (
|
|
113
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
114
114
|
};
|
|
115
115
|
columnResizable: {
|
|
116
116
|
type: BooleanConstructor;
|
|
@@ -228,15 +228,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
228
228
|
default: boolean;
|
|
229
229
|
};
|
|
230
230
|
size: {
|
|
231
|
-
type: PropType<"mini" | "
|
|
232
|
-
default: () => "mini" | "
|
|
231
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
232
|
+
default: () => "mini" | "small" | "medium" | "large";
|
|
233
233
|
};
|
|
234
234
|
tableLayoutFixed: {
|
|
235
235
|
type: BooleanConstructor;
|
|
236
236
|
default: boolean;
|
|
237
237
|
};
|
|
238
238
|
loading: {
|
|
239
|
-
type: (
|
|
239
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
240
240
|
default: boolean;
|
|
241
241
|
};
|
|
242
242
|
rowSelection: {
|
|
@@ -312,7 +312,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
312
312
|
type: PropType<TableDraggable>;
|
|
313
313
|
};
|
|
314
314
|
rowNumber: {
|
|
315
|
-
type: (
|
|
315
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
316
316
|
};
|
|
317
317
|
columnResizable: {
|
|
318
318
|
type: BooleanConstructor;
|
|
@@ -367,8 +367,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
367
367
|
default: boolean;
|
|
368
368
|
};
|
|
369
369
|
}>> & Readonly<{
|
|
370
|
-
onSelect?: ((rowKeys: (string | number)[], rowKey: string | number, record: TableData) => any) | undefined;
|
|
371
370
|
onChange?: ((data: TableData[], extra: TableChangeExtra, currentData: TableData[]) => any) | undefined;
|
|
371
|
+
onSelect?: ((rowKeys: (string | number)[], rowKey: string | number, record: TableData) => any) | undefined;
|
|
372
372
|
onPageChange?: ((page: number) => any) | undefined;
|
|
373
373
|
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
374
374
|
"onUpdate:selectedKeys"?: ((rowKeys: (string | number)[]) => any) | undefined;
|
|
@@ -390,12 +390,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
390
390
|
onRowContextmenu?: ((record: TableData, ev: Event) => any) | undefined;
|
|
391
391
|
onCellContextmenu?: ((record: TableData, column: TableColumnData, ev: Event) => any) | undefined;
|
|
392
392
|
}>, {
|
|
393
|
-
size: "mini" | "
|
|
393
|
+
size: "mini" | "small" | "medium" | "large";
|
|
394
394
|
scrollbar: boolean | ScrollbarProps;
|
|
395
395
|
data: TableData[];
|
|
396
|
+
columns: TableColumnData[];
|
|
396
397
|
loading: boolean | Record<string, any>;
|
|
397
398
|
bordered: boolean | TableBorder;
|
|
398
|
-
columns: TableColumnData[];
|
|
399
399
|
hoverable: boolean;
|
|
400
400
|
stripe: boolean;
|
|
401
401
|
tableLayoutFixed: boolean;
|