@geelato/web-vue 2.57.1 → 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 (81) hide show
  1. package/dist/arco-vue.js +872 -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/picker/input-range.d.ts +2 -2
  8. package/es/_components/picker/input.d.ts +1 -1
  9. package/es/_components/virtual-list-v2/virtual-list.d.ts +3 -3
  10. package/es/_utils/array.d.ts +1 -1
  11. package/es/_utils/array.js +18 -1
  12. package/es/date-picker/index.d.ts +7 -7
  13. package/es/date-picker/panels/date/index.d.ts +2 -2
  14. package/es/date-picker/panels/week/index.d.ts +2 -2
  15. package/es/date-picker/picker-panel.d.ts +4 -4
  16. package/es/date-picker/picker.d.ts +5 -5
  17. package/es/date-picker/range-picker-panel.d.ts +4 -4
  18. package/es/date-picker/range-picker.d.ts +7 -7
  19. package/es/drawer/drawer.d.ts +24 -0
  20. package/es/drawer/drawer.js +61 -6
  21. package/es/drawer/index.d.ts +45 -0
  22. package/es/drawer/style/index.css +10 -0
  23. package/es/drawer/style/index.less +12 -0
  24. package/es/index.css +39 -8
  25. package/es/mention/index.d.ts +3 -3
  26. package/es/mention/mention.d.ts +1 -1
  27. package/es/menu/item.d.ts +1 -1
  28. package/es/menu/sub-menu-pop.d.ts +1 -1
  29. package/es/message/message.d.ts +1 -1
  30. package/es/modal/index.d.ts +33 -3
  31. package/es/modal/modal.d.ts +16 -1
  32. package/es/modal/modal.js +23 -6
  33. package/es/modal/modal.vue_vue_type_script_lang.js +26 -2
  34. package/es/modal/style/index.css +7 -1
  35. package/es/modal/style/index.less +8 -1
  36. package/es/pagination/index.d.ts +3 -3
  37. package/es/pagination/pagination.d.ts +1 -1
  38. package/es/table/context.d.ts +3 -0
  39. package/es/table/hooks/use-row-selection.js +5 -3
  40. package/es/table/interface.d.ts +1 -1
  41. package/es/table/style/index.css +22 -7
  42. package/es/table/style/index.less +25 -8
  43. package/es/table/table-operation-td.js +6 -6
  44. package/es/table/table-operation-th.js +19 -7
  45. package/es/table/table-td.js +2 -2
  46. package/es/table/table.js +165 -33
  47. package/es/table/utils.d.ts +1 -1
  48. package/es/table/utils.js +9 -5
  49. package/es/time-picker/index.d.ts +14 -14
  50. package/es/time-picker/panel.d.ts +2 -2
  51. package/es/time-picker/range-panel.d.ts +2 -2
  52. package/es/time-picker/time-picker.d.ts +7 -7
  53. package/es/tree/index.d.ts +6 -6
  54. package/es/tree/tree.d.ts +3 -3
  55. package/es/tree-select/index.d.ts +12 -12
  56. package/es/tree-select/panel.d.ts +6 -6
  57. package/es/tree-select/tree-select.d.ts +6 -6
  58. package/es/typography/index.d.ts +3 -3
  59. package/es/typography/title.d.ts +3 -3
  60. package/json/vetur-attributes.json +2491 -2491
  61. package/json/vetur-tags.json +889 -889
  62. package/json/web-types.json +4726 -4726
  63. package/lib/_utils/array.js +18 -1
  64. package/lib/drawer/drawer.js +63 -8
  65. package/lib/drawer/style/index.css +10 -0
  66. package/lib/drawer/style/index.less +12 -0
  67. package/lib/index.css +39 -8
  68. package/lib/modal/modal.js +23 -6
  69. package/lib/modal/modal.vue_vue_type_script_lang.js +36 -12
  70. package/lib/modal/style/index.css +7 -1
  71. package/lib/modal/style/index.less +8 -1
  72. package/lib/table/hooks/use-row-selection.js +5 -3
  73. package/lib/table/style/index.css +22 -7
  74. package/lib/table/style/index.less +25 -8
  75. package/lib/table/table-operation-td.js +6 -6
  76. package/lib/table/table-operation-th.js +19 -7
  77. package/lib/table/table-td.js +2 -2
  78. package/lib/table/table.js +164 -32
  79. package/lib/table/utils.js +9 -5
  80. package/package.json +25 -24
  81. package/LICENSE +0 -21
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
63
  }, {}, {}, {
64
64
  focus(index?: number | undefined): void;
65
65
  blur(): void;
66
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter")[], "clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
66
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex")[], "clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
67
67
  size: {
68
68
  type: PropType<"mini" | "medium" | "large" | "small">;
69
69
  };
@@ -104,9 +104,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
104
104
  }>> & Readonly<{
105
105
  onChange?: ((...args: any[]) => any) | undefined;
106
106
  onClear?: ((...args: any[]) => any) | undefined;
107
+ "onPress-enter"?: ((...args: any[]) => any) | undefined;
107
108
  "onFocused-index-change"?: ((...args: any[]) => any) | undefined;
108
109
  "onUpdate:focusedIndex"?: ((...args: any[]) => any) | undefined;
109
- "onPress-enter"?: ((...args: any[]) => any) | undefined;
110
110
  }>, {
111
111
  disabled: boolean | boolean[];
112
112
  placeholder: string[];
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
48
48
  }, {}, {}, {
49
49
  focus(): void;
50
50
  blur(): void;
51
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "change" | "press-enter")[], "clear" | "blur" | "change" | "press-enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "press-enter" | "change")[], "clear" | "blur" | "press-enter" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
52
  size: {
53
53
  type: PropType<"mini" | "medium" | "large" | "small">;
54
54
  };
@@ -115,12 +115,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
115
115
  onReachBottom?: ((ev: Event) => any) | undefined;
116
116
  }>, {
117
117
  data: Record<string, any>[];
118
- height: string | number;
119
- threshold: number;
120
- itemKey: string;
121
118
  fixedSize: boolean;
122
119
  estimatedSize: number;
123
120
  buffer: number;
121
+ height: string | number;
122
+ threshold: number;
123
+ itemKey: string;
124
124
  component: string | Record<string, any>;
125
125
  paddingPosition: string;
126
126
  }, {}, {
@@ -1,2 +1,2 @@
1
- export declare const union: <T>(target: T[], source: T[], difference?: boolean) => T[];
1
+ export declare const union: <T>(target: Iterable<T>, source: Iterable<T>, difference?: boolean) => T[];
2
2
  export declare const getReverse: <T>(array: T[]) => T[];
@@ -1,5 +1,22 @@
1
1
  const union = (target, source, difference = false) => {
2
- return difference ? target.filter((item) => !source.includes(item)) : Array.from(new Set(target.concat(source)));
2
+ if (difference) {
3
+ const sourceSet = source instanceof Set ? source : new Set(source);
4
+ const result = [];
5
+ for (const item of target) {
6
+ if (!sourceSet.has(item)) {
7
+ result.push(item);
8
+ }
9
+ }
10
+ return result;
11
+ }
12
+ const resultSet = /* @__PURE__ */ new Set();
13
+ for (const item of target) {
14
+ resultSet.add(item);
15
+ }
16
+ for (const item of source) {
17
+ resultSet.add(item);
18
+ }
19
+ return Array.from(resultSet);
3
20
  };
4
21
  const getReverse = (array) => {
5
22
  const result = [];
@@ -465,7 +465,7 @@ declare const DatePicker: {
465
465
  (value: number): import("dayjs").Dayjs;
466
466
  };
467
467
  day: {
468
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
468
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
469
469
  (value: number): import("dayjs").Dayjs;
470
470
  };
471
471
  hour: {
@@ -1973,7 +1973,7 @@ declare const DatePicker: {
1973
1973
  (value: number): import("dayjs").Dayjs;
1974
1974
  };
1975
1975
  day: {
1976
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1976
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1977
1977
  (value: number): import("dayjs").Dayjs;
1978
1978
  };
1979
1979
  hour: {
@@ -2062,7 +2062,7 @@ declare const DatePicker: {
2062
2062
  (value: number): import("dayjs").Dayjs;
2063
2063
  };
2064
2064
  day: {
2065
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2065
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2066
2066
  (value: number): import("dayjs").Dayjs;
2067
2067
  };
2068
2068
  hour: {
@@ -2851,7 +2851,7 @@ declare const DatePicker: {
2851
2851
  (value: number): import("dayjs").Dayjs;
2852
2852
  };
2853
2853
  day: {
2854
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2854
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2855
2855
  (value: number): import("dayjs").Dayjs;
2856
2856
  };
2857
2857
  hour: {
@@ -2940,7 +2940,7 @@ declare const DatePicker: {
2940
2940
  (value: number): import("dayjs").Dayjs;
2941
2941
  };
2942
2942
  day: {
2943
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2943
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2944
2944
  (value: number): import("dayjs").Dayjs;
2945
2945
  };
2946
2946
  hour: {
@@ -4143,7 +4143,7 @@ declare const DatePicker: {
4143
4143
  }, {}, {}, {
4144
4144
  focus(index?: number | undefined): void;
4145
4145
  blur(): void;
4146
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter")[], "clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4146
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex")[], "clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4147
4147
  size: {
4148
4148
  type: import("vue").PropType<"mini" | "medium" | "large" | "small">;
4149
4149
  };
@@ -4184,9 +4184,9 @@ declare const DatePicker: {
4184
4184
  }>> & Readonly<{
4185
4185
  onChange?: ((...args: any[]) => any) | undefined;
4186
4186
  onClear?: ((...args: any[]) => any) | undefined;
4187
+ "onPress-enter"?: ((...args: any[]) => any) | undefined;
4187
4188
  "onFocused-index-change"?: ((...args: any[]) => any) | undefined;
4188
4189
  "onUpdate:focusedIndex"?: ((...args: any[]) => any) | undefined;
4189
- "onPress-enter"?: ((...args: any[]) => any) | undefined;
4190
4190
  }>, {
4191
4191
  disabled: boolean | boolean[];
4192
4192
  placeholder: string[];
@@ -409,7 +409,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
409
409
  (value: number): Dayjs;
410
410
  };
411
411
  day: {
412
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
412
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
413
413
  (value: number): Dayjs;
414
414
  };
415
415
  hour: {
@@ -498,7 +498,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
498
498
  (value: number): Dayjs;
499
499
  };
500
500
  day: {
501
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
501
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
502
502
  (value: number): Dayjs;
503
503
  };
504
504
  hour: {
@@ -425,7 +425,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
425
425
  (value: number): Dayjs;
426
426
  };
427
427
  day: {
428
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
428
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
429
429
  (value: number): Dayjs;
430
430
  };
431
431
  hour: {
@@ -514,7 +514,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
514
514
  (value: number): Dayjs;
515
515
  };
516
516
  day: {
517
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
517
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
518
518
  (value: number): Dayjs;
519
519
  };
520
520
  hour: {
@@ -619,7 +619,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
619
619
  (value: number): Dayjs;
620
620
  };
621
621
  day: {
622
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
622
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
623
623
  (value: number): Dayjs;
624
624
  };
625
625
  hour: {
@@ -708,7 +708,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
708
708
  (value: number): Dayjs;
709
709
  };
710
710
  day: {
711
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
711
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
712
712
  (value: number): Dayjs;
713
713
  };
714
714
  hour: {
@@ -2089,7 +2089,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2089
2089
  (value: number): Dayjs;
2090
2090
  };
2091
2091
  day: {
2092
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2092
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2093
2093
  (value: number): Dayjs;
2094
2094
  };
2095
2095
  hour: {
@@ -2178,7 +2178,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2178
2178
  (value: number): Dayjs;
2179
2179
  };
2180
2180
  day: {
2181
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2181
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2182
2182
  (value: number): Dayjs;
2183
2183
  };
2184
2184
  hour: {
@@ -406,7 +406,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
406
406
  }, {}, {}, {
407
407
  focus(): void;
408
408
  blur(): void;
409
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "change" | "press-enter")[], "clear" | "blur" | "change" | "press-enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
409
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "press-enter" | "change")[], "clear" | "blur" | "press-enter" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
410
410
  size: {
411
411
  type: PropType<"mini" | "medium" | "large" | "small">;
412
412
  };
@@ -1674,7 +1674,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1674
1674
  (value: number): Dayjs;
1675
1675
  };
1676
1676
  day: {
1677
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1677
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1678
1678
  (value: number): Dayjs;
1679
1679
  };
1680
1680
  hour: {
@@ -1763,7 +1763,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1763
1763
  (value: number): Dayjs;
1764
1764
  };
1765
1765
  day: {
1766
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1766
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1767
1767
  (value: number): Dayjs;
1768
1768
  };
1769
1769
  hour: {
@@ -3144,7 +3144,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3144
3144
  (value: number): Dayjs;
3145
3145
  };
3146
3146
  day: {
3147
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
3147
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
3148
3148
  (value: number): Dayjs;
3149
3149
  };
3150
3150
  hour: {
@@ -3233,7 +3233,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3233
3233
  (value: number): Dayjs;
3234
3234
  };
3235
3235
  day: {
3236
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
3236
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
3237
3237
  (value: number): Dayjs;
3238
3238
  };
3239
3239
  hour: {
@@ -1255,7 +1255,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1255
1255
  (value: number): Dayjs;
1256
1256
  };
1257
1257
  day: {
1258
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1258
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1259
1259
  (value: number): Dayjs;
1260
1260
  };
1261
1261
  hour: {
@@ -1344,7 +1344,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1344
1344
  (value: number): Dayjs;
1345
1345
  };
1346
1346
  day: {
1347
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1347
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1348
1348
  (value: number): Dayjs;
1349
1349
  };
1350
1350
  hour: {
@@ -2133,7 +2133,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2133
2133
  (value: number): Dayjs;
2134
2134
  };
2135
2135
  day: {
2136
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2136
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2137
2137
  (value: number): Dayjs;
2138
2138
  };
2139
2139
  hour: {
@@ -2222,7 +2222,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2222
2222
  (value: number): Dayjs;
2223
2223
  };
2224
2224
  day: {
2225
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2225
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2226
2226
  (value: number): Dayjs;
2227
2227
  };
2228
2228
  hour: {
@@ -209,7 +209,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
209
209
  (value: number): Dayjs;
210
210
  };
211
211
  day: {
212
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
212
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
213
213
  (value: number): Dayjs;
214
214
  };
215
215
  hour: {
@@ -1717,7 +1717,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1717
1717
  (value: number): Dayjs;
1718
1718
  };
1719
1719
  day: {
1720
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1720
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1721
1721
  (value: number): Dayjs;
1722
1722
  };
1723
1723
  hour: {
@@ -1806,7 +1806,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1806
1806
  (value: number): Dayjs;
1807
1807
  };
1808
1808
  day: {
1809
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
1809
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
1810
1810
  (value: number): Dayjs;
1811
1811
  };
1812
1812
  hour: {
@@ -2595,7 +2595,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2595
2595
  (value: number): Dayjs;
2596
2596
  };
2597
2597
  day: {
2598
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2598
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2599
2599
  (value: number): Dayjs;
2600
2600
  };
2601
2601
  hour: {
@@ -2684,7 +2684,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2684
2684
  (value: number): Dayjs;
2685
2685
  };
2686
2686
  day: {
2687
- (): 0 | 1 | 2 | 4 | 3 | 6 | 5;
2687
+ (): 0 | 1 | 2 | 4 | 3 | 5 | 6;
2688
2688
  (value: number): Dayjs;
2689
2689
  };
2690
2690
  hour: {
@@ -3887,7 +3887,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3887
3887
  }, {}, {}, {
3888
3888
  focus(index?: number | undefined): void;
3889
3889
  blur(): void;
3890
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter")[], "clear" | "focused-index-change" | "update:focusedIndex" | "change" | "press-enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3890
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex")[], "clear" | "press-enter" | "change" | "focused-index-change" | "update:focusedIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3891
3891
  size: {
3892
3892
  type: PropType<"mini" | "medium" | "large" | "small">;
3893
3893
  };
@@ -3928,9 +3928,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3928
3928
  }>> & Readonly<{
3929
3929
  onChange?: ((...args: any[]) => any) | undefined;
3930
3930
  onClear?: ((...args: any[]) => any) | undefined;
3931
+ "onPress-enter"?: ((...args: any[]) => any) | undefined;
3931
3932
  "onFocused-index-change"?: ((...args: any[]) => any) | undefined;
3932
3933
  "onUpdate:focusedIndex"?: ((...args: any[]) => any) | undefined;
3933
- "onPress-enter"?: ((...args: any[]) => any) | undefined;
3934
3934
  }>, {
3935
3935
  disabled: boolean | boolean[];
3936
3936
  placeholder: string[];
@@ -87,6 +87,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
87
87
  type: BooleanConstructor;
88
88
  default: boolean;
89
89
  };
90
+ fullscreen: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ showFullscreen: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
90
98
  }>, {
91
99
  prefixCls: string;
92
100
  style: import("vue").ComputedRef<CSSProperties>;
@@ -102,8 +110,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
102
110
  handleMask: (e: Event) => void;
103
111
  isFixed: import("vue").ComputedRef<boolean>;
104
112
  teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
113
+ mergedFullscreen: import("vue").ComputedRef<boolean>;
114
+ toggleFullscreen: () => void;
105
115
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
106
116
  'update:visible': (visible: boolean) => true;
117
+ 'update:fullscreen': (fullscreen: boolean) => true;
107
118
  ok: (e: Event) => true;
108
119
  cancel: (e: Event) => true;
109
120
  open: () => true;
@@ -197,12 +208,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
197
208
  type: BooleanConstructor;
198
209
  default: boolean;
199
210
  };
211
+ fullscreen: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ showFullscreen: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
200
219
  }>> & Readonly<{
201
220
  onOpen?: (() => any) | undefined;
202
221
  onCancel?: ((e: Event) => any) | undefined;
203
222
  onClose?: (() => any) | undefined;
204
223
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
205
224
  onOk?: ((e: Event) => any) | undefined;
225
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
206
226
  onBeforeOpen?: (() => any) | undefined;
207
227
  onBeforeClose?: (() => any) | undefined;
208
228
  }>, {
@@ -222,6 +242,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
222
242
  placement: "top" | "bottom" | "left" | "right";
223
243
  okLoading: boolean;
224
244
  hideCancel: boolean;
245
+ fullscreen: boolean;
246
+ showFullscreen: boolean;
225
247
  }, {}, {
226
248
  ClientOnly: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
227
249
  [key: string]: any;
@@ -461,5 +483,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
461
483
  size: "mini" | "medium" | "large" | "small";
462
484
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
463
485
  IconClose: any;
486
+ IconFullscreen: any;
487
+ IconFullscreenExit: any;
464
488
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
465
489
  export default _default;
@@ -4,6 +4,8 @@ import ClientOnly from "../_components/client-only.js";
4
4
  import Button from "../button/index.js";
5
5
  import IconHover from "../_components/icon-hover.js";
6
6
  import IconClose from "../icon/icon-close/index.js";
7
+ import IconFullscreen from "../icon/icon-fullscreen/index.js";
8
+ import IconFullscreenExit from "../icon/icon-fullscreen-exit/index.js";
7
9
  import { useI18n } from "../locale/index.js";
8
10
  import { useOverflow } from "../_hooks/use-overflow.js";
9
11
  import { on, off } from "../_utils/dom.js";
@@ -19,7 +21,9 @@ const _sfc_main = defineComponent({
19
21
  ClientOnly,
20
22
  ArcoButton: Button,
21
23
  IconHover,
22
- IconClose
24
+ IconClose,
25
+ IconFullscreen,
26
+ IconFullscreenExit
23
27
  },
24
28
  inheritAttrs: false,
25
29
  props: {
@@ -108,10 +112,19 @@ const _sfc_main = defineComponent({
108
112
  hideCancel: {
109
113
  type: Boolean,
110
114
  default: false
115
+ },
116
+ fullscreen: {
117
+ type: Boolean,
118
+ default: false
119
+ },
120
+ showFullscreen: {
121
+ type: Boolean,
122
+ default: false
111
123
  }
112
124
  },
113
125
  emits: {
114
126
  "update:visible": (visible) => true,
127
+ "update:fullscreen": (fullscreen) => true,
115
128
  "ok": (e) => true,
116
129
  "cancel": (e) => true,
117
130
  "open": () => true,
@@ -124,10 +137,17 @@ const _sfc_main = defineComponent({
124
137
  const prefixCls = getPrefixCls("drawer");
125
138
  const { t } = useI18n();
126
139
  const _visible = ref(props.defaultVisible);
140
+ const _fullscreen = ref(props.fullscreen);
127
141
  const computedVisible = computed(() => {
128
142
  var _a;
129
143
  return (_a = props.visible) != null ? _a : _visible.value;
130
144
  });
145
+ const mergedFullscreen = computed(
146
+ () => {
147
+ var _a;
148
+ return (_a = props.fullscreen) != null ? _a : _fullscreen.value;
149
+ }
150
+ );
131
151
  const _okLoading = ref(false);
132
152
  const mergedOkLoading = computed(() => props.okLoading || _okLoading.value);
133
153
  const { teleportContainer, containerRef } = useTeleportContainer({
@@ -214,6 +234,11 @@ const _sfc_main = defineComponent({
214
234
  close();
215
235
  }
216
236
  };
237
+ const toggleFullscreen = () => {
238
+ const next = !mergedFullscreen.value;
239
+ _fullscreen.value = next;
240
+ emit("update:fullscreen", next);
241
+ };
217
242
  const handleMask = (e) => {
218
243
  if (props.maskClosable) {
219
244
  handleCancel(e);
@@ -257,6 +282,14 @@ const _sfc_main = defineComponent({
257
282
  removeGlobalKeyDownListener();
258
283
  }
259
284
  });
285
+ watch(
286
+ () => props.fullscreen,
287
+ (val) => {
288
+ if (_fullscreen.value !== val) {
289
+ _fullscreen.value = !!val;
290
+ }
291
+ }
292
+ );
260
293
  const style = computed(() => {
261
294
  var _a;
262
295
  const style2 = {
@@ -284,13 +317,17 @@ const _sfc_main = defineComponent({
284
317
  handleClose,
285
318
  handleMask,
286
319
  isFixed,
287
- teleportContainer
320
+ teleportContainer,
321
+ mergedFullscreen,
322
+ toggleFullscreen
288
323
  };
289
324
  }
290
325
  });
291
326
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
292
- const _component_icon_close = resolveComponent("icon-close");
327
+ const _component_icon_fullscreen = resolveComponent("icon-fullscreen");
328
+ const _component_icon_fullscreen_exit = resolveComponent("icon-fullscreen-exit");
293
329
  const _component_icon_hover = resolveComponent("icon-hover");
330
+ const _component_icon_close = resolveComponent("icon-close");
294
331
  const _component_arco_button = resolveComponent("arco-button");
295
332
  const _component_client_only = resolveComponent("client-only");
296
333
  return openBlock(), createBlock(_component_client_only, null, {
@@ -328,7 +365,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
328
365
  }, {
329
366
  default: withCtx(() => [
330
367
  withDirectives(createElementVNode("div", {
331
- class: normalizeClass(_ctx.prefixCls),
368
+ class: normalizeClass([
369
+ _ctx.prefixCls,
370
+ { [`${_ctx.prefixCls}-fullscreen`]: _ctx.mergedFullscreen }
371
+ ]),
332
372
  style: normalizeStyle(_ctx.style)
333
373
  }, [
334
374
  _ctx.header ? (openBlock(), createElementBlock("div", {
@@ -344,13 +384,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
344
384
  createTextVNode(toDisplayString(_ctx.title), 1)
345
385
  ])
346
386
  ], 2)) : createCommentVNode("v-if", true),
347
- _ctx.closable ? (openBlock(), createElementBlock("div", {
387
+ _ctx.showFullscreen ? (openBlock(), createElementBlock("div", {
348
388
  key: 1,
349
389
  tabindex: "-1",
350
390
  role: "button",
391
+ "aria-label": "Fullscreen",
392
+ class: normalizeClass(`${_ctx.prefixCls}-fullscreen-btn`),
393
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.toggleFullscreen && _ctx.toggleFullscreen(...args))
394
+ }, [
395
+ createVNode(_component_icon_hover, null, {
396
+ default: withCtx(() => [
397
+ !_ctx.mergedFullscreen ? (openBlock(), createBlock(_component_icon_fullscreen, { key: 0 })) : (openBlock(), createBlock(_component_icon_fullscreen_exit, { key: 1 }))
398
+ ]),
399
+ _: 1
400
+ })
401
+ ], 2)) : createCommentVNode("v-if", true),
402
+ _ctx.closable ? (openBlock(), createElementBlock("div", {
403
+ key: 2,
404
+ tabindex: "-1",
405
+ role: "button",
351
406
  "aria-label": "Close",
352
407
  class: normalizeClass(`${_ctx.prefixCls}-close-btn`),
353
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCancel && _ctx.handleCancel(...args))
408
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleCancel && _ctx.handleCancel(...args))
354
409
  }, [
355
410
  createVNode(_component_icon_hover, null, {
356
411
  default: withCtx(() => [