vft 0.0.119 → 0.0.121

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 (81) hide show
  1. package/attributes.json +1 -1
  2. package/es/component.js +25 -23
  3. package/es/components/backtop/backtop.vue2.js +3 -2
  4. package/es/components/button/button.vue2.js +21 -21
  5. package/es/components/context-menu/context-menu.vue2.js +3 -2
  6. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +53 -57
  7. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  8. package/es/components/header-layout/header-layout.vue2.js +3 -2
  9. package/es/components/index.js +269 -261
  10. package/es/components/md-container/md-container.vue2.js +3 -2
  11. package/es/components/menu/menu-item.vue2.js +3 -2
  12. package/es/components/menu/sub-menu.vue2.js +3 -2
  13. package/es/components/message/message.vue2.js +12 -12
  14. package/es/components/modal/index.js +15 -0
  15. package/es/components/modal/modal.vue.js +4 -0
  16. package/es/components/modal/modal.vue2.js +92 -0
  17. package/es/components/modal/style/css.js +4 -0
  18. package/es/components/modal/style/index.js +4 -0
  19. package/es/components/modal/use/use-modal.js +95 -0
  20. package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -14
  21. package/es/components/multiple-tabs/tab-content.vue2.js +11 -12
  22. package/es/components/multiple-tabs/use/use-multiple-tabs.js +22 -23
  23. package/es/components/result/result.vue2.js +3 -2
  24. package/es/components/side-menu/side-menu.vue2.js +26 -25
  25. package/es/components/super-form/component-map.js +24 -23
  26. package/es/components/super-form/super-form-action.vue2.js +28 -29
  27. package/es/components/super-form/super-form-item.vue2.js +132 -123
  28. package/es/components/super-form/super-form.vue2.js +139 -136
  29. package/es/components/super-form/use/use-form-events.js +144 -139
  30. package/es/components/table/field.js +90 -52
  31. package/es/components/table/index.js +15 -12
  32. package/es/components/table/types.js +1 -0
  33. package/es/components/tabs/tab-nav.vue2.js +3 -2
  34. package/es/components/upload/upload-content.vue2.js +2 -2
  35. package/es/components/upload/upload.vue2.js +40 -49
  36. package/es/index.js +354 -346
  37. package/es/package.json.js +1 -1
  38. package/lib/component.cjs +1 -1
  39. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  40. package/lib/components/button/button.vue2.cjs +1 -1
  41. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  42. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  43. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  44. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  45. package/lib/components/index.cjs +1 -1
  46. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  47. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  48. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  49. package/lib/components/message/message.vue2.cjs +1 -1
  50. package/lib/components/modal/index.cjs +1 -0
  51. package/lib/components/modal/modal.vue.cjs +1 -0
  52. package/lib/components/modal/modal.vue2.cjs +1 -0
  53. package/lib/components/modal/style/css.cjs +1 -0
  54. package/lib/components/modal/style/index.cjs +1 -0
  55. package/lib/components/modal/use/use-modal.cjs +1 -0
  56. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  57. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  58. package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
  59. package/lib/components/result/result.vue2.cjs +1 -1
  60. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  61. package/lib/components/super-form/component-map.cjs +1 -1
  62. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  63. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  64. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  65. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  66. package/lib/components/table/field.cjs +1 -1
  67. package/lib/components/table/index.cjs +1 -1
  68. package/lib/components/table/types.cjs +1 -0
  69. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  70. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  71. package/lib/components/upload/upload.vue2.cjs +1 -1
  72. package/lib/index.cjs +1 -1
  73. package/lib/package.json.cjs +1 -1
  74. package/package.json +3 -3
  75. package/tags.json +1 -1
  76. package/theme-style/src/index.scss +1 -0
  77. package/theme-style/src/modal.scss +0 -0
  78. package/theme-style/vft-modal.css +0 -0
  79. package/web-types.json +1 -1
  80. /package/es/components/{table/type.js → modal/types.js} +0 -0
  81. /package/lib/components/{table/type.cjs → modal/types.cjs} +0 -0
package/es/component.js CHANGED
@@ -60,50 +60,52 @@ import { VftPopconfirm as To } from "./components/popconfirm/index.js";
60
60
  import { VftAlert as go } from "./components/alert/index.js";
61
61
  import { VftDrawer as Io } from "./components/drawer/index.js";
62
62
  import { VftProgress as So } from "./components/progress/index.js";
63
- import { VftSkeleton as bo, VftSkeletonItem as Po } from "./components/skeleton/index.js";
64
- import { VftAside as ko, VftContainer as Do, VftFooter as wo, VftHeader as yo, VftMain as ho } from "./components/container/index.js";
65
- import { VftSelect as xo } from "./components/select/index.js";
66
- import { VftInputNumber as Fo } from "./components/input-number/index.js";
67
- import { VftAutocomplete as Lo } from "./components/autocomplete/index.js";
68
- import { VftSlider as Ro } from "./components/slider/index.js";
69
- import { VftUpload as vo } from "./components/upload/index.js";
70
- import { VftSuperForm as Bo } from "./components/super-form/index.js";
71
- import { VftMdComment as Ao } from "./components/md-comment/index.js";
72
- import { VftMdTabs as Go } from "./components/md-tabs/index.js";
73
- import { VftMdVuePlayground as Ho } from "./components/md-vue-playground/index.js";
74
- import { VftMdCodeDemo as Eo } from "./components/md-code-demo/index.js";
75
- import { VftMdCodeTabs as zo } from "./components/md-code-tabs/index.js";
76
- import { VftMdContainer as No } from "./components/md-container/index.js";
77
- const ar = [
63
+ import { VftModal as bo } from "./components/modal/index.js";
64
+ import { VftSkeleton as Po, VftSkeletonItem as ko } from "./components/skeleton/index.js";
65
+ import { VftAside as Do, VftContainer as wo, VftFooter as yo, VftHeader as ho, VftMain as xo } from "./components/container/index.js";
66
+ import { VftSelect as Fo } from "./components/select/index.js";
67
+ import { VftInputNumber as Lo } from "./components/input-number/index.js";
68
+ import { VftAutocomplete as Ro } from "./components/autocomplete/index.js";
69
+ import { VftSlider as vo } from "./components/slider/index.js";
70
+ import { VftUpload as Bo } from "./components/upload/index.js";
71
+ import { VftSuperForm as Ao } from "./components/super-form/index.js";
72
+ import { VftMdComment as Go } from "./components/md-comment/index.js";
73
+ import { VftMdTabs as Ho } from "./components/md-tabs/index.js";
74
+ import { VftMdVuePlayground as Eo } from "./components/md-vue-playground/index.js";
75
+ import { VftMdCodeDemo as zo } from "./components/md-code-demo/index.js";
76
+ import { VftMdCodeTabs as No } from "./components/md-code-tabs/index.js";
77
+ import { VftMdContainer as Oo } from "./components/md-container/index.js";
78
+ const lr = [
79
+ Ao,
78
80
  Bo,
79
- vo,
80
81
  So,
81
- Fo,
82
82
  Lo,
83
83
  Ro,
84
+ vo,
85
+ bo,
84
86
  // VftRate,
85
87
  Io,
86
88
  go,
87
- xo,
89
+ Fo,
88
90
  To,
89
91
  Mo,
90
92
  so,
91
- bo,
92
93
  Po,
94
+ ko,
93
95
  Co,
94
96
  co,
97
+ Oo,
95
98
  No,
96
99
  zo,
97
100
  Eo,
98
101
  Ho,
99
- Go,
100
102
  uo,
101
- Ao,
102
- ko,
103
+ Go,
103
104
  Do,
104
105
  wo,
105
106
  yo,
106
107
  ho,
108
+ xo,
107
109
  eo,
108
110
  ao,
109
111
  lo,
@@ -172,5 +174,5 @@ const ar = [
172
174
  N
173
175
  ];
174
176
  export {
175
- ar as default
177
+ lr as default
176
178
  };
@@ -76,6 +76,7 @@ import "../autocomplete/index.js";
76
76
  import "../super-form/index.js";
77
77
  import "../progress/index.js";
78
78
  import "../upload/index.js";
79
+ import "../modal/index.js";
79
80
  import "../md-container/index.js";
80
81
  import "../md-comment/index.js";
81
82
  import "../md-tabs/index.js";
@@ -95,7 +96,7 @@ const m = (
95
96
  _("backtop")
96
97
  ), N = c({
97
98
  name: "vft-backtop"
98
- }), go = /* @__PURE__ */ c({
99
+ }), vo = /* @__PURE__ */ c({
99
100
  ...N,
100
101
  props: {
101
102
  visibilityHeight: { default: 200 },
@@ -138,5 +139,5 @@ const m = (
138
139
  }
139
140
  });
140
141
  export {
141
- go as default
142
+ vo as default
142
143
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as B, computed as I, openBlock as n, createBlock as a, resolveDynamicComponent as _, mergeProps as m, unref as e, withCtx as j, createElementBlock as y, Fragment as A, renderSlot as f, normalizeClass as k, normalizeProps as F, createCommentVNode as b } from "vue";
1
+ import { defineComponent as B, computed as I, openBlock as n, createBlock as a, resolveDynamicComponent as _, mergeProps as m, unref as e, withCtx as A, createElementBlock as y, Fragment as N, renderSlot as f, normalizeClass as k, normalizeProps as P, createCommentVNode as b } from "vue";
2
2
  import { VftIcon as g } from "../icon/index.js";
3
- import { useNamespace as N } from "../../hooks/use-namespace/index.js";
3
+ import { useNamespace as T } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
- import { singleAttrToObj as O } from "@vft/utils";
8
+ import { singleAttrToObj as V } from "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
- import { useButton as P } from "./use-button.js";
11
- import { useButtonCustomStyle as T } from "./button-custom.js";
10
+ import { useButton as j } from "./use-button.js";
11
+ import { useButtonCustomStyle as w } from "./button-custom.js";
12
12
  const t = (
13
13
  /* hoist-static*/
14
- N("button")
15
- ), V = B({
14
+ T("button")
15
+ ), D = B({
16
16
  name: "vft-button"
17
17
  }), U = /* @__PURE__ */ B({
18
- ...V,
18
+ ...D,
19
19
  props: {
20
- tag: { type: [String, Object, Function], default: "button" },
20
+ tag: { default: "button" },
21
21
  size: {},
22
22
  disabled: { type: Boolean },
23
23
  type: {},
@@ -38,9 +38,9 @@ const t = (
38
38
  block: { type: Boolean }
39
39
  },
40
40
  emits: ["click"],
41
- setup(C, { expose: S, emit: h }) {
42
- const l = C, s = I(() => O(l.icon, "icon")), v = T(l), { _ref: i, _size: r, _type: p, _disabled: c, _props: z, shouldAddSpace: u, handleClick: $ } = P(l, h);
43
- return S({
41
+ setup(C, { expose: h, emit: v }) {
42
+ const l = C, s = I(() => V(l.icon, "icon")), z = w(l), { _ref: i, _size: r, _type: p, _disabled: c, _props: S, shouldAddSpace: d, handleClick: $ } = j(l, v);
43
+ return h({
44
44
  /** @description button html element */
45
45
  ref: i,
46
46
  /** @description button size */
@@ -50,11 +50,11 @@ const t = (
50
50
  /** @description button disabled */
51
51
  disabled: c,
52
52
  /** @description whether adding space */
53
- shouldAddSpace: u
54
- }), (o, w) => (n(), a(_(o.tag), m({
53
+ shouldAddSpace: d
54
+ }), (o, E) => (n(), a(_(o.tag), m({
55
55
  ref_key: "_ref",
56
56
  ref: i
57
- }, e(z), {
57
+ }, e(S), {
58
58
  class: [
59
59
  e(t).b(),
60
60
  e(t).m(e(p)),
@@ -69,23 +69,23 @@ const t = (
69
69
  e(t).is("has-bg", o.bg),
70
70
  e(t).is("block", o.block)
71
71
  ],
72
- style: e(v),
72
+ style: e(z),
73
73
  onClick: e($)
74
74
  }), {
75
- default: j(() => {
76
- var d;
75
+ default: A(() => {
76
+ var u;
77
77
  return [
78
- o.loading ? (n(), y(A, { key: 0 }, [
78
+ o.loading ? (n(), y(N, { key: 0 }, [
79
79
  o.$slots.loading ? f(o.$slots, "loading", { key: 0 }) : (n(), a(e(g), {
80
80
  key: 1,
81
81
  rotate: "",
82
82
  class: k(e(t).is("loading")),
83
83
  icon: "ico-ep:loading"
84
84
  }, null, 8, ["class"]))
85
- ], 64)) : (d = s.value) != null && d.icon ? (n(), a(e(g), F(m({ key: 1 }, s.value)), null, 16)) : b("", !0),
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", {
87
87
  key: 2,
88
- class: k({ [e(t).em("text", "expand")]: e(u) })
88
+ class: k({ [e(t).em("text", "expand")]: e(d) })
89
89
  }, [
90
90
  f(o.$slots, "default")
91
91
  ], 2)) : b("", !0)
@@ -82,6 +82,7 @@ import "../autocomplete/index.js";
82
82
  import "../super-form/index.js";
83
83
  import "../progress/index.js";
84
84
  import "../upload/index.js";
85
+ import "../modal/index.js";
85
86
  import "../md-container/index.js";
86
87
  import "../md-comment/index.js";
87
88
  import "../md-tabs/index.js";
@@ -94,7 +95,7 @@ const L = { class: "vft-sub-menu" }, N = (
94
95
  A("context-menu")
95
96
  ), R = f({
96
97
  name: "vft-context-menu"
97
- }), Co = /* @__PURE__ */ f({
98
+ }), bo = /* @__PURE__ */ f({
98
99
  ...R,
99
100
  props: {
100
101
  axis: {},
@@ -168,5 +169,5 @@ const L = { class: "vft-sub-menu" }, N = (
168
169
  }
169
170
  });
170
171
  export {
171
- Co as default
172
+ bo as default
172
173
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as f, computed as j, watch as Y, nextTick as $, openBlock as u, createElementBlock as p, normalizeClass as C, unref as N, createElementVNode as g, Fragment as O, renderList as M, withKeys as I, withModifiers as R, toDisplayString as q } from "vue";
1
+ import { defineComponent as j, ref as f, computed as L, watch as Y, nextTick as $, openBlock as u, createElementBlock as p, normalizeClass as N, unref as O, createElementVNode as g, Fragment as C, renderList as M, withKeys as I, withModifiers as R, toDisplayString as q } from "vue";
2
2
  import b from "dayjs";
3
3
  import { useNamespace as G } from "../../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -12,30 +12,26 @@ import { castArray as T } from "../utils.js";
12
12
  import { basicMonthTableProps as J } from "../props/basic-month-table.js";
13
13
  import { datePickerConfig as Q } from "../constants.js";
14
14
  import { rangeArr as U } from "../../time-picker/utils.js";
15
- const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe = /* @__PURE__ */ P({
15
+ const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe = /* @__PURE__ */ j({
16
16
  __name: "basic-month-table",
17
17
  props: J,
18
18
  emits: ["changerange", "pick", "select"],
19
19
  setup(A, { expose: E, emit: d }) {
20
- const e = A, B = (a, t, o) => {
21
- const r = b().locale(o).startOf("month").month(t).year(a), n = r.daysInMonth();
22
- return U(n).map((s) => r.add(s, "day").toDate());
23
- }, K = G("month-table"), x = f("zh-cn"), v = f(), h = f();
24
- f(
25
- e.date.locale("en").localeData().monthsShort().map((a) => a.toLowerCase())
26
- );
27
- const V = f([
20
+ const t = A, B = (n, e, o) => {
21
+ const r = b().locale(o).startOf("month").month(e).year(n), a = r.daysInMonth();
22
+ return U(a).map((s) => r.add(s, "day").toDate());
23
+ }, K = G("month-table"), x = f("zh-cn"), v = f(), h = f(), V = f([
28
24
  [],
29
25
  [],
30
26
  []
31
- ]), w = f(), S = f(), k = j(() => {
27
+ ]), w = f(), S = f(), k = L(() => {
32
28
  var o, r;
33
- const a = V.value, t = b().locale(x.value).startOf("month");
34
- for (let n = 0; n < 3; n++) {
35
- const s = a[n];
29
+ const n = V.value, e = b().locale(x.value).startOf("month");
30
+ for (let a = 0; a < 3; a++) {
31
+ const s = n[a];
36
32
  for (let i = 0; i < 4; i++) {
37
33
  const c = s[i] || (s[i] = {
38
- row: n,
34
+ row: a,
39
35
  column: i,
40
36
  type: "normal",
41
37
  inRange: !1,
@@ -45,83 +41,83 @@ const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe
45
41
  disabled: !1
46
42
  });
47
43
  c.type = "normal";
48
- const _ = n * 4 + i, l = e.date.startOf("year").month(_), m = e.rangeState.endDate || e.maxDate || e.rangeState.selecting && e.minDate || null;
49
- c.inRange = !!(e.minDate && l.isSameOrAfter(e.minDate, "month") && m && l.isSameOrBefore(m, "month")) || !!(e.minDate && l.isSameOrBefore(e.minDate, "month") && m && l.isSameOrAfter(m, "month")), (o = e.minDate) != null && o.isSameOrAfter(m) ? (c.start = !!(m && l.isSame(m, "month")), c.end = e.minDate && l.isSame(e.minDate, "month")) : (c.start = !!(e.minDate && l.isSame(e.minDate, "month")), c.end = !!(m && l.isSame(m, "month"))), t.isSame(l) && (c.type = "today"), c.text = _, c.disabled = ((r = e.disabledDate) == null ? void 0 : r.call(e, l.toDate())) || !1;
44
+ const _ = a * 4 + i, l = t.date.startOf("year").month(_), m = t.rangeState.endDate || t.maxDate || t.rangeState.selecting && t.minDate || null;
45
+ c.inRange = !!(t.minDate && l.isSameOrAfter(t.minDate, "month") && m && l.isSameOrBefore(m, "month")) || !!(t.minDate && l.isSameOrBefore(t.minDate, "month") && m && l.isSameOrAfter(m, "month")), (o = t.minDate) != null && o.isSameOrAfter(m) ? (c.start = !!(m && l.isSame(m, "month")), c.end = t.minDate && l.isSame(t.minDate, "month")) : (c.start = !!(t.minDate && l.isSame(t.minDate, "month")), c.end = !!(m && l.isSame(m, "month"))), e.isSame(l) && (c.type = "today"), c.text = _, c.disabled = ((r = t.disabledDate) == null ? void 0 : r.call(t, l.toDate())) || !1;
50
46
  }
51
47
  }
52
- return a;
48
+ return n;
53
49
  }), z = () => {
54
- var a;
55
- (a = h.value) == null || a.focus();
56
- }, F = (a) => {
57
- const t = {}, o = e.date.year(), r = /* @__PURE__ */ new Date(), n = a.text;
58
- return t.disabled = e.disabledDate ? B(o, n, x.value).every(e.disabledDate) : !1, t.current = T(e.parsedValue).findIndex(
59
- (s) => b.isDayjs(s) && s.year() === o && s.month() === n
60
- ) >= 0, t.today = r.getFullYear() === o && r.getMonth() === n, a.inRange && (t["in-range"] = !0, a.start && (t["start-date"] = !0), a.end && (t["end-date"] = !0)), t;
61
- }, D = (a) => {
62
- const t = e.date.year(), o = a.text;
63
- return T(e.date).findIndex(
64
- (r) => r.year() === t && r.month() === o
65
- ) >= 0;
66
- }, L = (a) => {
67
50
  var n;
68
- if (!e.rangeState.selecting)
51
+ (n = h.value) == null || n.focus();
52
+ }, F = (n) => {
53
+ const e = {}, o = t.date.year(), r = /* @__PURE__ */ new Date(), a = n.text;
54
+ return e.disabled = t.disabledDate ? B(o, a, x.value).every(t.disabledDate) : !1, e.current = T(t.parsedValue).findIndex(
55
+ (s) => b.isDayjs(s) && s.year() === o && s.month() === a
56
+ ) >= 0, e.today = r.getFullYear() === o && r.getMonth() === a, n.inRange && (e["in-range"] = !0, n.start && (e["start-date"] = !0), n.end && (e["end-date"] = !0)), e;
57
+ }, y = (n) => {
58
+ const e = t.date.year(), o = n.text;
59
+ return T(t.date).findIndex(
60
+ (r) => r.year() === e && r.month() === o
61
+ ) >= 0;
62
+ }, P = (n) => {
63
+ var a;
64
+ if (!t.rangeState.selecting)
69
65
  return;
70
- let t = a.target;
71
- if (t.tagName === "A" && (t = (n = t.parentNode) == null ? void 0 : n.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD")
66
+ let e = n.target;
67
+ if (e.tagName === "A" && (e = (a = e.parentNode) == null ? void 0 : a.parentNode), e.tagName === "DIV" && (e = e.parentNode), e.tagName !== "TD")
72
68
  return;
73
- const o = t.parentNode.rowIndex, r = t.cellIndex;
69
+ const o = e.parentNode.rowIndex, r = e.cellIndex;
74
70
  k.value[o][r].disabled || (o !== w.value || r !== S.value) && (w.value = o, S.value = r, d("changerange", {
75
71
  selecting: !0,
76
- endDate: e.date.startOf("year").month(o * 4 + r)
72
+ endDate: t.date.startOf("year").month(o * 4 + r)
77
73
  }));
78
- }, y = (a) => {
74
+ }, D = (n) => {
79
75
  var i;
80
- const t = (i = a.target) == null ? void 0 : i.closest(
76
+ const e = (i = n.target) == null ? void 0 : i.closest(
81
77
  "td"
82
78
  );
83
- if ((t == null ? void 0 : t.tagName) !== "TD" || H(t, "disabled"))
79
+ if ((e == null ? void 0 : e.tagName) !== "TD" || H(e, "disabled"))
84
80
  return;
85
- const o = t.cellIndex, n = t.parentNode.rowIndex * 4 + o, s = e.date.startOf("year").month(n);
86
- e.selectionMode === "range" ? e.rangeState.selecting ? (e.minDate && s >= e.minDate ? d("pick", { minDate: e.minDate, maxDate: s }) : d("pick", { minDate: s, maxDate: e.minDate }), d("select", !1)) : (d("pick", { minDate: s, maxDate: null }), d("select", !0)) : d("pick", n);
81
+ const o = e.cellIndex, a = e.parentNode.rowIndex * 4 + o, s = t.date.startOf("year").month(a);
82
+ t.selectionMode === "range" ? t.rangeState.selecting ? (t.minDate && s >= t.minDate ? d("pick", { minDate: t.minDate, maxDate: s }) : d("pick", { minDate: s, maxDate: t.minDate }), d("select", !1)) : (d("pick", { minDate: s, maxDate: null }), d("select", !0)) : d("pick", a);
87
83
  };
88
84
  return Y(
89
- () => e.date,
85
+ () => t.date,
90
86
  async () => {
91
- var a, t;
92
- (a = v.value) != null && a.contains(document.activeElement) && (await $(), (t = h.value) == null || t.focus());
87
+ var n, e;
88
+ (n = v.value) != null && n.contains(document.activeElement) && (await $(), (e = h.value) == null || e.focus());
93
89
  }
94
90
  ), E({
95
91
  /**
96
92
  * @description focus current cell
97
93
  */
98
94
  focus: z
99
- }), (a, t) => (u(), p("table", {
95
+ }), (n, e) => (u(), p("table", {
100
96
  role: "grid",
101
97
  "aria-label": "使用方向键与 Enter 键以选择月份",
102
- class: C(N(K).b()),
103
- onClick: y,
104
- onMousemove: L
98
+ class: N(O(K).b()),
99
+ onClick: D,
100
+ onMousemove: P
105
101
  }, [
106
102
  g("tbody", {
107
103
  ref_key: "tbodyRef",
108
104
  ref: v
109
105
  }, [
110
- (u(!0), p(O, null, M(k.value, (o, r) => (u(), p("tr", { key: r }, [
111
- (u(!0), p(O, null, M(o, (n, s) => (u(), p("td", {
106
+ (u(!0), p(C, null, M(k.value, (o, r) => (u(), p("tr", { key: r }, [
107
+ (u(!0), p(C, null, M(o, (a, s) => (u(), p("td", {
112
108
  key: s,
113
109
  ref_for: !0,
114
- ref: (i) => D(n) && (h.value = i),
115
- class: C(F(n)),
116
- "aria-selected": `${D(n)}`,
117
- tabindex: D(n) ? 0 : -1,
110
+ ref: (i) => y(a) && (h.value = i),
111
+ class: N(F(a)),
112
+ "aria-selected": `${y(a)}`,
113
+ tabindex: y(a) ? 0 : -1,
118
114
  onKeydown: [
119
- I(R(y, ["prevent", "stop"]), ["space"]),
120
- I(R(y, ["prevent", "stop"]), ["enter"])
115
+ I(R(D, ["prevent", "stop"]), ["space"]),
116
+ I(R(D, ["prevent", "stop"]), ["enter"])
121
117
  ]
122
118
  }, [
123
119
  g("div", null, [
124
- g("span", X, q(N(Q)["month" + (n.text + 1)]), 1)
120
+ g("span", X, q(O(Q)["month" + (a.text + 1)]), 1)
125
121
  ])
126
122
  ], 42, W))), 128))
127
123
  ]))), 128))
@@ -82,6 +82,7 @@ import "../autocomplete/index.js";
82
82
  import "../super-form/index.js";
83
83
  import "../progress/index.js";
84
84
  import "../upload/index.js";
85
+ import "../modal/index.js";
85
86
  import "../md-container/index.js";
86
87
  import "../md-comment/index.js";
87
88
  import "../md-tabs/index.js";
@@ -94,7 +95,7 @@ const r = (
94
95
  n("footer-layout")
95
96
  ), c = e({
96
97
  name: "vft-footer-layout"
97
- }), Yt = /* @__PURE__ */ e({
98
+ }), Zt = /* @__PURE__ */ e({
98
99
  ...c,
99
100
  setup(u) {
100
101
  return (i, d) => (s(), l(t(f), {
@@ -122,5 +123,5 @@ const r = (
122
123
  }
123
124
  });
124
125
  export {
125
- Yt as default
126
+ Zt as default
126
127
  };
@@ -82,6 +82,7 @@ import "../autocomplete/index.js";
82
82
  import "../super-form/index.js";
83
83
  import "../progress/index.js";
84
84
  import "../upload/index.js";
85
+ import "../modal/index.js";
85
86
  import "../md-container/index.js";
86
87
  import "../md-comment/index.js";
87
88
  import "../md-tabs/index.js";
@@ -100,7 +101,7 @@ const y = { class: "content" }, $ = {
100
101
  g("header-layout")
101
102
  ), N = f({
102
103
  name: "vft-header-layout"
103
- }), ft = /* @__PURE__ */ f({
104
+ }), ct = /* @__PURE__ */ f({
104
105
  ...N,
105
106
  props: {
106
107
  logoCfg: {}
@@ -146,5 +147,5 @@ const y = { class: "content" }, $ = {
146
147
  }
147
148
  });
148
149
  export {
149
- ft as default
150
+ ct as default
150
151
  };