vft 0.0.429 → 0.0.430
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/components/alert/alert.vue2.js +38 -38
- package/es/components/autocomplete/autocomplete.vue2.js +82 -82
- package/es/components/avatar/avatar.vue2.js +23 -23
- package/es/components/avatar-stack/avatar-stack.vue2.js +25 -25
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +19 -19
- package/es/components/button/button.vue2.js +37 -37
- package/es/components/card/card.vue2.js +19 -19
- package/es/components/carousel/carousel.vue2.js +75 -75
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader-panel/index.vue2.js +2 -2
- package/es/components/cascader-panel/menu.vue2.js +2 -2
- package/es/components/cascader-panel/node.vue2.js +3 -4
- package/es/components/checkbox/checkbox-button.vue2.js +52 -52
- package/es/components/checkbox/checkbox-group.vue2.js +26 -26
- package/es/components/checkbox/checkbox.vue2.js +57 -57
- package/es/components/clamp/clamp.vue2.js +14 -14
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +17 -17
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +19 -19
- package/es/components/col/col.vue2.js +20 -20
- package/es/components/color-picker/color-picker.vue2.js +126 -128
- package/es/components/color-picker/components/sv-panel.vue.js +2 -2
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/context-menu/context-menu.vue2.js +18 -18
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +37 -39
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +8 -10
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/descriptions/description.vue2.js +44 -44
- package/es/components/descriptions/descriptions-row.vue2.js +12 -12
- package/es/components/dialog/dialog-content.vue2.js +31 -31
- package/es/components/dialog/dialog.vue2.js +46 -46
- package/es/components/divider/divider.vue2.js +19 -19
- package/es/components/drawer/drawer.vue2.js +41 -41
- package/es/components/dropdown/dropdown-item-impl.vue2.js +40 -40
- package/es/components/dropdown/dropdown-item.vue2.js +28 -28
- package/es/components/dropdown/dropdown.vue2.js +124 -124
- package/es/components/form/form-item.vue2.js +71 -71
- package/es/components/header-layout/header-layout.vue2.js +25 -25
- package/es/components/icon/icon.vue2.js +15 -15
- package/es/components/icon-text/icon-text.vue2.js +28 -28
- package/es/components/iframe-layout/iframe-layout.vue2.js +13 -13
- package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
- package/es/components/image/image.vue2.js +63 -63
- package/es/components/image-viewer/image-viewer.vue2.js +88 -88
- package/es/components/infinite-scroll/index.d.ts +1 -1
- package/es/components/input/input.vue2.js +112 -112
- package/es/components/input-number/input-number.vue2.js +100 -100
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/link/link.vue2.js +20 -20
- package/es/components/list-cell/list-cell.vue2.js +19 -19
- package/es/components/logo/logo.vue2.js +22 -22
- package/es/components/menu/menu-item-group.vue2.js +8 -8
- package/es/components/menu/menu-item.vue2.js +48 -48
- package/es/components/message/message.vue2.js +66 -66
- package/es/components/modal/modal-footer-action.vue2.js +25 -25
- package/es/components/modal/modal.vue2.js +40 -40
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +30 -30
- package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
- package/es/components/pagination/components/jumper.vue2.js +18 -18
- package/es/components/pagination/components/next.vue2.js +11 -11
- package/es/components/pagination/components/pager.vue2.js +74 -74
- package/es/components/pagination/components/prev.vue2.js +9 -9
- package/es/components/pagination/components/sizes.vue2.js +18 -18
- package/es/components/pagination/components/total.vue2.js +8 -8
- package/es/components/popconfirm/popconfirm.vue2.js +47 -47
- package/es/components/popover/popover.vue2.js +28 -28
- package/es/components/popper/trigger.vue2.js +9 -9
- package/es/components/progress/progress.vue2.js +87 -87
- package/es/components/qrcode/qrcode.vue2.js +31 -31
- package/es/components/radio/radio-button.vue2.js +17 -17
- package/es/components/radio/radio-group.vue2.js +35 -35
- package/es/components/router-view-content/router-view-content.vue2.js +25 -25
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +30 -30
- package/es/components/row/row.vue2.js +5 -5
- package/es/components/scrollbar/bar.vue2.js +16 -16
- package/es/components/scrollbar/scrollbar.vue2.js +48 -48
- package/es/components/scrollbar/thumb.vue2.js +27 -27
- package/es/components/search/search.vue2.js +29 -29
- package/es/components/select/index.d.ts +1 -1
- package/es/components/select/select.vue.d.ts +1 -1
- package/es/components/side-menu/index.d.ts +2 -8
- package/es/components/side-menu/side-menu.vue.d.ts +5 -59
- package/es/components/side-menu/types.d.ts +107 -0
- package/es/components/skeleton/skeleton-item.vue2.js +9 -9
- package/es/components/skeleton/skeleton.vue2.js +14 -14
- package/es/components/slider/button.vue2.js +54 -54
- package/es/components/slider/slider.vue2.js +106 -106
- package/es/components/steps/item.vue2.js +56 -56
- package/es/components/steps/steps.vue2.js +16 -16
- package/es/components/super-form/super-form-action.vue2.js +28 -28
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/switch/switch.vue2.js +108 -108
- package/es/components/table/field.d.ts +4 -4
- package/es/components/teleport/teleport.vue2.js +6 -6
- package/es/components/time-picker/common/picker.vue.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/time-picker.d.ts +1 -1
- package/es/components/timeline/timeline-item.vue2.js +20 -20
- package/es/components/tooltip/content.vue2.js +57 -57
- package/es/components/tooltip/tooltip.vue2.js +66 -66
- package/es/components/tooltip/trigger.vue2.js +42 -42
- package/es/components/tree/tree.vue2.js +72 -72
- package/es/components/upload/upload-content.vue2.js +85 -85
- package/es/components/upload/upload-list.vue2.js +70 -70
- package/es/components/upload/upload.vue2.js +86 -86
- package/es/components/verify-code/verify-code.vue2.js +18 -18
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar-stack/avatar-stack.vue2.cjs +1 -1
- package/lib/components/breadcrumb/breadcrumb-item.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/cascader-panel/index.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +1 -1
- package/lib/components/cascader-panel/node.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/infinite-scroll/index.d.ts +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/progress/progress.vue2.cjs +5 -5
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/bar.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +1 -1
- package/lib/components/select/select.vue.d.ts +1 -1
- package/lib/components/side-menu/index.d.ts +2 -8
- package/lib/components/side-menu/side-menu.vue.d.ts +5 -59
- package/lib/components/side-menu/types.d.ts +107 -0
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/slider/button.vue2.cjs +1 -1
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/steps/item.vue2.cjs +1 -1
- package/lib/components/steps/steps.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.d.ts +4 -4
- package/lib/components/teleport/teleport.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/time-picker.d.ts +1 -1
- package/lib/components/timeline/timeline-item.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/theme-style/src/mixins/mixins.scss +1 -0
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as nt, useAttrs as rt, useSlots as st, ref as g, inject as ee, toRef as ut, computed as m, watch as x, createElementBlock as I, openBlock as C, normalizeClass as i, unref as o, createElementVNode as h, withDirectives as P, renderSlot as it, createCommentVNode as
|
|
1
|
+
import { defineComponent as nt, useAttrs as rt, useSlots as st, ref as g, inject as ee, toRef as ut, computed as m, watch as x, createElementBlock as I, openBlock as C, normalizeClass as i, unref as o, createElementVNode as h, withDirectives as P, renderSlot as it, createCommentVNode as S, Fragment as ct, renderList as dt, toDisplayString as te, createVNode as T, vShow as N, withKeys as he, createBlock as ae, withCtx as ye, createTextVNode as ke, nextTick as z } from "vue";
|
|
2
2
|
import w from "dayjs";
|
|
3
3
|
import { VftButton as we } from "../../button/index.js";
|
|
4
4
|
import { ClickOutside as vt } from "@vft/directives";
|
|
@@ -33,7 +33,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
33
33
|
setup(Pe, { emit: Fe }) {
|
|
34
34
|
const $e = (e, t, l) => !0, n = Pe, b = Fe, f = Ve("picker-panel"), V = Ve("date-picker"), Ie = rt(), Ne = st(), d = g("zh-cn"), le = ee(kt), oe = ee(
|
|
35
35
|
ft
|
|
36
|
-
), Ee = ee(wt), { shortcuts: ne, disabledDate: c, cellClassName: Me, defaultTime: J } = le.props, E = ut(le.props, "defaultValue"),
|
|
36
|
+
), Ee = ee(wt), { shortcuts: ne, disabledDate: c, cellClassName: Me, defaultTime: J } = le.props, E = ut(le.props, "defaultValue"), _ = g(), a = g(w().locale(d.value)), W = g(!1);
|
|
37
37
|
let H = !1;
|
|
38
38
|
const re = m(() => w(J).locale(d.value)), Oe = m(() => a.value.month()), se = m(() => a.value.year()), ue = g([]), F = g(null), $ = g(null), q = (e) => ue.value.length > 0 ? $e(e, ue.value, n.format || "HH:mm:ss") : !0, ie = (e) => J && !fe.value && !W.value && !H ? re.value.year(e.year()).month(e.month()).date(e.date()) : M.value ? e.millisecond(0) : e.startOf("day"), v = (e, ...t) => {
|
|
39
39
|
if (!e)
|
|
@@ -56,14 +56,14 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
56
56
|
}, de = (e) => {
|
|
57
57
|
const t = a.value, l = e ? "add" : "subtract";
|
|
58
58
|
a.value = s.value === "year" ? t[l](10, "year") : t[l](1, "year"), U("year");
|
|
59
|
-
}, s = g("date"),
|
|
59
|
+
}, s = g("date"), Re = m(() => {
|
|
60
60
|
const e = "年";
|
|
61
61
|
if (s.value === "year") {
|
|
62
62
|
const t = Math.floor(se.value / 10) * 10;
|
|
63
63
|
return `${t} ${e} - ${t + 9} ${e}`;
|
|
64
64
|
}
|
|
65
65
|
return `${se.value} ${e}`;
|
|
66
|
-
}),
|
|
66
|
+
}), Ke = (e) => {
|
|
67
67
|
const t = be(e.value) ? e.value() : e.value;
|
|
68
68
|
if (t) {
|
|
69
69
|
H = !0, v(w(t).locale(d.value));
|
|
@@ -77,7 +77,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
77
77
|
}, u = m(() => {
|
|
78
78
|
const { type: e } = n;
|
|
79
79
|
return ["week", "month", "months", "year", "years", "dates"].includes(e) ? e : "date";
|
|
80
|
-
}), G = m(() => u.value === "dates" || u.value === "months" || u.value === "years"),
|
|
80
|
+
}), G = m(() => u.value === "dates" || u.value === "months" || u.value === "years"), Se = m(() => u.value === "date" ? s.value : u.value), ve = m(() => !!ne.length), _e = async (e, t) => {
|
|
81
81
|
u.value === "month" ? (a.value = ge(
|
|
82
82
|
a.value,
|
|
83
83
|
a.value.year(),
|
|
@@ -107,8 +107,8 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
107
107
|
}, M = m(
|
|
108
108
|
() => n.type === "datetime" || n.type === "datetimerange"
|
|
109
109
|
), Ue = m(() => {
|
|
110
|
-
const e = M.value || u.value === "dates", t = u.value === "years", l = u.value === "months", p = s.value === "date", y = s.value === "year",
|
|
111
|
-
return e && p || t && y || l &&
|
|
110
|
+
const e = M.value || u.value === "dates", t = u.value === "years", l = u.value === "months", p = s.value === "date", y = s.value === "year", R = s.value === "month";
|
|
111
|
+
return e && p || t && y || l && R;
|
|
112
112
|
}), xe = m(() => c ? n.parsedValue ? A(n.parsedValue) ? c(n.parsedValue[0].toDate()) : c(n.parsedValue.toDate()) : !0 : !1), ze = () => {
|
|
113
113
|
if (G.value)
|
|
114
114
|
v(n.parsedValue);
|
|
@@ -147,7 +147,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
147
147
|
month: e.month(),
|
|
148
148
|
date: e.date()
|
|
149
149
|
}), qe = (e, t, l) => {
|
|
150
|
-
const { hour: p, minute: y, second:
|
|
150
|
+
const { hour: p, minute: y, second: R } = X(e), j = n.parsedValue ? n.parsedValue.hour(p).minute(y).second(R) : e;
|
|
151
151
|
a.value = j, v(a.value, !0), l || (O.value = t);
|
|
152
152
|
}, Ge = (e) => {
|
|
153
153
|
const t = w(e, Q.value).locale(d.value);
|
|
@@ -181,7 +181,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
181
181
|
}
|
|
182
182
|
return e;
|
|
183
183
|
}, Y = () => {
|
|
184
|
-
["week", "month", "year", "date"].includes(u.value) &&
|
|
184
|
+
["week", "month", "year", "date"].includes(u.value) && _.value?.focus();
|
|
185
185
|
}, et = () => {
|
|
186
186
|
Y(), u.value === "week" && pe(k.down);
|
|
187
187
|
}, tt = (e) => {
|
|
@@ -199,7 +199,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
199
199
|
t
|
|
200
200
|
) && F.value === null && $.value === null && (e.preventDefault(), v(a.value, !1));
|
|
201
201
|
}, pe = (e) => {
|
|
202
|
-
const { up: t, down: l, left: p, right: y, home:
|
|
202
|
+
const { up: t, down: l, left: p, right: y, home: R, end: j, pageUp: at, pageDown: lt } = k, ot = {
|
|
203
203
|
year: {
|
|
204
204
|
[t]: -4,
|
|
205
205
|
[l]: 4,
|
|
@@ -226,22 +226,22 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
226
226
|
[l]: 7,
|
|
227
227
|
[p]: -1,
|
|
228
228
|
[y]: 1,
|
|
229
|
-
[
|
|
229
|
+
[R]: (r) => -r.getDay(),
|
|
230
230
|
[j]: (r) => -r.getDay() + 6,
|
|
231
231
|
[at]: (r) => -new Date(r.getFullYear(), r.getMonth(), 0).getDate(),
|
|
232
232
|
[lt]: (r) => new Date(r.getFullYear(), r.getMonth() + 1, 0).getDate(),
|
|
233
233
|
offset: (r, D) => r.setDate(r.getDate() + D)
|
|
234
234
|
}
|
|
235
|
-
},
|
|
236
|
-
for (; Math.abs(a.value.diff(
|
|
237
|
-
const r = ot[
|
|
235
|
+
}, K = a.value.toDate();
|
|
236
|
+
for (; Math.abs(a.value.diff(K, "year", !0)) < 1; ) {
|
|
237
|
+
const r = ot[Se.value];
|
|
238
238
|
if (!r) return;
|
|
239
239
|
if (r.offset(
|
|
240
|
-
|
|
241
|
-
be(r[e]) ? r[e](
|
|
242
|
-
), c && c(
|
|
240
|
+
K,
|
|
241
|
+
be(r[e]) ? r[e](K) : r[e] ?? 0
|
|
242
|
+
), c && c(K))
|
|
243
243
|
break;
|
|
244
|
-
const D = w(
|
|
244
|
+
const D = w(K).locale(d.value);
|
|
245
245
|
a.value = D, b("pick", D, !0);
|
|
246
246
|
break;
|
|
247
247
|
}
|
|
@@ -314,9 +314,9 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
314
314
|
key: p,
|
|
315
315
|
type: "button",
|
|
316
316
|
class: i(o(f).e("shortcut")),
|
|
317
|
-
onClick: (y) =>
|
|
317
|
+
onClick: (y) => Ke(l)
|
|
318
318
|
}, te(l.text), 11, gt))), 128))
|
|
319
|
-
], 2)) :
|
|
319
|
+
], 2)) : S("", !0),
|
|
320
320
|
h("div", {
|
|
321
321
|
class: i(o(f).e("body"))
|
|
322
322
|
}, [
|
|
@@ -357,7 +357,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
357
357
|
], 2)), [
|
|
358
358
|
[o(vt), He]
|
|
359
359
|
])
|
|
360
|
-
], 2)) :
|
|
360
|
+
], 2)) : S("", !0),
|
|
361
361
|
P(h("div", {
|
|
362
362
|
class: i([
|
|
363
363
|
o(V).e("header"),
|
|
@@ -391,7 +391,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
391
391
|
tabindex: "0",
|
|
392
392
|
onKeydown: t[4] || (t[4] = he((l) => B("year"), ["enter"])),
|
|
393
393
|
onClick: t[5] || (t[5] = (l) => B("year"))
|
|
394
|
-
}, te(
|
|
394
|
+
}, te(Re.value), 35),
|
|
395
395
|
P(h("span", {
|
|
396
396
|
role: "button",
|
|
397
397
|
"aria-live": "polite",
|
|
@@ -435,7 +435,7 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
435
435
|
s.value === "date" ? (C(), ae(pt, {
|
|
436
436
|
key: 0,
|
|
437
437
|
ref_key: "currentViewRef",
|
|
438
|
-
ref:
|
|
438
|
+
ref: _,
|
|
439
439
|
"selection-mode": u.value,
|
|
440
440
|
date: a.value,
|
|
441
441
|
"parsed-value": e.parsedValue,
|
|
@@ -443,27 +443,27 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
443
443
|
"cell-class-name": o(Me),
|
|
444
444
|
"show-week-number": e.showWeekNumber,
|
|
445
445
|
onPick: Ye
|
|
446
|
-
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "cell-class-name", "show-week-number"])) :
|
|
446
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "cell-class-name", "show-week-number"])) : S("", !0),
|
|
447
447
|
s.value === "year" ? (C(), ae(yt, {
|
|
448
448
|
key: 1,
|
|
449
449
|
ref_key: "currentViewRef",
|
|
450
|
-
ref:
|
|
450
|
+
ref: _,
|
|
451
451
|
"selection-mode": u.value,
|
|
452
452
|
date: a.value,
|
|
453
453
|
"disabled-date": o(c),
|
|
454
454
|
"parsed-value": e.parsedValue,
|
|
455
455
|
onPick: Be
|
|
456
|
-
}, null, 8, ["selection-mode", "date", "disabled-date", "parsed-value"])) :
|
|
456
|
+
}, null, 8, ["selection-mode", "date", "disabled-date", "parsed-value"])) : S("", !0),
|
|
457
457
|
s.value === "month" ? (C(), ae(ht, {
|
|
458
458
|
key: 2,
|
|
459
459
|
ref_key: "currentViewRef",
|
|
460
|
-
ref:
|
|
460
|
+
ref: _,
|
|
461
461
|
"selection-mode": u.value,
|
|
462
462
|
date: a.value,
|
|
463
463
|
"parsed-value": e.parsedValue,
|
|
464
464
|
"disabled-date": o(c),
|
|
465
|
-
onPick:
|
|
466
|
-
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date"])) :
|
|
465
|
+
onPick: _e
|
|
466
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date"])) : S("", !0)
|
|
467
467
|
], 34)
|
|
468
468
|
], 2)
|
|
469
469
|
], 2),
|
|
@@ -477,11 +477,10 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
477
477
|
disabled: Ae.value,
|
|
478
478
|
onClick: Le
|
|
479
479
|
}, {
|
|
480
|
-
default: ye(() => t[10] || (t[10] = [
|
|
481
|
-
ke(" 现在 ")
|
|
482
|
-
])),
|
|
483
|
-
_: 1
|
|
484
|
-
__: [10]
|
|
480
|
+
default: ye(() => [...t[10] || (t[10] = [
|
|
481
|
+
ke(" 现在 ", -1)
|
|
482
|
+
])]),
|
|
483
|
+
_: 1
|
|
485
484
|
}, 8, ["class", "disabled"]), [
|
|
486
485
|
[N, !G.value && e.showNow]
|
|
487
486
|
]),
|
|
@@ -492,11 +491,10 @@ const gt = ["onClick"], Zt = /* @__PURE__ */ nt({
|
|
|
492
491
|
disabled: xe.value,
|
|
493
492
|
onClick: ze
|
|
494
493
|
}, {
|
|
495
|
-
default: ye(() => t[11] || (t[11] = [
|
|
496
|
-
ke(" 确认 ")
|
|
497
|
-
])),
|
|
498
|
-
_: 1
|
|
499
|
-
__: [11]
|
|
494
|
+
default: ye(() => [...t[11] || (t[11] = [
|
|
495
|
+
ke(" 确认 ", -1)
|
|
496
|
+
])]),
|
|
497
|
+
_: 1
|
|
500
498
|
}, 8, ["class", "disabled"])
|
|
501
499
|
], 2), [
|
|
502
500
|
[N, Ue.value]
|
|
@@ -516,11 +516,10 @@ const Va = ["onClick"], Da = ["disabled"], Ra = ["disabled"], xa = ["disabled"],
|
|
|
516
516
|
class: r(e(v).e("link-btn")),
|
|
517
517
|
onClick: ge
|
|
518
518
|
}, {
|
|
519
|
-
default: ye(() => a[19] || (a[19] = [
|
|
520
|
-
Ce(" 清除 ")
|
|
521
|
-
])),
|
|
522
|
-
_: 1
|
|
523
|
-
__: [19]
|
|
519
|
+
default: ye(() => [...a[19] || (a[19] = [
|
|
520
|
+
Ce(" 清除 ", -1)
|
|
521
|
+
])]),
|
|
522
|
+
_: 1
|
|
524
523
|
}, 8, ["class"])) : p("", !0),
|
|
525
524
|
f(e(Ve), {
|
|
526
525
|
plain: "",
|
|
@@ -529,11 +528,10 @@ const Va = ["onClick"], Da = ["disabled"], Ra = ["disabled"], xa = ["disabled"],
|
|
|
529
528
|
disabled: aa.value,
|
|
530
529
|
onClick: a[18] || (a[18] = (l) => e(ue)(!1))
|
|
531
530
|
}, {
|
|
532
|
-
default: ye(() => a[20] || (a[20] = [
|
|
533
|
-
Ce(" 确认 ")
|
|
534
|
-
])),
|
|
535
|
-
_: 1
|
|
536
|
-
__: [20]
|
|
531
|
+
default: ye(() => [...a[20] || (a[20] = [
|
|
532
|
+
Ce(" 确认 ", -1)
|
|
533
|
+
])]),
|
|
534
|
+
_: 1
|
|
537
535
|
}, 8, ["class", "disabled"])
|
|
538
536
|
], 2)) : p("", !0)
|
|
539
537
|
], 2));
|
|
@@ -188,11 +188,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
188
188
|
}>, {
|
|
189
189
|
readonly disabled: boolean;
|
|
190
190
|
readonly type: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType) | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType)) | null)[], unknown, unknown>;
|
|
191
|
+
readonly placeholder: string;
|
|
191
192
|
readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("vft/es/components/time-picker").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("vft/es/components/time-picker").ModelValueType)) | null)[], unknown, unknown>;
|
|
192
193
|
readonly placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
193
194
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
194
195
|
readonly readonly: boolean;
|
|
195
|
-
readonly placeholder: string;
|
|
196
196
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
197
197
|
readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
198
198
|
readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -187,11 +187,11 @@ declare const _DatePicker: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
187
187
|
}>, {
|
|
188
188
|
readonly disabled: boolean;
|
|
189
189
|
readonly type: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType) | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType)) | null)[], unknown, unknown>;
|
|
190
|
+
readonly placeholder: string;
|
|
190
191
|
readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("vft/es/vft").DateModelType, import("vft/es/vft").DateModelType]) | (() => import("vft/es/vft").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("vft/es/vft").DateModelType, import("vft/es/vft").DateModelType]) | (() => import("vft/es/vft").ModelValueType)) | null)[], unknown, unknown>;
|
|
191
192
|
readonly placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
192
193
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
193
194
|
readonly readonly: boolean;
|
|
194
|
-
readonly placeholder: string;
|
|
195
195
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
196
196
|
readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
197
197
|
readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -399,11 +399,11 @@ export declare const VftDatePicker: import("vue").DefineComponent<import("vue").
|
|
|
399
399
|
}>, {
|
|
400
400
|
readonly disabled: boolean;
|
|
401
401
|
readonly type: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType) | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "months" | "years" | "yearrange") | (() => import("./date-picker.type").IDatePickerType)) | null)[], unknown, unknown>;
|
|
402
|
+
readonly placeholder: string;
|
|
402
403
|
readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("vft/es/vft").DateModelType, import("vft/es/vft").DateModelType]) | (() => import("vft/es/vft").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("vft/es/vft").DateModelType, import("vft/es/vft").DateModelType]) | (() => import("vft/es/vft").ModelValueType)) | null)[], unknown, unknown>;
|
|
403
404
|
readonly placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
404
405
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
405
406
|
readonly readonly: boolean;
|
|
406
|
-
readonly placeholder: string;
|
|
407
407
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
408
408
|
readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
409
409
|
readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as g, useSlots as
|
|
1
|
+
import { defineComponent as g, useSlots as x, getCurrentInstance as B, provide as E, computed as w, createElementBlock as u, openBlock as p, normalizeClass as i, createCommentVNode as z, createElementVNode as m, unref as a, renderSlot as b, createTextVNode as v, toDisplayString as y, Fragment as V, renderList as D, createBlock as I } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
5
5
|
import "lodash-es";
|
|
6
|
-
import { flattedChildren as
|
|
6
|
+
import { flattedChildren as K } from "../../utils/vue/vnode.js";
|
|
7
7
|
import "../form/index.js";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as F } from "../../hooks/use-namespace/index.js";
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
13
|
-
import { descriptionsKey as
|
|
14
|
-
const
|
|
12
|
+
import L from "./descriptions-row.vue2.js";
|
|
13
|
+
import { descriptionsKey as R } from "./token.js";
|
|
14
|
+
const T = g({
|
|
15
15
|
name: "vft-descriptions"
|
|
16
|
-
}),
|
|
17
|
-
...
|
|
16
|
+
}), Y = /* @__PURE__ */ g({
|
|
17
|
+
...T,
|
|
18
18
|
props: {
|
|
19
19
|
border: { type: Boolean, default: !1 },
|
|
20
20
|
column: { default: 3 },
|
|
@@ -23,56 +23,56 @@ const j = g({
|
|
|
23
23
|
title: {},
|
|
24
24
|
extra: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const N =
|
|
30
|
-
const
|
|
31
|
-
(
|
|
32
|
-
),
|
|
33
|
-
let
|
|
34
|
-
return
|
|
35
|
-
const
|
|
36
|
-
if (h <
|
|
37
|
-
const $ =
|
|
38
|
-
|
|
26
|
+
setup(s) {
|
|
27
|
+
const o = F("descriptions"), k = x(), C = B();
|
|
28
|
+
E(R, C.props);
|
|
29
|
+
const N = w(() => [o.b(), o.m("small")]), d = (t, l, e, r = !1) => (t.props || (t.props = {}), l > e && (t.props.span = e), r && (t.props.span = l), t), S = () => {
|
|
30
|
+
const t = K(k.default?.()).filter(
|
|
31
|
+
(n) => n?.type?.name === "ElDescriptionsItem"
|
|
32
|
+
), l = [];
|
|
33
|
+
let e = [], r = s.column, f = 0;
|
|
34
|
+
return t.forEach((n, h) => {
|
|
35
|
+
const c = n?.props?.span || 1;
|
|
36
|
+
if (h < t.length - 1 && (f += c > r ? r : c), h === t.length - 1) {
|
|
37
|
+
const $ = s.column - f % s.column;
|
|
38
|
+
e.push(d(n, $, r, !0)), l.push(e);
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
}),
|
|
41
|
+
c < r ? (r -= c, e.push(n)) : (e.push(d(n, c, r)), l.push(e), r = s.column, e = []);
|
|
42
|
+
}), l;
|
|
43
43
|
};
|
|
44
|
-
return (
|
|
45
|
-
class:
|
|
44
|
+
return (t, l) => (p(), u("div", {
|
|
45
|
+
class: i(N.value)
|
|
46
46
|
}, [
|
|
47
|
-
|
|
47
|
+
s.title || s.extra || t.$slots.title || t.$slots.extra ? (p(), u("div", {
|
|
48
48
|
key: 0,
|
|
49
|
-
class:
|
|
49
|
+
class: i(a(o).e("header"))
|
|
50
50
|
}, [
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
m("div", {
|
|
52
|
+
class: i(a(o).e("title"))
|
|
53
53
|
}, [
|
|
54
|
-
b(
|
|
55
|
-
v(y(
|
|
54
|
+
b(t.$slots, "title", {}, () => [
|
|
55
|
+
v(y(s.title), 1)
|
|
56
56
|
])
|
|
57
57
|
], 2),
|
|
58
|
-
|
|
59
|
-
class:
|
|
58
|
+
m("div", {
|
|
59
|
+
class: i(a(o).e("extra"))
|
|
60
60
|
}, [
|
|
61
|
-
b(
|
|
62
|
-
v(y(
|
|
61
|
+
b(t.$slots, "extra", {}, () => [
|
|
62
|
+
v(y(s.extra), 1)
|
|
63
63
|
])
|
|
64
64
|
], 2)
|
|
65
|
-
], 2)) :
|
|
66
|
-
|
|
67
|
-
class:
|
|
65
|
+
], 2)) : z("", !0),
|
|
66
|
+
m("div", {
|
|
67
|
+
class: i(a(o).e("body"))
|
|
68
68
|
}, [
|
|
69
|
-
|
|
70
|
-
class:
|
|
69
|
+
m("table", {
|
|
70
|
+
class: i([a(o).e("table"), a(o).is("bordered", s.border)])
|
|
71
71
|
}, [
|
|
72
|
-
|
|
73
|
-
(
|
|
72
|
+
m("tbody", null, [
|
|
73
|
+
(p(!0), u(V, null, D(S(), (e, r) => (p(), I(L, {
|
|
74
74
|
key: r,
|
|
75
|
-
row:
|
|
75
|
+
row: e
|
|
76
76
|
}, null, 8, ["row"]))), 128))
|
|
77
77
|
])
|
|
78
78
|
], 2)
|
|
@@ -81,5 +81,5 @@ const j = g({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
Y as default
|
|
85
85
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as y, inject as m, createElementBlock as r, unref as l, openBlock as e, Fragment as n, createElementVNode as s, renderList as a, createBlock as
|
|
1
|
+
import { defineComponent as y, inject as m, createElementBlock as r, unref as l, openBlock as e, Fragment as n, createElementVNode as s, renderList as a, createBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import c from "./descriptions-cell.js";
|
|
3
3
|
import { descriptionsKey as f } from "./token.js";
|
|
4
|
-
const k = { key: 1 },
|
|
4
|
+
const k = { key: 1 }, g = y({
|
|
5
5
|
name: "vft-descriptions-row"
|
|
6
6
|
}), $ = /* @__PURE__ */ y({
|
|
7
|
-
...
|
|
7
|
+
...g,
|
|
8
8
|
props: {
|
|
9
9
|
row: { default: () => [] }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return (
|
|
11
|
+
setup(u) {
|
|
12
|
+
const d = m(f, {});
|
|
13
|
+
return (_, w) => l(d).direction === "vertical" ? (e(), r(n, { key: 0 }, [
|
|
14
14
|
s("tr", null, [
|
|
15
|
-
(e(!0), r(n, null, a(u.row, (t, o) => (e(),
|
|
15
|
+
(e(!0), r(n, null, a(u.row, (t, o) => (e(), i(l(c), {
|
|
16
16
|
key: `tr1-${o}`,
|
|
17
17
|
cell: t,
|
|
18
18
|
tag: "th",
|
|
@@ -20,7 +20,7 @@ const k = { key: 1 }, _ = y({
|
|
|
20
20
|
}, null, 8, ["cell"]))), 128))
|
|
21
21
|
]),
|
|
22
22
|
s("tr", null, [
|
|
23
|
-
(e(!0), r(n, null, a(u.row, (t, o) => (e(),
|
|
23
|
+
(e(!0), r(n, null, a(u.row, (t, o) => (e(), i(l(c), {
|
|
24
24
|
key: `tr2-${o}`,
|
|
25
25
|
cell: t,
|
|
26
26
|
tag: "td",
|
|
@@ -31,18 +31,18 @@ const k = { key: 1 }, _ = y({
|
|
|
31
31
|
(e(!0), r(n, null, a(u.row, (t, o) => (e(), r(n, {
|
|
32
32
|
key: `tr3-${o}`
|
|
33
33
|
}, [
|
|
34
|
-
l(
|
|
35
|
-
|
|
34
|
+
l(d).border ? (e(), r(n, { key: 0 }, [
|
|
35
|
+
p(l(c), {
|
|
36
36
|
cell: t,
|
|
37
37
|
tag: "td",
|
|
38
38
|
type: "label"
|
|
39
39
|
}, null, 8, ["cell"]),
|
|
40
|
-
|
|
40
|
+
p(l(c), {
|
|
41
41
|
cell: t,
|
|
42
42
|
tag: "td",
|
|
43
43
|
type: "content"
|
|
44
44
|
}, null, 8, ["cell"])
|
|
45
|
-
], 64)) : (e(),
|
|
45
|
+
], 64)) : (e(), i(l(c), {
|
|
46
46
|
key: 1,
|
|
47
47
|
cell: t,
|
|
48
48
|
tag: "td",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, inject as u, computed as a, createElementBlock as g, openBlock as r, normalizeStyle as E, normalizeClass as s, unref as t, createElementVNode as n, createCommentVNode as y, renderSlot as i, createBlock as N, toDisplayString as P, mergeProps as S } from "vue";
|
|
2
2
|
import { singleAttrToObj as T } from "@vft/utils";
|
|
3
3
|
import { VftIcon as j } from "../icon/index.js";
|
|
4
4
|
import "../focus-trap/focus-trap.vue2.js";
|
|
@@ -14,9 +14,9 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
14
14
|
import "@popperjs/core";
|
|
15
15
|
import "../../hooks/use-z-index/index.js";
|
|
16
16
|
import { dialogInjectionKey as V } from "./constants.js";
|
|
17
|
-
const A = ["id"], F =
|
|
17
|
+
const A = ["id"], F = C({
|
|
18
18
|
name: "vft-dialog-content"
|
|
19
|
-
}), le = /* @__PURE__ */
|
|
19
|
+
}), le = /* @__PURE__ */ C({
|
|
20
20
|
...F,
|
|
21
21
|
props: {
|
|
22
22
|
center: { type: Boolean, default: !1 },
|
|
@@ -33,28 +33,28 @@ const A = ["id"], F = y({
|
|
|
33
33
|
footerClass: {}
|
|
34
34
|
},
|
|
35
35
|
emits: ["close"],
|
|
36
|
-
setup(
|
|
37
|
-
const { dialogRef:
|
|
36
|
+
setup(e, { expose: p }) {
|
|
37
|
+
const { dialogRef: c, headerRef: f, bodyId: b, ns: o, style: h } = u(V), { focusTrapRef: v } = u(z), B = K(v, c), d = a(() => e.draggable), I = a(() => e.overflow), { resetPosition: k, updatePosition: w, isDragging: R } = O(
|
|
38
|
+
c,
|
|
38
39
|
f,
|
|
39
40
|
d,
|
|
40
|
-
c,
|
|
41
41
|
I
|
|
42
|
-
), $ =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{ [
|
|
49
|
-
]), D =
|
|
42
|
+
), $ = a(() => [
|
|
43
|
+
o.b(),
|
|
44
|
+
o.is("fullscreen", e.fullscreen),
|
|
45
|
+
o.is("draggable", d.value),
|
|
46
|
+
o.is("dragging", R.value),
|
|
47
|
+
o.is("align-center", e.alignCenter),
|
|
48
|
+
{ [o.m("center")]: e.center }
|
|
49
|
+
]), D = a(() => T(e.closeIcon, "icon", {
|
|
50
50
|
icon: "icon-close",
|
|
51
51
|
pointer: !0,
|
|
52
52
|
size: 16
|
|
53
53
|
}));
|
|
54
|
-
return
|
|
54
|
+
return p({
|
|
55
55
|
resetPosition: k,
|
|
56
56
|
updatePosition: w
|
|
57
|
-
}), (
|
|
57
|
+
}), (l, m) => (r(), g("div", {
|
|
58
58
|
ref: t(B),
|
|
59
59
|
class: s($.value),
|
|
60
60
|
style: E(t(h)),
|
|
@@ -62,33 +62,33 @@ const A = ["id"], F = y({
|
|
|
62
62
|
}, [
|
|
63
63
|
n("header", {
|
|
64
64
|
ref_key: "headerRef",
|
|
65
|
-
ref:
|
|
66
|
-
class: s([t(
|
|
65
|
+
ref: f,
|
|
66
|
+
class: s([t(o).e("header"), e.headerClass, { "show-close": e.showClose }])
|
|
67
67
|
}, [
|
|
68
|
-
i(
|
|
68
|
+
i(l.$slots, "header", {}, () => [
|
|
69
69
|
n("span", {
|
|
70
70
|
role: "heading",
|
|
71
|
-
class: s(t(
|
|
72
|
-
}, P(
|
|
71
|
+
class: s(t(o).e("title"))
|
|
72
|
+
}, P(e.title), 3)
|
|
73
73
|
]),
|
|
74
|
-
|
|
74
|
+
e.showClose ? (r(), N(t(j), S({
|
|
75
75
|
key: 0,
|
|
76
|
-
class: [t(
|
|
77
|
-
onClick: m[0] || (m[0] = (J) =>
|
|
78
|
-
}, D.value), null, 16, ["class"])) :
|
|
76
|
+
class: [t(o).e("headerbtn")],
|
|
77
|
+
onClick: m[0] || (m[0] = (J) => l.$emit("close"))
|
|
78
|
+
}, D.value), null, 16, ["class"])) : y("", !0)
|
|
79
79
|
], 2),
|
|
80
80
|
n("div", {
|
|
81
81
|
id: t(b),
|
|
82
|
-
class: s([t(
|
|
82
|
+
class: s([t(o).e("body"), e.bodyClass])
|
|
83
83
|
}, [
|
|
84
|
-
i(
|
|
84
|
+
i(l.$slots, "default")
|
|
85
85
|
], 10, A),
|
|
86
|
-
|
|
86
|
+
l.$slots.footer ? (r(), g("footer", {
|
|
87
87
|
key: 0,
|
|
88
|
-
class: s([t(
|
|
88
|
+
class: s([t(o).e("footer"), e.footerClass])
|
|
89
89
|
}, [
|
|
90
|
-
i(
|
|
91
|
-
], 2)) :
|
|
90
|
+
i(l.$slots, "footer")
|
|
91
|
+
], 2)) : y("", !0)
|
|
92
92
|
], 6));
|
|
93
93
|
}
|
|
94
94
|
});
|