@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
@@ -100,6 +100,10 @@ declare const Modal: {
100
100
  type: BooleanConstructor;
101
101
  default: boolean;
102
102
  };
103
+ showFullscreen: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
103
107
  maskAnimationName: {
104
108
  type: StringConstructor;
105
109
  default: (props: Record<string, any>) => "fade-in-standard" | "fade-modal";
@@ -127,6 +131,7 @@ declare const Modal: {
127
131
  onClose?: (() => any) | undefined;
128
132
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
129
133
  onOk?: ((e: Event) => any) | undefined;
134
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
130
135
  onBeforeOpen?: (() => any) | undefined;
131
136
  onBeforeClose?: (() => any) | undefined;
132
137
  }>, {
@@ -155,8 +160,11 @@ declare const Modal: {
155
160
  } | undefined)[]>;
156
161
  teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
157
162
  handleMoveDown: (ev: MouseEvent) => void;
163
+ mergedFullscreen: import("vue").ComputedRef<boolean>;
164
+ toggleFullscreen: () => void;
158
165
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
159
166
  'update:visible': (visible: boolean) => true;
167
+ 'update:fullscreen': (fullscreen: boolean) => true;
160
168
  ok: (e: Event) => true;
161
169
  cancel: (e: Event) => true;
162
170
  open: () => true;
@@ -178,9 +186,10 @@ declare const Modal: {
178
186
  simple: boolean;
179
187
  okLoading: boolean;
180
188
  hideCancel: boolean;
189
+ fullscreen: boolean;
190
+ showFullscreen: boolean;
181
191
  titleAlign: "center" | "start";
182
192
  alignCenter: boolean;
183
- fullscreen: boolean;
184
193
  maskAnimationName: string;
185
194
  modalAnimationName: string;
186
195
  hideTitle: boolean;
@@ -423,6 +432,8 @@ declare const Modal: {
423
432
  size: "mini" | "medium" | "large" | "small";
424
433
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
425
434
  IconClose: any;
435
+ IconFullscreen: any;
436
+ IconFullscreenExit: any;
426
437
  IconInfoCircleFill: any;
427
438
  IconCheckCircleFill: any;
428
439
  IconExclamationCircleFill: any;
@@ -532,6 +543,10 @@ declare const Modal: {
532
543
  type: BooleanConstructor;
533
544
  default: boolean;
534
545
  };
546
+ showFullscreen: {
547
+ type: BooleanConstructor;
548
+ default: boolean;
549
+ };
535
550
  maskAnimationName: {
536
551
  type: StringConstructor;
537
552
  default: (props: Record<string, any>) => "fade-in-standard" | "fade-modal";
@@ -559,6 +574,7 @@ declare const Modal: {
559
574
  onClose?: (() => any) | undefined;
560
575
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
561
576
  onOk?: ((e: Event) => any) | undefined;
577
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
562
578
  onBeforeOpen?: (() => any) | undefined;
563
579
  onBeforeClose?: (() => any) | undefined;
564
580
  }>, {
@@ -587,6 +603,8 @@ declare const Modal: {
587
603
  } | undefined)[]>;
588
604
  teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
589
605
  handleMoveDown: (ev: MouseEvent) => void;
606
+ mergedFullscreen: import("vue").ComputedRef<boolean>;
607
+ toggleFullscreen: () => void;
590
608
  }, {}, {}, {}, {
591
609
  unmountOnClose: boolean;
592
610
  popupContainer: string | HTMLElement;
@@ -602,9 +620,10 @@ declare const Modal: {
602
620
  simple: boolean;
603
621
  okLoading: boolean;
604
622
  hideCancel: boolean;
623
+ fullscreen: boolean;
624
+ showFullscreen: boolean;
605
625
  titleAlign: "center" | "start";
606
626
  alignCenter: boolean;
607
- fullscreen: boolean;
608
627
  maskAnimationName: string;
609
628
  modalAnimationName: string;
610
629
  hideTitle: boolean;
@@ -710,6 +729,10 @@ declare const Modal: {
710
729
  type: BooleanConstructor;
711
730
  default: boolean;
712
731
  };
732
+ showFullscreen: {
733
+ type: BooleanConstructor;
734
+ default: boolean;
735
+ };
713
736
  maskAnimationName: {
714
737
  type: StringConstructor;
715
738
  default: (props: Record<string, any>) => "fade-in-standard" | "fade-modal";
@@ -737,6 +760,7 @@ declare const Modal: {
737
760
  onClose?: (() => any) | undefined;
738
761
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
739
762
  onOk?: ((e: Event) => any) | undefined;
763
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
740
764
  onBeforeOpen?: (() => any) | undefined;
741
765
  onBeforeClose?: (() => any) | undefined;
742
766
  }>, {
@@ -765,8 +789,11 @@ declare const Modal: {
765
789
  } | undefined)[]>;
766
790
  teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
767
791
  handleMoveDown: (ev: MouseEvent) => void;
792
+ mergedFullscreen: import("vue").ComputedRef<boolean>;
793
+ toggleFullscreen: () => void;
768
794
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
769
795
  'update:visible': (visible: boolean) => true;
796
+ 'update:fullscreen': (fullscreen: boolean) => true;
770
797
  ok: (e: Event) => true;
771
798
  cancel: (e: Event) => true;
772
799
  open: () => true;
@@ -788,9 +815,10 @@ declare const Modal: {
788
815
  simple: boolean;
789
816
  okLoading: boolean;
790
817
  hideCancel: boolean;
818
+ fullscreen: boolean;
819
+ showFullscreen: boolean;
791
820
  titleAlign: "center" | "start";
792
821
  alignCenter: boolean;
793
- fullscreen: boolean;
794
822
  maskAnimationName: string;
795
823
  modalAnimationName: string;
796
824
  hideTitle: boolean;
@@ -1033,6 +1061,8 @@ declare const Modal: {
1033
1061
  size: "mini" | "medium" | "large" | "small";
1034
1062
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1035
1063
  IconClose: any;
1064
+ IconFullscreen: any;
1065
+ IconFullscreenExit: any;
1036
1066
  IconInfoCircleFill: any;
1037
1067
  IconCheckCircleFill: any;
1038
1068
  IconExclamationCircleFill: any;
@@ -98,6 +98,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
98
98
  type: BooleanConstructor;
99
99
  default: boolean;
100
100
  };
101
+ showFullscreen: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
101
105
  maskAnimationName: {
102
106
  type: StringConstructor;
103
107
  default: (props: Record<string, any>) => "fade-in-standard" | "fade-modal";
@@ -145,8 +149,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
145
149
  } | undefined)[]>;
146
150
  teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
147
151
  handleMoveDown: (ev: MouseEvent) => void;
152
+ mergedFullscreen: import("vue").ComputedRef<boolean>;
153
+ toggleFullscreen: () => void;
148
154
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
149
155
  'update:visible': (visible: boolean) => true;
156
+ 'update:fullscreen': (fullscreen: boolean) => true;
150
157
  ok: (e: Event) => true;
151
158
  cancel: (e: Event) => true;
152
159
  open: () => true;
@@ -251,6 +258,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
251
258
  type: BooleanConstructor;
252
259
  default: boolean;
253
260
  };
261
+ showFullscreen: {
262
+ type: BooleanConstructor;
263
+ default: boolean;
264
+ };
254
265
  maskAnimationName: {
255
266
  type: StringConstructor;
256
267
  default: (props: Record<string, any>) => "fade-in-standard" | "fade-modal";
@@ -278,6 +289,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
278
289
  onClose?: (() => any) | undefined;
279
290
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
280
291
  onOk?: ((e: Event) => any) | undefined;
292
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
281
293
  onBeforeOpen?: (() => any) | undefined;
282
294
  onBeforeClose?: (() => any) | undefined;
283
295
  }>, {
@@ -295,9 +307,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
295
307
  simple: boolean;
296
308
  okLoading: boolean;
297
309
  hideCancel: boolean;
310
+ fullscreen: boolean;
311
+ showFullscreen: boolean;
298
312
  titleAlign: "center" | "start";
299
313
  alignCenter: boolean;
300
- fullscreen: boolean;
301
314
  maskAnimationName: string;
302
315
  modalAnimationName: string;
303
316
  hideTitle: boolean;
@@ -540,6 +553,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
540
553
  size: "mini" | "medium" | "large" | "small";
541
554
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
542
555
  IconClose: any;
556
+ IconFullscreen: any;
557
+ IconFullscreenExit: any;
543
558
  IconInfoCircleFill: any;
544
559
  IconCheckCircleFill: any;
545
560
  IconExclamationCircleFill: any;
package/es/modal/modal.js CHANGED
@@ -6,8 +6,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
6
  const _component_icon_check_circle_fill = resolveComponent("icon-check-circle-fill");
7
7
  const _component_icon_exclamation_circle_fill = resolveComponent("icon-exclamation-circle-fill");
8
8
  const _component_icon_close_circle_fill = resolveComponent("icon-close-circle-fill");
9
- const _component_icon_close = resolveComponent("icon-close");
9
+ const _component_icon_fullscreen = resolveComponent("icon-fullscreen");
10
+ const _component_icon_fullscreen_exit = resolveComponent("icon-fullscreen-exit");
10
11
  const _component_icon_hover = resolveComponent("icon-hover");
12
+ const _component_icon_close = resolveComponent("icon-close");
11
13
  const _component_arco_button = resolveComponent("arco-button");
12
14
  const _component_client_only = resolveComponent("client-only");
13
15
  return openBlock(), createBlock(_component_client_only, null, {
@@ -40,8 +42,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
40
42
  createElementVNode("div", {
41
43
  ref: "wrapperRef",
42
44
  class: normalizeClass(_ctx.wrapperCls),
43
- onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.handleMaskClick && _ctx.handleMaskClick(...args), ["self"])),
44
- onMousedown: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleMaskMouseDown && _ctx.handleMaskMouseDown(...args), ["self"]))
45
+ onClick: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleMaskClick && _ctx.handleMaskClick(...args), ["self"])),
46
+ onMousedown: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.handleMaskMouseDown && _ctx.handleMaskMouseDown(...args), ["self"]))
45
47
  }, [
46
48
  createVNode(Transition, {
47
49
  name: _ctx.modalAnimationName,
@@ -59,7 +61,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
59
61
  !_ctx.hideTitle && (_ctx.$slots.title || _ctx.title || _ctx.closable) ? (openBlock(), createElementBlock("div", {
60
62
  key: 0,
61
63
  class: normalizeClass(`${_ctx.prefixCls}-header`),
62
- onMousedown: _cache[1] || (_cache[1] = (...args) => _ctx.handleMoveDown && _ctx.handleMoveDown(...args))
64
+ onMousedown: _cache[2] || (_cache[2] = (...args) => _ctx.handleMoveDown && _ctx.handleMoveDown(...args))
63
65
  }, [
64
66
  _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
65
67
  key: 0,
@@ -81,13 +83,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
81
83
  createTextVNode(toDisplayString(_ctx.title), 1)
82
84
  ])
83
85
  ], 2)) : createCommentVNode("v-if", true),
84
- !_ctx.simple && _ctx.closable ? (openBlock(), createElementBlock("div", {
86
+ !_ctx.simple && _ctx.showFullscreen ? (openBlock(), createElementBlock("div", {
85
87
  key: 1,
86
88
  tabindex: "-1",
87
89
  role: "button",
90
+ "aria-label": "Fullscreen",
91
+ class: normalizeClass(`${_ctx.prefixCls}-fullscreen-btn`),
92
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleFullscreen && _ctx.toggleFullscreen(...args))
93
+ }, [
94
+ createVNode(_component_icon_hover, null, {
95
+ default: withCtx(() => [
96
+ !_ctx.mergedFullscreen ? (openBlock(), createBlock(_component_icon_fullscreen, { key: 0 })) : (openBlock(), createBlock(_component_icon_fullscreen_exit, { key: 1 }))
97
+ ]),
98
+ _: 1
99
+ })
100
+ ], 2)) : createCommentVNode("v-if", true),
101
+ !_ctx.simple && _ctx.closable ? (openBlock(), createElementBlock("div", {
102
+ key: 2,
103
+ tabindex: "-1",
104
+ role: "button",
88
105
  "aria-label": "Close",
89
106
  class: normalizeClass(`${_ctx.prefixCls}-close-btn`),
90
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCancel && _ctx.handleCancel(...args))
107
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCancel && _ctx.handleCancel(...args))
91
108
  }, [
92
109
  createVNode(_component_icon_hover, null, {
93
110
  default: withCtx(() => [
@@ -4,6 +4,8 @@ import ClientOnly from "../_components/client-only.js";
4
4
  import IconHover from "../_components/icon-hover.js";
5
5
  import Button from "../button/index.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 IconInfoCircleFill from "../icon/icon-info-circle-fill/index.js";
8
10
  import IconCheckCircleFill from "../icon/icon-check-circle-fill/index.js";
9
11
  import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
@@ -23,6 +25,8 @@ var _sfc_main = defineComponent({
23
25
  ArcoButton: Button,
24
26
  IconHover,
25
27
  IconClose,
28
+ IconFullscreen,
29
+ IconFullscreenExit,
26
30
  IconInfoCircleFill,
27
31
  IconCheckCircleFill,
28
32
  IconExclamationCircleFill,
@@ -129,6 +133,10 @@ var _sfc_main = defineComponent({
129
133
  type: Boolean,
130
134
  default: false
131
135
  },
136
+ showFullscreen: {
137
+ type: Boolean,
138
+ default: false
139
+ },
132
140
  maskAnimationName: {
133
141
  type: String,
134
142
  default: (props) => {
@@ -163,6 +171,7 @@ var _sfc_main = defineComponent({
163
171
  },
164
172
  emits: {
165
173
  "update:visible": (visible) => true,
174
+ "update:fullscreen": (fullscreen) => true,
166
175
  "ok": (e) => true,
167
176
  "cancel": (e) => true,
168
177
  "open": () => true,
@@ -191,6 +200,11 @@ var _sfc_main = defineComponent({
191
200
  });
192
201
  const _okLoading = ref(false);
193
202
  const mergedOkLoading = computed(() => props.okLoading || _okLoading.value);
203
+ const _fullscreen = ref(props.fullscreen);
204
+ const mergedFullscreen = computed(() => {
205
+ var _a;
206
+ return (_a = props.fullscreen) != null ? _a : _fullscreen.value;
207
+ });
194
208
  const mergedDraggable = computed(() => props.draggable && !props.fullscreen);
195
209
  const {
196
210
  teleportContainer,
@@ -353,7 +367,15 @@ var _sfc_main = defineComponent({
353
367
  if (position.value) {
354
368
  position.value = void 0;
355
369
  }
370
+ if (_fullscreen.value !== fullscreen.value) {
371
+ _fullscreen.value = !!fullscreen.value;
372
+ }
356
373
  });
374
+ const toggleFullscreen = () => {
375
+ const next = !mergedFullscreen.value;
376
+ _fullscreen.value = next;
377
+ emit("update:fullscreen", next);
378
+ };
357
379
  const wrapperCls = computed(() => [`${prefixCls}-wrapper`, {
358
380
  [`${prefixCls}-wrapper-align-center`]: props.alignCenter && !props.fullscreen,
359
381
  [`${prefixCls}-wrapper-moved`]: Boolean(position.value)
@@ -361,7 +383,7 @@ var _sfc_main = defineComponent({
361
383
  const modalCls = computed(() => [`${prefixCls}`, props.modalClass, {
362
384
  [`${prefixCls}-simple`]: props.simple,
363
385
  [`${prefixCls}-draggable`]: mergedDraggable.value,
364
- [`${prefixCls}-fullscreen`]: props.fullscreen
386
+ [`${prefixCls}-fullscreen`]: mergedFullscreen.value
365
387
  }]);
366
388
  const mergedModalStyle = computed(() => {
367
389
  var _a;
@@ -400,7 +422,9 @@ var _sfc_main = defineComponent({
400
422
  wrapperCls,
401
423
  modalCls,
402
424
  teleportContainer,
403
- handleMoveDown
425
+ handleMoveDown,
426
+ mergedFullscreen,
427
+ toggleFullscreen
404
428
  };
405
429
  }
406
430
  });
@@ -116,7 +116,13 @@
116
116
  margin-left: 12px;
117
117
  }
118
118
  .arco-modal-close-btn {
119
- margin-left: -12px;
119
+ margin-left: 8px;
120
+ color: var(--color-text-1);
121
+ font-size: 12px;
122
+ cursor: pointer;
123
+ }
124
+ .arco-modal-fullscreen-btn {
125
+ margin-left: 8px;
120
126
  color: var(--color-text-1);
121
127
  font-size: 12px;
122
128
  cursor: pointer;
@@ -127,7 +127,14 @@
127
127
  }
128
128
 
129
129
  &-close-btn {
130
- margin-left: -@modal-font-size-close-icon;
130
+ margin-left: 8px;
131
+ color: @modal-color-header-text;
132
+ font-size: @modal-font-size-close-icon;
133
+ cursor: pointer;
134
+ }
135
+
136
+ &-fullscreen-btn {
137
+ margin-left: 8px;
131
138
  color: @modal-color-header-text;
132
139
  font-size: @modal-font-size-close-icon;
133
140
  cursor: pointer;
@@ -75,8 +75,8 @@ declare const Pagination: {
75
75
  };
76
76
  }>> & Readonly<{
77
77
  onChange?: ((current: number) => any) | undefined;
78
- onPageSizeChange?: ((pageSize: number) => any) | undefined;
79
78
  "onUpdate:current"?: ((current: number) => any) | undefined;
79
+ onPageSizeChange?: ((pageSize: number) => any) | undefined;
80
80
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
81
81
  }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
82
82
  'update:current': (current: number) => true;
@@ -177,8 +177,8 @@ declare const Pagination: {
177
177
  };
178
178
  }>> & Readonly<{
179
179
  onChange?: ((current: number) => any) | undefined;
180
- onPageSizeChange?: ((pageSize: number) => any) | undefined;
181
180
  "onUpdate:current"?: ((current: number) => any) | undefined;
181
+ onPageSizeChange?: ((pageSize: number) => any) | undefined;
182
182
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
183
183
  }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, {
184
184
  disabled: boolean;
@@ -271,8 +271,8 @@ declare const Pagination: {
271
271
  };
272
272
  }>> & Readonly<{
273
273
  onChange?: ((current: number) => any) | undefined;
274
- onPageSizeChange?: ((pageSize: number) => any) | undefined;
275
274
  "onUpdate:current"?: ((current: number) => any) | undefined;
275
+ onPageSizeChange?: ((pageSize: number) => any) | undefined;
276
276
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
277
277
  }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
278
278
  'update:current': (current: number) => true;
@@ -122,9 +122,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
122
122
  onFocus?: ((ev: FocusEvent) => any) | undefined;
123
123
  onClear?: ((ev: Event) => any) | undefined;
124
124
  onInput?: ((value: number | undefined, inputValue: string, ev: Event) => any) | undefined;
125
- onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
126
125
  onBlur?: ((ev: FocusEvent) => any) | undefined;
127
126
  "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
127
+ onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
128
128
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
129
129
  }>, {
130
130
  inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
@@ -219,9 +219,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
219
219
  onFocus?: ((ev: FocusEvent) => any) | undefined;
220
220
  onClear?: ((ev: Event) => any) | undefined;
221
221
  onInput?: ((value: number | undefined, inputValue: string, ev: Event) => any) | undefined;
222
- onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
223
222
  onBlur?: ((ev: FocusEvent) => any) | undefined;
224
223
  "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
224
+ onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
225
225
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
226
226
  }>, {
227
227
  inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
@@ -305,9 +305,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
305
305
  onFocus?: ((ev: FocusEvent) => any) | undefined;
306
306
  onClear?: ((ev: Event) => any) | undefined;
307
307
  onInput?: ((value: number | undefined, inputValue: string, ev: Event) => any) | undefined;
308
- onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
309
308
  onBlur?: ((ev: FocusEvent) => any) | undefined;
310
309
  "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
310
+ onChange?: ((value: number | undefined, ev: Event) => any) | undefined;
311
311
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
312
312
  }>, {
313
313
  inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
@@ -181,10 +181,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
181
181
  "onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
182
182
  onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
183
183
  onClear?: ((ev: Event) => any) | undefined;
184
- onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
185
184
  "onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
186
185
  onInputValueChange?: ((inputValue: string) => any) | undefined;
187
186
  "onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
187
+ onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
188
188
  onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
189
189
  onSearch?: ((inputValue: string) => any) | undefined;
190
190
  onDropdownScroll?: ((ev: Event) => any) | undefined;
@@ -210,10 +210,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
210
210
  unmountOnClose: boolean;
211
211
  scrollbar: boolean | import("..").ScrollbarProps;
212
212
  multiple: boolean;
213
+ modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
213
214
  error: boolean;
214
- allowClear: boolean;
215
215
  defaultValue: string | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[];
216
- modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
216
+ allowClear: boolean;
217
217
  loading: boolean;
218
218
  bordered: boolean;
219
219
  allowCreate: boolean;
@@ -927,9 +927,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
927
927
  }>, {
928
928
  disabled: boolean;
929
929
  multiple: boolean;
930
+ retainInputValue: boolean;
930
931
  error: boolean;
931
932
  allowClear: boolean;
932
- retainInputValue: boolean;
933
933
  loading: boolean;
934
934
  opened: boolean;
935
935
  bordered: boolean;
@@ -1082,10 +1082,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1082
1082
  "onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
1083
1083
  onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
1084
1084
  onClear?: ((ev: Event) => any) | undefined;
1085
- onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1086
1085
  "onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
1087
1086
  onInputValueChange?: ((inputValue: string) => any) | undefined;
1088
1087
  "onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1088
+ onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1089
1089
  onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
1090
1090
  onSearch?: ((inputValue: string) => any) | undefined;
1091
1091
  onDropdownScroll?: ((ev: Event) => any) | undefined;
@@ -1098,10 +1098,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1098
1098
  unmountOnClose: boolean;
1099
1099
  scrollbar: boolean | import("..").ScrollbarProps;
1100
1100
  multiple: boolean;
1101
+ modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
1101
1102
  error: boolean;
1102
- allowClear: boolean;
1103
1103
  defaultValue: string | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[];
1104
- modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
1104
+ allowClear: boolean;
1105
1105
  loading: boolean;
1106
1106
  bordered: boolean;
1107
1107
  allowCreate: boolean;
@@ -1262,10 +1262,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1262
1262
  "onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
1263
1263
  onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
1264
1264
  onClear?: ((ev: Event) => any) | undefined;
1265
- onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1266
1265
  "onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
1267
1266
  onInputValueChange?: ((inputValue: string) => any) | undefined;
1268
1267
  "onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1268
+ onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => any) | undefined;
1269
1269
  onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
1270
1270
  onSearch?: ((inputValue: string) => any) | undefined;
1271
1271
  onDropdownScroll?: ((ev: Event) => any) | undefined;
@@ -1291,10 +1291,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1291
1291
  unmountOnClose: boolean;
1292
1292
  scrollbar: boolean | import("..").ScrollbarProps;
1293
1293
  multiple: boolean;
1294
+ modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
1294
1295
  error: boolean;
1295
- allowClear: boolean;
1296
1296
  defaultValue: string | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[];
1297
- modelValue: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
1297
+ allowClear: boolean;
1298
1298
  loading: boolean;
1299
1299
  bordered: boolean;
1300
1300
  allowCreate: boolean;
@@ -2008,9 +2008,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2008
2008
  }>, {
2009
2009
  disabled: boolean;
2010
2010
  multiple: boolean;
2011
+ retainInputValue: boolean;
2011
2012
  error: boolean;
2012
2013
  allowClear: boolean;
2013
- retainInputValue: boolean;
2014
2014
  loading: boolean;
2015
2015
  opened: boolean;
2016
2016
  bordered: boolean;
@@ -2098,8 +2098,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2098
2098
  default: boolean;
2099
2099
  };
2100
2100
  }>> & Readonly<{
2101
- onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2102
2101
  "onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
2102
+ onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2103
2103
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2104
2104
  'update:modelValue': (value: boolean | (string | number | boolean)[]) => true;
2105
2105
  change: (value: boolean | (string | number | boolean)[], ev: Event) => true;
@@ -2173,8 +2173,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2173
2173
  default: boolean;
2174
2174
  };
2175
2175
  }>> & Readonly<{
2176
- onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2177
2176
  "onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
2177
+ onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2178
2178
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
2179
2179
  disabled: boolean;
2180
2180
  modelValue: boolean | (string | number | boolean)[];
@@ -2210,8 +2210,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2210
2210
  default: boolean;
2211
2211
  };
2212
2212
  }>> & Readonly<{
2213
- onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2214
2213
  "onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
2214
+ onChange?: ((value: boolean | (string | number | boolean)[], ev: Event) => any) | undefined;
2215
2215
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2216
2216
  'update:modelValue': (value: boolean | (string | number | boolean)[]) => true;
2217
2217
  change: (value: boolean | (string | number | boolean)[], ev: Event) => true;
@@ -2304,12 +2304,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2304
2304
  default: boolean;
2305
2305
  };
2306
2306
  }>> & Readonly<{
2307
- onChange?: ((value: (string | number | boolean)[], ev: Event) => any) | undefined;
2308
2307
  "onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
2308
+ onChange?: ((value: (string | number | boolean)[], ev: Event) => any) | undefined;
2309
2309
  }>, {
2310
2310
  disabled: boolean;
2311
- defaultValue: (string | number | boolean)[];
2312
2311
  modelValue: (string | number | boolean)[];
2312
+ defaultValue: (string | number | boolean)[];
2313
2313
  direction: "horizontal" | "vertical";
2314
2314
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2315
2315
  install: (app: import("vue").App<any>, options?: import("../_utils/types").ArcoOptions | undefined) => void;
@@ -149,8 +149,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
149
  };
150
150
  }>> & Readonly<{
151
151
  onChange?: ((current: number) => any) | undefined;
152
- onPageSizeChange?: ((pageSize: number) => any) | undefined;
153
152
  "onUpdate:current"?: ((current: number) => any) | undefined;
153
+ onPageSizeChange?: ((pageSize: number) => any) | undefined;
154
154
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
155
155
  }>, {
156
156
  disabled: boolean;