ep-craft 0.1.25 → 0.1.26
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/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/advancedFormat.js +4 -0
- package/dist/_virtual/customParseFormat.js +4 -0
- package/dist/_virtual/dayOfYear.js +4 -0
- package/dist/_virtual/isSameOrAfter.js +4 -0
- package/dist/_virtual/isSameOrBefore.js +4 -0
- package/dist/_virtual/localeData.js +4 -0
- package/dist/_virtual/weekOfYear.js +4 -0
- package/dist/_virtual/weekYear.js +4 -0
- package/dist/components/button/index.js +2 -1
- package/dist/components/date-picker/index.d.ts +4 -2
- package/dist/components/date-picker/index.js +9 -4
- package/dist/components/date-picker/src/date-picker.d.ts +435 -0
- package/dist/components/date-picker/src/date-picker.js +68 -0
- package/dist/components/date-picker/src/instance.d.ts +8 -0
- package/dist/components/date-picker/src/props.d.ts +205 -0
- package/dist/components/date-picker/src/props.js +21 -0
- package/dist/components/date-picker-panel/index.d.ts +8 -0
- package/dist/components/date-picker-panel/index.js +11 -0
- package/dist/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +187 -0
- package/dist/components/date-picker-panel/src/composables/use-basic-date-table.js +195 -0
- package/dist/components/date-picker-panel/src/composables/use-month-range-header.d.ts +16 -0
- package/dist/components/date-picker-panel/src/composables/use-month-range-header.js +41 -0
- package/dist/components/date-picker-panel/src/composables/use-panel-date-range.d.ts +29 -0
- package/dist/components/date-picker-panel/src/composables/use-panel-date-range.js +86 -0
- package/dist/components/date-picker-panel/src/composables/use-range-picker.d.ts +209 -0
- package/dist/components/date-picker-panel/src/composables/use-range-picker.js +102 -0
- package/dist/components/date-picker-panel/src/composables/use-shortcut.d.ts +9 -0
- package/dist/components/date-picker-panel/src/composables/use-shortcut.js +27 -0
- package/dist/components/date-picker-panel/src/composables/use-year-range-header.d.ts +16 -0
- package/dist/components/date-picker-panel/src/composables/use-year-range-header.js +35 -0
- package/dist/components/date-picker-panel/src/constants.d.ts +9 -0
- package/dist/components/date-picker-panel/src/constants.js +5 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-cell-render.d.ts +18 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-cell-render.js +39 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table.vue.d.ts +100 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table.vue.js +92 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table.vue.d.ts +106 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table.vue.js +164 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.d.ts +106 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.js +153 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +89 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.js +550 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +104 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.js +698 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +59 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.js +255 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +59 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.js +268 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-panel.d.ts +143 -0
- package/dist/components/date-picker-panel/src/date-picker-panel.js +90 -0
- package/dist/components/date-picker-panel/src/instance.d.ts +2 -0
- package/dist/components/date-picker-panel/src/panel-utils.d.ts +414 -0
- package/dist/components/date-picker-panel/src/panel-utils.js +20 -0
- package/dist/components/date-picker-panel/src/props/basic-cell.d.ts +12 -0
- package/dist/components/date-picker-panel/src/props/basic-cell.js +14 -0
- package/dist/components/date-picker-panel/src/props/basic-date-table.d.ts +66 -0
- package/dist/components/date-picker-panel/src/props/basic-date-table.js +16 -0
- package/dist/components/date-picker-panel/src/props/basic-month-table.d.ts +47 -0
- package/dist/components/date-picker-panel/src/props/basic-month-table.js +14 -0
- package/dist/components/date-picker-panel/src/props/basic-year-table.d.ts +47 -0
- package/dist/components/date-picker-panel/src/props/basic-year-table.js +14 -0
- package/dist/components/date-picker-panel/src/props/date-picker-panel.d.ts +66 -0
- package/dist/components/date-picker-panel/src/props/date-picker-panel.js +129 -0
- package/dist/components/date-picker-panel/src/props/panel-date-pick.d.ts +29 -0
- package/dist/components/date-picker-panel/src/props/panel-date-pick.js +24 -0
- package/dist/components/date-picker-panel/src/props/panel-date-range.d.ts +29 -0
- package/dist/components/date-picker-panel/src/props/panel-date-range.js +14 -0
- package/dist/components/date-picker-panel/src/props/panel-month-range.d.ts +19 -0
- package/dist/components/date-picker-panel/src/props/panel-month-range.js +18 -0
- package/dist/components/date-picker-panel/src/props/panel-year-range.d.ts +19 -0
- package/dist/components/date-picker-panel/src/props/panel-year-range.js +18 -0
- package/dist/components/date-picker-panel/src/props/shared.d.ts +97 -0
- package/dist/components/date-picker-panel/src/props/shared.js +96 -0
- package/dist/components/date-picker-panel/src/types.d.ts +22 -0
- package/dist/components/date-picker-panel/src/utils.d.ts +38 -0
- package/dist/components/date-picker-panel/src/utils.js +84 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +142 -140
- package/dist/components/input/EpInput.vue.d.ts +3 -1
- package/dist/components/input/EpInput.vue.js +79 -78
- package/dist/components/input/index.js +1 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/time-picker/index.d.ts +15 -2
- package/dist/components/time-picker/index.js +32 -4
- package/dist/components/time-picker/src/common/picker-range-trigger.vue.d.ts +92 -0
- package/dist/components/time-picker/src/common/picker-range-trigger.vue.js +141 -0
- package/dist/components/time-picker/src/common/picker-range-trigger2.vue.js +4 -0
- package/dist/components/time-picker/src/common/picker.vue.d.ts +510 -0
- package/dist/components/time-picker/src/common/picker.vue.js +463 -0
- package/dist/components/time-picker/src/common/picker2.vue.js +4 -0
- package/dist/components/time-picker/src/common/props.d.ts +280 -0
- package/dist/components/time-picker/src/common/props.js +282 -0
- package/dist/components/time-picker/src/composables/use-common-picker.d.ts +42 -0
- package/dist/components/time-picker/src/composables/use-common-picker.js +62 -0
- package/dist/components/time-picker/src/composables/use-time-panel.d.ts +13 -0
- package/dist/components/time-picker/src/composables/use-time-panel.js +60 -0
- package/dist/components/time-picker/src/composables/use-time-picker.d.ts +300 -0
- package/dist/components/time-picker/src/composables/use-time-picker.js +45 -0
- package/dist/components/time-picker/src/constants.d.ts +23 -0
- package/dist/components/time-picker/src/constants.js +23 -0
- package/dist/components/time-picker/src/props/basic-time-spinner.d.ts +39 -0
- package/dist/components/time-picker/src/props/basic-time-spinner.js +31 -0
- package/dist/components/time-picker/src/props/panel-time-picker.d.ts +16 -0
- package/dist/components/time-picker/src/props/panel-time-picker.js +17 -0
- package/dist/components/time-picker/src/props/panel-time-range.d.ts +15 -0
- package/dist/components/time-picker/src/props/panel-time-range.js +16 -0
- package/dist/components/time-picker/src/props/shared.d.ts +31 -0
- package/dist/components/time-picker/src/props/shared.js +40 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +82 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner.vue.js +253 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +37 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.js +127 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +35 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.js +206 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker.d.ts +440 -0
- package/dist/components/time-picker/src/time-picker.js +68 -0
- package/dist/components/time-picker/src/utils.d.ts +14 -0
- package/dist/components/time-picker/src/utils.js +40 -0
- package/dist/constants/date.js +17 -0
- package/dist/directives/repeat-click/index.js +33 -0
- package/dist/ep-craft.js +150 -148
- package/dist/hooks/use-empty-values/index.js +14 -14
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +54 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +127 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/dayOfYear.js +19 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/localeData.js +82 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +29 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +19 -0
- package/dist/utils/arrays.js +5 -4
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +9 -5
- package/package.json +2 -1
- package/theme-chalk/src/float-label.scss +96 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { defineComponent as H, ref as p, computed as T, watch as J, nextTick as Q, openBlock as D, createElementBlock as v, normalizeClass as V, unref as C, createElementVNode as U, Fragment as Y, renderList as M, withKeys as N, withModifiers as A, createVNode as W } from "vue";
|
|
2
|
+
import y from "dayjs";
|
|
3
|
+
import { useNamespace as X } from "../../../../hooks/use-namespace/index.js";
|
|
4
|
+
import { castArray as b } from "../../../../utils/arrays.js";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "@vue/shared";
|
|
7
|
+
import "lodash-unified";
|
|
8
|
+
import { hasClass as E } from "../../../../utils/dom/style.js";
|
|
9
|
+
import "@element-plus/icons-vue";
|
|
10
|
+
import { useLocale as Z } from "../../../../hooks/use-locale/index.js";
|
|
11
|
+
import "../../../../hooks/use-size/index.js";
|
|
12
|
+
import "@popperjs/core";
|
|
13
|
+
import "../../../../hooks/use-z-index/index.js";
|
|
14
|
+
import "../../../../hooks/use-delayed-toggle/index.js";
|
|
15
|
+
import "../../../../hooks/use-aria/index.js";
|
|
16
|
+
import "../../../../hooks/use-model-toggle/index.js";
|
|
17
|
+
import "../../../../hooks/use-empty-values/index.js";
|
|
18
|
+
import "../../../time-picker/index.js";
|
|
19
|
+
import { basicYearTableProps as ee } from "../props/basic-year-table.js";
|
|
20
|
+
import { getValidDateOfYear as te } from "../utils.js";
|
|
21
|
+
import ae from "./basic-cell-render.js";
|
|
22
|
+
import { rangeArr as re } from "../../../time-picker/src/utils.js";
|
|
23
|
+
const se = ["aria-label"], ne = ["aria-selected", "aria-label", "tabindex", "onKeydown"], Te = /* @__PURE__ */ H({
|
|
24
|
+
__name: "basic-year-table",
|
|
25
|
+
props: ee,
|
|
26
|
+
emits: ["changerange", "pick", "select"],
|
|
27
|
+
setup(I, { expose: j, emit: B }) {
|
|
28
|
+
const K = (a, t) => {
|
|
29
|
+
const n = y(String(a)).locale(t).startOf("year"), r = n.endOf("year").dayOfYear();
|
|
30
|
+
return re(r).map((i) => n.add(i, "day").toDate());
|
|
31
|
+
}, e = I, c = B, P = X("year-table"), { t: L, lang: g } = Z(), O = p(), x = p(), S = T(() => Math.floor(e.date.year() / 10) * 10), $ = p([[], [], []]), _ = p(), h = p(), R = T(() => {
|
|
32
|
+
var n, o, r;
|
|
33
|
+
const a = $.value, t = y().locale(g.value).startOf("year");
|
|
34
|
+
for (let i = 0; i < 3; i++) {
|
|
35
|
+
const u = a[i];
|
|
36
|
+
for (let d = 0; d < 4 && !(i * 4 + d >= 10); d++) {
|
|
37
|
+
let s = u[d];
|
|
38
|
+
s || (s = {
|
|
39
|
+
row: i,
|
|
40
|
+
column: d,
|
|
41
|
+
type: "normal",
|
|
42
|
+
inRange: !1,
|
|
43
|
+
start: !1,
|
|
44
|
+
end: !1,
|
|
45
|
+
text: -1,
|
|
46
|
+
disabled: !1,
|
|
47
|
+
isSelected: !1,
|
|
48
|
+
customClass: void 0,
|
|
49
|
+
date: void 0,
|
|
50
|
+
dayjs: void 0,
|
|
51
|
+
isCurrent: void 0,
|
|
52
|
+
selected: void 0,
|
|
53
|
+
renderText: void 0,
|
|
54
|
+
timestamp: void 0
|
|
55
|
+
}), s.type = "normal";
|
|
56
|
+
const f = i * 4 + d + S.value, l = y().year(f), m = e.rangeState.endDate || e.maxDate || e.rangeState.selecting && e.minDate || null;
|
|
57
|
+
s.inRange = !!(e.minDate && l.isSameOrAfter(e.minDate, "year") && m && l.isSameOrBefore(m, "year")) || !!(e.minDate && l.isSameOrBefore(e.minDate, "year") && m && l.isSameOrAfter(m, "year")), (n = e.minDate) != null && n.isSameOrAfter(m) ? (s.start = !!(m && l.isSame(m, "year")), s.end = !!(e.minDate && l.isSame(e.minDate, "year"))) : (s.start = !!(e.minDate && l.isSame(e.minDate, "year")), s.end = !!(m && l.isSame(m, "year"))), t.isSame(l) && (s.type = "today"), s.text = f;
|
|
58
|
+
const w = l.toDate();
|
|
59
|
+
s.disabled = ((o = e.disabledDate) == null ? void 0 : o.call(e, w)) || !1, s.date = w, s.customClass = (r = e.cellClassName) == null ? void 0 : r.call(e, w), s.dayjs = l, s.timestamp = l.valueOf(), s.isSelected = q(s), u[d] = s;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return a;
|
|
63
|
+
}), z = () => {
|
|
64
|
+
var a;
|
|
65
|
+
(a = x.value) == null || a.focus();
|
|
66
|
+
}, F = (a) => {
|
|
67
|
+
const t = {}, n = y().locale(g.value), o = a.text;
|
|
68
|
+
return t.disabled = e.disabled || (e.disabledDate ? K(o, g.value).every(e.disabledDate) : !1), t.today = n.year() === o, t.current = b(e.parsedValue).some((r) => r.year() === o), a.customClass && (t[a.customClass] = !0), a.inRange && (t["in-range"] = !0, a.start && (t["start-date"] = !0), a.end && (t["end-date"] = !0)), t;
|
|
69
|
+
}, q = (a) => {
|
|
70
|
+
const t = a.text;
|
|
71
|
+
return b(e.date).some((n) => n.year() === t);
|
|
72
|
+
}, k = (a) => {
|
|
73
|
+
var u;
|
|
74
|
+
if (e.disabled) return;
|
|
75
|
+
const t = (u = a.target) == null ? void 0 : u.closest(
|
|
76
|
+
"td"
|
|
77
|
+
);
|
|
78
|
+
if (!t || !t.textContent || E(t, "disabled")) return;
|
|
79
|
+
const n = t.cellIndex, r = t.parentNode.rowIndex * 4 + n + S.value, i = y().year(r);
|
|
80
|
+
if (e.selectionMode === "range")
|
|
81
|
+
e.rangeState.selecting ? (e.minDate && i >= e.minDate ? c("pick", { minDate: e.minDate, maxDate: i }) : c("pick", { minDate: i, maxDate: e.minDate }), c("select", !1)) : (c("pick", { minDate: i, maxDate: null }), c("select", !0));
|
|
82
|
+
else if (e.selectionMode === "years") {
|
|
83
|
+
if (a.type === "keydown") {
|
|
84
|
+
c("pick", b(e.parsedValue), !1);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const d = te(
|
|
88
|
+
i.startOf("year"),
|
|
89
|
+
g.value,
|
|
90
|
+
e.disabledDate
|
|
91
|
+
), s = E(t, "current") ? b(e.parsedValue).filter((f) => (f == null ? void 0 : f.year()) !== r) : b(e.parsedValue).concat([d]);
|
|
92
|
+
c("pick", s);
|
|
93
|
+
} else
|
|
94
|
+
c("pick", r);
|
|
95
|
+
}, G = (a) => {
|
|
96
|
+
var r;
|
|
97
|
+
if (!e.rangeState.selecting) return;
|
|
98
|
+
const t = (r = a.target) == null ? void 0 : r.closest(
|
|
99
|
+
"td"
|
|
100
|
+
);
|
|
101
|
+
if (!t) return;
|
|
102
|
+
const n = t.parentNode.rowIndex, o = t.cellIndex;
|
|
103
|
+
R.value[n][o].disabled || (n !== _.value || o !== h.value) && (_.value = n, h.value = o, c("changerange", {
|
|
104
|
+
selecting: !0,
|
|
105
|
+
endDate: y().year(S.value).add(n * 4 + o, "year")
|
|
106
|
+
}));
|
|
107
|
+
};
|
|
108
|
+
return J(
|
|
109
|
+
() => e.date,
|
|
110
|
+
async () => {
|
|
111
|
+
var a, t;
|
|
112
|
+
(a = O.value) != null && a.contains(document.activeElement) && (await Q(), (t = x.value) == null || t.focus());
|
|
113
|
+
}
|
|
114
|
+
), j({
|
|
115
|
+
/**
|
|
116
|
+
* @description focus on the current cell
|
|
117
|
+
*/
|
|
118
|
+
focus: z
|
|
119
|
+
}), (a, t) => (D(), v("table", {
|
|
120
|
+
role: "grid",
|
|
121
|
+
"aria-label": C(L)("el.datepicker.yearTablePrompt"),
|
|
122
|
+
class: V(C(P).b()),
|
|
123
|
+
onClick: k,
|
|
124
|
+
onMousemove: G
|
|
125
|
+
}, [
|
|
126
|
+
U("tbody", {
|
|
127
|
+
ref_key: "tbodyRef",
|
|
128
|
+
ref: O
|
|
129
|
+
}, [
|
|
130
|
+
(D(!0), v(Y, null, M(R.value, (n, o) => (D(), v("tr", { key: o }, [
|
|
131
|
+
(D(!0), v(Y, null, M(n, (r, i) => (D(), v("td", {
|
|
132
|
+
key: `${o}_${i}`,
|
|
133
|
+
ref_for: !0,
|
|
134
|
+
ref: (u) => r.isSelected && (x.value = u),
|
|
135
|
+
class: V(["available", F(r)]),
|
|
136
|
+
"aria-selected": r.isSelected,
|
|
137
|
+
"aria-label": String(r.text),
|
|
138
|
+
tabindex: r.isSelected ? 0 : -1,
|
|
139
|
+
onKeydown: [
|
|
140
|
+
N(A(k, ["prevent", "stop"]), ["space"]),
|
|
141
|
+
N(A(k, ["prevent", "stop"]), ["enter"])
|
|
142
|
+
]
|
|
143
|
+
}, [
|
|
144
|
+
W(C(ae), { cell: r }, null, 8, ["cell"])
|
|
145
|
+
], 42, ne))), 128))
|
|
146
|
+
]))), 128))
|
|
147
|
+
], 512)
|
|
148
|
+
], 42, se));
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
export {
|
|
152
|
+
Te as default
|
|
153
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
declare var __VLS_1: {
|
|
3
|
+
class: string;
|
|
4
|
+
}, __VLS_30: {}, __VLS_40: {}, __VLS_50: {}, __VLS_60: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
sidebar?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'prev-year'?: (props: typeof __VLS_30) => any;
|
|
9
|
+
} & {
|
|
10
|
+
'prev-month'?: (props: typeof __VLS_40) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'next-month'?: (props: typeof __VLS_50) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'next-year'?: (props: typeof __VLS_60) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
readonly parsedValue: {
|
|
18
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs]) | (() => import("@element-plus/components/time-picker").DayOrDays) | (((new (...args: any[]) => dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs]) | (() => import("@element-plus/components/time-picker").DayOrDays)) | null)[], unknown, unknown>>;
|
|
19
|
+
readonly required: false;
|
|
20
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
|
+
__epPropKey: true;
|
|
22
|
+
};
|
|
23
|
+
readonly visible: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
24
|
+
readonly format: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
25
|
+
readonly type: {
|
|
26
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange")) | null)[], "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange", unknown>>;
|
|
27
|
+
readonly required: true;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
__epPropKey: true;
|
|
30
|
+
};
|
|
31
|
+
readonly dateFormat: StringConstructor;
|
|
32
|
+
readonly timeFormat: StringConstructor;
|
|
33
|
+
readonly showNow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
34
|
+
readonly showConfirm: BooleanConstructor;
|
|
35
|
+
readonly showFooter: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
36
|
+
readonly showWeekNumber: BooleanConstructor;
|
|
37
|
+
readonly border: BooleanConstructor;
|
|
38
|
+
readonly disabled: BooleanConstructor;
|
|
39
|
+
readonly editable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
"panel-change": (...args: any[]) => void;
|
|
42
|
+
pick: (...args: any[]) => void;
|
|
43
|
+
"set-picker-option": (...args: any[]) => void;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
readonly parsedValue: {
|
|
46
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs]) | (() => import("@element-plus/components/time-picker").DayOrDays) | (((new (...args: any[]) => dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs]) | (() => import("@element-plus/components/time-picker").DayOrDays)) | null)[], unknown, unknown>>;
|
|
47
|
+
readonly required: false;
|
|
48
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
|
+
__epPropKey: true;
|
|
50
|
+
};
|
|
51
|
+
readonly visible: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
52
|
+
readonly format: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
53
|
+
readonly type: {
|
|
54
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange")) | null)[], "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange", unknown>>;
|
|
55
|
+
readonly required: true;
|
|
56
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
|
+
__epPropKey: true;
|
|
58
|
+
};
|
|
59
|
+
readonly dateFormat: StringConstructor;
|
|
60
|
+
readonly timeFormat: StringConstructor;
|
|
61
|
+
readonly showNow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
62
|
+
readonly showConfirm: BooleanConstructor;
|
|
63
|
+
readonly showFooter: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
64
|
+
readonly showWeekNumber: BooleanConstructor;
|
|
65
|
+
readonly border: BooleanConstructor;
|
|
66
|
+
readonly disabled: BooleanConstructor;
|
|
67
|
+
readonly editable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
68
|
+
}>> & Readonly<{
|
|
69
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
readonly visible: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
74
|
+
readonly border: boolean;
|
|
75
|
+
readonly disabled: boolean;
|
|
76
|
+
readonly format: string;
|
|
77
|
+
readonly editable: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
78
|
+
readonly showNow: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
79
|
+
readonly showConfirm: boolean;
|
|
80
|
+
readonly showFooter: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
81
|
+
readonly showWeekNumber: boolean;
|
|
82
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
84
|
+
export default _default;
|
|
85
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|