vft 0.0.89 → 0.0.91

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 (240) hide show
  1. package/attributes.json +1 -1
  2. package/es/comp-resolver.js +20 -29
  3. package/es/components/affix/affix.vue2.js +34 -34
  4. package/es/components/alert/alert.vue2.js +44 -44
  5. package/es/components/avatar/avatar.vue2.js +28 -28
  6. package/es/components/backtop/backtop.vue2.js +11 -11
  7. package/es/components/button/button-group.vue2.js +8 -8
  8. package/es/components/button/button.vue2.js +39 -39
  9. package/es/components/card/card.vue2.js +20 -20
  10. package/es/components/check-tag/check-tag.vue2.js +14 -14
  11. package/es/components/checkbox/checkbox-button.vue2.js +61 -61
  12. package/es/components/checkbox/checkbox-group.vue2.js +27 -27
  13. package/es/components/checkbox/checkbox.vue2.js +81 -81
  14. package/es/components/clamp/clamp.vue2.js +59 -59
  15. package/es/components/clamp-toggle/clamp-toggle.vue2.js +25 -25
  16. package/es/components/col/col.vue2.js +33 -33
  17. package/es/components/color-picker/color-picker.vue2.js +126 -126
  18. package/es/components/color-picker/components/alpha-slider.vue2.js +12 -12
  19. package/es/components/config-provider/config-provider.vue2.js +29 -29
  20. package/es/components/container/aside.vue2.js +9 -9
  21. package/es/components/container/container.vue2.js +11 -11
  22. package/es/components/container/footer.vue2.js +8 -8
  23. package/es/components/container/header.vue2.js +9 -9
  24. package/es/components/context-menu/context-menu.vue2.js +29 -29
  25. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +53 -53
  26. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +19 -19
  27. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +32 -32
  28. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +168 -168
  29. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +89 -89
  30. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +38 -38
  31. package/es/components/descriptions/description-item.vue2.js +16 -16
  32. package/es/components/descriptions/description.vue2.js +54 -54
  33. package/es/components/descriptions/descriptions-row.vue2.js +24 -24
  34. package/es/components/dialog/dialog-content.vue2.js +30 -30
  35. package/es/components/dialog/dialog.vue2.js +64 -64
  36. package/es/components/divider/divider.vue2.js +20 -20
  37. package/es/components/dropdown/dropdown.vue.js +2 -127
  38. package/es/components/dropdown/dropdown.vue2.js +234 -181
  39. package/es/components/dropdown/index.js +10 -17
  40. package/es/components/dropdown/style/css.js +5 -0
  41. package/es/components/dropdown/style/index.js +5 -0
  42. package/es/components/dropdown/tokens.js +1 -1
  43. package/es/components/empty/empty.vue2.js +27 -27
  44. package/es/components/exception/exception.vue2.js +19 -19
  45. package/es/components/footer-layout/footer-layout.vue2.js +1 -1
  46. package/es/components/form/form-item.vue2.js +77 -77
  47. package/es/components/form/form.vue2.js +37 -37
  48. package/es/components/full-screen/full-screen.vue2.js +26 -15
  49. package/es/components/header-layout/header-layout.vue2.js +27 -27
  50. package/es/components/horizontal-menu/horizontal-menu.vue2.js +43 -43
  51. package/es/components/icon/icon.vue2.js +24 -24
  52. package/es/components/icon-text/icon-text.vue2.js +27 -27
  53. package/es/components/iframe-layout/iframe-layout.vue2.js +18 -18
  54. package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
  55. package/es/components/image/image.vue2.js +73 -73
  56. package/es/components/image-viewer/image-viewer.vue2.js +109 -109
  57. package/es/components/index.js +145 -150
  58. package/es/components/input/input.vue2.js +175 -175
  59. package/es/components/link/link.vue2.js +27 -27
  60. package/es/components/list-cell/list-cell.vue2.js +8 -8
  61. package/es/components/logo/logo.vue2.js +27 -27
  62. package/es/components/md-container/md-container.vue2.js +1 -1
  63. package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
  64. package/es/components/menu/menu-item-group.vue2.js +15 -15
  65. package/es/components/menu/menu-item.vue2.js +56 -56
  66. package/es/components/menu/menu.vue2.js +20 -20
  67. package/es/components/menu/sub-menu.vue2.js +16 -16
  68. package/es/components/message/message.vue2.js +81 -81
  69. package/es/components/multiple-tabs/multiple-tabs.vue2.js +12 -12
  70. package/es/components/multiple-tabs/tab-content.vue2.js +16 -16
  71. package/es/components/overlay/overlay.vue2.js +14 -14
  72. package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
  73. package/es/components/pagination/components/jumper.vue2.js +22 -22
  74. package/es/components/pagination/components/next.vue2.js +12 -12
  75. package/es/components/pagination/components/pager.vue2.js +75 -75
  76. package/es/components/pagination/components/prev.vue2.js +13 -13
  77. package/es/components/pagination/components/sizes.vue2.js +11 -11
  78. package/es/components/pagination/components/total.vue2.js +8 -8
  79. package/es/components/pagination/pagination.vue2.js +28 -28
  80. package/es/components/popconfirm/popconfirm.vue2.js +50 -50
  81. package/es/components/popover/popover.vue2.js +44 -44
  82. package/es/components/popper/arrow.vue2.js +2 -2
  83. package/es/components/popper/content.vue2.js +34 -34
  84. package/es/components/popper/popper.vue2.js +5 -5
  85. package/es/components/popper/trigger.vue2.js +48 -48
  86. package/es/components/qrcode/qrcode.vue2.js +35 -35
  87. package/es/components/radio/radio-button.vue2.js +28 -28
  88. package/es/components/radio/radio-group.vue2.js +26 -26
  89. package/es/components/radio/radio.vue2.js +44 -44
  90. package/es/components/result/result.vue2.js +10 -10
  91. package/es/components/router-view-content/router-view-content.vue2.js +20 -20
  92. package/es/components/row/row.vue2.js +19 -19
  93. package/es/components/scrollbar/bar.vue2.js +19 -19
  94. package/es/components/scrollbar/scrollbar.vue2.js +67 -67
  95. package/es/components/scrollbar/thumb.vue2.js +41 -41
  96. package/es/components/search/search.vue2.js +65 -65
  97. package/es/components/side-menu/side-menu.vue2.js +36 -36
  98. package/es/components/skeleton/skeleton-item.vue2.js +13 -13
  99. package/es/components/skeleton/skeleton.vue2.js +19 -19
  100. package/es/components/switch/switch.vue2.js +128 -128
  101. package/es/components/table/index.js +5 -3
  102. package/es/components/table/table.vue2.js +70 -70
  103. package/es/components/tabs/tab-bar.vue2.js +15 -15
  104. package/es/components/tabs/tab-nav.vue2.js +33 -33
  105. package/es/components/tabs/tab-pane.vue2.js +21 -21
  106. package/es/components/tabs/tabs.vue2.js +64 -66
  107. package/es/components/tag/tag.vue2.js +7 -7
  108. package/es/components/time-picker/common/picker.vue2.js +14 -14
  109. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +60 -60
  110. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +30 -30
  111. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +57 -57
  112. package/es/components/time-select/time-select.vue2.js +29 -29
  113. package/es/components/tooltip/constants.js +1 -1
  114. package/es/components/tooltip/content.vue2.js +73 -73
  115. package/es/components/tooltip/tooltip.vue2.js +91 -91
  116. package/es/components/tooltip/trigger.vue2.js +33 -33
  117. package/es/components/verify-code/verify-code.vue2.js +25 -25
  118. package/es/index.js +208 -213
  119. package/es/package.json.js +1 -1
  120. package/lib/comp-resolver.cjs +1 -1
  121. package/lib/components/affix/affix.vue2.cjs +1 -1
  122. package/lib/components/alert/alert.vue2.cjs +1 -1
  123. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  124. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  125. package/lib/components/button/button-group.vue2.cjs +1 -1
  126. package/lib/components/button/button.vue2.cjs +1 -1
  127. package/lib/components/card/card.vue2.cjs +1 -1
  128. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  129. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  130. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  131. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  132. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  133. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  134. package/lib/components/col/col.vue2.cjs +1 -1
  135. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  136. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  137. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  138. package/lib/components/container/aside.vue2.cjs +1 -1
  139. package/lib/components/container/container.vue2.cjs +1 -1
  140. package/lib/components/container/footer.vue2.cjs +1 -1
  141. package/lib/components/container/header.vue2.cjs +1 -1
  142. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  143. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  144. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  145. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  146. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  147. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  148. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  149. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  150. package/lib/components/descriptions/description.vue2.cjs +1 -1
  151. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  152. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  153. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  154. package/lib/components/divider/divider.vue2.cjs +1 -1
  155. package/lib/components/dropdown/dropdown.vue.cjs +1 -1
  156. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  157. package/lib/components/dropdown/index.cjs +1 -1
  158. package/lib/components/dropdown/style/css.cjs +1 -1
  159. package/lib/components/dropdown/style/index.cjs +1 -1
  160. package/lib/components/dropdown/tokens.cjs +1 -1
  161. package/lib/components/empty/empty.vue2.cjs +1 -1
  162. package/lib/components/exception/exception.vue2.cjs +1 -1
  163. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  164. package/lib/components/form/form-item.vue2.cjs +1 -1
  165. package/lib/components/form/form.vue2.cjs +1 -1
  166. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  167. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  168. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  169. package/lib/components/icon/icon.vue2.cjs +1 -1
  170. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  171. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  172. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  173. package/lib/components/image/image.vue2.cjs +1 -1
  174. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  175. package/lib/components/index.cjs +1 -1
  176. package/lib/components/input/input.vue2.cjs +1 -1
  177. package/lib/components/link/link.vue2.cjs +1 -1
  178. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  179. package/lib/components/logo/logo.vue2.cjs +1 -1
  180. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  181. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  182. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  183. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  184. package/lib/components/menu/menu.vue2.cjs +1 -1
  185. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  186. package/lib/components/message/message.vue2.cjs +1 -1
  187. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  188. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  189. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  190. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  191. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  192. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  193. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  194. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  195. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  196. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  197. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  198. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  199. package/lib/components/popover/popover.vue2.cjs +1 -1
  200. package/lib/components/popper/arrow.vue2.cjs +1 -1
  201. package/lib/components/popper/content.vue2.cjs +1 -1
  202. package/lib/components/popper/trigger.vue2.cjs +1 -1
  203. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  204. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  205. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  206. package/lib/components/radio/radio.vue2.cjs +1 -1
  207. package/lib/components/result/result.vue2.cjs +1 -1
  208. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  209. package/lib/components/row/row.vue2.cjs +1 -1
  210. package/lib/components/scrollbar/bar.vue2.cjs +1 -1
  211. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  212. package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
  213. package/lib/components/search/search.vue2.cjs +1 -1
  214. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  215. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  216. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  217. package/lib/components/switch/switch.vue2.cjs +1 -1
  218. package/lib/components/table/index.cjs +1 -1
  219. package/lib/components/table/table.vue2.cjs +1 -1
  220. package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
  221. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  222. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  223. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  224. package/lib/components/tag/tag.vue2.cjs +1 -1
  225. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  226. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  227. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  228. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  229. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  230. package/lib/components/tooltip/constants.cjs +1 -1
  231. package/lib/components/tooltip/content.vue2.cjs +1 -1
  232. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  233. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  234. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  235. package/lib/index.cjs +1 -1
  236. package/lib/package.json.cjs +1 -1
  237. package/package.json +5 -5
  238. package/tags.json +1 -1
  239. package/web-types.json +1 -1
  240. package/theme-style/vft-back-top.css +0 -1
@@ -1,207 +1,207 @@
1
- import { defineComponent as Te, useAttrs as Le, useSlots as Oe, computed as l, getCurrentInstance as je, shallowRef as q, ref as E, watch as G, nextTick as V, onMounted as We, withDirectives as He, openBlock as i, createElementBlock as d, mergeProps as h, unref as t, Fragment as J, normalizeClass as c, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as B, withKeys as Ue, withModifiers as qe, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
1
+ import { defineComponent as Te, useAttrs as Le, useSlots as Oe, computed as l, getCurrentInstance as je, shallowRef as q, ref as E, watch as G, nextTick as V, onMounted as We, withDirectives as He, openBlock as i, createElementBlock as d, mergeProps as y, Fragment as J, normalizeClass as c, unref as t, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as B, withKeys as Ue, withModifiers as qe, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
2
2
  import "../form/index.js";
3
3
  import { VftIcon as F } from "../icon/index.js";
4
- import { useNamespace as he } from "../../hooks/use-namespace/index.js";
4
+ import { useNamespace as ye } from "../../hooks/use-namespace/index.js";
5
5
  import { useCursor as Qe } from "../../hooks/use-cursor/index.js";
6
6
  import "@popperjs/core";
7
7
  import { isNil as Xe } from "lodash";
8
8
  import "../../hooks/use-z-index/index.js";
9
9
  import { useResizeObserver as Ye, isClient as Ze } from "@vueuse/core";
10
- import { isString as A, singleAttrToObj as Q, noop as _e, isObject as xe } from "@vft/utils";
10
+ import { isString as A, singleAttrToObj as Q, noop as _e, isObject as he } from "@vft/utils";
11
11
  import { debugWarn as X } from "../../utils/error.js";
12
12
  import "../../utils/ns-cover.js";
13
13
  import { UPDATE_MODEL_EVENT as Y } from "@vft/constants";
14
- import { useAttrs as et } from "@vft/use";
15
- import { calcTextareaHeight as pe } from "./utils.js";
16
- import { useFormItem as tt, useFormItemInputId as nt } from "../form/hooks/use-form-item.js";
17
- import { useFormSize as at, useFormDisabled as ot } from "../form/hooks/use-form-common-props.js";
18
- const lt = ["role"], st = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], it = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], St = /* @__PURE__ */ Te({
14
+ import { useAttrs as ea } from "@vft/use";
15
+ import { calcTextareaHeight as be } from "./utils.js";
16
+ import { useFormItem as aa, useFormItemInputId as ta } from "../form/hooks/use-form-item.js";
17
+ import { useFormSize as oa, useFormDisabled as na } from "../form/hooks/use-form-common-props.js";
18
+ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], ia = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], Sa = /* @__PURE__ */ Te({
19
19
  __name: "input",
20
20
  props: {
21
- id: null,
21
+ id: {},
22
22
  size: { default: "" },
23
23
  disabled: { type: Boolean },
24
- modelValue: null,
24
+ modelValue: {},
25
25
  type: { default: "text" },
26
- resize: null,
26
+ resize: {},
27
27
  autosize: { type: [Object, Boolean], default: !1 },
28
28
  autocomplete: { default: "off" },
29
- formatter: { type: Function },
30
- parser: { type: Function },
31
- placeholder: null,
32
- form: null,
29
+ formatter: {},
30
+ parser: {},
31
+ placeholder: {},
32
+ form: {},
33
33
  readonly: { type: Boolean },
34
34
  clearable: { type: Boolean },
35
35
  showPassword: { type: Boolean },
36
36
  showWordLimit: { type: Boolean },
37
- suffixIcon: null,
38
- prefixIcon: null,
39
- clearIcon: null,
40
- containerRole: null,
41
- label: null,
37
+ suffixIcon: {},
38
+ prefixIcon: {},
39
+ clearIcon: {},
40
+ containerRole: {},
41
+ label: {},
42
42
  tabindex: { default: 0 },
43
43
  validateEvent: { type: Boolean, default: !0 },
44
- inputStyle: null
44
+ inputStyle: {}
45
45
  },
46
46
  emits: {
47
- [Y]: (e) => A(e),
48
- input: (e) => A(e),
49
- change: (e) => A(e),
50
- suffixClick: (e) => A(e),
51
- prefixClick: (e) => A(e),
52
- focus: (e) => e instanceof FocusEvent,
53
- blur: (e) => e instanceof FocusEvent,
47
+ [Y]: (a) => A(a),
48
+ input: (a) => A(a),
49
+ change: (a) => A(a),
50
+ suffixClick: (a) => A(a),
51
+ prefixClick: (a) => A(a),
52
+ focus: (a) => a instanceof FocusEvent,
53
+ blur: (a) => a instanceof FocusEvent,
54
54
  clear: () => !0,
55
55
  enter: () => !0,
56
- mouseleave: (e) => e instanceof MouseEvent,
57
- mouseenter: (e) => e instanceof MouseEvent,
56
+ mouseleave: (a) => a instanceof MouseEvent,
57
+ mouseenter: (a) => a instanceof MouseEvent,
58
58
  // NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent
59
- keydown: (e) => e instanceof Event,
60
- compositionstart: (e) => e instanceof CompositionEvent,
61
- compositionupdate: (e) => e instanceof CompositionEvent,
62
- compositionend: (e) => e instanceof CompositionEvent
59
+ keydown: (a) => a instanceof Event,
60
+ compositionstart: (a) => a instanceof CompositionEvent,
61
+ compositionupdate: (a) => a instanceof CompositionEvent,
62
+ compositionend: (a) => a instanceof CompositionEvent
63
63
  },
64
- setup(e, { expose: be, emit: s }) {
65
- const C = Le(), y = Oe(), Z = l(() => {
66
- const n = {};
67
- return e.containerRole === "combobox" && (n["aria-haspopup"] = C["aria-haspopup"], n["aria-owns"] = C["aria-owns"], n["aria-expanded"] = C["aria-expanded"]), n;
68
- }), we = l(() => [
69
- e.type === "textarea" ? ee.b() : a.b(),
70
- a.m(ke.value),
71
- a.is("disabled", x.value),
72
- a.is("exceed", Ee.value),
73
- a.is("focus", b.value),
64
+ setup(a, { expose: we, emit: s }) {
65
+ const C = Le(), m = Oe(), Z = l(() => {
66
+ const e = {};
67
+ return a.containerRole === "combobox" && (e["aria-haspopup"] = C["aria-haspopup"], e["aria-owns"] = C["aria-owns"], e["aria-expanded"] = C["aria-expanded"]), e;
68
+ }), xe = l(() => [
69
+ a.type === "textarea" ? ee.b() : o.b(),
70
+ o.m(ke.value),
71
+ o.is("disabled", h.value),
72
+ o.is("exceed", Ee.value),
73
+ o.is("focus", w.value),
74
74
  {
75
- [a.b("group")]: y.prepend || y.append,
76
- [a.bm("group", "append")]: y.append,
77
- [a.bm("group", "prepend")]: y.prepend,
78
- [a.m("prefix")]: y.prefix || e.prefixIcon,
79
- [a.m("suffix")]: y.suffix || e.suffixIcon || e.clearable || e.showPassword,
80
- [a.bm("suffix", "password-clear")]: R.value && W.value
75
+ [o.b("group")]: m.prepend || m.append,
76
+ [o.bm("group", "append")]: m.append,
77
+ [o.bm("group", "prepend")]: m.prepend,
78
+ [o.m("prefix")]: m.prefix || a.prefixIcon,
79
+ [o.m("suffix")]: m.suffix || a.suffixIcon || a.clearable || a.showPassword,
80
+ [o.bm("suffix", "password-clear")]: R.value && W.value
81
81
  },
82
82
  C.class
83
- ]), ge = je(), Ce = l(() => [a.e("wrapper"), a.is("focus", b.value)]), f = et({
83
+ ]), ge = je(), Ce = l(() => [o.e("wrapper"), o.is("focus", w.value)]), f = ea({
84
84
  excludeKeys: l(() => Object.keys(Z.value))
85
- }), { form: T, formItem: u } = tt(), { inputId: _ } = nt(ge.props, {
85
+ }), { form: T, formItem: u } = aa(), { inputId: _ } = ta(ge.props, {
86
86
  formItemContext: u
87
- }), ke = at(), x = ot(), a = he("input"), ee = he("textarea"), K = q(), p = q(), b = E(!1), L = E(!1), k = E(!1), M = E(!1), te = E(), O = q(e.inputStyle), z = l(() => K.value || p.value), j = l(() => Q(e.prefixIcon, "icon", { size: 16 })), ne = l(() => Q(e.suffixIcon, "icon", { size: 16 })), ze = l(() => Q(e.clearIcon, "icon", { icon: "ico-ep:circle-close", size: 16 })), ae = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), P = l(() => (u == null ? void 0 : u.validateState) || ""), oe = l(() => P.value && "vico-user"), Ie = l(
87
+ }), ke = oa(), h = na(), o = ye("input"), ee = ye("textarea"), K = q(), b = q(), w = E(!1), L = E(!1), k = E(!1), M = E(!1), ae = E(), O = q(a.inputStyle), z = l(() => K.value || b.value), j = l(() => Q(a.prefixIcon, "icon", { size: 16 })), te = l(() => Q(a.suffixIcon, "icon", { size: 16 })), ze = l(() => Q(a.clearIcon, "icon", { icon: "ico-ep:circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), P = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(() => P.value && "vico-user"), Ie = l(
88
88
  () => M.value ? { icon: "ico-ep:view", size: 16 } : { icon: "ico-ep:hide", size: 16 }
89
- ), Se = l(() => [C.style, e.inputStyle]), le = l(
90
- () => [e.inputStyle, O.value, { resize: e.resize }]
91
- ), m = l(() => Xe(e.modelValue) ? "" : String(e.modelValue)), R = l(
92
- () => e.clearable && !x.value && !e.readonly && !!m.value && (b.value || L.value)
89
+ ), Se = l(() => [C.style, a.inputStyle]), le = l(
90
+ () => [a.inputStyle, O.value, { resize: a.resize }]
91
+ ), p = l(() => Xe(a.modelValue) ? "" : String(a.modelValue)), R = l(
92
+ () => a.clearable && !h.value && !a.readonly && !!p.value && (w.value || L.value)
93
93
  ), W = l(
94
- () => e.showPassword && !x.value && !e.readonly && !!m.value && (!!m.value || b.value)
95
- ), w = l(
96
- () => e.showWordLimit && !!f.value.maxlength && (e.type === "text" || e.type === "textarea") && !x.value && !e.readonly && !e.showPassword
97
- ), H = l(() => Array.from(m.value).length), Ee = l(
94
+ () => a.showPassword && !h.value && !a.readonly && !!p.value && (!!p.value || w.value)
95
+ ), x = l(
96
+ () => a.showWordLimit && !!f.value.maxlength && (a.type === "text" || a.type === "textarea") && !h.value && !a.readonly && !a.showPassword
97
+ ), H = l(() => Array.from(p.value).length), Ee = l(
98
98
  () => (
99
99
  // show exceed style if length of initial value greater then maxlength
100
- !!w.value && H.value > Number(f.value.maxlength)
100
+ !!x.value && H.value > Number(f.value.maxlength)
101
101
  )
102
102
  ), Ve = l(
103
- () => !!y.suffix || !!e.suffixIcon || R.value || e.showPassword || w.value || !!P.value && ae.value
103
+ () => !!m.suffix || !!a.suffixIcon || R.value || a.showPassword || x.value || !!P.value && oe.value
104
104
  ), [Be, Fe] = Qe(K);
105
- Ye(p, (n) => {
106
- if (!w.value || e.resize !== "both")
105
+ Ye(b, (e) => {
106
+ if (!x.value || a.resize !== "both")
107
107
  return;
108
- const o = n[0], { width: v } = o.contentRect;
109
- te.value = {
108
+ const n = e[0], { width: v } = n.contentRect;
109
+ ae.value = {
110
110
  /** right: 100% - width + padding(15) + right(6) */
111
111
  right: `calc(100% - ${v + 15 + 6}px)`
112
112
  };
113
113
  });
114
114
  const $ = () => {
115
- if (!(!Ze || e.type !== "textarea"))
116
- if (e.autosize) {
117
- const n = xe(e.autosize) ? e.autosize.minRows : void 0, o = xe(e.autosize) ? e.autosize.maxRows : void 0;
115
+ if (!(!Ze || a.type !== "textarea"))
116
+ if (a.autosize) {
117
+ const e = he(a.autosize) ? a.autosize.minRows : void 0, n = he(a.autosize) ? a.autosize.maxRows : void 0;
118
118
  O.value = {
119
- ...pe(p.value, n, o)
119
+ ...be(b.value, e, n)
120
120
  };
121
121
  } else
122
122
  O.value = {
123
- minHeight: pe(p.value).minHeight
123
+ minHeight: be(b.value).minHeight
124
124
  };
125
125
  }, I = () => {
126
- const n = z.value;
127
- !n || n.value === m.value || (n.value = m.value);
128
- }, U = async (n) => {
126
+ const e = z.value;
127
+ !e || e.value === p.value || (e.value = p.value);
128
+ }, U = async (e) => {
129
129
  Be();
130
- let { value: o } = n.target;
131
- if (f.value.maxlength && o.length >= f.value.maxlength && (o = o.slice(0, Number(f.value.maxlength))), e.formatter && (o = e.parser ? e.parser(o) : o, o = e.formatter(o)), !k.value) {
132
- if (o === m.value) {
130
+ let { value: n } = e.target;
131
+ if (f.value.maxlength && n.length >= f.value.maxlength && (n = n.slice(0, Number(f.value.maxlength))), a.formatter && (n = a.parser ? a.parser(n) : n, n = a.formatter(n)), !k.value) {
132
+ if (n === p.value) {
133
133
  I();
134
134
  return;
135
135
  }
136
- s(Y, o), s("input", o), await V(), I(), Fe();
136
+ s(Y, n), s("input", n), await V(), I(), Fe();
137
137
  }
138
- }, se = (n) => {
139
- s("change", n.target.value);
138
+ }, se = (e) => {
139
+ s("change", e.target.value);
140
140
  }, Ae = () => {
141
- s("suffixClick", e.modelValue);
141
+ s("suffixClick", a.modelValue);
142
142
  }, Ke = () => {
143
- console.log(333), s("prefixClick", e.modelValue);
144
- }, ie = (n) => {
145
- s("compositionstart", n), k.value = !0;
146
- }, Me = (n) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(n), ue = (n) => {
143
+ console.log(333), s("prefixClick", a.modelValue);
144
+ }, ie = (e) => {
145
+ s("compositionstart", e), k.value = !0;
146
+ }, Me = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), ue = (e) => {
147
147
  var S;
148
- s("compositionupdate", n);
149
- const o = (S = n.target) == null ? void 0 : S.value, v = o[o.length - 1] || "";
148
+ s("compositionupdate", e);
149
+ const n = (S = e.target) == null ? void 0 : S.value, v = n[n.length - 1] || "";
150
150
  k.value = !Me(v);
151
- }, re = (n) => {
152
- s("compositionend", n), k.value && (k.value = !1, U(n));
151
+ }, re = (e) => {
152
+ s("compositionend", e), k.value && (k.value = !1, U(e));
153
153
  }, Pe = () => {
154
154
  M.value = !M.value, ce();
155
155
  }, ce = async () => {
156
- var n;
157
- await V(), (n = z.value) == null || n.focus();
156
+ var e;
157
+ await V(), (e = z.value) == null || e.focus();
158
158
  }, Re = () => {
159
+ var e;
160
+ return (e = z.value) == null ? void 0 : e.blur();
161
+ }, de = (e) => {
162
+ w.value = !0, s("focus", e);
163
+ }, fe = (e) => {
159
164
  var n;
160
- return (n = z.value) == null ? void 0 : n.blur();
161
- }, de = (n) => {
162
- b.value = !0, s("focus", n);
163
- }, fe = (n) => {
164
- var o;
165
- b.value = !1, s("blur", n), e.validateEvent && ((o = u == null ? void 0 : u.validate) == null || o.call(u, "blur").catch((v) => X(v)));
166
- }, $e = (n) => {
167
- L.value = !1, s("mouseleave", n);
168
- }, Ne = (n) => {
169
- L.value = !0, s("mouseenter", n);
170
- }, ve = (n) => {
171
- let o = n.key;
172
- if (n.target.type === "number" && ["e", "+", "-0", "E"].includes(o))
173
- return n.returnValue = !1, !1;
174
- s("keydown", n);
165
+ w.value = !1, s("blur", e), a.validateEvent && ((n = u == null ? void 0 : u.validate) == null || n.call(u, "blur").catch((v) => X(v)));
166
+ }, $e = (e) => {
167
+ L.value = !1, s("mouseleave", e);
168
+ }, Ne = (e) => {
169
+ L.value = !0, s("mouseenter", e);
170
+ }, ve = (e) => {
171
+ let n = e.key;
172
+ if (e.target.type === "number" && ["e", "+", "-0", "E"].includes(n))
173
+ return e.returnValue = !1, !1;
174
+ s("keydown", e);
175
175
  }, De = () => {
176
- var n;
177
- (n = z.value) == null || n.select();
178
- }, me = () => {
176
+ var e;
177
+ (e = z.value) == null || e.select();
178
+ }, pe = () => {
179
179
  s(Y, ""), s("change", ""), s("clear"), s("input", "");
180
180
  };
181
181
  return G(
182
- () => e.modelValue,
182
+ () => a.modelValue,
183
183
  () => {
184
- var n;
185
- V(() => $()), e.validateEvent && ((n = u == null ? void 0 : u.validate) == null || n.call(u, "change").catch((o) => X(o)));
184
+ var e;
185
+ V(() => $()), a.validateEvent && ((e = u == null ? void 0 : u.validate) == null || e.call(u, "change").catch((n) => X(n)));
186
186
  }
187
- ), G(m, () => I()), G(
188
- () => e.type,
187
+ ), G(p, () => I()), G(
188
+ () => a.type,
189
189
  async () => {
190
190
  await V(), I(), $();
191
191
  }
192
192
  ), We(() => {
193
- !e.formatter && e.parser && X("VftInput", "If you set the parser, you also need to set the formatter."), I(), V($);
194
- }), be({
193
+ !a.formatter && a.parser && X("VftInput", "If you set the parser, you also need to set the formatter."), I(), V($);
194
+ }), we({
195
195
  /** @description HTML input element */
196
196
  input: K,
197
197
  /** @description HTML textarea element */
198
- textarea: p,
198
+ textarea: b,
199
199
  /** @description HTML element, input or textarea */
200
200
  ref: z,
201
201
  /** @description style of textarea. */
202
202
  textareaStyle: le,
203
203
  /** @description from props (used on unit test) */
204
- autosize: e.autosize,
204
+ autosize: a.autosize,
205
205
  /** @description HTML input element native method */
206
206
  focus: ce,
207
207
  /** @description HTML input element native method */
@@ -209,53 +209,53 @@ const lt = ["role"], st = ["id", "type", "disabled", "formatter", "parser", "rea
209
209
  /** @description HTML input element native method */
210
210
  select: De,
211
211
  /** @description clear input value */
212
- clear: me,
212
+ clear: pe,
213
213
  /** @description resize textarea. */
214
214
  resizeTextarea: $
215
- }), (n, o) => {
216
- var v, S, ye;
217
- return He((i(), d("div", h(t(Z), {
218
- class: t(we),
219
- style: t(Se),
215
+ }), (e, n) => {
216
+ var v, S, me;
217
+ return He((i(), d("div", y(Z.value, {
218
+ class: xe.value,
219
+ style: Se.value,
220
220
  role: e.containerRole,
221
221
  onMouseenter: Ne,
222
222
  onMouseleave: $e
223
223
  }), [
224
224
  e.type !== "textarea" ? (i(), d(J, { key: 0 }, [
225
- n.$slots.prepend ? (i(), d("div", {
225
+ e.$slots.prepend ? (i(), d("div", {
226
226
  key: 0,
227
- class: c(t(a).be("group", "prepend"))
227
+ class: c(t(o).be("group", "prepend"))
228
228
  }, [
229
- N(n.$slots, "prepend")
229
+ N(e.$slots, "prepend")
230
230
  ], 2)) : r("", !0),
231
231
  g("div", {
232
- class: c(t(Ce))
232
+ class: c(Ce.value)
233
233
  }, [
234
- n.$slots.prefix || (v = t(j)) != null && v.icon ? (i(), d("span", {
234
+ e.$slots.prefix || (v = j.value) != null && v.icon ? (i(), d("span", {
235
235
  key: 0,
236
- class: c(t(a).e("prefix"))
236
+ class: c(t(o).e("prefix"))
237
237
  }, [
238
238
  g("span", {
239
- class: c(t(a).e("prefix-inner")),
239
+ class: c(t(o).e("prefix-inner")),
240
240
  onClick: Ke
241
241
  }, [
242
- N(n.$slots, "prefix"),
243
- (S = t(j)) != null && S.icon ? (i(), B(t(F), h({
242
+ N(e.$slots, "prefix"),
243
+ (S = j.value) != null && S.icon ? (i(), B(t(F), y({
244
244
  key: 0,
245
245
  pointer: ""
246
- }, t(j), {
247
- class: t(a).e("icon")
246
+ }, j.value, {
247
+ class: t(o).e("icon")
248
248
  }), null, 16, ["class"])) : r("", !0)
249
249
  ], 2)
250
250
  ], 2)) : r("", !0),
251
- g("input", h({
251
+ g("input", y({
252
252
  id: t(_),
253
253
  ref_key: "input",
254
254
  ref: K,
255
- class: t(a).e("inner")
255
+ class: t(o).e("inner")
256
256
  }, t(f), {
257
257
  type: e.showPassword ? M.value ? "text" : "password" : e.type,
258
- disabled: t(x),
258
+ disabled: t(h),
259
259
  formatter: e.formatter,
260
260
  parser: e.parser,
261
261
  readonly: e.readonly,
@@ -273,68 +273,68 @@ const lt = ["role"], st = ["id", "type", "disabled", "formatter", "parser", "rea
273
273
  onBlur: fe,
274
274
  onChange: se,
275
275
  onKeydown: ve,
276
- onKeyup: o[0] || (o[0] = Ue((ut) => s("enter"), ["enter"]))
277
- }), null, 16, st),
278
- t(Ve) ? (i(), d("span", {
276
+ onKeyup: n[0] || (n[0] = Ue((ua) => s("enter"), ["enter"]))
277
+ }), null, 16, sa),
278
+ Ve.value ? (i(), d("span", {
279
279
  key: 1,
280
- class: c(t(a).e("suffix"))
280
+ class: c(t(o).e("suffix"))
281
281
  }, [
282
282
  g("span", {
283
- class: c(t(a).e("suffix-inner")),
283
+ class: c(t(o).e("suffix-inner")),
284
284
  onClick: Ae
285
285
  }, [
286
- !t(R) || !t(W) || !t(w) ? (i(), d(J, { key: 0 }, [
287
- N(n.$slots, "suffix"),
288
- (ye = t(ne)) != null && ye.icon ? (i(), B(t(F), h({ key: 0 }, t(ne), {
289
- class: t(a).e("icon")
286
+ !R.value || !W.value || !x.value ? (i(), d(J, { key: 0 }, [
287
+ N(e.$slots, "suffix"),
288
+ (me = te.value) != null && me.icon ? (i(), B(t(F), y({ key: 0 }, te.value, {
289
+ class: t(o).e("icon")
290
290
  }), null, 16, ["class"])) : r("", !0)
291
291
  ], 64)) : r("", !0),
292
- t(R) ? (i(), B(t(F), h({
292
+ R.value ? (i(), B(t(F), y({
293
293
  key: 1,
294
294
  pointer: "",
295
- class: [t(a).e("icon"), t(a).e("clear")]
296
- }, t(ze), {
295
+ class: [t(o).e("icon"), t(o).e("clear")]
296
+ }, ze.value, {
297
297
  onMousedown: qe(t(_e), ["prevent"]),
298
- onClick: me
298
+ onClick: pe
299
299
  }), null, 16, ["class", "onMousedown"])) : r("", !0),
300
- t(W) ? (i(), B(t(F), h({ key: 2 }, t(Ie), {
301
- class: [t(a).e("icon"), t(a).e("password")],
300
+ W.value ? (i(), B(t(F), y({ key: 2 }, Ie.value, {
301
+ class: [t(o).e("icon"), t(o).e("password")],
302
302
  onClick: Pe
303
303
  }), null, 16, ["class"])) : r("", !0),
304
- t(w) ? (i(), d("span", {
304
+ x.value ? (i(), d("span", {
305
305
  key: 3,
306
- class: c(t(a).e("count"))
306
+ class: c(t(o).e("count"))
307
307
  }, [
308
308
  g("span", {
309
- class: c(t(a).e("count-inner"))
310
- }, D(t(H)) + " / " + D(t(f).maxlength), 3)
309
+ class: c(t(o).e("count-inner"))
310
+ }, D(H.value) + " / " + D(t(f).maxlength), 3)
311
311
  ], 2)) : r("", !0),
312
- t(P) && t(oe) && t(ae) ? (i(), B(t(F), {
312
+ P.value && ne.value && oe.value ? (i(), B(t(F), {
313
313
  key: 4,
314
- icon: t(oe),
315
- class: c([t(a).e("icon"), t(a).e("validateIcon"), t(a).is("loading", t(P) === "validating")])
314
+ icon: ne.value,
315
+ class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading", P.value === "validating")])
316
316
  }, null, 8, ["icon", "class"])) : r("", !0)
317
317
  ], 2)
318
318
  ], 2)) : r("", !0)
319
319
  ], 2),
320
- n.$slots.append ? (i(), d("div", {
320
+ e.$slots.append ? (i(), d("div", {
321
321
  key: 1,
322
- class: c(t(a).be("group", "append"))
322
+ class: c(t(o).be("group", "append"))
323
323
  }, [
324
- N(n.$slots, "append")
324
+ N(e.$slots, "append")
325
325
  ], 2)) : r("", !0)
326
326
  ], 64)) : (i(), d(J, { key: 1 }, [
327
- g("textarea", h({
327
+ g("textarea", y({
328
328
  id: t(_),
329
329
  ref_key: "textarea",
330
- ref: p,
330
+ ref: b,
331
331
  class: t(ee).e("inner")
332
332
  }, t(f), {
333
333
  tabindex: e.tabindex,
334
- disabled: t(x),
334
+ disabled: t(h),
335
335
  readonly: e.readonly,
336
336
  autocomplete: e.autocomplete,
337
- style: t(le),
337
+ style: le.value,
338
338
  "aria-label": e.label,
339
339
  placeholder: e.placeholder,
340
340
  form: e.form,
@@ -346,19 +346,19 @@ const lt = ["role"], st = ["id", "type", "disabled", "formatter", "parser", "rea
346
346
  onBlur: fe,
347
347
  onChange: se,
348
348
  onKeydown: ve
349
- }), null, 16, it),
350
- t(w) ? (i(), d("span", {
349
+ }), null, 16, ia),
350
+ x.value ? (i(), d("span", {
351
351
  key: 0,
352
- style: Ge(te.value),
353
- class: c(t(a).e("count"))
354
- }, D(t(H)) + " / " + D(t(f).maxlength), 7)) : r("", !0)
352
+ style: Ge(ae.value),
353
+ class: c(t(o).e("count"))
354
+ }, D(H.value) + " / " + D(t(f).maxlength), 7)) : r("", !0)
355
355
  ], 64))
356
- ], 16, lt)), [
356
+ ], 16, la)), [
357
357
  [Je, e.type !== "hidden"]
358
358
  ]);
359
359
  };
360
360
  }
361
361
  });
362
362
  export {
363
- St as default
363
+ Sa as default
364
364
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, getCurrentInstance as k, computed as b, openBlock as l, createElementBlock as a, normalizeClass as c, unref as t, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as s, renderSlot as B } from "vue";
1
+ import { defineComponent as u, getCurrentInstance as k, computed as b, openBlock as r, createElementBlock as a, normalizeClass as s, unref as o, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as c, renderSlot as B } from "vue";
2
2
  import { singleAttrToObj as P } from "@vft/utils";
3
3
  import { VftIcon as R } from "../icon/index.js";
4
4
  import { useNamespace as $ } from "../../hooks/use-namespace/index.js";
@@ -8,50 +8,50 @@ import "../../hooks/use-z-index/index.js";
8
8
  import "@vueuse/core";
9
9
  import "../../utils/ns-cover.js";
10
10
  import { useRouterHelper as h } from "@vft/router";
11
- const n = (
11
+ const t = (
12
12
  /* hoist-static*/
13
13
  $("link")
14
- ), z = u({
15
- name: n.b()
16
- }), v = /* @__PURE__ */ u({
17
- ...z,
14
+ ), v = u({
15
+ name: t.b()
16
+ }), w = /* @__PURE__ */ u({
17
+ ...v,
18
18
  props: {
19
19
  type: { default: "default" },
20
20
  underline: { type: Boolean, default: !0 },
21
21
  disabled: { type: Boolean, default: !1 },
22
- route: null,
22
+ route: {},
23
23
  isReplace: { type: Boolean },
24
- icon: null
24
+ icon: {}
25
25
  },
26
26
  emits: ["click"],
27
- setup(e, { emit: m }) {
28
- const d = k().appContext.config.globalProperties.$router, { go: f } = h(d);
29
- function p(o) {
30
- e.route && f(e.route, e.isReplace), e.disabled || m("click", o);
27
+ setup(n, { emit: m }) {
28
+ const d = k().appContext.config.globalProperties.$router, { go: p } = h(d);
29
+ function f(e) {
30
+ n.route && p(n.route, n.isReplace), n.disabled || m("click", e);
31
31
  }
32
- const r = b(() => P(e.icon, "icon"));
33
- return (o, N) => {
32
+ const l = b(() => P(n.icon, "icon"));
33
+ return (e, I) => {
34
34
  var i;
35
- return l(), a("span", {
36
- class: c([
37
- t(n).b(),
38
- t(n).m(e.type),
39
- t(n).is("disabled", e.disabled),
40
- t(n).is("underline", e.underline && !e.disabled)
35
+ return r(), a("span", {
36
+ class: s([
37
+ o(t).b(),
38
+ o(t).m(e.type),
39
+ o(t).is("disabled", e.disabled),
40
+ o(t).is("underline", e.underline && !e.disabled)
41
41
  ]),
42
- onClick: p
42
+ onClick: f
43
43
  }, [
44
- (i = t(r)) != null && i.icon ? (l(), y(t(R), C(g({ key: 0 }, t(r))), null, 16)) : s("", !0),
45
- o.$slots.default ? (l(), a("span", {
44
+ (i = l.value) != null && i.icon ? (r(), y(o(R), C(g({ key: 0 }, l.value)), null, 16)) : c("", !0),
45
+ e.$slots.default ? (r(), a("span", {
46
46
  key: 1,
47
- class: c(t(n).e("inner"))
47
+ class: s(o(t).e("inner"))
48
48
  }, [
49
- B(o.$slots, "default")
50
- ], 2)) : s("", !0)
49
+ B(e.$slots, "default")
50
+ ], 2)) : c("", !0)
51
51
  ], 2);
52
52
  };
53
53
  }
54
54
  });
55
55
  export {
56
- v as default
56
+ w as default
57
57
  };