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,8 +1,8 @@
1
- import { defineComponent as G, ref as d, reactive as ne, computed as k, onMounted as ie, watch as g, nextTick as y, provide as se, openBlock as f, createBlock as C, unref as e, withCtx as V, withDirectives as L, createElementBlock as H, createElementVNode as p, normalizeClass as t, createVNode as v, createCommentVNode as E, withKeys as M, createTextVNode as O, normalizeStyle as ce, vShow as ue } from "vue";
2
- import { debounce as de } from "lodash";
3
- import { VftButton as R } from "../button/index.js";
4
- import { VftIcon as U } from "../icon/index.js";
5
- import { ClickOutside as pe } from "@vft/directives";
1
+ import { defineComponent as U, ref as c, reactive as ne, computed as h, onMounted as ie, watch as w, nextTick as g, provide as se, openBlock as m, createBlock as y, unref as o, withCtx as C, withDirectives as D, createElementBlock as x, createElementVNode as p, normalizeClass as t, createVNode as f, createCommentVNode as V, withKeys as L, createTextVNode as H, normalizeStyle as ue, vShow as ce } from "vue";
2
+ import { debounce as pe } from "lodash";
3
+ import { VftButton as M } from "../button/index.js";
4
+ import { VftIcon as O } from "../icon/index.js";
5
+ import { ClickOutside as de } from "@vft/directives";
6
6
  import { VftTooltip as me } from "../tooltip/index.js";
7
7
  import { VftInput as fe } from "../input/index.js";
8
8
  import "../form/index.js";
@@ -11,114 +11,114 @@ import "@popperjs/core";
11
11
  import "../../hooks/use-z-index/index.js";
12
12
  import "@vueuse/core";
13
13
  import "@vft/utils";
14
- import { debugWarn as _ } from "../../utils/error.js";
15
- import { UPDATE_MODEL_EVENT as $, CHANGE_EVENT as be } from "../../constants/event.js";
14
+ import { debugWarn as R } from "../../utils/error.js";
15
+ import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as be } from "../../constants/event.js";
16
16
  import "../../utils/ns-cover.js";
17
17
  import he from "./components/alpha-slider.vue2.js";
18
18
  import { colorPickerContextKey as ke } from "./contants.js";
19
19
  import we from "./components/hue-slider.vue.js";
20
20
  import ge from "./components/predefine.vue.js";
21
21
  import ye from "./components/sv-panel.vue.js";
22
- import z from "./utils/color.js";
22
+ import $ from "./utils/color.js";
23
23
  import { useFormItem as Ce, useFormItemInputId as Ve } from "../form/hooks/use-form-item.js";
24
24
  import { useFormSize as Ee, useFormDisabled as Ae } from "../form/hooks/use-form-common-props.js";
25
- const xe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex", "onKeydown"], Se = G({
25
+ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex", "onKeydown"], _e = U({
26
26
  name: "VftColorPicker"
27
- }), Ye = /* @__PURE__ */ G({
28
- ...Se,
27
+ }), Ye = /* @__PURE__ */ U({
28
+ ..._e,
29
29
  props: {
30
- modelValue: null,
31
- id: null,
30
+ modelValue: {},
31
+ id: {},
32
32
  showAlpha: { type: Boolean },
33
- colorFormat: null,
33
+ colorFormat: {},
34
34
  disabled: { type: Boolean },
35
- size: null,
36
- popperClass: null,
37
- label: null,
35
+ size: {},
36
+ popperClass: {},
37
+ label: {},
38
38
  tabindex: { default: 0 },
39
- predefine: null,
39
+ predefine: {},
40
40
  validateEvent: { type: Boolean, default: !0 }
41
41
  },
42
- emits: [$, be, "activeChange", "click-outside"],
43
- setup(i, { expose: W, emit: m }) {
44
- const a = i, o = ve("color"), { formItem: s } = Ce(), j = Ee(), A = Ae(), { inputId: q, isLabeledByFormItem: B } = Ve(a, {
45
- formItemContext: s
46
- }), F = d(), J = d(), N = d(), Q = d();
47
- let x = !0;
42
+ emits: [P, be, "activeChange", "click-outside"],
43
+ setup(G, { expose: W, emit: d }) {
44
+ const a = G, l = ve("color"), { formItem: i } = Ce(), j = Ee(), E = Ae(), { inputId: q, isLabeledByFormItem: z } = Ve(a, {
45
+ formItemContext: i
46
+ }), B = c(), J = c(), F = c(), Q = c();
47
+ let A = !0;
48
48
  const r = ne(
49
- new z({
49
+ new $({
50
50
  enableAlpha: a.showAlpha,
51
51
  format: a.colorFormat || "",
52
52
  value: a.modelValue
53
53
  })
54
- ), b = d(!1), c = d(!1), h = d(""), X = k(() => !a.modelValue && !c.value ? "transparent" : le(r, a.showAlpha)), S = k(() => !a.modelValue && !c.value ? "" : r.value), Y = k(() => B.value ? void 0 : a.label || "色彩选择器"), Z = k(() => B.value ? s == null ? void 0 : s.labelId : void 0), ee = k(() => [
55
- o.b("picker"),
56
- o.is("disabled", A.value),
57
- o.bm("picker", j.value)
54
+ ), v = c(!1), s = c(!1), b = c(""), X = h(() => !a.modelValue && !s.value ? "transparent" : oe(r, a.showAlpha)), S = h(() => !a.modelValue && !s.value ? "" : r.value), Y = h(() => z.value ? void 0 : a.label || "色彩选择器"), Z = h(() => z.value ? i == null ? void 0 : i.labelId : void 0), ee = h(() => [
55
+ l.b("picker"),
56
+ l.is("disabled", E.value),
57
+ l.bm("picker", j.value)
58
58
  ]);
59
- function le(l, n) {
60
- if (!(l instanceof z))
59
+ function oe(e, n) {
60
+ if (!(e instanceof $))
61
61
  throw new TypeError("color should be instance of _color Class");
62
- const { r: u, g: K, b: D } = l.toRgb();
63
- return n ? `rgba(${u}, ${K}, ${D}, ${l.get("alpha") / 100})` : `rgb(${u}, ${K}, ${D})`;
62
+ const { r: u, g: I, b: K } = e.toRgb();
63
+ return n ? `rgba(${u}, ${I}, ${K}, ${e.get("alpha") / 100})` : `rgb(${u}, ${I}, ${K})`;
64
64
  }
65
- function oe(l) {
66
- b.value = l;
65
+ function le(e) {
66
+ v.value = e;
67
67
  }
68
- const w = de(oe, 100);
69
- function ae(l) {
70
- w(!1), P(), m("click-outside", l);
68
+ const k = pe(le, 100);
69
+ function ae(e) {
70
+ k(!1), _(), d("click-outside", e);
71
71
  }
72
- function P() {
73
- y(() => {
74
- a.modelValue ? r.fromString(a.modelValue) : (r.value = "", y(() => {
75
- c.value = !1;
72
+ function _() {
73
+ g(() => {
74
+ a.modelValue ? r.fromString(a.modelValue) : (r.value = "", g(() => {
75
+ s.value = !1;
76
76
  }));
77
77
  });
78
78
  }
79
- function T() {
80
- A.value || w(!b.value);
79
+ function N() {
80
+ E.value || k(!v.value);
81
81
  }
82
- function I() {
83
- r.fromString(h.value);
82
+ function T() {
83
+ r.fromString(b.value);
84
84
  }
85
85
  function re() {
86
- const l = r.value;
87
- m($, l), m("change", l), a.validateEvent && (s == null || s.validate("change").catch((n) => _(n))), w(!1), y(() => {
88
- const n = new z({
86
+ const e = r.value;
87
+ d(P, e), d("change", e), a.validateEvent && (i == null || i.validate("change").catch((n) => R(n))), k(!1), g(() => {
88
+ const n = new $({
89
89
  enableAlpha: a.showAlpha,
90
90
  format: a.colorFormat || "",
91
91
  value: a.modelValue
92
92
  });
93
- r.compare(n) || P();
93
+ r.compare(n) || _();
94
94
  });
95
95
  }
96
96
  function te() {
97
- w(!1), m($, null), m("change", null), a.modelValue !== null && a.validateEvent && (s == null || s.validate("change").catch((l) => _(l))), P();
97
+ k(!1), d(P, null), d("change", null), a.modelValue !== null && a.validateEvent && (i == null || i.validate("change").catch((e) => R(e))), _();
98
98
  }
99
99
  return ie(() => {
100
- a.modelValue && (h.value = S.value);
101
- }), g(
100
+ a.modelValue && (b.value = S.value);
101
+ }), w(
102
102
  () => a.modelValue,
103
- (l) => {
104
- l ? l && l !== r.value && (x = !1, r.fromString(l)) : c.value = !1;
103
+ (e) => {
104
+ e ? e && e !== r.value && (A = !1, r.fromString(e)) : s.value = !1;
105
105
  }
106
- ), g(
106
+ ), w(
107
107
  () => S.value,
108
- (l) => {
109
- h.value = l, x && m("activeChange", l), x = !0;
108
+ (e) => {
109
+ b.value = e, A && d("activeChange", e), A = !0;
110
110
  }
111
- ), g(
111
+ ), w(
112
112
  () => r.value,
113
113
  () => {
114
- !a.modelValue && !c.value && (c.value = !0);
114
+ !a.modelValue && !s.value && (s.value = !0);
115
115
  }
116
- ), g(
117
- () => b.value,
116
+ ), w(
117
+ () => v.value,
118
118
  () => {
119
- y(() => {
120
- var l, n, u;
121
- (l = F.value) == null || l.update(), (n = J.value) == null || n.update(), (u = N.value) == null || u.update();
119
+ g(() => {
120
+ var e, n, u;
121
+ (e = B.value) == null || e.update(), (n = J.value) == null || n.update(), (u = F.value) == null || u.update();
122
122
  });
123
123
  }
124
124
  ), se(ke, {
@@ -128,136 +128,136 @@ const xe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
128
128
  * @description current color object
129
129
  */
130
130
  color: r,
131
- showPicker: b
132
- }), (l, n) => (f(), C(e(me), {
131
+ showPicker: v
132
+ }), (e, n) => (m(), y(o(me), {
133
133
  ref_key: "popper",
134
134
  ref: Q,
135
- visible: b.value,
135
+ visible: v.value,
136
136
  "show-arrow": !1,
137
137
  "fallback-placements": ["bottom", "top", "right", "left"],
138
138
  offset: 0,
139
139
  "gpu-acceleration": !1,
140
- "popper-class": [e(o).be("picker", "panel"), e(o).b("dropdown"), i.popperClass],
140
+ "popper-class": [o(l).be("picker", "panel"), o(l).b("dropdown"), e.popperClass],
141
141
  "stop-popper-mouse-event": !1,
142
142
  effect: "light",
143
143
  trigger: "click",
144
- transition: `${e(o).namespace.value}-zoom-in-top`,
144
+ transition: `${o(l).namespace.value}-zoom-in-top`,
145
145
  persistent: ""
146
146
  }, {
147
- content: V(() => [
148
- L((f(), H("div", null, [
147
+ content: C(() => [
148
+ D((m(), x("div", null, [
149
149
  p("div", {
150
- class: t(e(o).be("dropdown", "main-wrapper"))
150
+ class: t(o(l).be("dropdown", "main-wrapper"))
151
151
  }, [
152
- v(we, {
152
+ f(we, {
153
153
  ref_key: "hue",
154
- ref: F,
154
+ ref: B,
155
155
  class: "hue-slider",
156
- color: e(r),
156
+ color: r,
157
157
  vertical: ""
158
158
  }, null, 8, ["color"]),
159
- v(ye, {
159
+ f(ye, {
160
160
  ref: "svPanel",
161
- color: e(r)
161
+ color: r
162
162
  }, null, 8, ["color"])
163
163
  ], 2),
164
- i.showAlpha ? (f(), C(he, {
164
+ e.showAlpha ? (m(), y(he, {
165
165
  key: 0,
166
166
  ref_key: "alpha",
167
- ref: N,
168
- color: e(r)
169
- }, null, 8, ["color"])) : E("", !0),
170
- i.predefine ? (f(), C(ge, {
167
+ ref: F,
168
+ color: r
169
+ }, null, 8, ["color"])) : V("", !0),
170
+ e.predefine ? (m(), y(ge, {
171
171
  key: 1,
172
172
  ref: "predefine",
173
- color: e(r),
174
- colors: i.predefine
175
- }, null, 8, ["color", "colors"])) : E("", !0),
173
+ color: r,
174
+ colors: e.predefine
175
+ }, null, 8, ["color", "colors"])) : V("", !0),
176
176
  p("div", {
177
- class: t(e(o).be("dropdown", "btns"))
177
+ class: t(o(l).be("dropdown", "btns"))
178
178
  }, [
179
179
  p("span", {
180
- class: t(e(o).be("dropdown", "value"))
180
+ class: t(o(l).be("dropdown", "value"))
181
181
  }, [
182
- v(e(fe), {
183
- modelValue: h.value,
184
- "onUpdate:modelValue": n[0] || (n[0] = (u) => h.value = u),
182
+ f(o(fe), {
183
+ modelValue: b.value,
184
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => b.value = u),
185
185
  "validate-event": !1,
186
186
  size: "small",
187
- onKeyup: M(I, ["enter"]),
188
- onBlur: I
187
+ onKeyup: L(T, ["enter"]),
188
+ onBlur: T
189
189
  }, null, 8, ["modelValue", "onKeyup"])
190
190
  ], 2),
191
- v(e(R), {
192
- class: t(e(o).be("dropdown", "link-btn")),
191
+ f(o(M), {
192
+ class: t(o(l).be("dropdown", "link-btn")),
193
193
  text: "",
194
194
  size: "small",
195
195
  onClick: te
196
196
  }, {
197
- default: V(() => [
198
- O(" 取消 ")
197
+ default: C(() => [
198
+ H(" 取消 ")
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["class"]),
202
- v(e(R), {
202
+ f(o(M), {
203
203
  plain: "",
204
204
  size: "small",
205
- class: t(e(o).be("dropdown", "btn")),
205
+ class: t(o(l).be("dropdown", "btn")),
206
206
  onClick: re
207
207
  }, {
208
- default: V(() => [
209
- O(" 确认 ")
208
+ default: C(() => [
209
+ H(" 确认 ")
210
210
  ]),
211
211
  _: 1
212
212
  }, 8, ["class"])
213
213
  ], 2)
214
214
  ])), [
215
- [e(pe), ae]
215
+ [o(de), ae]
216
216
  ])
217
217
  ]),
218
- default: V(() => [
218
+ default: C(() => [
219
219
  p("div", {
220
- id: e(q),
221
- class: t(e(ee)),
220
+ id: o(q),
221
+ class: t(ee.value),
222
222
  role: "button",
223
- "aria-label": e(Y),
224
- "aria-labelledby": e(Z),
225
- "aria-description": `目前色彩為 {color}。按一下 Enter 以選擇新色彩${i.modelValue}`,
226
- tabindex: i.tabindex,
227
- onKeydown: M(T, ["enter"])
223
+ "aria-label": Y.value,
224
+ "aria-labelledby": Z.value,
225
+ "aria-description": `目前色彩為 {color}。按一下 Enter 以選擇新色彩${e.modelValue}`,
226
+ tabindex: e.tabindex,
227
+ onKeydown: L(N, ["enter"])
228
228
  }, [
229
- e(A) ? (f(), H("div", {
229
+ o(E) ? (m(), x("div", {
230
230
  key: 0,
231
- class: t(e(o).be("picker", "mask"))
232
- }, null, 2)) : E("", !0),
231
+ class: t(o(l).be("picker", "mask"))
232
+ }, null, 2)) : V("", !0),
233
233
  p("div", {
234
- class: t(e(o).be("picker", "trigger")),
235
- onClick: T
234
+ class: t(o(l).be("picker", "trigger")),
235
+ onClick: N
236
236
  }, [
237
237
  p("span", {
238
- class: t([e(o).be("picker", "color"), e(o).is("alpha", i.showAlpha)])
238
+ class: t([o(l).be("picker", "color"), o(l).is("alpha", e.showAlpha)])
239
239
  }, [
240
240
  p("span", {
241
- class: t(e(o).be("picker", "color-inner")),
242
- style: ce({
243
- backgroundColor: e(X)
241
+ class: t(o(l).be("picker", "color-inner")),
242
+ style: ue({
243
+ backgroundColor: X.value
244
244
  })
245
245
  }, [
246
- L(v(e(U), {
246
+ D(f(o(O), {
247
247
  icon: "ico-ep:arrow-down",
248
- class: t([e(o).be("picker", "icon"), e(o).is("icon-arrow-down")])
248
+ class: t([o(l).be("picker", "icon"), o(l).is("icon-arrow-down")])
249
249
  }, null, 8, ["class"]), [
250
- [ue, i.modelValue || c.value]
250
+ [ce, e.modelValue || s.value]
251
251
  ]),
252
- !i.modelValue && !c.value ? (f(), C(e(U), {
252
+ !e.modelValue && !s.value ? (m(), y(o(O), {
253
253
  key: 0,
254
254
  icon: "ico-ep:circle-close",
255
- class: t([e(o).be("picker", "empty"), e(o).is("icon-close")])
256
- }, null, 8, ["class"])) : E("", !0)
255
+ class: t([o(l).be("picker", "empty"), o(l).is("icon-close")])
256
+ }, null, 8, ["class"])) : V("", !0)
257
257
  ], 6)
258
258
  ], 2)
259
259
  ], 2)
260
- ], 42, xe)
260
+ ], 42, Se)
261
261
  ]),
262
262
  _: 1
263
263
  }, 8, ["visible", "popper-class", "transition"]));
@@ -1,18 +1,18 @@
1
- import { defineComponent as u, openBlock as C, createElementBlock as S, normalizeClass as r, unref as e, createElementVNode as a, normalizeStyle as c } from "vue";
1
+ import { defineComponent as p, openBlock as C, createElementBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
2
2
  import { useAlphaSlider as v, useAlphaSliderDOM as A } from "../composables/use-alpha-slider.js";
3
- const E = "VftColorAlphaSlider", N = u({
3
+ const E = "VftColorAlphaSlider", N = p({
4
4
  name: E
5
- }), O = /* @__PURE__ */ u({
5
+ }), M = /* @__PURE__ */ p({
6
6
  ...N,
7
7
  props: {
8
- color: null,
8
+ color: {},
9
9
  vertical: { type: Boolean }
10
10
  },
11
11
  setup(i, { expose: m }) {
12
- const o = i, { bar: l, thumb: t, handleDrag: p, handleClick: n } = v(o), { rootKls: d, barKls: f, barStyle: _, thumbKls: b, thumbStyle: h, update: y } = A(o, {
12
+ const o = i, { bar: l, thumb: t, handleDrag: u, handleClick: s } = v(o), { rootKls: d, barKls: f, barStyle: _, thumbKls: b, thumbStyle: h, update: y } = A(o, {
13
13
  bar: l,
14
14
  thumb: t,
15
- handleDrag: p
15
+ handleDrag: u
16
16
  });
17
17
  return m({
18
18
  /**
@@ -30,18 +30,18 @@ const E = "VftColorAlphaSlider", N = u({
30
30
  * @type {HTMLElement}
31
31
  */
32
32
  thumb: t
33
- }), (B, s) => (C(), S("div", {
33
+ }), (x, a) => (C(), S("div", {
34
34
  class: r(e(d))
35
35
  }, [
36
- a("div", {
36
+ n("div", {
37
37
  ref_key: "bar",
38
38
  ref: l,
39
39
  class: r(e(f)),
40
40
  style: c(e(_)),
41
- onClick: s[0] || (s[0] = //@ts-ignore
42
- (...k) => e(n) && e(n)(...k))
41
+ onClick: a[0] || (a[0] = //@ts-ignore
42
+ (...k) => e(s) && e(s)(...k))
43
43
  }, null, 6),
44
- a("div", {
44
+ n("div", {
45
45
  ref_key: "thumb",
46
46
  ref: t,
47
47
  class: r(e(b)),
@@ -51,5 +51,5 @@ const E = "VftColorAlphaSlider", N = u({
51
51
  }
52
52
  });
53
53
  export {
54
- O as default
54
+ M as default
55
55
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, watch as o, computed as d, onActivated as f, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, openBlock as b, createElementBlock as v, normalizeClass as C, unref as r, normalizeStyle as V, renderSlot as k } from "vue";
1
+ import { defineComponent as r, watch as o, computed as u, onActivated as f, onDeactivated as l, onBeforeUnmount as h, getCurrentInstance as g, openBlock as p, createElementBlock as v, normalizeClass as b, unref as C, normalizeStyle as V, renderSlot as k } from "vue";
2
2
  import { inBrowser as B, kebabCase as D } from "@vft/utils";
3
3
  import { useNamespace as E } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -8,24 +8,24 @@ import "@vueuse/core";
8
8
  import "../../utils/ns-cover.js";
9
9
  import { provideGlobalConfig as L } from "./hooks/use-global-config.js";
10
10
  import { messageConfig as S } from "./constants.js";
11
- const i = (
11
+ const s = (
12
12
  /* hoist-static*/
13
13
  E("config-provider")
14
- ), T = s({
15
- name: i.b()
16
- }), N = /* @__PURE__ */ s({
14
+ ), T = r({
15
+ name: s.b()
16
+ }), N = /* @__PURE__ */ r({
17
17
  ...T,
18
18
  props: {
19
19
  theme: { default: "light" },
20
- themeVars: null,
21
- themeVarsDark: null,
22
- themeVarsLight: null,
23
- iconPrefix: null,
20
+ themeVars: {},
21
+ themeVarsDark: {},
22
+ themeVarsLight: {},
23
+ iconPrefix: {},
24
24
  namespace: { default: "vft" },
25
- zIndex: null,
26
- message: null,
27
- projectCfg: null,
28
- button: null
25
+ zIndex: {},
26
+ message: {},
27
+ projectCfg: {},
28
+ button: {}
29
29
  },
30
30
  setup(t) {
31
31
  o(
@@ -35,9 +35,9 @@ const i = (
35
35
  },
36
36
  { immediate: !0, deep: !0 }
37
37
  );
38
- const c = d(() => {
38
+ const i = u(() => {
39
39
  const e = t.theme === "dark";
40
- return l({
40
+ return c({
41
41
  ...t.themeVars,
42
42
  ...e ? t.themeVarsDark : t.themeVarsLight
43
43
  });
@@ -45,27 +45,27 @@ const i = (
45
45
  if (B) {
46
46
  const e = () => {
47
47
  document.documentElement.classList.add(t.theme);
48
- }, n = (m = t.theme) => {
49
- document.documentElement.classList.remove(m);
48
+ }, m = (a = t.theme) => {
49
+ document.documentElement.classList.remove(a);
50
50
  };
51
51
  o(
52
52
  () => t.theme,
53
- (m, a) => {
54
- a && n(a), e();
53
+ (a, n) => {
54
+ n && m(n), e();
55
55
  },
56
56
  { immediate: !0 }
57
- ), f(e), h(n), g(n);
57
+ ), f(e), l(m), h(m);
58
58
  }
59
- function l(e) {
60
- const n = {};
61
- return Object.keys(e).forEach((m) => {
62
- n[`--${t.namespace}-${D(m)}`] = e[m];
63
- }), n;
59
+ function c(e) {
60
+ const m = {};
61
+ return Object.keys(e).forEach((a) => {
62
+ m[`--${t.namespace}-${D(a)}`] = e[a];
63
+ }), m;
64
64
  }
65
- const u = p();
66
- return L(u.props), (e, n) => (b(), v("div", {
67
- class: C(r(i).b()),
68
- style: V(r(c))
65
+ const d = g();
66
+ return L(d.props), (e, m) => (p(), v("div", {
67
+ class: b(C(s).b()),
68
+ style: V(i.value)
69
69
  }, [
70
70
  k(e.$slots, "default")
71
71
  ], 6));
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, computed as i, openBlock as m, createElementBlock as a, normalizeClass as l, unref as o, normalizeStyle as c, renderSlot as d } from "vue";
1
+ import { defineComponent as o, computed as a, openBlock as i, createElementBlock as m, normalizeClass as n, unref as l, normalizeStyle as c, renderSlot as d } from "vue";
2
2
  import { useNamespace as p } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -9,20 +9,20 @@ import "../../utils/ns-cover.js";
9
9
  const t = (
10
10
  /* hoist-static*/
11
11
  p("aside")
12
- ), f = r({
12
+ ), f = o({
13
13
  name: t.b()
14
- }), S = /* @__PURE__ */ r({
14
+ }), S = /* @__PURE__ */ o({
15
15
  ...f,
16
16
  props: {
17
- width: null
17
+ width: {}
18
18
  },
19
19
  setup(e) {
20
- const s = i(() => e.width ? t.cssVarBlock({ width: u(e.width) }) : {});
21
- return (n, h) => (m(), a("aside", {
22
- class: l(o(t).b()),
23
- style: c(o(s))
20
+ const r = a(() => e.width ? t.cssVarBlock({ width: u(e.width) }) : {});
21
+ return (s, h) => (i(), m("aside", {
22
+ class: n(l(t).b()),
23
+ style: c(r.value)
24
24
  }, [
25
- d(n.$slots, "default")
25
+ d(s.$slots, "default")
26
26
  ], 6));
27
27
  }
28
28
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, useSlots as c, computed as m, openBlock as u, createElementBlock as f, normalizeClass as p, unref as t, renderSlot as d } from "vue";
1
+ import { defineComponent as a, useSlots as l, computed as m, openBlock as u, createElementBlock as f, normalizeClass as p, unref as i, renderSlot as d } from "vue";
2
2
  import { useNamespace as v } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -6,25 +6,25 @@ import "../../hooks/use-z-index/index.js";
6
6
  import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
- const o = (
9
+ const t = (
10
10
  /* hoist-static*/
11
11
  v("container")
12
12
  ), _ = a({
13
- name: o.b()
13
+ name: t.b()
14
14
  }), g = /* @__PURE__ */ a({
15
15
  ..._,
16
16
  props: {
17
- direction: null
17
+ direction: {}
18
18
  },
19
- setup(r) {
20
- const e = c(), l = m(() => r.direction === "vertical" ? !0 : r.direction === "horizontal" ? !1 : e && e.default ? e.default().some((s) => {
21
- const i = s.type.name;
22
- return i === "vft-header" || i === "vft-footer";
19
+ setup(o) {
20
+ const e = l(), c = m(() => o.direction === "vertical" ? !0 : o.direction === "horizontal" ? !1 : e && e.default ? e.default().some((n) => {
21
+ const s = n.type.name;
22
+ return s === "vft-header" || s === "vft-footer";
23
23
  }) : !1);
24
- return (n, s) => (u(), f("section", {
25
- class: p([t(o).b(), t(o).is("vertical", t(l))])
24
+ return (r, n) => (u(), f("section", {
25
+ class: p([i(t).b(), i(t).is("vertical", c.value)])
26
26
  }, [
27
- d(n.$slots, "default")
27
+ d(r.$slots, "default")
28
28
  ], 2));
29
29
  }
30
30
  });