@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.
Files changed (129) hide show
  1. package/dist/arco-vue.js +874 -535
  2. package/dist/arco-vue.js.map +1 -1
  3. package/dist/arco-vue.min.js +1645 -1546
  4. package/dist/arco-vue.min.js.map +1 -1
  5. package/dist/arco.css +39 -8
  6. package/dist/arco.min.css +1 -1
  7. package/es/_components/input-label/input-label.d.ts +3 -3
  8. package/es/_components/picker/input-range.d.ts +2 -2
  9. package/es/_components/picker/input.d.ts +2 -2
  10. package/es/_components/select-view/select-view.d.ts +1 -1
  11. package/es/_utils/array.d.ts +1 -1
  12. package/es/_utils/array.js +18 -1
  13. package/es/auto-complete/auto-complete.d.ts +3 -3
  14. package/es/auto-complete/index.d.ts +9 -9
  15. package/es/calendar/calendar.d.ts +1 -1
  16. package/es/calendar/index.d.ts +3 -3
  17. package/es/cascader/cascader-panel.d.ts +1 -1
  18. package/es/cascader/cascader.d.ts +5 -5
  19. package/es/cascader/index.d.ts +15 -15
  20. package/es/checkbox/checkbox-group.d.ts +2 -2
  21. package/es/checkbox/checkbox.d.ts +1 -1
  22. package/es/checkbox/index.d.ts +5 -5
  23. package/es/color-picker/color-picker.d.ts +1 -1
  24. package/es/color-picker/index.d.ts +3 -3
  25. package/es/date-picker/index.d.ts +12 -12
  26. package/es/date-picker/panels/date/index.d.ts +2 -2
  27. package/es/date-picker/panels/week/index.d.ts +2 -2
  28. package/es/date-picker/picker-panel.d.ts +4 -4
  29. package/es/date-picker/picker.d.ts +11 -11
  30. package/es/date-picker/range-picker-panel.d.ts +4 -4
  31. package/es/date-picker/range-picker.d.ts +12 -12
  32. package/es/drawer/drawer.d.ts +24 -0
  33. package/es/drawer/drawer.js +61 -6
  34. package/es/drawer/index.d.ts +45 -0
  35. package/es/drawer/style/index.css +10 -0
  36. package/es/drawer/style/index.less +12 -0
  37. package/es/form/form-item.d.ts +3 -3
  38. package/es/form/index.d.ts +3 -3
  39. package/es/index.css +39 -8
  40. package/es/input/index.d.ts +12 -12
  41. package/es/input/input-password.d.ts +3 -3
  42. package/es/input/input.d.ts +3 -3
  43. package/es/input-number/index.d.ts +3 -3
  44. package/es/input-number/input-number.d.ts +1 -1
  45. package/es/input-number/input-number.js +2 -0
  46. package/es/input-tag/index.d.ts +21 -21
  47. package/es/input-tag/input-tag.d.ts +7 -7
  48. package/es/mention/index.d.ts +9 -9
  49. package/es/mention/mention.d.ts +3 -3
  50. package/es/menu/item.d.ts +1 -1
  51. package/es/menu/sub-menu-pop.d.ts +1 -1
  52. package/es/message/message.d.ts +1 -1
  53. package/es/modal/index.d.ts +33 -3
  54. package/es/modal/modal.d.ts +16 -1
  55. package/es/modal/modal.js +23 -6
  56. package/es/modal/modal.vue_vue_type_script_lang.js +26 -2
  57. package/es/modal/style/index.css +7 -1
  58. package/es/modal/style/index.less +8 -1
  59. package/es/pagination/index.d.ts +3 -3
  60. package/es/pagination/page-jumper.d.ts +3 -3
  61. package/es/pagination/page-options.d.ts +16 -16
  62. package/es/pagination/pagination.d.ts +1 -1
  63. package/es/radio/index.d.ts +8 -8
  64. package/es/radio/radio-group.d.ts +2 -2
  65. package/es/radio/radio.d.ts +2 -2
  66. package/es/rate/index.d.ts +9 -9
  67. package/es/rate/rate.d.ts +3 -3
  68. package/es/select/index.d.ts +16 -16
  69. package/es/select/option.d.ts +5 -5
  70. package/es/select/select.d.ts +4 -4
  71. package/es/slider/index.d.ts +12 -12
  72. package/es/slider/slider-input.d.ts +3 -3
  73. package/es/slider/slider.d.ts +5 -5
  74. package/es/switch/index.d.ts +3 -3
  75. package/es/switch/switch.d.ts +1 -1
  76. package/es/table/context.d.ts +3 -0
  77. package/es/table/hooks/use-row-selection.js +5 -3
  78. package/es/table/interface.d.ts +1 -1
  79. package/es/table/style/index.css +22 -7
  80. package/es/table/style/index.less +25 -8
  81. package/es/table/table-operation-td.d.ts +13 -13
  82. package/es/table/table-operation-td.js +6 -6
  83. package/es/table/table-operation-th.js +19 -7
  84. package/es/table/table-td.js +2 -2
  85. package/es/table/table.js +165 -33
  86. package/es/table/utils.d.ts +1 -1
  87. package/es/table/utils.js +9 -5
  88. package/es/textarea/index.d.ts +6 -6
  89. package/es/textarea/textarea.d.ts +2 -2
  90. package/es/time-picker/index.d.ts +22 -22
  91. package/es/time-picker/panel.d.ts +2 -2
  92. package/es/time-picker/range-panel.d.ts +2 -2
  93. package/es/time-picker/time-picker.d.ts +10 -10
  94. package/es/transfer/index.d.ts +16 -16
  95. package/es/transfer/transfer-view.d.ts +5 -5
  96. package/es/transfer/transfer.d.ts +7 -7
  97. package/es/tree/base-node.d.ts +5 -5
  98. package/es/tree/transition-node-list.d.ts +5 -5
  99. package/es/tree-select/index.d.ts +5 -5
  100. package/es/tree-select/tree-select.d.ts +2 -2
  101. package/es/typography/edit-content.d.ts +36 -36
  102. package/es/typography/index.d.ts +3 -3
  103. package/es/typography/title.d.ts +3 -3
  104. package/es/upload/index.d.ts +3 -3
  105. package/es/upload/upload.d.ts +1 -1
  106. package/es/verification-code/index.d.ts +6 -6
  107. package/es/verification-code/verification-code.d.ts +2 -2
  108. package/json/vetur-attributes.json +2305 -2305
  109. package/json/vetur-tags.json +865 -865
  110. package/json/web-types.json +4470 -4470
  111. package/lib/_utils/array.js +18 -1
  112. package/lib/drawer/drawer.js +63 -8
  113. package/lib/drawer/style/index.css +10 -0
  114. package/lib/drawer/style/index.less +12 -0
  115. package/lib/index.css +39 -8
  116. package/lib/input-number/input-number.js +2 -0
  117. package/lib/modal/modal.js +23 -6
  118. package/lib/modal/modal.vue_vue_type_script_lang.js +36 -12
  119. package/lib/modal/style/index.css +7 -1
  120. package/lib/modal/style/index.less +8 -1
  121. package/lib/table/hooks/use-row-selection.js +5 -3
  122. package/lib/table/style/index.css +22 -7
  123. package/lib/table/style/index.less +25 -8
  124. package/lib/table/table-operation-td.js +6 -6
  125. package/lib/table/table-operation-th.js +19 -7
  126. package/lib/table/table-td.js +2 -2
  127. package/lib/table/table.js +164 -32
  128. package/lib/table/utils.js +9 -5
  129. package/package.json +1 -1
@@ -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";
@@ -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 currentSelectedRowKeys = computed(
27
- () => selectedRowKeys.value.filter((key) => currentAllRowKeys.value.includes(key))
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,
@@ -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;
@@ -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 div.arco-table-body div.arco-table-tr {
669
- display: flex;
670
- }
671
- .arco-table-virtualized div.arco-table-body div.arco-table-td {
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 div&-body div&-tr {
828
- display: flex;
829
- }
830
-
831
- &-virtualized div&-body div&-td {
832
- display: flex;
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.currentSelectedRowKeys) != null ? _a : [], leafKeys.value);
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": (_b = (_a = props.selectedRowKeys) == null ? void 0 : _a.includes(value)) != null ? _b : false,
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": (_d = (_c = props.selectedRowKeys) == null ? void 0 : _c.includes(value)) != null ? _d : false,
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 (_f = (_e = slots["drag-handle-icon"]) == null ? void 0 : _e.call(slots)) != null ? _f : createVNode(IconDragDotVertical, null, null);
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 currentSelectedEnabledRowKeys = (_b = (_a = tableCtx.currentSelectedRowKeys) == null ? void 0 : _a.filter((key) => {
35
- var _a2, _b2;
36
- return (_b2 = (_a2 = tableCtx.currentAllEnabledRowKeys) == null ? void 0 : _a2.includes(key)) != null ? _b2 : true;
37
- })) != null ? _b : [];
38
- const selectedNumber = currentSelectedEnabledRowKeys.length;
39
- const totalEnabledNumber = (_d = (_c = tableCtx.currentAllEnabledRowKeys) == null ? void 0 : _c.length) != null ? _d : 0;
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;
@@ -106,13 +106,13 @@ var Td = defineComponent({
106
106
  };
107
107
  const style = computed(() => {
108
108
  var _a;
109
- const style2 = getStyle(props.column, {
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
- ...style2,
115
+ ...fixedStyle,
116
116
  ...(_a = props.column) == null ? void 0 : _a.cellStyle,
117
117
  ...customStyle
118
118
  };