vft 0.0.523 → 0.0.524

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 (188) hide show
  1. package/es/components/affix/affix.vue2.js +2 -2
  2. package/es/components/alert/alert.vue2.js +1 -1
  3. package/es/components/autocomplete/autocomplete.vue2.js +1 -1
  4. package/es/components/avatar/avatar.vue2.js +2 -2
  5. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  6. package/es/components/backtop/backtop.vue2.js +1 -1
  7. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  8. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  9. package/es/components/button/button-group.vue2.js +2 -2
  10. package/es/components/button/button.vue2.js +7 -7
  11. package/es/components/button/use-button.js +3 -3
  12. package/es/components/card/card.vue2.js +6 -6
  13. package/es/components/carousel/carousel-item.vue2.js +3 -3
  14. package/es/components/carousel/carousel.vue2.js +1 -1
  15. package/es/components/carousel/use-carousel.js +1 -1
  16. package/es/components/cascader/cascader.vue2.js +1 -1
  17. package/es/components/cascader-panel/index.vue2.js +1 -1
  18. package/es/components/cascader-panel/menu.vue2.js +5 -5
  19. package/es/components/cascader-panel/node.vue2.js +8 -8
  20. package/es/components/check-tag/check-tag.vue2.js +2 -2
  21. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  22. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  23. package/es/components/checkbox/checkbox.vue2.js +1 -1
  24. package/es/components/clamp/clamp.vue2.js +2 -2
  25. package/es/components/clamp-toggle/clamp-toggle.vue2.js +3 -3
  26. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  27. package/es/components/col/col.vue2.js +2 -2
  28. package/es/components/collapse/collapse-item.vue2.js +2 -2
  29. package/es/components/collapse/collapse.vue2.js +2 -2
  30. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  31. package/es/components/color-picker/color-picker.vue2.js +1 -1
  32. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  33. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  34. package/es/components/color-picker/components/predefine.vue.js +3 -3
  35. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  36. package/es/components/config-provider/config-provider.vue2.js +2 -2
  37. package/es/components/config-provider/hooks/use-global-config.js +4 -4
  38. package/es/components/container/aside.vue2.js +2 -2
  39. package/es/components/container/container.vue2.js +2 -2
  40. package/es/components/container/footer.vue2.js +2 -2
  41. package/es/components/container/header.vue2.js +2 -2
  42. package/es/components/container/main.vue2.js +2 -2
  43. package/es/components/context-menu/context-menu.vue2.js +1 -1
  44. package/es/components/countdown/countdown.vue2.js +2 -2
  45. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  46. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +4 -4
  47. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +4 -4
  48. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +1 -1
  49. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +2 -2
  50. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  51. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  52. package/es/components/date-picker/props/basic-date-table.js +3 -3
  53. package/es/components/date-picker/props/basic-month-table.js +3 -3
  54. package/es/components/date-picker/props/basic-year-table.js +3 -3
  55. package/es/components/descriptions/description.vue2.js +1 -1
  56. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  57. package/es/components/dialog/dialog-content.vue2.js +3 -3
  58. package/es/components/dialog/dialog.vue2.js +5 -5
  59. package/es/components/divider/divider.vue2.js +5 -5
  60. package/es/components/drawer/drawer.vue2.js +4 -4
  61. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  62. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  63. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  64. package/es/components/dropdown/dropdown.vue2.js +4 -4
  65. package/es/components/empty/empty.vue2.js +5 -5
  66. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  67. package/es/components/form/form-item.vue2.js +16 -16
  68. package/es/components/form/form.vue2.js +2 -2
  69. package/es/components/full-screen/full-screen.vue2.js +2 -2
  70. package/es/components/header-layout/header-layout.vue2.js +1 -1
  71. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  72. package/es/components/icon/icon.vue2.js +3 -3
  73. package/es/components/icon-text/icon-text.vue2.js +1 -1
  74. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  75. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  76. package/es/components/image/image.vue2.js +1 -1
  77. package/es/components/image-viewer/image-viewer.vue2.js +6 -6
  78. package/es/components/index.js +181 -181
  79. package/es/components/input/input.vue2.js +2 -2
  80. package/es/components/input-number/input-number.vue2.js +4 -4
  81. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  82. package/es/components/input-tag/input-tag.vue2.js +7 -7
  83. package/es/components/link/link.vue2.js +1 -1
  84. package/es/components/list-cell/list-cell.vue2.js +1 -1
  85. package/es/components/logo/logo.vue2.js +10 -10
  86. package/es/components/md-container/md-container.vue2.js +5 -5
  87. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  88. package/es/components/menu/menu-item-group.vue2.js +7 -7
  89. package/es/components/menu/menu-item.vue2.js +1 -1
  90. package/es/components/message/message.vue2.js +3 -3
  91. package/es/components/message-box/message-box.vue2.js +1 -1
  92. package/es/components/modal/modal-footer-action.vue2.js +10 -10
  93. package/es/components/modal/modal.vue2.js +3 -3
  94. package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  95. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  96. package/es/components/notification/notification.vue2.js +1 -1
  97. package/es/components/overlay/overlay.vue2.js +1 -1
  98. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  99. package/es/components/pagination/components/jumper.vue2.js +2 -2
  100. package/es/components/pagination/components/next.vue2.js +4 -4
  101. package/es/components/pagination/components/pager.vue2.js +1 -1
  102. package/es/components/pagination/components/prev.vue2.js +4 -4
  103. package/es/components/pagination/components/sizes.vue2.js +2 -2
  104. package/es/components/pagination/components/total.vue2.js +2 -2
  105. package/es/components/popconfirm/popconfirm.vue2.js +3 -3
  106. package/es/components/popover/popover.vue2.js +9 -9
  107. package/es/components/popper/arrow.vue2.js +2 -2
  108. package/es/components/popper/content.vue2.js +2 -2
  109. package/es/components/popper/trigger.vue2.js +4 -4
  110. package/es/components/progress/progress.vue2.js +1 -1
  111. package/es/components/progress-i/progress-i.vue2.js +2 -2
  112. package/es/components/qrcode/qrcode.vue2.js +1 -1
  113. package/es/components/radio/radio-button.vue2.js +2 -2
  114. package/es/components/radio/radio-group.vue2.js +3 -3
  115. package/es/components/radio/radio.vue2.js +2 -2
  116. package/es/components/rate/rate.vue2.js +6 -6
  117. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  118. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  119. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  120. package/es/components/row/row.vue2.js +2 -2
  121. package/es/components/scrollbar/bar.vue2.js +2 -2
  122. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  123. package/es/components/scrollbar/thumb.vue2.js +2 -2
  124. package/es/components/search/search.vue2.js +48 -44
  125. package/es/components/segmented/segmented.vue2.js +7 -7
  126. package/es/components/select/group-item.vue.js +2 -2
  127. package/es/components/select/option-item.vue.js +2 -2
  128. package/es/components/select/select.vue.js +1 -1
  129. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  130. package/es/components/skeleton/skeleton.vue2.js +8 -8
  131. package/es/components/slider/button.vue2.js +2 -2
  132. package/es/components/slider/slider.vue2.js +1 -1
  133. package/es/components/space/space.js +1 -1
  134. package/es/components/statistic/statistic.vue2.js +17 -17
  135. package/es/components/steps/item.vue2.js +11 -11
  136. package/es/components/steps/steps.vue2.js +2 -2
  137. package/es/components/super-form/super-form-action.vue2.js +11 -11
  138. package/es/components/super-form/super-form.vue2.js +7 -7
  139. package/es/components/switch/switch.vue2.js +1 -1
  140. package/es/components/table/table.vue2.js +4 -4
  141. package/es/components/tabs/tab-bar.vue2.js +2 -2
  142. package/es/components/tabs/tab-pane.vue2.js +6 -6
  143. package/es/components/teleport/teleport.vue2.js +2 -2
  144. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  145. package/es/components/time-picker/common/picker.vue2.js +8 -8
  146. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  147. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +3 -3
  148. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -3
  149. package/es/components/time-select/time-select.vue2.js +3 -3
  150. package/es/components/timeline/timeline-item.vue2.js +1 -1
  151. package/es/components/tooltip/content.vue2.js +6 -6
  152. package/es/components/tooltip/tooltip.vue2.js +1 -1
  153. package/es/components/tooltip/trigger.vue2.js +2 -2
  154. package/es/components/transfer/transfer-panel.vue2.js +7 -7
  155. package/es/components/transfer/transfer.vue2.js +4 -4
  156. package/es/components/tree/tree-node.vue.js +1 -1
  157. package/es/components/tree/tree.vue2.js +6 -6
  158. package/es/components/upload/index.d.ts +2 -2
  159. package/es/components/upload/upload-content.vue2.js +7 -7
  160. package/es/components/upload/upload-dragger.vue2.js +2 -2
  161. package/es/components/upload/upload-list.vue2.js +1 -1
  162. package/es/components/upload/upload.vue.d.ts +2 -2
  163. package/es/components/upload/upload.vue2.js +22 -22
  164. package/es/components/verify-code/verify-code.vue2.js +2 -2
  165. package/es/components/watermark/watermark.vue2.js +2 -2
  166. package/es/hooks/use-id/index.js +2 -2
  167. package/es/hooks/use-z-index/index.js +3 -3
  168. package/es/index.js +39 -39
  169. package/es/package.json.d.ts +1 -1
  170. package/es/package.json.js +1 -1
  171. package/es/plugin.js +7 -7
  172. package/es/utils/helper.js +2 -2
  173. package/es/utils/ns-cover.js +1 -1
  174. package/es/utils/vue/vnode.js +4 -4
  175. package/lib/components/button/use-button.cjs +1 -1
  176. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  177. package/lib/components/index.cjs +1 -1
  178. package/lib/components/popover/popover.vue2.cjs +1 -1
  179. package/lib/components/search/search.vue2.cjs +1 -1
  180. package/lib/components/upload/index.d.ts +2 -2
  181. package/lib/components/upload/upload.vue.d.ts +2 -2
  182. package/lib/components/upload/upload.vue2.cjs +1 -1
  183. package/lib/index.cjs +1 -1
  184. package/lib/package.json.cjs +1 -1
  185. package/lib/package.json.d.ts +1 -1
  186. package/lib/plugin.cjs +1 -1
  187. package/package.json +4 -4
  188. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, useSlots as G, reactive as H, ref as v, computed as s, watch as J, h as y, Comment as K, openBlock as p, createElementBlock as h, normalizeClass as i, unref as t, createVNode as a, withCtx as l, renderSlot as d, createElementVNode as O, toDisplayString as T, createCommentVNode as P } from "vue";
1
+ import { defineComponent as N, useSlots as G, reactive as H, ref as v, computed as s, watch as J, h as y, Comment as K, createElementBlock as p, openBlock as h, normalizeClass as i, unref as t, createVNode as a, createElementVNode as O, withCtx as l, renderSlot as d, createCommentVNode as T, toDisplayString as P } from "vue";
2
2
  import "@vueuse/core";
3
3
  import { isEmpty as V, isUndefined as w } from "@vft/utils";
4
4
  import { debugWarn as X } from "../../utils/error.js";
@@ -67,7 +67,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
67
67
  leftPanel: f,
68
68
  /** @description right panel ref */
69
69
  rightPanel: c
70
- }), (e, m) => (p(), h("div", {
70
+ }), (e, m) => (h(), p("div", {
71
71
  class: i(t(r).b())
72
72
  }, [
73
73
  a(E, {
@@ -103,7 +103,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
103
103
  }, {
104
104
  default: l(() => [
105
105
  a(t(S), { icon: "icon-arrow-left" }),
106
- t(w)(e.buttonTexts[0]) ? P("", !0) : (p(), h("span", le, T(e.buttonTexts[0]), 1))
106
+ t(w)(e.buttonTexts[0]) ? T("", !0) : (h(), p("span", le, P(e.buttonTexts[0]), 1))
107
107
  ]),
108
108
  _: 1
109
109
  }, 8, ["class", "disabled", "onClick"]),
@@ -114,7 +114,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
114
114
  onClick: t(L)
115
115
  }, {
116
116
  default: l(() => [
117
- t(w)(e.buttonTexts[1]) ? P("", !0) : (p(), h("span", se, T(e.buttonTexts[1]), 1)),
117
+ t(w)(e.buttonTexts[1]) ? T("", !0) : (h(), p("span", se, P(e.buttonTexts[1]), 1)),
118
118
  a(t(S), { icon: "icon-arrow-right" })
119
119
  ]),
120
120
  _: 1
@@ -1,5 +1,5 @@
1
1
  import f from "./tree-node.vue2.js";
2
- import { resolveComponent as a, withDirectives as g, openBlock as r, createElementBlock as i, withModifiers as d, normalizeClass as s, createElementVNode as v, normalizeStyle as D, createVNode as l, createBlock as p, createCommentVNode as t, withCtx as N, Fragment as y, renderList as E, vShow as k } from "vue";
2
+ import { resolveComponent as a, withDirectives as g, createElementBlock as i, openBlock as r, withModifiers as d, normalizeClass as s, createElementVNode as v, createVNode as l, normalizeStyle as D, createBlock as p, createCommentVNode as t, withCtx as N, Fragment as y, renderList as E, vShow as k } from "vue";
3
3
  import w from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const $ = ["aria-expanded", "aria-disabled", "aria-checked", "draggable", "data-key"], L = ["aria-expanded"];
5
5
  function S(e, n, c, B, M, V) {
@@ -1,4 +1,4 @@
1
- import { defineComponent as Y, getCurrentInstance as x, ref as s, computed as Z, watch as i, provide as w, openBlock as y, createElementBlock as m, normalizeClass as h, unref as n, Fragment as _, renderList as ee, createBlock as te, renderSlot as re, createElementVNode as E, toDisplayString as oe, createCommentVNode as ne, withDirectives as de, vShow as ae } from "vue";
1
+ import { defineComponent as Y, getCurrentInstance as x, ref as s, computed as Z, watch as i, provide as w, createElementBlock as m, openBlock as y, normalizeClass as h, unref as n, createCommentVNode as _, withDirectives as ee, Fragment as te, renderList as re, createBlock as oe, renderSlot as ne, createElementVNode as E, toDisplayString as de, vShow as ae } from "vue";
2
2
  import "../form/index.js";
3
3
  import "../icon/index.js";
4
4
  import "@vueuse/core";
@@ -218,7 +218,7 @@ const $e = /* @__PURE__ */ Y({
218
218
  ]),
219
219
  role: "tree"
220
220
  }, [
221
- (y(!0), m(_, null, ee(u.value.childNodes, (d) => (y(), te(ye, {
221
+ (y(!0), m(te, null, re(u.value.childNodes, (d) => (y(), oe(ye, {
222
222
  key: N(d),
223
223
  node: d,
224
224
  props: t,
@@ -232,13 +232,13 @@ const $e = /* @__PURE__ */ Y({
232
232
  key: 0,
233
233
  class: h(n(a).e("empty-block"))
234
234
  }, [
235
- re(e.$slots, "empty", {}, () => [
235
+ ne(e.$slots, "empty", {}, () => [
236
236
  E("span", {
237
237
  class: h(n(a).e("empty-text"))
238
- }, oe(l.emptyText ?? "暂无数据"), 3)
238
+ }, de(l.emptyText ?? "暂无数据"), 3)
239
239
  ])
240
- ], 2)) : ne("", !0),
241
- de(E("div", {
240
+ ], 2)) : _("", !0),
241
+ ee(E("div", {
242
242
  ref_key: "dropIndicator$",
243
243
  ref: g,
244
244
  class: h(n(a).e("drop-indicator"))
@@ -580,8 +580,8 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
580
580
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
581
581
  $slots: {
582
582
  file?(_: {
583
- file: any;
584
- index: any;
583
+ file: import("./types").UploadFile;
584
+ index: number;
585
585
  }): any;
586
586
  trigger?(_: {}): any;
587
587
  default?(_: {}): any;
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, shallowRef as I, computed as $, openBlock as q, createElementBlock as A, withKeys as N, withModifiers as T, normalizeClass as w, unref as g, createBlock as X, withCtx as G, renderSlot as L, createElementVNode as J, nextTick as Q } from "vue";
1
+ import { defineComponent as D, shallowRef as I, computed as $, createElementBlock as A, openBlock as q, withKeys as N, normalizeClass as T, withModifiers as w, unref as g, createBlock as X, renderSlot as L, createElementVNode as G, withCtx as J, nextTick as Q } from "vue";
2
2
  import "../form/index.js";
3
3
  import "@vueuse/core";
4
4
  import { isObject as O, entriesOf as Y } from "@vft/utils";
@@ -189,31 +189,31 @@ const re = ["onKeydown"], de = ["name", "multiple", "accept"], fe = D({
189
189
  },
190
190
  upload: C
191
191
  }), (e, o) => (q(), A("div", {
192
- class: w([g(v).b(), g(v).m(r.listType), g(v).is("drag", r.drag)]),
192
+ class: T([g(v).b(), g(v).m(r.listType), g(v).is("drag", r.drag)]),
193
193
  tabindex: "0",
194
194
  onClick: U,
195
- onKeydown: N(T(j, ["self"]), ["enter", "space"])
195
+ onKeydown: N(w(j, ["self"]), ["enter", "space"])
196
196
  }, [
197
197
  r.drag ? (q(), X(ae, {
198
198
  key: 0,
199
199
  disabled: g(k),
200
200
  onFile: o[0] || (o[0] = (a) => B(a.file))
201
201
  }, {
202
- default: G(() => [
202
+ default: J(() => [
203
203
  L(e.$slots, "default")
204
204
  ]),
205
205
  _: 3
206
206
  }, 8, ["disabled"])) : L(e.$slots, "default", { key: 1 }),
207
- J("input", {
207
+ G("input", {
208
208
  ref_key: "inputRef",
209
209
  ref: b,
210
- class: w(g(v).e("input")),
210
+ class: T(g(v).e("input")),
211
211
  name: r.name,
212
212
  multiple: r.multiple,
213
213
  accept: r.accept,
214
214
  type: "file",
215
215
  onChange: V,
216
- onClick: o[1] || (o[1] = T(() => {
216
+ onClick: o[1] || (o[1] = w(() => {
217
217
  }, ["stop"]))
218
218
  }, null, 42, de)
219
219
  ], 42, re));
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, inject as x, ref as E, openBlock as N, createElementBlock as B, withModifiers as n, normalizeClass as M, unref as u, renderSlot as h } from "vue";
1
+ import { defineComponent as d, inject as x, ref as E, createElementBlock as N, openBlock as B, withModifiers as n, normalizeClass as M, unref as u, renderSlot as h } from "vue";
2
2
  import "../form/index.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -41,7 +41,7 @@ const v = "VftUploadDrag", O = d({
41
41
  }, _ = () => {
42
42
  f.value || (t.value = !0);
43
43
  };
44
- return (o, r) => (N(), B("div", {
44
+ return (o, r) => (B(), N("div", {
45
45
  class: M([u(l).b("dragger"), u(l).is("dragover", t.value)]),
46
46
  onDrop: n(g, ["prevent"]),
47
47
  onDragover: n(_, ["prevent"]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, ref as B, openBlock as n, createBlock as p, TransitionGroup as F, unref as e, normalizeClass as t, withCtx as N, createElementBlock as m, Fragment as z, renderList as I, withKeys as P, renderSlot as h, createCommentVNode as a, createElementVNode as b, withModifiers as K, createVNode as f, toDisplayString as L, normalizeStyle as S, nextTick as D } from "vue";
1
+ import { defineComponent as C, ref as B, createBlock as p, openBlock as n, TransitionGroup as F, unref as e, normalizeClass as t, withCtx as N, createElementBlock as m, renderSlot as h, Fragment as z, renderList as I, withKeys as P, createCommentVNode as a, createElementVNode as b, withModifiers as K, createVNode as f, toDisplayString as L, normalizeStyle as S, nextTick as D } from "vue";
2
2
  import "../form/index.js";
3
3
  import { VftIcon as u } from "../icon/index.js";
4
4
  import { VftProgress as E } from "../progress/index.js";
@@ -1,8 +1,8 @@
1
1
  import type { UploadProps } from './types';
2
2
  declare function __VLS_template(): {
3
3
  file?(_: {
4
- file: any;
5
- index: any;
4
+ file: import("./types").UploadFile;
5
+ index: number;
6
6
  }): any;
7
7
  trigger?(_: {}): any;
8
8
  default?(_: {}): any;
@@ -1,6 +1,6 @@
1
- import { defineComponent as F, useSlots as j, computed as y, shallowRef as H, onBeforeUnmount as N, provide as O, toRef as W, openBlock as v, createElementBlock as q, normalizeClass as D, unref as t, createBlock as h, createSlots as $, withCtx as u, createVNode as K, mergeProps as B, renderSlot as i, createCommentVNode as n } from "vue";
1
+ import { defineComponent as F, useSlots as j, computed as g, shallowRef as H, onBeforeUnmount as N, provide as O, toRef as W, createElementBlock as q, openBlock as v, normalizeClass as D, unref as t, createBlock as h, createCommentVNode as i, renderSlot as n, createSlots as $, withCtx as u, createVNode as K, mergeProps as B } from "vue";
2
2
  import "../form/index.js";
3
- import { Message as w } from "../message/index.js";
3
+ import { VftMessage as w } from "../message/index.js";
4
4
  import { ajaxUpload as A } from "./ajax.js";
5
5
  import { uploadContextKey as G } from "./constants.js";
6
6
  import C from "./upload-content.vue2.js";
@@ -49,30 +49,30 @@ const X = F({
49
49
  onSizeExceed: {}
50
50
  },
51
51
  setup(a, { expose: I }) {
52
- const o = a, d = j(), g = Q(), M = y(() => o.sizeExceedMessage || "文件大小超出限制"), p = H(), {
52
+ const o = a, d = j(), y = Q(), P = g(() => o.sizeExceedMessage || "文件大小超出限制"), p = H(), {
53
53
  abort: S,
54
54
  submit: k,
55
55
  clearFiles: z,
56
56
  uploadFiles: r,
57
57
  handleStart: R,
58
- handleError: P,
58
+ handleError: M,
59
59
  handleRemove: c,
60
60
  handleSuccess: T,
61
61
  handleProgress: x
62
- } = J(o, p), m = y(() => o.listType === "picture-card"), U = {
62
+ } = J(o, p), m = g(() => o.listType === "picture-card"), U = {
63
63
  abort: S,
64
64
  submit: k,
65
65
  clearFiles: z,
66
66
  uploadFiles: r,
67
67
  uploadRef: p
68
- }, b = y(() => ({
68
+ }, b = g(() => ({
69
69
  ...o,
70
- sizeExceedMessage: M.value,
70
+ sizeExceedMessage: P.value,
71
71
  fileList: r.value,
72
72
  onStart: R,
73
73
  onProgress: x,
74
74
  onSuccess: T,
75
- onError: P,
75
+ onError: M,
76
76
  onRemove: c,
77
77
  onChange: (e, s) => {
78
78
  o.onChange?.(e, s, U);
@@ -116,11 +116,11 @@ const X = F({
116
116
  handleRemove: c,
117
117
  fileList: r
118
118
  }), (e, s) => (v(), q("div", {
119
- class: D(["vft-upload-wrapper", [{ disabled: t(g) }]])
119
+ class: D(["vft-upload-wrapper", [{ disabled: t(y) }]])
120
120
  }, [
121
121
  m.value && a.showFileList ? (v(), h(L, {
122
122
  key: 0,
123
- disabled: t(g),
123
+ disabled: t(y),
124
124
  "list-type": a.listType,
125
125
  files: t(r),
126
126
  "handle-preview": a.onPreview,
@@ -132,8 +132,8 @@ const X = F({
132
132
  ref: p
133
133
  }, b.value), {
134
134
  default: u(() => [
135
- t(d).trigger ? i(e.$slots, "trigger", { key: 0 }) : n("", !0),
136
- !t(d).trigger && t(d).default ? i(e.$slots, "default", { key: 1 }) : n("", !0)
135
+ t(d).trigger ? n(e.$slots, "trigger", { key: 0 }) : i("", !0),
136
+ !t(d).trigger && t(d).default ? n(e.$slots, "default", { key: 1 }) : i("", !0)
137
137
  ]),
138
138
  _: 3
139
139
  }, 16)
@@ -143,30 +143,30 @@ const X = F({
143
143
  e.$slots.file ? {
144
144
  name: "default",
145
145
  fn: u(({ file: l, index: f }) => [
146
- i(e.$slots, "file", {
146
+ n(e.$slots, "file", {
147
147
  file: l,
148
148
  index: f
149
149
  })
150
150
  ]),
151
151
  key: "0"
152
152
  } : void 0
153
- ]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : n("", !0),
153
+ ]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : i("", !0),
154
154
  !m.value || m.value && !a.showFileList ? (v(), h(C, B({
155
155
  key: 1,
156
156
  ref_key: "uploadRef",
157
157
  ref: p
158
158
  }, b.value), {
159
159
  default: u(() => [
160
- t(d).trigger ? i(e.$slots, "trigger", { key: 0 }) : n("", !0),
161
- !t(d).trigger && t(d).default ? i(e.$slots, "default", { key: 1 }) : n("", !0)
160
+ t(d).trigger ? n(e.$slots, "trigger", { key: 0 }) : i("", !0),
161
+ !t(d).trigger && t(d).default ? n(e.$slots, "default", { key: 1 }) : i("", !0)
162
162
  ]),
163
163
  _: 3
164
- }, 16)) : n("", !0),
165
- e.$slots.trigger ? i(e.$slots, "default", { key: 2 }) : n("", !0),
166
- i(e.$slots, "tip"),
164
+ }, 16)) : i("", !0),
165
+ e.$slots.trigger ? n(e.$slots, "default", { key: 2 }) : i("", !0),
166
+ n(e.$slots, "tip"),
167
167
  !m.value && a.showFileList ? (v(), h(L, {
168
168
  key: 3,
169
- disabled: t(g),
169
+ disabled: t(y),
170
170
  "list-type": a.listType,
171
171
  files: t(r),
172
172
  "handle-preview": a.onPreview,
@@ -175,14 +175,14 @@ const X = F({
175
175
  e.$slots.file ? {
176
176
  name: "default",
177
177
  fn: u(({ file: l, index: f }) => [
178
- i(e.$slots, "file", {
178
+ n(e.$slots, "file", {
179
179
  file: l,
180
180
  index: f
181
181
  })
182
182
  ]),
183
183
  key: "0"
184
184
  } : void 0
185
- ]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : n("", !0)
185
+ ]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : i("", !0)
186
186
  ], 2));
187
187
  }
188
188
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, computed as s, openBlock as f, createElementBlock as u, normalizeStyle as o, createElementVNode as g, unref as k } from "vue";
1
+ import { defineComponent as d, computed as s, createElementBlock as f, openBlock as u, normalizeStyle as o, createElementVNode as g, unref as k } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import { addUnit as t } from "../../utils/helper.js";
@@ -25,7 +25,7 @@ const y = ["width", "height"], v = d({
25
25
  return c({
26
26
  getCode: i,
27
27
  code: l
28
- }), (C, p) => (f(), u("div", {
28
+ }), (C, p) => (u(), f("div", {
29
29
  style: o(h.value),
30
30
  onClick: a
31
31
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, computed as n, shallowRef as C, ref as j, onMounted as q, watch as J, onBeforeUnmount as K, openBlock as Q, createElementBlock as Z, normalizeStyle as tt, renderSlot as et } from "vue";
1
+ import { defineComponent as _, computed as n, shallowRef as C, ref as j, onMounted as q, watch as J, onBeforeUnmount as K, createElementBlock as Q, openBlock as Z, normalizeStyle as tt, renderSlot as et } from "vue";
2
2
  import { useMutationObserver as ot } from "@vueuse/core";
3
3
  import { isArray as nt, isUndefined as at } from "@vft/utils";
4
4
  import { watermarkProps as rt } from "./watermark.js";
@@ -117,7 +117,7 @@ const ft = _({
117
117
  attributes: !0,
118
118
  subtree: !0,
119
119
  childList: !0
120
- }), (e, o) => (Q(), Z("div", {
120
+ }), (e, o) => (Z(), Q("div", {
121
121
  ref_key: "containerRef",
122
122
  ref: f,
123
123
  style: tt([R])
@@ -1,4 +1,4 @@
1
- import { unref as n, getCurrentInstance as i, inject as c } from "vue";
1
+ import { unref as n, inject as i, getCurrentInstance as c } from "vue";
2
2
  import { isClient as s, computedEager as u } from "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import { debugWarn as d } from "../../utils/error.js";
@@ -9,7 +9,7 @@ import { useGetDerivedNamespace as p } from "../use-namespace/index.js";
9
9
  const r = {
10
10
  prefix: Math.floor(Math.random() * 1e4),
11
11
  current: 0
12
- }, m = Symbol("vftIdInjection"), a = () => i() ? c(m, r) : r, h = (t) => {
12
+ }, m = Symbol("vftIdInjection"), a = () => c() ? i(m, r) : r, h = (t) => {
13
13
  const e = a();
14
14
  !s && e === r && d(
15
15
  "IdInjection",
@@ -2,14 +2,14 @@ import "@vueuse/core";
2
2
  import { isNumber as m, isClient as p } from "@vft/utils";
3
3
  import { debugWarn as l } from "../../utils/error.js";
4
4
  import "../../components/config-provider/hooks/use-global-config.js";
5
- import { ref as v, getCurrentInstance as i, inject as e, computed as c, unref as Z } from "vue";
5
+ import { getCurrentInstance as i, inject as e, computed as c, unref as v, ref as Z } from "vue";
6
6
  import "lodash-es";
7
7
  import "../../components/form/index.js";
8
8
  const s = {
9
9
  current: 0
10
- }, u = v(0), f = 2e3, d = Symbol("vftZIndexContextKey"), y = Symbol("zIndexContextKey"), K = (I) => {
10
+ }, u = Z(0), f = 2e3, d = Symbol("vftZIndexContextKey"), y = Symbol("zIndexContextKey"), K = (I) => {
11
11
  const n = i() ? e(d, s) : s, x = I || (i() ? e(y, void 0) : void 0), t = c(() => {
12
- const r = Z(x);
12
+ const r = v(x);
13
13
  return m(r) ? r : f;
14
14
  }), o = c(() => t.value + u.value), a = () => (n.current++, u.value = n.current, o.value);
15
15
  return !p && !e(d) && l(
package/es/index.js CHANGED
@@ -101,7 +101,7 @@ export { VftMdVuePlayground } from "./components/md-vue-playground/index.js";
101
101
  export { VftInfiniteScroll } from "./components/infinite-scroll/index.js";
102
102
  export { VftLoading } from "./components/loading/index.js";
103
103
  export { VftMessage, Message } from "./components/message/index.js";
104
- export { MessageBox } from "./components/message-box/index.js";
104
+ export { VftMessageBox } from "./components/message-box/index.js";
105
105
  export { VftProgressI } from "./components/progress-i/index.js";
106
106
  export { VftSuperForm } from "./components/super-form/index.js";
107
107
  export { EVENT_CODE } from "./constants/aria.js";
@@ -148,65 +148,65 @@ export { ACTION_FIELD, CHECKED_FIELD, CREATE_TIME_FIELD, DATE_FIELD, DATE_TIME_F
148
148
  export { getDynamicProps, useForm } from "./components/super-form/use/use-form.js";
149
149
  export { CompResolver } from "./comp-resolver.js";
150
150
  export { makeInstaller } from "./make-installer.js";
151
- export { default as CommonPicker } from "./components/time-picker/common/picker.vue2.js";
152
- export { default as TimePickPanel } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
153
151
  export { default as VftPopperArrow } from "./components/popper/arrow.vue2.js";
154
152
  export { default as VftPopperContent } from "./components/popper/content.vue2.js";
155
153
  export { default as VftPopperTrigger } from "./components/popper/trigger.vue2.js";
156
- export { BAR_MAP, GAP, renderThumbStyle } from "./components/scrollbar/util.js";
157
- export { CAROUSEL_ITEM_NAME, carouselContextKey } from "./components/carousel/constants.js";
158
- export { CASCADER_PANEL_INJECTION_KEY } from "./components/cascader-panel/types.js";
159
- export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from "./components/cascader-panel/config.js";
160
- export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from "./components/dialog/constants.js";
161
- export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, timeUnits } from "./components/time-picker/constants.js";
162
- export { DROPDOWN_INJECTION_KEY } from "./components/dropdown/tokens.js";
163
- export { EmptyEnum } from "./components/empty/constants.js";
164
- export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from "./components/transfer/transfer.js";
165
- export { MenuTypeEnum } from "./components/horizontal-menu/constants.js";
166
- export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
167
- export { TOOLTIP_INJECTION_KEY } from "./components/tooltip/constants.js";
168
- export { TabsRootContextKey } from "./components/tabs/types.js";
169
- export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
170
- export { Loading } from "./components/loading/service.js";
171
- export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
172
- export { breadcrumbKey } from "./components/breadcrumb/constants.js";
173
- export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from "./components/time-picker/utils.js";
154
+ export { default as CommonPicker } from "./components/time-picker/common/picker.vue2.js";
155
+ export { default as TimePickPanel } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
174
156
  export { buttonGroupContextKey } from "./components/button/constants.js";
175
157
  export { cascaderEmits, cascaderProps } from "./components/cascader/cascader.js";
158
+ export { CASCADER_PANEL_INJECTION_KEY } from "./components/cascader-panel/types.js";
159
+ export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from "./components/cascader-panel/config.js";
176
160
  export { checkboxGroupContextKey } from "./components/checkbox/constants.js";
177
- export { collapseContextKey } from "./components/collapse/constants.js";
178
- export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
179
- export { collapseItemProps } from "./components/collapse/collapse-item.js";
180
161
  export { configProviderContextKey, messageConfig } from "./components/config-provider/constants.js";
181
- export { countdownEmits, countdownProps } from "./components/countdown/countdown.js";
162
+ export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from "./components/config-provider/hooks/use-global-config.js";
163
+ export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
182
164
  export { datePickerProps } from "./components/date-picker/props/date-picker.js";
183
- export { defaultProps, segmentedEmits, segmentedProps } from "./components/segmented/segmented.js";
184
- export { dragEventsKey, useDragNodeHandler } from "./components/tree/model/useDragNode.js";
165
+ export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from "./components/dialog/constants.js";
166
+ export { useDialog } from "./components/dialog/use-dialog.js";
167
+ export { DROPDOWN_INJECTION_KEY } from "./components/dropdown/tokens.js";
168
+ export { EmptyEnum } from "./components/empty/constants.js";
185
169
  export { formContextKey, formItemContextKey } from "./components/form/constants.js";
186
- export { genFileId, uploadContextKey } from "./components/upload/constants.js";
187
- export { getChildState } from "./components/tree/model/node.js";
170
+ export { useDisabled, useFormDisabled, useFormSize, useSize } from "./components/form/hooks/use-form-common-props.js";
171
+ export { useFormItem, useFormItemInputId } from "./components/form/hooks/use-form-item.js";
172
+ export { MenuTypeEnum } from "./components/horizontal-menu/constants.js";
188
173
  export { initAffixTabs, useTabsDrag } from "./components/multiple-tabs/use/use-multiple-tabs.js";
189
- export { inputTagEmits, inputTagProps } from "./components/input-tag/input-tag.js";
190
- export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
191
- export { messageDefaults, messageTypes } from "./components/message/types.js";
174
+ export { useTabDropdown } from "./components/multiple-tabs/use/use-tab-dropdown.js";
192
175
  export { notificationEmits, notificationProps, notificationTypes } from "./components/notification/notification.js";
193
- export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from "./components/config-provider/hooks/use-global-config.js";
176
+ export { usePagination, vftPaginationKey } from "./components/pagination/usePagination.js";
194
177
  export { radioGroupKey } from "./components/radio/constants.js";
195
178
  export { rowContextKey } from "./components/row/constants.js";
196
179
  export { scrollbarContextKey } from "./components/scrollbar/constants.js";
180
+ export { BAR_MAP, GAP, renderThumbStyle } from "./components/scrollbar/util.js";
197
181
  export { selectV2InjectionKey } from "./components/select/token.js";
198
182
  export { sliderContextKey } from "./components/slider/constants.js";
199
183
  export { sliderEmits } from "./components/slider/slider.js";
200
184
  export { spaceProps } from "./components/space/space.js";
185
+ export { useSpace } from "./components/space/use-space.js";
186
+ export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
187
+ export { TabsRootContextKey } from "./components/tabs/types.js";
201
188
  export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from "./components/time-picker/common/props.js";
202
- export { useDialog } from "./components/dialog/use-dialog.js";
203
- export { useDisabled, useFormDisabled, useFormSize, useSize } from "./components/form/hooks/use-form-common-props.js";
204
- export { useFormItem, useFormItemInputId } from "./components/form/hooks/use-form-item.js";
189
+ export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, timeUnits } from "./components/time-picker/constants.js";
190
+ export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from "./components/time-picker/utils.js";
191
+ export { TOOLTIP_INJECTION_KEY } from "./components/tooltip/constants.js";
192
+ export { getChildState } from "./components/tree/model/node.js";
193
+ export { dragEventsKey, useDragNodeHandler } from "./components/tree/model/useDragNode.js";
194
+ export { breadcrumbKey } from "./components/breadcrumb/constants.js";
195
+ export { CAROUSEL_ITEM_NAME, carouselContextKey } from "./components/carousel/constants.js";
196
+ export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
197
+ export { collapseItemProps } from "./components/collapse/collapse-item.js";
198
+ export { collapseContextKey } from "./components/collapse/constants.js";
199
+ export { countdownEmits, countdownProps } from "./components/countdown/countdown.js";
200
+ export { inputTagEmits, inputTagProps } from "./components/input-tag/input-tag.js";
205
201
  export { useModal, useModalInner } from "./components/modal/use/use-modal.js";
206
- export { usePagination, vftPaginationKey } from "./components/pagination/usePagination.js";
207
- export { useSpace } from "./components/space/use-space.js";
208
- export { useTabDropdown } from "./components/multiple-tabs/use/use-tab-dropdown.js";
202
+ export { defaultProps, segmentedEmits, segmentedProps } from "./components/segmented/segmented.js";
203
+ export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from "./components/transfer/transfer.js";
204
+ export { genFileId, uploadContextKey } from "./components/upload/constants.js";
209
205
  export { watermarkProps } from "./components/watermark/watermark.js";
206
+ export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
207
+ export { Loading } from "./components/loading/service.js";
208
+ export { messageDefaults, messageTypes } from "./components/message/types.js";
209
+ export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
210
210
 
211
211
 
212
212
  const install = installer.install;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.523",
3
+ "version": "0.0.524",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.523";
1
+ const o = "0.0.524";
2
2
  export {
3
3
  o as version
4
4
  };
package/es/plugin.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { VftLoading as o } from "./components/loading/index.js";
2
2
  import { VftInfiniteScroll as t } from "./components/infinite-scroll/index.js";
3
- import { Message as f } from "./components/message/index.js";
4
- import { MessageBox as s } from "./components/message-box/index.js";
5
- import { VftNotification as i } from "./components/notification/index.js";
6
- const n = [
3
+ import { VftMessage as f } from "./components/message/index.js";
4
+ import { VftMessageBox as i } from "./components/message-box/index.js";
5
+ import { VftNotification as r } from "./components/notification/index.js";
6
+ const p = [
7
7
  o,
8
8
  f,
9
- s,
9
+ i,
10
10
  t,
11
- i
11
+ r
12
12
  ];
13
13
  export {
14
- n as default
14
+ p as default
15
15
  };
@@ -1,7 +1,7 @@
1
1
  import { useGlobalConfig as n } from "../components/config-provider/hooks/use-global-config.js";
2
- import { componentSizeMap as i, componentSizes as o } from "../constants/size.js";
2
+ import { componentSizes as i, componentSizeMap as o } from "../constants/size.js";
3
3
  import { addUnit as s } from "@vft/utils";
4
- const c = (t) => ["large", "small"].includes(t) ? t : !1, l = (t) => ["", ...o].includes(t), m = (t) => i[t || "default"], p = (t) => !t && t !== 0 ? [] : Array.isArray(t) ? t : [t], d = (t) => [...new Set(t)];
4
+ const c = (t) => ["large", "small"].includes(t) ? t : !1, l = (t) => ["", ...i].includes(t), m = (t) => o[t || "default"], p = (t) => !t && t !== 0 ? [] : Array.isArray(t) ? t : [t], d = (t) => [...new Set(t)];
5
5
  function f(t) {
6
6
  const e = n();
7
7
  return s(t, e?.value?.baseUnit, e?.value?.baseUnitSize);
@@ -1,4 +1,4 @@
1
- import { generateCssVars as a, cssVarValue as c, isObject as i, setStyle as l, getRgbCount as u, hexToRGB as m, mixColor as n } from "@vft/utils";
1
+ import { generateCssVars as a, cssVarValue as c, isObject as i, setStyle as l, getRgbCount as u, mixColor as n, hexToRGB as m } from "@vft/utils";
2
2
  import { isClient as r } from "@vueuse/core";
3
3
  import { ref as g } from "vue";
4
4
  const V = (e, s = document.documentElement, t = !0) => {
@@ -1,5 +1,5 @@
1
- import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
2
- import { isVNode as o, Fragment as S, Comment as A, Text as s, openBlock as L, createBlock as _, createCommentVNode as C } from "vue";
1
+ import { hasOwn as m, camelize as N, isArray as E } from "@vft/utils";
2
+ import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
3
3
  import { debugWarn as O } from "../error.js";
4
4
  const R = "utils/vue/vnode";
5
5
  var D = /* @__PURE__ */ ((e) => (e[e.TEXT = 1] = "TEXT", e[e.CLASS = 2] = "CLASS", e[e.STYLE = 4] = "STYLE", e[e.PROPS = 8] = "PROPS", e[e.FULL_PROPS = 16] = "FULL_PROPS", e[e.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", e[e.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", e[e.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", e[e.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", e[e.NEED_PATCH = 512] = "NEED_PATCH", e[e.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", e[e.HOISTED = -1] = "HOISTED", e[e.BAIL = -2] = "BAIL", e))(D || {});
@@ -25,10 +25,10 @@ function T(e, t) {
25
25
  }
26
26
  const M = (e, t = 3) => E(e) ? T(e[0], t) : T(e, t);
27
27
  function H(e, ...t) {
28
- return e ? v(...t) : C("v-if", !0);
28
+ return e ? v(...t) : L("v-if", !0);
29
29
  }
30
30
  function v(...e) {
31
- return L(), _(...e);
31
+ return C(), _(...e);
32
32
  }
33
33
  const w = (e) => {
34
34
  if (!o(e))
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const q=require("@vueuse/core"),o=require("vue"),v=require("./constants.cjs"),F=require("../config-provider/hooks/use-global-config.cjs"),T=require("../form/hooks/use-form-item.cjs"),r=require("../form/hooks/use-form-common-props.cjs"),p=(e,i)=>{const u=o.inject(v.buttonGroupContextKey,void 0),l=F.useGlobalConfig("button"),{form:a}=T.useFormItem(),d=r.useFormSize(o.computed(()=>u?.size)),n=r.useFormDisabled(),f=o.ref(),m=o.useSlots(),b=o.computed(()=>e.type||u?.type||""),g=o.computed(()=>e.autoInsertSpace??l.value?.autoInsertSpace??!1),h=o.computed(()=>{const t=m.default?.();if(g.value&&t?.length===1){const c=t[0];if(c?.type===o.Text){const S=c.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1}),y=o.computed(()=>e.tag==="button"?{ariaDisabled:n.value||e.loading,disabled:n.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),s=t=>{e.nativeType==="reset"&&a?.resetFields(),i("click",t)},C=q.useThrottleFn(t=>{s(t)},e.throttleTime);return{_props:y,_disabled:n,_size:d,_type:b,_ref:f,shouldAddSpace:h,handleClick:t=>{e.useThrottle?C(t):s(t)}}};exports.useButton=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const q=require("@vueuse/core"),o=require("vue"),v=require("./constants.cjs"),F=require("../form/hooks/use-form-item.cjs"),T=require("../config-provider/hooks/use-global-config.cjs"),r=require("../form/hooks/use-form-common-props.cjs"),p=(e,i)=>{const u=o.inject(v.buttonGroupContextKey,void 0),l=T.useGlobalConfig("button"),{form:a}=F.useFormItem(),d=r.useFormSize(o.computed(()=>u?.size)),n=r.useFormDisabled(),f=o.ref(),m=o.useSlots(),b=o.computed(()=>e.type||u?.type||""),g=o.computed(()=>e.autoInsertSpace??l.value?.autoInsertSpace??!1),h=o.computed(()=>{const t=m.default?.();if(g.value&&t?.length===1){const c=t[0];if(c?.type===o.Text){const S=c.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1}),y=o.computed(()=>e.tag==="button"?{ariaDisabled:n.value||e.loading,disabled:n.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),s=t=>{e.nativeType==="reset"&&a?.resetFields(),i("click",t)},C=q.useThrottleFn(t=>{s(t)},e.throttleTime);return{_props:y,_disabled:n,_size:d,_type:b,_ref:f,shouldAddSpace:h,handleClick:t=>{e.useThrottle?C(t):s(t)}}};exports.useButton=p;