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.
- package/attributes.json +1 -1
- package/es/component.js +25 -23
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/button.vue2.js +21 -21
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +53 -57
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/index.js +269 -261
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/message/message.vue2.js +12 -12
- package/es/components/modal/index.js +15 -0
- package/es/components/modal/modal.vue.js +4 -0
- package/es/components/modal/modal.vue2.js +92 -0
- package/es/components/modal/style/css.js +4 -0
- package/es/components/modal/style/index.js +4 -0
- package/es/components/modal/use/use-modal.js +95 -0
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -14
- package/es/components/multiple-tabs/tab-content.vue2.js +11 -12
- package/es/components/multiple-tabs/use/use-multiple-tabs.js +22 -23
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/side-menu/side-menu.vue2.js +26 -25
- package/es/components/super-form/component-map.js +24 -23
- package/es/components/super-form/super-form-action.vue2.js +28 -29
- package/es/components/super-form/super-form-item.vue2.js +132 -123
- package/es/components/super-form/super-form.vue2.js +139 -136
- package/es/components/super-form/use/use-form-events.js +144 -139
- package/es/components/table/field.js +90 -52
- package/es/components/table/index.js +15 -12
- package/es/components/table/types.js +1 -0
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/components/upload/upload-content.vue2.js +2 -2
- package/es/components/upload/upload.vue2.js +40 -49
- package/es/index.js +354 -346
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/modal/index.cjs +1 -0
- package/lib/components/modal/modal.vue.cjs +1 -0
- package/lib/components/modal/modal.vue2.cjs +1 -0
- package/lib/components/modal/style/css.cjs +1 -0
- package/lib/components/modal/style/index.cjs +1 -0
- package/lib/components/modal/use/use-modal.cjs +1 -0
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.cjs +1 -1
- package/lib/components/table/types.cjs +1 -0
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/modal.scss +0 -0
- package/theme-style/vft-modal.css +0 -0
- package/web-types.json +1 -1
- /package/es/components/{table/type.js → modal/types.js} +0 -0
- /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 {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
8
|
+
import { singleAttrToObj as V } from "@vft/utils";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
10
|
-
import { useButton as
|
|
11
|
-
import { useButtonCustomStyle as
|
|
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
|
-
|
|
15
|
-
),
|
|
14
|
+
T("button")
|
|
15
|
+
), D = B({
|
|
16
16
|
name: "vft-button"
|
|
17
17
|
}), U = /* @__PURE__ */ B({
|
|
18
|
-
...
|
|
18
|
+
...D,
|
|
19
19
|
props: {
|
|
20
|
-
tag: {
|
|
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:
|
|
42
|
-
const l = C, s = I(() =>
|
|
43
|
-
return
|
|
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:
|
|
54
|
-
}), (o,
|
|
53
|
+
shouldAddSpace: d
|
|
54
|
+
}), (o, E) => (n(), a(_(o.tag), m({
|
|
55
55
|
ref_key: "_ref",
|
|
56
56
|
ref: i
|
|
57
|
-
}, e(
|
|
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(
|
|
72
|
+
style: e(z),
|
|
73
73
|
onClick: e($)
|
|
74
74
|
}), {
|
|
75
|
-
default:
|
|
76
|
-
var
|
|
75
|
+
default: A(() => {
|
|
76
|
+
var u;
|
|
77
77
|
return [
|
|
78
|
-
o.loading ? (n(), y(
|
|
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)) : (
|
|
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(
|
|
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
|
-
}),
|
|
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
|
-
|
|
172
|
+
bo as default
|
|
172
173
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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__ */
|
|
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
|
|
21
|
-
const r = b().locale(o).startOf("month").month(
|
|
22
|
-
return U(
|
|
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 =
|
|
27
|
+
]), w = f(), S = f(), k = L(() => {
|
|
32
28
|
var o, r;
|
|
33
|
-
const
|
|
34
|
-
for (let
|
|
35
|
-
const s = a
|
|
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:
|
|
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 _ =
|
|
49
|
-
c.inRange = !!(
|
|
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
|
|
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
|
-
|
|
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
|
|
71
|
-
if (
|
|
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 =
|
|
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:
|
|
72
|
+
endDate: t.date.startOf("year").month(o * 4 + r)
|
|
77
73
|
}));
|
|
78
|
-
},
|
|
74
|
+
}, D = (n) => {
|
|
79
75
|
var i;
|
|
80
|
-
const
|
|
76
|
+
const e = (i = n.target) == null ? void 0 : i.closest(
|
|
81
77
|
"td"
|
|
82
78
|
);
|
|
83
|
-
if ((
|
|
79
|
+
if ((e == null ? void 0 : e.tagName) !== "TD" || H(e, "disabled"))
|
|
84
80
|
return;
|
|
85
|
-
const o =
|
|
86
|
-
|
|
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
|
-
() =>
|
|
85
|
+
() => t.date,
|
|
90
86
|
async () => {
|
|
91
|
-
var
|
|
92
|
-
(
|
|
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
|
-
}), (
|
|
95
|
+
}), (n, e) => (u(), p("table", {
|
|
100
96
|
role: "grid",
|
|
101
97
|
"aria-label": "使用方向键与 Enter 键以选择月份",
|
|
102
|
-
class:
|
|
103
|
-
onClick:
|
|
104
|
-
onMousemove:
|
|
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(
|
|
111
|
-
(u(!0), p(
|
|
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) =>
|
|
115
|
-
class:
|
|
116
|
-
"aria-selected": `${
|
|
117
|
-
tabindex:
|
|
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(
|
|
120
|
-
I(R(
|
|
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(
|
|
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
|
-
}),
|
|
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
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
150
|
+
ct as default
|
|
150
151
|
};
|