@geelato/web-vue 2.57.0 → 2.58.1
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 +874 -535
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +1645 -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/input-label/input-label.d.ts +3 -3
- package/es/_components/picker/input-range.d.ts +2 -2
- package/es/_components/picker/input.d.ts +2 -2
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/_utils/array.d.ts +1 -1
- package/es/_utils/array.js +18 -1
- package/es/auto-complete/auto-complete.d.ts +3 -3
- package/es/auto-complete/index.d.ts +9 -9
- package/es/calendar/calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +3 -3
- package/es/cascader/cascader-panel.d.ts +1 -1
- package/es/cascader/cascader.d.ts +5 -5
- package/es/cascader/index.d.ts +15 -15
- package/es/checkbox/checkbox-group.d.ts +2 -2
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/date-picker/index.d.ts +12 -12
- package/es/date-picker/panels/date/index.d.ts +2 -2
- package/es/date-picker/panels/week/index.d.ts +2 -2
- package/es/date-picker/picker-panel.d.ts +4 -4
- package/es/date-picker/picker.d.ts +11 -11
- package/es/date-picker/range-picker-panel.d.ts +4 -4
- package/es/date-picker/range-picker.d.ts +12 -12
- package/es/drawer/drawer.d.ts +24 -0
- package/es/drawer/drawer.js +61 -6
- package/es/drawer/index.d.ts +45 -0
- package/es/drawer/style/index.css +10 -0
- package/es/drawer/style/index.less +12 -0
- package/es/form/form-item.d.ts +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/index.css +39 -8
- package/es/input/index.d.ts +12 -12
- package/es/input/input-password.d.ts +3 -3
- package/es/input/input.d.ts +3 -3
- package/es/input-number/index.d.ts +3 -3
- package/es/input-number/input-number.d.ts +1 -1
- package/es/input-number/input-number.js +2 -0
- package/es/input-tag/index.d.ts +21 -21
- package/es/input-tag/input-tag.d.ts +7 -7
- package/es/mention/index.d.ts +9 -9
- package/es/mention/mention.d.ts +3 -3
- package/es/menu/item.d.ts +1 -1
- package/es/menu/sub-menu-pop.d.ts +1 -1
- package/es/message/message.d.ts +1 -1
- package/es/modal/index.d.ts +33 -3
- package/es/modal/modal.d.ts +16 -1
- 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/pagination/index.d.ts +3 -3
- package/es/pagination/page-jumper.d.ts +3 -3
- package/es/pagination/page-options.d.ts +16 -16
- package/es/pagination/pagination.d.ts +1 -1
- package/es/radio/index.d.ts +8 -8
- package/es/radio/radio-group.d.ts +2 -2
- package/es/radio/radio.d.ts +2 -2
- package/es/rate/index.d.ts +9 -9
- package/es/rate/rate.d.ts +3 -3
- package/es/select/index.d.ts +16 -16
- package/es/select/option.d.ts +5 -5
- package/es/select/select.d.ts +4 -4
- package/es/slider/index.d.ts +12 -12
- package/es/slider/slider-input.d.ts +3 -3
- package/es/slider/slider.d.ts +5 -5
- package/es/switch/index.d.ts +3 -3
- package/es/switch/switch.d.ts +1 -1
- package/es/table/context.d.ts +3 -0
- package/es/table/hooks/use-row-selection.js +5 -3
- 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-operation-td.d.ts +13 -13
- package/es/table/table-operation-td.js +6 -6
- package/es/table/table-operation-th.js +19 -7
- package/es/table/table-td.js +2 -2
- package/es/table/table.js +165 -33
- package/es/table/utils.d.ts +1 -1
- package/es/table/utils.js +9 -5
- package/es/textarea/index.d.ts +6 -6
- package/es/textarea/textarea.d.ts +2 -2
- package/es/time-picker/index.d.ts +22 -22
- package/es/time-picker/panel.d.ts +2 -2
- package/es/time-picker/range-panel.d.ts +2 -2
- package/es/time-picker/time-picker.d.ts +10 -10
- package/es/transfer/index.d.ts +16 -16
- package/es/transfer/transfer-view.d.ts +5 -5
- package/es/transfer/transfer.d.ts +7 -7
- package/es/tree/base-node.d.ts +5 -5
- package/es/tree/transition-node-list.d.ts +5 -5
- package/es/tree-select/index.d.ts +5 -5
- package/es/tree-select/tree-select.d.ts +2 -2
- package/es/typography/edit-content.d.ts +36 -36
- package/es/typography/index.d.ts +3 -3
- package/es/typography/title.d.ts +3 -3
- package/es/upload/index.d.ts +3 -3
- package/es/upload/upload.d.ts +1 -1
- package/es/verification-code/index.d.ts +6 -6
- package/es/verification-code/verification-code.d.ts +2 -2
- package/json/vetur-attributes.json +2305 -2305
- package/json/vetur-tags.json +865 -865
- package/json/web-types.json +4470 -4470
- 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/input-number/input-number.js +2 -0
- 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 +164 -32
- package/lib/table/utils.js +9 -5
- package/package.json +1 -1
package/es/switch/switch.d.ts
CHANGED
|
@@ -118,9 +118,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
118
118
|
};
|
|
119
119
|
}>> & Readonly<{
|
|
120
120
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
121
|
-
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
122
121
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
123
122
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
123
|
+
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
124
124
|
}>, {
|
|
125
125
|
disabled: boolean;
|
|
126
126
|
type: "round" | "circle" | "line";
|
package/es/table/context.d.ts
CHANGED
|
@@ -7,7 +7,10 @@ export interface TableContext {
|
|
|
7
7
|
slots: Slots;
|
|
8
8
|
sorter: Sorter | undefined;
|
|
9
9
|
currentAllEnabledRowKeys: BaseType[];
|
|
10
|
+
currentAllEnabledRowKeySet?: Set<BaseType>;
|
|
10
11
|
currentSelectedRowKeys: BaseType[];
|
|
12
|
+
currentSelectedRowKeySet?: Set<BaseType>;
|
|
13
|
+
selectedRowKeySet?: Set<BaseType>;
|
|
11
14
|
checkStrictly: boolean;
|
|
12
15
|
filters: Filters;
|
|
13
16
|
filterIconAlignLeft: boolean;
|
|
@@ -23,9 +23,11 @@ const useRowSelection = ({
|
|
|
23
23
|
return (_c2 = (_b2 = selectedKeys.value) != null ? _b2 : (_a2 = rowSelection.value) == null ? void 0 : _a2.selectedRowKeys) != null ? _c2 : _selectedRowKeys.value;
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const currentAllRowKeySet = computed(() => new Set(currentAllRowKeys.value));
|
|
27
|
+
const currentSelectedRowKeys = computed(() => {
|
|
28
|
+
const allKeySet = currentAllRowKeySet.value;
|
|
29
|
+
return selectedRowKeys.value.filter((key) => allKeySet.has(key));
|
|
30
|
+
});
|
|
29
31
|
const handleSelectAll = (checked) => {
|
|
30
32
|
const newKeys = union(
|
|
31
33
|
selectedRowKeys.value,
|
package/es/table/interface.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CSSProperties, RenderFunction, Slots, VNodeChild } from 'vue';
|
|
|
2
2
|
import { BaseType, ClassName, Data } from '../_utils/types';
|
|
3
3
|
import { TriggerProps } from '../trigger';
|
|
4
4
|
export declare const TABLE_PAGE_POSITION: readonly ["tl", "top", "tr", "bl", "bottom", "br"];
|
|
5
|
-
export declare type TablePagePosition = typeof TABLE_PAGE_POSITION[number];
|
|
5
|
+
export declare type TablePagePosition = (typeof TABLE_PAGE_POSITION)[number];
|
|
6
6
|
export interface TableData {
|
|
7
7
|
key?: string;
|
|
8
8
|
expand?: string | RenderFunction;
|
package/es/table/style/index.css
CHANGED
|
@@ -275,6 +275,24 @@
|
|
|
275
275
|
justify-content: center;
|
|
276
276
|
padding: 0;
|
|
277
277
|
}
|
|
278
|
+
.arco-table-th.arco-table-operation.arco-table-checkbox .arco-table-cell,
|
|
279
|
+
.arco-table-td.arco-table-operation.arco-table-checkbox .arco-table-cell,
|
|
280
|
+
.arco-table-th.arco-table-operation.arco-table-radio .arco-table-cell,
|
|
281
|
+
.arco-table-td.arco-table-operation.arco-table-radio .arco-table-cell {
|
|
282
|
+
padding: 0 4px;
|
|
283
|
+
}
|
|
284
|
+
.arco-table-th.arco-table-operation.arco-table-checkbox,
|
|
285
|
+
.arco-table-td.arco-table-operation.arco-table-checkbox {
|
|
286
|
+
position: relative;
|
|
287
|
+
z-index: 11;
|
|
288
|
+
}
|
|
289
|
+
.arco-table-th.arco-table-operation.arco-table-checkbox.arco-table-col-fixed-left,
|
|
290
|
+
.arco-table-td.arco-table-operation.arco-table-checkbox.arco-table-col-fixed-left,
|
|
291
|
+
.arco-table-th.arco-table-operation.arco-table-checkbox.arco-table-col-fixed-right,
|
|
292
|
+
.arco-table-td.arco-table-operation.arco-table-checkbox.arco-table-col-fixed-right {
|
|
293
|
+
position: sticky !important;
|
|
294
|
+
z-index: 12;
|
|
295
|
+
}
|
|
278
296
|
.arco-table-radio,
|
|
279
297
|
.arco-table-checkbox {
|
|
280
298
|
justify-content: center;
|
|
@@ -665,13 +683,10 @@
|
|
|
665
683
|
.arco-table-virtualized .arco-table-element {
|
|
666
684
|
table-layout: fixed;
|
|
667
685
|
}
|
|
668
|
-
.arco-table-virtualized
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
display: flex;
|
|
673
|
-
flex: 1;
|
|
674
|
-
align-items: center;
|
|
686
|
+
.arco-table-virtualized .arco-table-body .arco-table-td.arco-table-col-fixed-left,
|
|
687
|
+
.arco-table-virtualized .arco-table-body .arco-table-td.arco-table-col-fixed-right {
|
|
688
|
+
position: sticky;
|
|
689
|
+
z-index: 10;
|
|
675
690
|
}
|
|
676
691
|
.arco-table-pagination {
|
|
677
692
|
display: flex;
|
|
@@ -349,6 +349,25 @@
|
|
|
349
349
|
padding: 0;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
&-th&-operation&-checkbox &-cell,
|
|
353
|
+
&-td&-operation&-checkbox &-cell,
|
|
354
|
+
&-th&-operation&-radio &-cell,
|
|
355
|
+
&-td&-operation&-radio &-cell {
|
|
356
|
+
padding: 0 @spacing-2;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&-th&-operation&-checkbox,
|
|
360
|
+
&-td&-operation&-checkbox {
|
|
361
|
+
position: relative;
|
|
362
|
+
z-index: 11;
|
|
363
|
+
|
|
364
|
+
&.@{table-prefix-cls}-col-fixed-left,
|
|
365
|
+
&.@{table-prefix-cls}-col-fixed-right {
|
|
366
|
+
position: sticky !important;
|
|
367
|
+
z-index: 12;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
352
371
|
&-radio,
|
|
353
372
|
&-checkbox {
|
|
354
373
|
justify-content: center;
|
|
@@ -824,14 +843,12 @@
|
|
|
824
843
|
table-layout: fixed;
|
|
825
844
|
}
|
|
826
845
|
|
|
827
|
-
&-virtualized
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
flex: 1;
|
|
834
|
-
align-items: center;
|
|
846
|
+
&-virtualized .@{table-prefix-cls}-body .@{table-prefix-cls}-td {
|
|
847
|
+
&.@{table-prefix-cls}-col-fixed-left,
|
|
848
|
+
&.@{table-prefix-cls}-col-fixed-right {
|
|
849
|
+
position: sticky;
|
|
850
|
+
z-index: 10;
|
|
851
|
+
}
|
|
835
852
|
}
|
|
836
853
|
}
|
|
837
854
|
|
|
@@ -105,8 +105,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
105
|
default: boolean;
|
|
106
106
|
};
|
|
107
107
|
}>> & Readonly<{
|
|
108
|
-
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
109
108
|
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
109
|
+
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => 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;
|
|
@@ -180,8 +180,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
180
|
default: boolean;
|
|
181
181
|
};
|
|
182
182
|
}>> & Readonly<{
|
|
183
|
-
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
184
183
|
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
184
|
+
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
185
185
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
186
186
|
disabled: boolean;
|
|
187
187
|
modelValue: boolean | (string | number | boolean)[];
|
|
@@ -217,8 +217,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
217
217
|
default: boolean;
|
|
218
218
|
};
|
|
219
219
|
}>> & Readonly<{
|
|
220
|
-
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
221
220
|
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
|
|
221
|
+
onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => 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;
|
|
@@ -311,12 +311,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
311
311
|
default: boolean;
|
|
312
312
|
};
|
|
313
313
|
}>> & Readonly<{
|
|
314
|
-
onChange?: ((value: (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
315
314
|
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
315
|
+
onChange?: ((value: (string | number | boolean)[], ev: Event) => any) | undefined;
|
|
316
316
|
}>, {
|
|
317
317
|
disabled: boolean;
|
|
318
|
-
defaultValue: (string | number | boolean)[];
|
|
319
318
|
modelValue: (string | number | boolean)[];
|
|
319
|
+
defaultValue: (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
|
-
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
352
351
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
352
|
+
onChange?: ((value: string | number | boolean, ev: Event) => 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
|
-
value: string | number | boolean;
|
|
360
359
|
modelValue: string | number | boolean;
|
|
360
|
+
value: string | number | boolean;
|
|
361
361
|
defaultChecked: boolean;
|
|
362
362
|
uninjectGroupContext: boolean;
|
|
363
363
|
}, true, {}, {}, {
|
|
@@ -424,13 +424,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
424
424
|
default: boolean;
|
|
425
425
|
};
|
|
426
426
|
}>> & Readonly<{
|
|
427
|
-
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
428
427
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
428
|
+
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
429
429
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
430
430
|
disabled: boolean;
|
|
431
431
|
type: "button" | "radio";
|
|
432
|
-
value: string | number | boolean;
|
|
433
432
|
modelValue: string | number | boolean;
|
|
433
|
+
value: 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
|
-
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
467
466
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
467
|
+
onChange?: ((value: string | number | boolean, ev: Event) => 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
|
-
value: string | number | boolean;
|
|
475
474
|
modelValue: string | number | boolean;
|
|
475
|
+
value: string | number | boolean;
|
|
476
476
|
defaultChecked: boolean;
|
|
477
477
|
uninjectGroupContext: boolean;
|
|
478
478
|
}, {}, string, {}, {
|
|
@@ -565,13 +565,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
565
|
default: boolean;
|
|
566
566
|
};
|
|
567
567
|
}>> & Readonly<{
|
|
568
|
-
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
569
568
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
569
|
+
onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
|
|
570
570
|
}>, {
|
|
571
571
|
disabled: boolean;
|
|
572
572
|
type: "button" | "radio";
|
|
573
|
-
defaultValue: string | number | boolean;
|
|
574
573
|
modelValue: string | number | boolean;
|
|
574
|
+
defaultValue: 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.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
|
};
|