vft 0.0.128 → 0.0.129

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 (162) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/backtop/backtop.vue2.js +21 -21
  3. package/es/components/button/button.vue2.js +1 -1
  4. package/es/components/button/use-button.js +3 -3
  5. package/es/components/color-picker/color-picker.vue2.js +2 -2
  6. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +33 -33
  7. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +26 -26
  8. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +13 -13
  9. package/es/components/date-time-select/date-time-select.vue2.js +3 -3
  10. package/es/components/dialog/dialog-content.vue2.js +1 -1
  11. package/es/components/drawer/drawer.vue2.js +9 -9
  12. package/es/components/dropdown/dropdown.vue2.js +1 -1
  13. package/es/components/full-screen/full-screen.vue2.js +11 -11
  14. package/es/components/icon/icon.vue2.js +3 -1
  15. package/es/components/icon-text/icon-text.vue2.js +22 -22
  16. package/es/components/image-viewer/image-viewer.vue2.js +35 -35
  17. package/es/components/index.js +113 -113
  18. package/es/components/input/input.vue2.js +37 -33
  19. package/es/components/input-number/input-number.vue2.js +25 -25
  20. package/es/components/list-cell/list-cell.vue2.js +14 -14
  21. package/es/components/md-code-demo/md-code-demo.js +3 -3
  22. package/es/components/md-container/md-container.vue2.js +13 -13
  23. package/es/components/md-vue-playground/md-vue-playground.vue2.js +8 -8
  24. package/es/components/menu/menu.vue2.js +1 -1
  25. package/es/components/menu/sub-menu.vue2.js +2 -2
  26. package/es/components/message/message.vue2.js +4 -4
  27. package/es/components/multiple-tabs/use/use-tab-dropdown.js +10 -10
  28. package/es/components/pagination/components/next.vue2.js +5 -5
  29. package/es/components/pagination/components/pager.vue2.js +40 -40
  30. package/es/components/pagination/components/prev.vue2.js +5 -5
  31. package/es/components/popconfirm/popconfirm.vue2.js +1 -1
  32. package/es/components/progress/progress.vue2.js +13 -13
  33. package/es/components/search/search.vue2.js +1 -1
  34. package/es/components/select/select.vue.js +1 -1
  35. package/es/components/select/useSelect.js +1 -1
  36. package/es/components/side-menu/side-menu.vue2.js +24 -24
  37. package/es/components/skeleton/skeleton-item.vue2.js +5 -5
  38. package/es/components/switch/switch.vue2.js +1 -1
  39. package/es/components/tabs/tabs.vue2.js +4 -4
  40. package/es/components/tag/tag.vue2.js +1 -1
  41. package/es/components/time-picker/common/picker.vue2.js +1 -1
  42. package/es/components/time-picker/common/props.js +1 -1
  43. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -2
  44. package/es/components/tree/tree-node.vue.js +9 -9
  45. package/es/components/upload/upload-list.vue2.js +33 -33
  46. package/es/index.js +113 -113
  47. package/es/package.json.js +1 -1
  48. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  49. package/lib/components/button/button.vue2.cjs +1 -1
  50. package/lib/components/button/use-button.cjs +1 -1
  51. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  52. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  53. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  54. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  55. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  56. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  57. package/lib/components/drawer/drawer.vue2.cjs +1 -1
  58. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  59. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  60. package/lib/components/icon/icon.vue2.cjs +1 -1
  61. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  62. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  63. package/lib/components/index.cjs +1 -1
  64. package/lib/components/input/input.vue2.cjs +1 -1
  65. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  66. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  67. package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
  68. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  69. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  70. package/lib/components/menu/menu.vue2.cjs +1 -1
  71. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  72. package/lib/components/message/message.vue2.cjs +1 -1
  73. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  74. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  75. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  76. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  77. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  78. package/lib/components/progress/progress.vue2.cjs +2 -2
  79. package/lib/components/search/search.vue2.cjs +1 -1
  80. package/lib/components/select/select.vue.cjs +1 -1
  81. package/lib/components/select/useSelect.cjs +1 -1
  82. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  83. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  84. package/lib/components/switch/switch.vue2.cjs +1 -1
  85. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  86. package/lib/components/tag/tag.vue2.cjs +1 -1
  87. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  88. package/lib/components/time-picker/common/props.cjs +1 -1
  89. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  90. package/lib/components/tree/tree-node.vue.cjs +1 -1
  91. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  92. package/lib/index.cjs +1 -1
  93. package/lib/package.json.cjs +1 -1
  94. package/package.json +2 -2
  95. package/theme-style/index.css +1 -1
  96. package/theme-style/src/backtop.scss +4 -0
  97. package/theme-style/src/button.scss +4 -0
  98. package/theme-style/src/color-picker.scss +3 -0
  99. package/theme-style/src/common/icon.scss +65 -0
  100. package/theme-style/src/common/var.scss +4 -0
  101. package/theme-style/src/date-picker/date-picker.scss +14 -0
  102. package/theme-style/src/date-picker/time-picker.scss +4 -0
  103. package/theme-style/src/date-picker.scss +1 -0
  104. package/theme-style/src/date-time-select.scss +8 -1
  105. package/theme-style/src/dialog.scss +2 -0
  106. package/theme-style/src/drawer.scss +2 -0
  107. package/theme-style/src/dropdown.scss +2 -0
  108. package/theme-style/src/full-screen.scss +8 -1
  109. package/theme-style/src/icon-text.scss +4 -0
  110. package/theme-style/src/image-viewer.scss +19 -1
  111. package/theme-style/src/input-number.scss +9 -0
  112. package/theme-style/src/input.scss +22 -0
  113. package/theme-style/src/list-cell.scss +2 -0
  114. package/theme-style/src/md-container.scss +28 -0
  115. package/theme-style/src/menu.scss +11 -4
  116. package/theme-style/src/message.scss +10 -0
  117. package/theme-style/src/mixins/icon.scss +52 -0
  118. package/theme-style/src/mixins/mixins.scss +1 -0
  119. package/theme-style/src/multiple-tabs.scss +22 -0
  120. package/theme-style/src/pagination.scss +15 -0
  121. package/theme-style/src/popconfirm.scss +4 -0
  122. package/theme-style/src/progress.scss +16 -0
  123. package/theme-style/src/select.scss +3 -0
  124. package/theme-style/src/side-menu.scss +4 -0
  125. package/theme-style/src/skeleton-item.scss +5 -0
  126. package/theme-style/src/switch.scss +4 -0
  127. package/theme-style/src/tabs.scss +7 -0
  128. package/theme-style/src/tag.scss +2 -0
  129. package/theme-style/src/tree.scss +7 -0
  130. package/theme-style/src/upload.scss +25 -4
  131. package/theme-style/vft-backtop.css +1 -1
  132. package/theme-style/vft-button.css +1 -1
  133. package/theme-style/vft-color-picker.css +1 -1
  134. package/theme-style/vft-date-picker.css +1 -1
  135. package/theme-style/vft-date-time-select.css +1 -1
  136. package/theme-style/vft-dialog.css +1 -1
  137. package/theme-style/vft-drawer.css +1 -1
  138. package/theme-style/vft-dropdown.css +1 -1
  139. package/theme-style/vft-full-screen.css +1 -1
  140. package/theme-style/vft-icon-text.css +1 -1
  141. package/theme-style/vft-image-viewer.css +1 -1
  142. package/theme-style/vft-input-number.css +1 -1
  143. package/theme-style/vft-input.css +1 -1
  144. package/theme-style/vft-list-cell.css +1 -1
  145. package/theme-style/vft-md-container.css +1 -1
  146. package/theme-style/vft-menu.css +1 -1
  147. package/theme-style/vft-message.css +1 -1
  148. package/theme-style/vft-multiple-tabs.css +1 -1
  149. package/theme-style/vft-pagination.css +1 -1
  150. package/theme-style/vft-popconfirm.css +1 -1
  151. package/theme-style/vft-progress.css +1 -1
  152. package/theme-style/vft-select.css +1 -1
  153. package/theme-style/vft-side-menu.css +1 -1
  154. package/theme-style/vft-skeleton-item.css +1 -1
  155. package/theme-style/vft-switch.css +1 -1
  156. package/theme-style/vft-tabs.css +1 -1
  157. package/theme-style/vft-tag.css +1 -1
  158. package/theme-style/vft-time-picker.css +1 -1
  159. package/theme-style/vft-time-select.css +1 -1
  160. package/theme-style/vft-tree.css +1 -1
  161. package/theme-style/vft-upload.css +1 -1
  162. package/web-types.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as c, getCurrentInstance as g, computed as a, openBlock as i, createBlock as l, Transition as v, unref as t, withCtx as y, createElementBlock as C, normalizeStyle as h, normalizeClass as x, withModifiers as T, renderSlot as z, normalizeProps as B, mergeProps as $, createCommentVNode as s } from "vue";
2
- import { singleAttrToObj as w } from "@vft/utils";
1
+ import { defineComponent as s, getCurrentInstance as g, computed as a, openBlock as r, createBlock as l, Transition as v, unref as t, withCtx as y, createElementBlock as C, normalizeStyle as h, normalizeClass as T, withModifiers as x, renderSlot as z, normalizeProps as B, mergeProps as $, createCommentVNode as c } from "vue";
2
+ import { singleAttrToObj as S } from "@vft/utils";
3
3
  import "../alert/index.js";
4
4
  import "../avatar/index.js";
5
5
  import "./index.js";
@@ -29,7 +29,7 @@ import "../form/index.js";
29
29
  import "../full-screen/index.js";
30
30
  import "../header-layout/index.js";
31
31
  import "../horizontal-menu/index.js";
32
- import { VftIcon as S } from "../icon/index.js";
32
+ import { VftIcon as _ } from "../icon/index.js";
33
33
  import "../icon-text/index.js";
34
34
  import "../iframe-layout/index.js";
35
35
  import "../image/index.js";
@@ -86,53 +86,53 @@ import "../md-vue-playground/index.js";
86
86
  import "@vueuse/core";
87
87
  import "../../utils/ns-cover.js";
88
88
  import "lodash";
89
- import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
89
+ import { useNamespace as w } from "../../hooks/use-namespace/index.js";
90
90
  import "@popperjs/core";
91
91
  import "../../hooks/use-z-index/index.js";
92
92
  import "../message/index.js";
93
93
  import { useBackTop as I } from "./use-backtop.js";
94
94
  const m = (
95
95
  /* hoist-static*/
96
- _("backtop")
97
- ), N = c({
96
+ w("backtop")
97
+ ), N = s({
98
98
  name: "vft-backtop"
99
- }), vo = /* @__PURE__ */ c({
99
+ }), vo = /* @__PURE__ */ s({
100
100
  ...N,
101
101
  props: {
102
102
  visibilityHeight: { default: 200 },
103
103
  target: {},
104
104
  right: { default: 40 },
105
105
  bottom: { default: 40 },
106
- icon: { default: "ico-bx:arrow-to-top" },
106
+ icon: { default: "icon-back-top" },
107
107
  scrollTargetKey: {}
108
108
  },
109
109
  emits: ["click"],
110
- setup(r, { emit: u }) {
111
- const f = g(), { handleClick: p, visible: d } = I(f.props, u, m.b()), b = a(() => ({
112
- right: `${r.right}px`,
113
- bottom: `${r.bottom}px`
114
- })), e = a(() => w(r.icon, "icon", { size: 25 }));
115
- return (k, n) => (i(), l(v, {
110
+ setup(i, { emit: u }) {
111
+ const f = g(), { handleClick: p, visible: d } = I(f.props, u, m.b()), k = a(() => ({
112
+ right: `${i.right}px`,
113
+ bottom: `${i.bottom}px`
114
+ })), e = a(() => S(i.icon, "icon", { size: 25 }));
115
+ return (b, n) => (r(), l(v, {
116
116
  name: `${t(m).namespace}-fade-in`
117
117
  }, {
118
118
  default: y(() => [
119
- t(d) ? (i(), C("div", {
119
+ t(d) ? (r(), C("div", {
120
120
  key: 0,
121
- style: h(b.value),
122
- class: x(t(m).b()),
123
- onClick: n[0] || (n[0] = T(
121
+ style: h(k.value),
122
+ class: T(t(m).b()),
123
+ onClick: n[0] || (n[0] = x(
124
124
  //@ts-ignore
125
125
  (...o) => t(p) && t(p)(...o),
126
126
  ["stop"]
127
127
  ))
128
128
  }, [
129
- z(k.$slots, "default", {}, () => {
129
+ z(b.$slots, "default", {}, () => {
130
130
  var o;
131
131
  return [
132
- (o = e.value) != null && o.icon ? (i(), l(t(S), B($({ key: 0 }, e.value)), null, 16)) : s("", !0)
132
+ (o = e.value) != null && o.icon ? (r(), l(t(_), B($({ key: 0 }, e.value)), null, 16)) : c("", !0)
133
133
  ];
134
134
  })
135
- ], 6)) : s("", !0)
135
+ ], 6)) : c("", !0)
136
136
  ]),
137
137
  _: 3
138
138
  }, 8, ["name"]));
@@ -80,7 +80,7 @@ const t = (
80
80
  key: 1,
81
81
  rotate: "",
82
82
  class: k(e(t).is("loading")),
83
- icon: "ico-ep:loading"
83
+ icon: "icon-loading"
84
84
  }, null, 8, ["class"]))
85
85
  ], 64)) : (u = s.value) != null && u.icon ? (n(), a(e(g), P(m({ key: 1 }, s.value)), null, 16)) : b("", !0),
86
86
  o.$slots.default ? (n(), y("span", {
@@ -3,11 +3,11 @@ import "../form/index.js";
3
3
  import { useThrottleFn as b } from "@vueuse/core";
4
4
  import { inject as _, computed as i, ref as F, useSlots as I, Text as S } from "vue";
5
5
  import { buttonGroupContextKey as k } from "./constants.js";
6
- import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.js";
7
- import { useFormItem as z } from "../form/hooks/use-form-item.js";
6
+ import { useFormItem as T } from "../form/hooks/use-form-item.js";
7
+ import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.js";
8
8
  import { useFormSize as C, useFormDisabled as D } from "../form/hooks/use-form-common-props.js";
9
9
  const E = (t, l) => {
10
- const o = _(k, void 0), u = T("button"), { form: s } = z(), d = C(i(() => o == null ? void 0 : o.size)), r = D(), m = F(), a = I(), f = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
10
+ const o = _(k, void 0), u = z("button"), { form: s } = T(), d = C(i(() => o == null ? void 0 : o.size)), r = D(), m = F(), a = I(), f = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
11
11
  () => {
12
12
  var e;
13
13
  return t.autoInsertSpace ?? ((e = u.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
@@ -244,14 +244,14 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
244
244
  })
245
245
  }, [
246
246
  D(f(o(O), {
247
- icon: "ico-ep:arrow-down",
247
+ icon: "icon-arrow-down",
248
248
  class: t([o(l).be("picker", "icon"), o(l).is("icon-arrow-down")])
249
249
  }, null, 8, ["class"]), [
250
250
  [ce, e.modelValue || s.value]
251
251
  ]),
252
252
  !e.modelValue && !s.value ? (m(), y(o(O), {
253
253
  key: 0,
254
- icon: "ico-ep:circle-close",
254
+ icon: "icon-circle-close",
255
255
  class: t([o(l).be("picker", "empty"), o(l).is("icon-close")])
256
256
  }, null, 8, ["class"])) : V("", !0)
257
257
  ], 6)
@@ -1,4 +1,4 @@
1
- import { defineComponent as Qe, useAttrs as Xe, useSlots as Ze, ref as D, inject as ve, toRef as je, computed as m, watch as A, openBlock as C, createElementBlock as I, normalizeClass as r, unref as n, createElementVNode as v, renderSlot as xe, Fragment as ea, renderList as aa, toDisplayString as j, createCommentVNode as K, createVNode as T, withDirectives as P, vShow as N, withKeys as me, createBlock as x, withCtx as pe, createTextVNode as fe, nextTick as ee } from "vue";
1
+ import { defineComponent as Qe, useAttrs as Xe, useSlots as Ze, ref as D, inject as ve, toRef as je, computed as m, watch as A, openBlock as C, createElementBlock as I, normalizeClass as r, unref as n, createElementVNode as v, renderSlot as xe, Fragment as ea, renderList as aa, toDisplayString as j, createCommentVNode as K, createVNode as T, withDirectives as P, vShow as N, withKeys as me, createBlock as x, withCtx as fe, createTextVNode as pe, nextTick as ee } from "vue";
2
2
  import { ClickOutside as ta } from "@vft/directives";
3
3
  import { isFunction as he, isArray as la } from "@vft/utils";
4
4
  import { VftButton as ye } from "../../button/index.js";
@@ -6,14 +6,14 @@ import { VftIcon as U } from "../../icon/index.js";
6
6
  import { VftInput as ke } from "../../input/index.js";
7
7
  import "../../time-picker/index.js";
8
8
  import "../../tooltip/index.js";
9
- import { EVENT_CODE as p } from "../../../constants/aria.js";
9
+ import { EVENT_CODE as f } from "../../../constants/aria.js";
10
10
  import "@vueuse/core";
11
11
  import "../../../utils/ns-cover.js";
12
12
  import "lodash";
13
13
  import { useNamespace as be } from "../../../hooks/use-namespace/index.js";
14
14
  import "@popperjs/core";
15
15
  import "../../../hooks/use-z-index/index.js";
16
- import f from "dayjs";
16
+ import p from "dayjs";
17
17
  import { datePickerConfig as na } from "../constants.js";
18
18
  import { panelDatePickProps as oa } from "../props/panel-date-pick.js";
19
19
  import ra from "./basic-date-table.vue2.js";
@@ -27,7 +27,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
27
27
  props: oa,
28
28
  emits: ["pick", "set-picker-option", "panel-change"],
29
29
  setup(we, { emit: w }) {
30
- const u = we, ge = (e, a, l) => !0, d = be("picker-panel"), g = be("date-picker"), Ve = Xe(), De = Ze(), h = D("zh-cn"), ae = ve("EP_PICKER_BASE"), E = ve(ia), { shortcuts: te, disabledDate: k, cellClassName: Ce, defaultTime: L, arrowControl: Te } = ae.props, M = je(ae.props, "defaultValue"), O = D(), t = D(f().locale(h.value)), H = D(!1), le = m(() => f(L).locale(h.value)), Pe = m(() => t.value.month()), ne = m(() => t.value.year()), W = D([]), $ = D(null), F = D(null), J = (e) => W.value.length > 0 ? ge(e, W.value, u.format || "HH:mm:ss") : !0, oe = (e) => L && !ce.value && !H.value ? le.value.year(e.year()).month(e.month()).date(e.date()) : R.value ? e.millisecond(0) : e.startOf("day"), c = (e, ...a) => {
30
+ const u = we, ge = (e, a, l) => !0, d = be("picker-panel"), g = be("date-picker"), Ve = Xe(), De = Ze(), h = D("zh-cn"), ae = ve("EP_PICKER_BASE"), E = ve(ia), { shortcuts: te, disabledDate: k, cellClassName: Ce, defaultTime: L, arrowControl: Te } = ae.props, M = je(ae.props, "defaultValue"), O = D(), t = D(p().locale(h.value)), H = D(!1), le = m(() => p(L).locale(h.value)), Pe = m(() => t.value.month()), ne = m(() => t.value.year()), W = D([]), $ = D(null), F = D(null), J = (e) => W.value.length > 0 ? ge(e, W.value, u.format || "HH:mm:ss") : !0, oe = (e) => L && !ce.value && !H.value ? le.value.year(e.year()).month(e.month()).date(e.date()) : R.value ? e.millisecond(0) : e.startOf("day"), c = (e, ...a) => {
31
31
  if (!e)
32
32
  w("pick", e, ...a);
33
33
  else if (la(e)) {
@@ -59,7 +59,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
59
59
  }), Ie = (e) => {
60
60
  const a = he(e.value) ? e.value() : e.value;
61
61
  if (a) {
62
- c(f(a).locale(h.value));
62
+ c(p(a).locale(h.value));
63
63
  return;
64
64
  }
65
65
  e.onClick && e.onClick({
@@ -84,14 +84,14 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
84
84
  else {
85
85
  let e = u.parsedValue;
86
86
  if (!e) {
87
- const a = f(L).locale(h.value), l = Q();
87
+ const a = p(L).locale(h.value), l = Q();
88
88
  e = a.year(l.year()).month(l.month()).date(l.date());
89
89
  }
90
90
  t.value = e, c(e);
91
91
  }
92
92
  }, Ke = () => {
93
- const a = f().locale(h.value).toDate();
94
- H.value = !0, (!k || !k(a)) && J(a) && (t.value = f().locale(h.value), c(t.value));
93
+ const a = p().locale(h.value).toDate();
94
+ H.value = !0, (!k || !k(a)) && J(a) && (t.value = p().locale(h.value), c(t.value));
95
95
  }, q = m(() => ca(u.format)), ie = m(() => da(u.format)), ce = m(() => {
96
96
  if (F.value)
97
97
  return F.value;
@@ -121,45 +121,45 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
121
121
  const { hour: y, minute: b, second: X } = G(e), Z = u.parsedValue ? u.parsedValue.hour(y).minute(b).second(X) : e;
122
122
  t.value = Z, c(t.value, !0), l || (S.value = a);
123
123
  }, Ae = (e) => {
124
- const a = f(e, q.value).locale(h.value);
124
+ const a = p(e, q.value).locale(h.value);
125
125
  if (a.isValid() && J(a)) {
126
126
  const { year: l, month: y, date: b } = G(t.value);
127
127
  t.value = a.year(l).month(y).date(b), F.value = null, S.value = !1, c(t.value, !0);
128
128
  }
129
129
  }, Ue = (e) => {
130
- const a = f(e, ie.value).locale(h.value);
130
+ const a = p(e, ie.value).locale(h.value);
131
131
  if (a.isValid()) {
132
132
  if (k && k(a.toDate()))
133
133
  return;
134
134
  const { hour: l, minute: y, second: b } = G(t.value);
135
135
  t.value = a.hour(l).minute(y).second(b), $.value = null, c(t.value, !0);
136
136
  }
137
- }, Ee = (e) => f.isDayjs(e) && e.isValid() && (k ? !k(e.toDate()) : !0), Le = (e) => i.value === "dates" ? e.map((a) => a.format(u.format)) : e.format(u.format), He = (e) => f(e, u.format).locale(h.value), Q = () => {
138
- const e = f(M.value).locale(h.value);
137
+ }, Ee = (e) => p.isDayjs(e) && e.isValid() && (k ? !k(e.toDate()) : !0), Le = (e) => i.value === "dates" ? e.map((a) => a.format(u.format)) : e.format(u.format), He = (e) => p(e, u.format).locale(h.value), Q = () => {
138
+ const e = p(M.value).locale(h.value);
139
139
  if (!M.value) {
140
140
  const a = le.value;
141
- return f().hour(a.hour()).minute(a.minute()).second(a.second()).locale(h.value);
141
+ return p().hour(a.hour()).minute(a.minute()).second(a.second()).locale(h.value);
142
142
  }
143
143
  return e;
144
144
  }, _ = async () => {
145
145
  var e;
146
- ["week", "month", "year", "date"].includes(i.value) && ((e = O.value) == null || e.focus(), i.value === "week" && de(p.down));
146
+ ["week", "month", "year", "date"].includes(i.value) && ((e = O.value) == null || e.focus(), i.value === "week" && de(f.down));
147
147
  }, We = (e) => {
148
148
  const { code: a } = e;
149
149
  [
150
- p.up,
151
- p.down,
152
- p.left,
153
- p.right,
154
- p.home,
155
- p.end,
156
- p.pageUp,
157
- p.pageDown
158
- ].includes(a) && (de(a), e.stopPropagation(), e.preventDefault()), [p.enter, p.space, p.numpadEnter].includes(
150
+ f.up,
151
+ f.down,
152
+ f.left,
153
+ f.right,
154
+ f.home,
155
+ f.end,
156
+ f.pageUp,
157
+ f.pageDown
158
+ ].includes(a) && (de(a), e.stopPropagation(), e.preventDefault()), [f.enter, f.space, f.numpadEnter].includes(
159
159
  a
160
160
  ) && $.value === null && F.value === null && (e.preventDefault(), c(t.value, !1));
161
161
  }, de = (e) => {
162
- const { up: a, down: l, left: y, right: b, home: X, end: Z, pageUp: Je, pageDown: qe } = p, Ge = {
162
+ const { up: a, down: l, left: y, right: b, home: X, end: Z, pageUp: Je, pageDown: qe } = f, Ge = {
163
163
  year: {
164
164
  [a]: -4,
165
165
  [l]: 4,
@@ -202,7 +202,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
202
202
  he(o[e]) ? o[e](B) : o[e] ?? 0
203
203
  ), k && k(B))
204
204
  break;
205
- const V = f(B).locale(h.value);
205
+ const V = p(B).locale(h.value);
206
206
  t.value = V, w("pick", V, !0);
207
207
  break;
208
208
  }
@@ -324,14 +324,14 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
324
324
  class: r(["d-arrow-left", n(d).e("icon-btn")]),
325
325
  onClick: a[2] || (a[2] = (l) => se(!1))
326
326
  }, [
327
- T(n(U), { icon: "ico-ep:d-arrow-left" })
327
+ T(n(U), { icon: "icon-d-arrow-left" })
328
328
  ], 2),
329
329
  P(v("button", {
330
330
  type: "button",
331
331
  class: r([n(d).e("icon-btn"), "arrow-left"]),
332
332
  onClick: a[3] || (a[3] = (l) => re(!1))
333
333
  }, [
334
- T(n(U), { icon: "ico-ep:arrow-left" })
334
+ T(n(U), { icon: "icon-arrow-left" })
335
335
  ], 2), [
336
336
  [N, s.value === "date"]
337
337
  ])
@@ -365,7 +365,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
365
365
  class: r([n(d).e("icon-btn"), "arrow-right"]),
366
366
  onClick: a[8] || (a[8] = (l) => re(!0))
367
367
  }, [
368
- T(n(U), { icon: "ico-ep:arrow-right" })
368
+ T(n(U), { icon: "icon-arrow-right" })
369
369
  ], 2), [
370
370
  [N, s.value === "date"]
371
371
  ]),
@@ -374,7 +374,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
374
374
  class: r([n(d).e("icon-btn"), "d-arrow-right"]),
375
375
  onClick: a[9] || (a[9] = (l) => se(!0))
376
376
  }, [
377
- T(n(U), { icon: "ico-ep:d-arrow-right" })
377
+ T(n(U), { icon: "icon-d-arrow-right" })
378
378
  ], 2)
379
379
  ], 2)
380
380
  ], 2), [
@@ -425,8 +425,8 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
425
425
  class: r(n(d).e("link-btn")),
426
426
  onClick: Ke
427
427
  }, {
428
- default: pe(() => [
429
- fe(" 现在 ")
428
+ default: fe(() => [
429
+ pe(" 现在 ")
430
430
  ]),
431
431
  _: 1
432
432
  }, 8, ["class"]), [
@@ -438,8 +438,8 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
438
438
  class: r(n(d).e("link-btn")),
439
439
  onClick: Be
440
440
  }, {
441
- default: pe(() => [
442
- fe(" 确认 ")
441
+ default: fe(() => [
442
+ pe(" 确认 ")
443
443
  ]),
444
444
  _: 1
445
445
  }, 8, ["class"])
@@ -1,14 +1,14 @@
1
- import { defineComponent as _e, inject as qe, toRef as ie, ref as V, computed as v, openBlock as p, createElementBlock as h, normalizeClass as s, unref as e, createElementVNode as c, renderSlot as Ge, Fragment as He, renderList as Je, toDisplayString as _, createCommentVNode as C, createVNode as d, withDirectives as de, createBlock as Qe, withCtx as ve, createTextVNode as ce } from "vue";
1
+ import { defineComponent as _e, inject as qe, toRef as ie, ref as V, computed as v, openBlock as h, createElementBlock as p, normalizeClass as s, unref as e, createElementVNode as c, renderSlot as Ge, Fragment as He, renderList as Je, toDisplayString as _, createCommentVNode as C, createVNode as d, withDirectives as de, createBlock as Qe, withCtx as ve, createTextVNode as ce } from "vue";
2
2
  import { ClickOutside as me } from "@vft/directives";
3
3
  import { isArray as fe } from "@vft/utils";
4
- import { VftButton as pe } from "../../button/index.js";
4
+ import { VftButton as he } from "../../button/index.js";
5
5
  import { VftIcon as b } from "../../icon/index.js";
6
6
  import { VftInput as E } from "../../input/index.js";
7
7
  import "../../time-picker/index.js";
8
8
  import T from "dayjs";
9
9
  import { useRangePicker as We } from "../composables/use-range-picker.js";
10
10
  import { panelDateRangeProps as Xe } from "../props/panel-date-range.js";
11
- import { isValidRange as he, getDefaultValue as Ze } from "../utils.js";
11
+ import { isValidRange as pe, getDefaultValue as Ze } from "../utils.js";
12
12
  import be from "./basic-date-table.vue2.js";
13
13
  import ge from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
14
14
  import { extractTimeFormat as je, extractDateFormat as ea } from "../../time-picker/utils.js";
@@ -60,7 +60,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
60
60
  }, Y = v(() => {
61
61
  const l = (O.value + 1) % 12, a = O.value + 1 >= 12 ? 1 : 0;
62
62
  return f.unlinkPanels && new Date(Z.value + a, l) < new Date(j.value, ee.value);
63
- }), z = v(() => f.unlinkPanels && j.value * 12 + ee.value - (Z.value * 12 + O.value + 1) >= 12), Re = v(() => !(r.value && u.value && !P.value.selecting && he([r.value, u.value]))), R = v(() => f.type === "datetime" || f.type === "datetimerange"), le = (l, a) => {
63
+ }), z = v(() => f.unlinkPanels && j.value * 12 + ee.value - (Z.value * 12 + O.value + 1) >= 12), Re = v(() => !(r.value && u.value && !P.value.selecting && pe([r.value, u.value]))), R = v(() => f.type === "datetime" || f.type === "datetimerange"), le = (l, a) => {
64
64
  if (l)
65
65
  return L ? T(L[a] || L).locale(g.value).year(l.year()).month(l.month()).date(l.date()) : l;
66
66
  }, te = (l, a = !0) => {
@@ -104,7 +104,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
104
104
  } else
105
105
  o.value = n.value.add(1, A), a && (o.value = o.value.hour(a.hour()).minute(a.minute()).second(a.second()));
106
106
  }
107
- return w("set-picker-option", ["isValidValue", he]), w("set-picker-option", ["parseUserInput", Oe]), w("set-picker-option", ["formatToString", Le]), w("set-picker-option", ["handleClear", se]), (l, a) => (p(), h("div", {
107
+ return w("set-picker-option", ["isValidValue", pe]), w("set-picker-option", ["parseUserInput", Oe]), w("set-picker-option", ["formatToString", Le]), w("set-picker-option", ["handleClear", se]), (l, a) => (h(), p("div", {
108
108
  class: s([
109
109
  e(i).b(),
110
110
  e(m).b(),
@@ -120,11 +120,11 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
120
120
  Ge(l.$slots, "sidebar", {
121
121
  class: s(e(i).e("sidebar"))
122
122
  }),
123
- ae.value ? (p(), h("div", {
123
+ ae.value ? (h(), p("div", {
124
124
  key: 0,
125
125
  class: s(e(i).e("sidebar"))
126
126
  }, [
127
- (p(!0), h(He, null, Je(H.value, (t, x) => (p(), h("button", {
127
+ (h(!0), p(He, null, Je(H.value, (t, x) => (h(), p("button", {
128
128
  key: x,
129
129
  type: "button",
130
130
  class: s(e(i).e("shortcut")),
@@ -134,7 +134,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
134
134
  c("div", {
135
135
  class: s(e(i).e("body"))
136
136
  }, [
137
- R.value ? (p(), h("div", {
137
+ R.value ? (h(), p("div", {
138
138
  key: 0,
139
139
  class: s(e(m).e("time-header"))
140
140
  }, [
@@ -155,7 +155,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
155
155
  onChange: a[1] || (a[1] = (t) => oe(t, "min"))
156
156
  }, null, 8, ["disabled", "class", "model-value"])
157
157
  ], 2),
158
- de((p(), h("span", {
158
+ de((h(), p("span", {
159
159
  class: s(e(m).e("time-picker-wrap"))
160
160
  }, [
161
161
  d(e(E), {
@@ -182,7 +182,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
182
182
  ])
183
183
  ], 2),
184
184
  c("span", null, [
185
- d(e(b), { icon: "ico-ep:arrow-right" })
185
+ d(e(b), { icon: "icon-arrow-right" })
186
186
  ]),
187
187
  c("span", {
188
188
  class: s([e(m).e("editors-wrap"), "is-right"])
@@ -202,7 +202,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
202
202
  onChange: a[6] || (a[6] = (t) => oe(t, "max"))
203
203
  }, null, 8, ["class", "disabled", "model-value", "readonly"])
204
204
  ], 2),
205
- de((p(), h("span", {
205
+ de((h(), p("span", {
206
206
  class: s(e(m).e("time-picker-wrap"))
207
207
  }, [
208
208
  d(e(E), {
@@ -241,32 +241,32 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
241
241
  class: s([e(i).e("icon-btn"), "d-arrow-left"]),
242
242
  onClick: De
243
243
  }, [
244
- d(e(b), { icon: "ico-ep:d-arrow-left" })
244
+ d(e(b), { icon: "icon-d-arrow-left" })
245
245
  ], 2),
246
246
  c("button", {
247
247
  type: "button",
248
248
  class: s([e(i).e("icon-btn"), "arrow-left"]),
249
249
  onClick: Ie
250
250
  }, [
251
- d(e(b), { icon: "ico-ep:arrow-left" })
251
+ d(e(b), { icon: "icon-arrow-left" })
252
252
  ], 2),
253
- l.unlinkPanels ? (p(), h("button", {
253
+ l.unlinkPanels ? (h(), p("button", {
254
254
  key: 0,
255
255
  type: "button",
256
256
  disabled: !z.value,
257
257
  class: s([[e(i).e("icon-btn"), { "is-disabled": !z.value }], "d-arrow-right"]),
258
258
  onClick: Ne
259
259
  }, [
260
- d(e(b), { icon: "ico-ep:d-arrow-right" })
260
+ d(e(b), { icon: "icon-d-arrow-right" })
261
261
  ], 10, la)) : C("", !0),
262
- l.unlinkPanels ? (p(), h("button", {
262
+ l.unlinkPanels ? (h(), p("button", {
263
263
  key: 1,
264
264
  type: "button",
265
265
  disabled: !Y.value,
266
266
  class: s([[e(i).e("icon-btn"), { "is-disabled": !Y.value }], "arrow-right"]),
267
267
  onClick: Be
268
268
  }, [
269
- d(e(b), { icon: "ico-ep:arrow-right" })
269
+ d(e(b), { icon: "icon-arrow-right" })
270
270
  ], 10, ta)) : C("", !0),
271
271
  c("div", null, _(we.value), 1)
272
272
  ], 2),
@@ -289,37 +289,37 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
289
289
  c("div", {
290
290
  class: s(e(m).e("header"))
291
291
  }, [
292
- l.unlinkPanels ? (p(), h("button", {
292
+ l.unlinkPanels ? (h(), p("button", {
293
293
  key: 0,
294
294
  type: "button",
295
295
  disabled: !z.value,
296
296
  class: s([[e(i).e("icon-btn"), { "is-disabled": !z.value }], "d-arrow-left"]),
297
297
  onClick: Ye
298
298
  }, [
299
- d(e(b), { icon: "ico-ep:d-arrow-left" })
299
+ d(e(b), { icon: "icon-d-arrow-left" })
300
300
  ], 10, na)) : C("", !0),
301
- l.unlinkPanels ? (p(), h("button", {
301
+ l.unlinkPanels ? (h(), p("button", {
302
302
  key: 1,
303
303
  type: "button",
304
304
  disabled: !Y.value,
305
305
  class: s([[e(i).e("icon-btn"), { "is-disabled": !Y.value }], "arrow-left"]),
306
306
  onClick: ze
307
307
  }, [
308
- d(e(b), { icon: "ico-ep:arrow-left" })
308
+ d(e(b), { icon: "icon-arrow-left" })
309
309
  ], 10, oa)) : C("", !0),
310
310
  c("button", {
311
311
  type: "button",
312
312
  class: s([e(i).e("icon-btn"), "d-arrow-right"]),
313
313
  onClick: Se
314
314
  }, [
315
- d(e(b), { icon: "ico-ep:d-arrow-right" })
315
+ d(e(b), { icon: "icon-d-arrow-right" })
316
316
  ], 2),
317
317
  c("button", {
318
318
  type: "button",
319
319
  class: s([e(i).e("icon-btn"), "arrow-right"]),
320
320
  onClick: $e
321
321
  }, [
322
- d(e(b), { icon: "ico-ep:arrow-right" })
322
+ d(e(b), { icon: "icon-arrow-right" })
323
323
  ], 2),
324
324
  c("div", null, _(Pe.value), 1)
325
325
  ], 2),
@@ -338,11 +338,11 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
338
338
  ], 2)
339
339
  ], 2)
340
340
  ], 2),
341
- R.value ? (p(), h("div", {
341
+ R.value ? (h(), p("div", {
342
342
  key: 0,
343
343
  class: s(e(i).e("footer"))
344
344
  }, [
345
- e(ye) ? (p(), Qe(e(pe), {
345
+ e(ye) ? (h(), Qe(e(he), {
346
346
  key: 0,
347
347
  text: "",
348
348
  size: "small",
@@ -354,7 +354,7 @@ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"],
354
354
  ]),
355
355
  _: 1
356
356
  }, 8, ["class"])) : C("", !0),
357
- d(e(pe), {
357
+ d(e(he), {
358
358
  plain: "",
359
359
  size: "small",
360
360
  class: s(e(i).e("link-btn")),
@@ -12,7 +12,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
12
12
  props: re,
13
13
  emits: le,
14
14
  setup(T, { emit: F }) {
15
- const p = T, S = C("zh-cn"), w = Z("EP_PICKER_BASE"), { shortcuts: R, disabledDate: Y, format: H } = w.props, K = L(w.props, "defaultValue"), g = C(z().locale(S.value)), u = C(z().locale(S.value).add(1, k)), {
15
+ const g = T, S = C("zh-cn"), w = Z("EP_PICKER_BASE"), { shortcuts: R, disabledDate: Y, format: H } = w.props, K = L(w.props, "defaultValue"), p = C(z().locale(S.value)), u = C(z().locale(S.value).add(1, k)), {
16
16
  minDate: b,
17
17
  maxDate: f,
18
18
  rangeState: _,
@@ -22,9 +22,9 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
22
22
  handleRangeConfirm: q,
23
23
  handleShortcutClick: G,
24
24
  onSelect: V
25
- } = oe(p, {
25
+ } = oe(g, {
26
26
  defaultValue: K,
27
- leftDate: g,
27
+ leftDate: p,
28
28
  rightDate: u,
29
29
  unit: k,
30
30
  onParsedValueChanged: X
@@ -38,19 +38,19 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
38
38
  leftYear: Q,
39
39
  rightYear: U
40
40
  } = ae({
41
- unlinkPanels: L(p, "unlinkPanels"),
42
- leftDate: g,
41
+ unlinkPanels: L(g, "unlinkPanels"),
42
+ leftDate: p,
43
43
  rightDate: u
44
- }), v = j(() => p.unlinkPanels && U.value > Q.value + 1), $ = (r, t = !0) => {
44
+ }), v = j(() => g.unlinkPanels && U.value > Q.value + 1), $ = (r, t = !0) => {
45
45
  const n = r.minDate, s = r.maxDate;
46
46
  f.value === s && b.value === n || (f.value = s, b.value = n, t && q());
47
47
  }, W = (r) => r.map((t) => t.format(H));
48
48
  function X(r, t) {
49
- if (p.unlinkPanels && t) {
49
+ if (g.unlinkPanels && t) {
50
50
  const n = (r == null ? void 0 : r.year()) || 0, s = t.year();
51
51
  u.value = n === s ? t.add(1, k) : t;
52
52
  } else
53
- u.value = g.value.add(1, k);
53
+ u.value = p.value.add(1, k);
54
54
  }
55
55
  return F("set-picker-option", ["formatToString", W]), (r, t) => (i(), d("div", {
56
56
  class: a([
@@ -93,7 +93,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
93
93
  onClick: t[0] || (t[0] = //@ts-ignore
94
94
  (...n) => e(D) && e(D)(...n))
95
95
  }, [
96
- c(e(h), { icon: "ico-ep:d-arrow-left" })
96
+ c(e(h), { icon: "icon-d-arrow-left" })
97
97
  ], 2),
98
98
  r.unlinkPanels ? (i(), d("button", {
99
99
  key: 0,
@@ -106,13 +106,13 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
106
106
  onClick: t[1] || (t[1] = //@ts-ignore
107
107
  (...n) => e(B) && e(B)(...n))
108
108
  }, [
109
- c(e(h), { icon: "ico-ep:d-arrow-right" })
109
+ c(e(h), { icon: "icon-d-arrow-right" })
110
110
  ], 10, ie)) : y("", !0),
111
111
  l("div", null, P(e(J)), 1)
112
112
  ], 2),
113
113
  c(A, {
114
114
  "selection-mode": "range",
115
- date: g.value,
115
+ date: p.value,
116
116
  "min-date": e(b),
117
117
  "max-date": e(f),
118
118
  "range-state": e(_),
@@ -136,7 +136,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
136
136
  onClick: t[2] || (t[2] = //@ts-ignore
137
137
  (...n) => e(M) && e(M)(...n))
138
138
  }, [
139
- c(e(h), { icon: "ico-ep:d-arrow-left" })
139
+ c(e(h), { icon: "icon-d-arrow-left" })
140
140
  ], 10, de)) : y("", !0),
141
141
  l("button", {
142
142
  type: "button",
@@ -144,7 +144,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
144
144
  onClick: t[3] || (t[3] = //@ts-ignore
145
145
  (...n) => e(E) && e(E)(...n))
146
146
  }, [
147
- c(e(h), { icon: "ico-ep:d-arrow-right" })
147
+ c(e(h), { icon: "icon-d-arrow-right" })
148
148
  ], 2),
149
149
  l("div", null, P(e(O)), 1)
150
150
  ], 2),
@@ -76,7 +76,7 @@ const c = (
76
76
  }, [e("span", {
77
77
  key: n
78
78
  }, [f.text]), g.value === n ? e(k, {
79
- icon: "ico-ep:check"
79
+ icon: "icon-check"
80
80
  }, null) : null])), e(S, {
81
81
  type: "daterange",
82
82
  "range-separator": "To",
@@ -97,10 +97,10 @@ const c = (
97
97
  class: [w.value ? "text" : "placeholder"]
98
98
  }, [w.value || H.value]), t.value ? e(k, {
99
99
  onClick: N,
100
- icon: "ico-ep:circle-close",
100
+ icon: "icon-circle-close",
101
101
  class: "hover:text-black"
102
102
  }, null) : null, t.value ? e(k, {
103
- icon: "ico-ep:arrow-down",
103
+ icon: "icon-arrow-down",
104
104
  class: [{
105
105
  "rotate-180": C.value
106
106
  }]
@@ -20,7 +20,7 @@ const V = ["id"], z = p({
20
20
  props: {
21
21
  center: { type: Boolean, default: !1 },
22
22
  alignCenter: { type: Boolean, default: !1 },
23
- closeIcon: { default: "ico-ep:close" },
23
+ closeIcon: { default: "icon-close" },
24
24
  customClass: {},
25
25
  draggable: { type: Boolean, default: !1 },
26
26
  fullscreen: { type: Boolean, default: !1 },