dlzn-ui 1.84.0 → 1.87.0
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/assets/Picker-Bg1T3ak_.css +1 -0
- package/assets/date-picker-CSew3xjH.css +1 -0
- package/assets/gradient-text-Ba4XS1IC.css +1 -0
- package/assets/scrollbar-CWhno35V.css +1 -0
- package/chunks/Common-JCpJRcIQ.mjs +160 -0
- package/chunks/Day-B2-VMp6b.mjs +300 -0
- package/chunks/Hour-C5dH6HGj.mjs +23 -0
- package/chunks/Minute-CJB2X5dZ.mjs +23 -0
- package/chunks/Month-gLxaWshK.mjs +24 -0
- package/chunks/Second-BIIpAoTx.mjs +23 -0
- package/chunks/{checkbox-group-Byz5ySpG.mjs → checkbox-group-D7jGdbHp.mjs} +1 -1
- package/chunks/cron-C0hsPMmz.mjs +107 -0
- package/chunks/date-picker-CTGIcHXL.mjs +375 -0
- package/chunks/{form-BkPeeuHB.mjs → form-DjDtnVwq.mjs} +9 -9
- package/chunks/gradient-text-CRqJzz7N.mjs +59 -0
- package/chunks/page-query-BAO5cEK6.mjs +127 -0
- package/chunks/{radio-group-5VlH8ezG.mjs → radio-group-D29D9RMN.mjs} +1 -1
- package/chunks/scrollbar-Bf2VJTtD.mjs +69 -0
- package/chunks/{select-DhJtE0H-.mjs → select-DbGBggUm.mjs} +1 -1
- package/chunks/{tree-select-CTE4lSRz.mjs → tree-select-C-HywxXx.mjs} +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.d.ts +2 -0
- package/components/cron/index.mjs +2 -0
- package/components/cron/src/Common.mjs +2 -0
- package/components/cron/src/Common.vue.d.ts +19 -0
- package/components/cron/src/Day.mjs +2 -0
- package/components/cron/src/Day.vue.d.ts +14 -0
- package/components/cron/src/Hour.mjs +2 -0
- package/components/cron/src/Hour.vue.d.ts +11 -0
- package/components/cron/src/Minute.mjs +2 -0
- package/components/cron/src/Minute.vue.d.ts +11 -0
- package/components/cron/src/Month.mjs +2 -0
- package/components/cron/src/Month.vue.d.ts +11 -0
- package/components/cron/src/Picker.mjs +213 -0
- package/components/cron/src/Picker.vue.d.ts +15 -0
- package/components/cron/src/Second.mjs +2 -0
- package/components/cron/src/Second.vue.d.ts +11 -0
- package/components/cron/src/cron.d.ts +4 -0
- package/components/cron/src/cron.mjs +2 -0
- package/components/cron/src/cron.vue.d.ts +15 -0
- package/components/date-picker/index.d.ts +2 -0
- package/components/date-picker/index.mjs +2 -0
- package/components/date-picker/src/date-picker.d.ts +14 -0
- package/components/date-picker/src/date-picker.mjs +2 -0
- package/components/date-picker/src/date-picker.vue.d.ts +24 -0
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/gradient-text/index.d.ts +1 -0
- package/components/gradient-text/index.mjs +2 -0
- package/components/gradient-text/src/gradient-text.mjs +2 -0
- package/components/gradient-text/src/gradient-text.vue.d.ts +11 -0
- package/components/index.d.ts +5 -0
- package/components/index.mjs +28 -23
- package/components/page-query/index.d.ts +1 -0
- package/components/page-query/index.mjs +2 -0
- package/components/page-query/src/page-query.mjs +2 -0
- package/components/page-query/src/page-query.vue.d.ts +43 -0
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/scrollbar/index.d.ts +1 -0
- package/components/scrollbar/index.mjs +2 -0
- package/components/scrollbar/src/scrollbar.mjs +2 -0
- package/components/scrollbar/src/scrollbar.vue.d.ts +11 -0
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/hooks/{useDic → useDicOptions}/index.d.ts +1 -1
- package/hooks/useDicOptions/index.mjs +2 -0
- package/hooks/useList/index.d.ts +1 -1
- package/hooks/useList/index.mjs +1 -1
- package/hooks/usePrimaryColor/index.d.ts +3 -0
- package/hooks/usePrimaryColor/index.mjs +5 -0
- package/hooks/useSysUser/index.d.ts +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/index.mjs +28 -23
- package/package.json +6 -2
- package/hooks/useCommon/index.d.ts +0 -2
- package/hooks/useCommon/index.mjs +0 -7
- package/hooks/useDic/index.mjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-73111ff2] .t-radio-group{width:100%;margin-top:16px;row-gap:12px!important}[data-v-73111ff2] .t-radio-group .t-radio{width:100%;display:inline-flex}[data-v-73111ff2] .t-radio-group .t-radio .t-radio__input{top:6px}[data-v-73111ff2] .t-radio-group .t-radio .t-radio__label{flex:1;line-height:32px}[data-v-73111ff2] .t-checkbox-group{grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:8px;display:grid}[data-v-73111ff2] .t-select__wrap{width:100px;display:inline-flex}.t-textarea[data-v-73111ff2] .t-textarea__inner{height:100%!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-date-editor{flex-grow:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes gradient-715d09ce{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.animate_gradient[data-v-715d09ce]{animation:gradient-715d09ce var(--animation-duration,8s) linear infinite}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-scrollbar{--el-transition-duration:0s;--el-scrollbar-opacity:1;--el-scrollbar-bg-color:var(--td-scrollbar-color);--el-scrollbar-hover-opacity:1;--el-scrollbar-hover-bg-color:var(--td-scrollbar-hover-color)}.el-scrollbar__bar{z-index:calc(infinity)}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { isFalsy as e, isValidNumberString as t } from "../utils/boolean.mjs";
|
|
2
|
+
import { stringDisplay as n } from "../utils/string.mjs";
|
|
3
|
+
import { t as r } from "./checkbox-group-D7jGdbHp.mjs";
|
|
4
|
+
import { t as i } from "./radio-group-D29D9RMN.mjs";
|
|
5
|
+
import { t as a } from "./select-DbGBggUm.mjs";
|
|
6
|
+
import { createBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, openBlock as f, reactive as p, toDisplayString as m, unref as h, useModel as g, watch as _, withCtx as v } from "vue";
|
|
7
|
+
import { Radio as y } from "tdesign-vue-next";
|
|
8
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Common.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var b = { class: "ml-10" }, x = { class: "ml-10" }, S = { class: "flex flex-col gap-1" }, C = /* @__PURE__ */ u({
|
|
10
|
+
__name: "Common",
|
|
11
|
+
props: /*@__PURE__*/ d({
|
|
12
|
+
selectLength: {},
|
|
13
|
+
startZero: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
},
|
|
17
|
+
unit: {}
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: { required: !0 },
|
|
20
|
+
modelModifiers: {}
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(u) {
|
|
24
|
+
let d = u, C = g(u, "modelValue"), w = p({
|
|
25
|
+
increment: "1",
|
|
26
|
+
incrementStart: d.startZero ? "0" : "1",
|
|
27
|
+
rangeEnd: d.startZero ? "1" : "2",
|
|
28
|
+
rangeStart: d.startZero ? "0" : "1",
|
|
29
|
+
specifyArr: [],
|
|
30
|
+
type: "every"
|
|
31
|
+
});
|
|
32
|
+
_(w, () => {
|
|
33
|
+
switch (w.type) {
|
|
34
|
+
case "loop":
|
|
35
|
+
C.value = `${w.incrementStart}/${w.increment}`;
|
|
36
|
+
break;
|
|
37
|
+
case "range":
|
|
38
|
+
C.value = `${w.rangeStart}-${w.rangeEnd}`;
|
|
39
|
+
break;
|
|
40
|
+
case "specify":
|
|
41
|
+
if (w.specifyArr.length > 0) {
|
|
42
|
+
let e = "";
|
|
43
|
+
[...w.specifyArr].sort((e, t) => Number(e) - Number(t)).forEach((t) => {
|
|
44
|
+
e += `${t},`;
|
|
45
|
+
}), C.value = e.slice(0, -1);
|
|
46
|
+
} else C.value = "*";
|
|
47
|
+
break;
|
|
48
|
+
default: C.value = "*";
|
|
49
|
+
}
|
|
50
|
+
}, { deep: !0 }), _(C, (e) => {
|
|
51
|
+
if (e.includes("/")) {
|
|
52
|
+
w.type = "loop";
|
|
53
|
+
let [t, n] = e.split("/");
|
|
54
|
+
w.incrementStart = t, w.increment = n;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (e.includes("-")) {
|
|
58
|
+
w.type = "range";
|
|
59
|
+
let [t, n] = e.split("-");
|
|
60
|
+
w.rangeStart = t, w.rangeEnd = n;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (e.includes(",") || t(e)) {
|
|
64
|
+
w.type = "specify", w.specifyArr = e.split(",");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
["every", "specify"].includes(w.type) || (w.type = "every"), w.type === "specify" && (w.specifyArr = []);
|
|
68
|
+
}, { immediate: !0 });
|
|
69
|
+
function T() {
|
|
70
|
+
e(w.rangeStart) || e(w.rangeEnd) || Number(w.rangeEnd) <= Number(w.rangeStart) && (w.rangeStart = n(Number(w.rangeEnd) - 1));
|
|
71
|
+
}
|
|
72
|
+
function E() {
|
|
73
|
+
e(w.rangeStart) || e(w.rangeEnd) || Number(w.rangeStart) >= Number(w.rangeEnd) && (w.rangeEnd = n(Number(w.rangeStart) + 1));
|
|
74
|
+
}
|
|
75
|
+
return (e, t) => (f(), o(i, {
|
|
76
|
+
modelValue: w.type,
|
|
77
|
+
"onUpdate:modelValue": t[5] ||= (e) => w.type = e,
|
|
78
|
+
direction: "vertical"
|
|
79
|
+
}, {
|
|
80
|
+
default: v(() => [
|
|
81
|
+
l(h(y), { value: "every" }, {
|
|
82
|
+
default: v(() => [c("每" + m(u.unit), 1)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
l(h(y), { value: "range" }, {
|
|
86
|
+
default: v(() => [t[7] ||= c("区间 ", -1), s("span", b, [
|
|
87
|
+
t[6] ||= c(" 从 ", -1),
|
|
88
|
+
l(a, {
|
|
89
|
+
modelValue: w.rangeStart,
|
|
90
|
+
"onUpdate:modelValue": t[0] ||= (e) => w.rangeStart = e,
|
|
91
|
+
clearable: !1,
|
|
92
|
+
filterable: !1,
|
|
93
|
+
options: Array.from({ length: u.selectLength - 1 }, (e, t) => t + +!u.startZero).map((e) => ({
|
|
94
|
+
label: String(e),
|
|
95
|
+
value: String(e)
|
|
96
|
+
})),
|
|
97
|
+
onChange: E
|
|
98
|
+
}, null, 8, ["modelValue", "options"]),
|
|
99
|
+
c(" " + m(u.unit) + ",至 ", 1),
|
|
100
|
+
l(a, {
|
|
101
|
+
modelValue: w.rangeEnd,
|
|
102
|
+
"onUpdate:modelValue": t[1] ||= (e) => w.rangeEnd = e,
|
|
103
|
+
clearable: !1,
|
|
104
|
+
filterable: !1,
|
|
105
|
+
options: Array.from({ length: u.selectLength - 1 }, (e, t) => t + (u.startZero ? 1 : 2)).map((e) => ({
|
|
106
|
+
label: String(e),
|
|
107
|
+
value: String(e)
|
|
108
|
+
})),
|
|
109
|
+
onChange: T
|
|
110
|
+
}, null, 8, ["modelValue", "options"]),
|
|
111
|
+
c(" " + m(u.unit), 1)
|
|
112
|
+
])]),
|
|
113
|
+
_: 1
|
|
114
|
+
}),
|
|
115
|
+
l(h(y), { value: "loop" }, {
|
|
116
|
+
default: v(() => [t[9] ||= c("循环 ", -1), s("span", x, [
|
|
117
|
+
t[8] ||= c(" 从 ", -1),
|
|
118
|
+
l(a, {
|
|
119
|
+
modelValue: w.incrementStart,
|
|
120
|
+
"onUpdate:modelValue": t[2] ||= (e) => w.incrementStart = e,
|
|
121
|
+
clearable: !1,
|
|
122
|
+
filterable: !1,
|
|
123
|
+
options: Array.from({ length: u.selectLength }, (e, t) => t + +!u.startZero).map((e) => ({
|
|
124
|
+
label: String(e),
|
|
125
|
+
value: String(e)
|
|
126
|
+
}))
|
|
127
|
+
}, null, 8, ["modelValue", "options"]),
|
|
128
|
+
c(" " + m(u.unit) + "开始,间隔 ", 1),
|
|
129
|
+
l(a, {
|
|
130
|
+
modelValue: w.increment,
|
|
131
|
+
"onUpdate:modelValue": t[3] ||= (e) => w.increment = e,
|
|
132
|
+
clearable: !1,
|
|
133
|
+
filterable: !1,
|
|
134
|
+
options: Array.from({ length: u.selectLength - 1 }, (e, t) => t + 1).map((e) => ({
|
|
135
|
+
label: String(e),
|
|
136
|
+
value: String(e)
|
|
137
|
+
}))
|
|
138
|
+
}, null, 8, ["modelValue", "options"]),
|
|
139
|
+
c(" " + m(u.unit), 1)
|
|
140
|
+
])]),
|
|
141
|
+
_: 1
|
|
142
|
+
}),
|
|
143
|
+
l(h(y), { value: "specify" }, {
|
|
144
|
+
default: v(() => [s("div", S, [t[10] ||= s("span", null, "指定", -1), l(r, {
|
|
145
|
+
modelValue: w.specifyArr,
|
|
146
|
+
"onUpdate:modelValue": t[4] ||= (e) => w.specifyArr = e,
|
|
147
|
+
options: Array.from({ length: u.selectLength }, (e, t) => t + +!u.startZero).map((e) => ({
|
|
148
|
+
label: String(e),
|
|
149
|
+
value: String(e)
|
|
150
|
+
}))
|
|
151
|
+
}, null, 8, ["modelValue", "options"])])]),
|
|
152
|
+
_: 1
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["modelValue"]));
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
//#endregion
|
|
160
|
+
export { C as t };
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { isValidNumberString as e } from "../utils/boolean.mjs";
|
|
2
|
+
import { t } from "./checkbox-group-D7jGdbHp.mjs";
|
|
3
|
+
import { t as n } from "./radio-group-D29D9RMN.mjs";
|
|
4
|
+
import { t as r } from "./select-DbGBggUm.mjs";
|
|
5
|
+
import { createBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, reactive as u, unref as d, useModel as f, watch as p, withCtx as m } from "vue";
|
|
6
|
+
import { Radio as h } from "tdesign-vue-next";
|
|
7
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Day.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var g = { class: "ml-10" }, _ = { class: "ml-10" }, v = { class: "flex flex-col gap-1" }, y = { class: "flex flex-col gap-1" }, b = /* @__PURE__ */ c({
|
|
9
|
+
__name: "Day",
|
|
10
|
+
props: {
|
|
11
|
+
day: { required: !0 },
|
|
12
|
+
dayModifiers: {},
|
|
13
|
+
week: { required: !0 },
|
|
14
|
+
weekModifiers: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:day", "update:week"],
|
|
17
|
+
setup(c) {
|
|
18
|
+
let b = f(c, "day"), x = f(c, "week"), S = u({
|
|
19
|
+
dayIncrement: "1",
|
|
20
|
+
dayIncrementStart: "1",
|
|
21
|
+
daySpecifyArr: [],
|
|
22
|
+
lastDaysOfMonth: "1",
|
|
23
|
+
lastXqOfMonth: "1",
|
|
24
|
+
nearestWeekday: "1",
|
|
25
|
+
nthXqOfMonthNth: "1",
|
|
26
|
+
nthXqOfMonthXq: "1",
|
|
27
|
+
type: "every",
|
|
28
|
+
weekIncrement: "1",
|
|
29
|
+
weekIncrementStart: "1",
|
|
30
|
+
weekSpecifyArr: []
|
|
31
|
+
}), C = [
|
|
32
|
+
{
|
|
33
|
+
label: "日",
|
|
34
|
+
value: "1"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "一",
|
|
38
|
+
value: "2"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "二",
|
|
42
|
+
value: "3"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "三",
|
|
46
|
+
value: "4"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "四",
|
|
50
|
+
value: "5"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "五",
|
|
54
|
+
value: "6"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "六",
|
|
58
|
+
value: "7"
|
|
59
|
+
}
|
|
60
|
+
], w = C.map((e) => ({
|
|
61
|
+
...e,
|
|
62
|
+
label: `星期${e.label}`
|
|
63
|
+
}));
|
|
64
|
+
return p(S, () => {
|
|
65
|
+
switch (S.type) {
|
|
66
|
+
case "dayLoop":
|
|
67
|
+
b.value = `${S.dayIncrementStart}/${S.dayIncrement}`, x.value = "?";
|
|
68
|
+
break;
|
|
69
|
+
case "daySpecify":
|
|
70
|
+
b.value = S.daySpecifyArr.join(",") || "*", x.value = "?";
|
|
71
|
+
break;
|
|
72
|
+
case "lastDayOfMonth":
|
|
73
|
+
b.value = "L", x.value = "?";
|
|
74
|
+
break;
|
|
75
|
+
case "lastDaysOfMonth":
|
|
76
|
+
b.value = `L-${S.lastDaysOfMonth}`, x.value = "?";
|
|
77
|
+
break;
|
|
78
|
+
case "lastWeekdayOfMonth":
|
|
79
|
+
b.value = "LW", x.value = "?";
|
|
80
|
+
break;
|
|
81
|
+
case "lastXqOfMonth":
|
|
82
|
+
b.value = "?", x.value = `${S.lastXqOfMonth}L`;
|
|
83
|
+
break;
|
|
84
|
+
case "nearestWeekday":
|
|
85
|
+
b.value = `${S.nearestWeekday}W`, x.value = "?";
|
|
86
|
+
break;
|
|
87
|
+
case "nthXqOfMonth":
|
|
88
|
+
b.value = "?", x.value = `${S.nthXqOfMonthXq}#${S.nthXqOfMonthNth}`;
|
|
89
|
+
break;
|
|
90
|
+
case "weekLoop":
|
|
91
|
+
b.value = "?", x.value = `${S.weekIncrementStart}/${S.weekIncrement}`;
|
|
92
|
+
break;
|
|
93
|
+
case "weekSpecify":
|
|
94
|
+
b.value = "?", x.value = S.weekSpecifyArr.join(",") || "*";
|
|
95
|
+
break;
|
|
96
|
+
default: b.value = "?", x.value = "*";
|
|
97
|
+
}
|
|
98
|
+
}, { deep: !0 }), p(() => `${b.value} ${x.value}`, () => {
|
|
99
|
+
if (b.value === "?") {
|
|
100
|
+
if (x.value.endsWith("L")) {
|
|
101
|
+
S.type = "lastXqOfMonth", S.lastXqOfMonth = x.value.split("L")[0];
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (x.value.includes("#")) {
|
|
105
|
+
S.type = "nthXqOfMonth", S.nthXqOfMonthNth = x.value.split("#")[1], S.nthXqOfMonthXq = x.value.split("#")[0];
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (x.value.includes("/")) {
|
|
109
|
+
S.type = "weekLoop", S.weekIncrementStart = x.value.split("/")[0], S.weekIncrement = x.value.split("/")[1];
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (x.value.includes(",") || e(x.value)) {
|
|
113
|
+
S.type = "weekSpecify", S.weekSpecifyArr = x.value === "*" ? [] : x.value.split(",");
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
["every", "weekSpecify"].includes(S.type) || (S.type = "every"), S.type === "weekSpecify" && (S.weekSpecifyArr = []);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (b.value === "L") {
|
|
120
|
+
S.type = "lastDayOfMonth";
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (b.value === "LW") {
|
|
124
|
+
S.type = "lastWeekdayOfMonth";
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (b.value.includes("/")) {
|
|
128
|
+
S.type = "dayLoop", S.dayIncrementStart = b.value.split("/")[0], S.dayIncrement = b.value.split("/")[1];
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (b.value.endsWith("W")) {
|
|
132
|
+
S.type = "nearestWeekday", S.nearestWeekday = b.value.split("W")[0];
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (b.value.startsWith("L-")) {
|
|
136
|
+
S.type = "lastDaysOfMonth", S.lastDaysOfMonth = b.value.split("-")[1];
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
S.type = "daySpecify", S.daySpecifyArr = b.value === "*" ? [] : b.value.split(",");
|
|
140
|
+
}, { immediate: !0 }), (e, c) => (l(), i(n, {
|
|
141
|
+
modelValue: S.type,
|
|
142
|
+
"onUpdate:modelValue": c[11] ||= (e) => S.type = e,
|
|
143
|
+
direction: "vertical"
|
|
144
|
+
}, {
|
|
145
|
+
default: m(() => [
|
|
146
|
+
s(d(h), { value: "every" }, {
|
|
147
|
+
default: m(() => [...c[12] ||= [o("每天", -1)]]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
s(d(h), { value: "weekLoop" }, {
|
|
151
|
+
default: m(() => [c[16] ||= o("循环(按星期) ", -1), a("span", g, [
|
|
152
|
+
c[13] ||= o(" 从星期 ", -1),
|
|
153
|
+
s(r, {
|
|
154
|
+
modelValue: S.weekIncrementStart,
|
|
155
|
+
"onUpdate:modelValue": c[0] ||= (e) => S.weekIncrementStart = e,
|
|
156
|
+
clearable: !1,
|
|
157
|
+
filterable: !1,
|
|
158
|
+
options: C
|
|
159
|
+
}, null, 8, ["modelValue"]),
|
|
160
|
+
c[14] ||= o(" 开始,间隔 ", -1),
|
|
161
|
+
s(r, {
|
|
162
|
+
modelValue: S.weekIncrement,
|
|
163
|
+
"onUpdate:modelValue": c[1] ||= (e) => S.weekIncrement = e,
|
|
164
|
+
clearable: !1,
|
|
165
|
+
filterable: !1,
|
|
166
|
+
options: Array.from({ length: 7 }, (e, t) => t + 1).map((e) => ({
|
|
167
|
+
label: String(e),
|
|
168
|
+
value: String(e)
|
|
169
|
+
}))
|
|
170
|
+
}, null, 8, ["modelValue", "options"]),
|
|
171
|
+
c[15] ||= o(" 天 ", -1)
|
|
172
|
+
])]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
s(d(h), { value: "dayLoop" }, {
|
|
176
|
+
default: m(() => [c[20] ||= o("循环(按日) ", -1), a("span", _, [
|
|
177
|
+
c[17] ||= o(" 从 ", -1),
|
|
178
|
+
s(r, {
|
|
179
|
+
modelValue: S.dayIncrementStart,
|
|
180
|
+
"onUpdate:modelValue": c[2] ||= (e) => S.dayIncrementStart = e,
|
|
181
|
+
clearable: !1,
|
|
182
|
+
filterable: !1,
|
|
183
|
+
options: Array.from({ length: 31 }, (e, t) => t + 1).map((e) => ({
|
|
184
|
+
label: String(e),
|
|
185
|
+
value: String(e)
|
|
186
|
+
}))
|
|
187
|
+
}, null, 8, ["modelValue", "options"]),
|
|
188
|
+
c[18] ||= o(" 日开始,间隔 ", -1),
|
|
189
|
+
s(r, {
|
|
190
|
+
modelValue: S.dayIncrement,
|
|
191
|
+
"onUpdate:modelValue": c[3] ||= (e) => S.dayIncrement = e,
|
|
192
|
+
clearable: !1,
|
|
193
|
+
filterable: !1,
|
|
194
|
+
options: Array.from({ length: 31 }, (e, t) => t + 1).map((e) => ({
|
|
195
|
+
label: String(e),
|
|
196
|
+
value: String(e)
|
|
197
|
+
}))
|
|
198
|
+
}, null, 8, ["modelValue", "options"]),
|
|
199
|
+
c[19] ||= o(" 天 ", -1)
|
|
200
|
+
])]),
|
|
201
|
+
_: 1
|
|
202
|
+
}),
|
|
203
|
+
s(d(h), { value: "weekSpecify" }, {
|
|
204
|
+
default: m(() => [a("div", v, [c[21] ||= a("span", null, "指定星期", -1), s(t, {
|
|
205
|
+
modelValue: S.weekSpecifyArr,
|
|
206
|
+
"onUpdate:modelValue": c[4] ||= (e) => S.weekSpecifyArr = e,
|
|
207
|
+
options: d(w)
|
|
208
|
+
}, null, 8, ["modelValue", "options"])])]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
211
|
+
s(d(h), { value: "daySpecify" }, {
|
|
212
|
+
default: m(() => [a("div", y, [c[22] ||= a("span", null, "指定日", -1), s(t, {
|
|
213
|
+
modelValue: S.daySpecifyArr,
|
|
214
|
+
"onUpdate:modelValue": c[5] ||= (e) => S.daySpecifyArr = e,
|
|
215
|
+
options: Array.from({ length: 31 }, (e, t) => t + 1).map((e) => ({
|
|
216
|
+
label: String(e),
|
|
217
|
+
value: String(e)
|
|
218
|
+
}))
|
|
219
|
+
}, null, 8, ["modelValue", "options"])])]),
|
|
220
|
+
_: 1
|
|
221
|
+
}),
|
|
222
|
+
s(d(h), { value: "lastDayOfMonth" }, {
|
|
223
|
+
default: m(() => [...c[23] ||= [o("月最后一天", -1)]]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
s(d(h), { value: "lastWeekdayOfMonth" }, {
|
|
227
|
+
default: m(() => [...c[24] ||= [o("月最后一个工作日", -1)]]),
|
|
228
|
+
_: 1
|
|
229
|
+
}),
|
|
230
|
+
s(d(h), { value: "lastXqOfMonth" }, {
|
|
231
|
+
default: m(() => [c[25] ||= o("月最后一个星期 ", -1), s(r, {
|
|
232
|
+
modelValue: S.lastXqOfMonth,
|
|
233
|
+
"onUpdate:modelValue": c[6] ||= (e) => S.lastXqOfMonth = e,
|
|
234
|
+
clearable: !1,
|
|
235
|
+
filterable: !1,
|
|
236
|
+
options: C
|
|
237
|
+
}, null, 8, ["modelValue"])]),
|
|
238
|
+
_: 1
|
|
239
|
+
}),
|
|
240
|
+
s(d(h), { value: "lastDaysOfMonth" }, {
|
|
241
|
+
default: m(() => [
|
|
242
|
+
c[26] ||= o("月最后 ", -1),
|
|
243
|
+
s(r, {
|
|
244
|
+
modelValue: S.lastDaysOfMonth,
|
|
245
|
+
"onUpdate:modelValue": c[7] ||= (e) => S.lastDaysOfMonth = e,
|
|
246
|
+
clearable: !1,
|
|
247
|
+
filterable: !1,
|
|
248
|
+
options: Array.from({ length: 31 }, (e, t) => t + 1).map((e) => ({
|
|
249
|
+
label: String(e),
|
|
250
|
+
value: String(e)
|
|
251
|
+
}))
|
|
252
|
+
}, null, 8, ["modelValue", "options"]),
|
|
253
|
+
c[27] ||= o(" 天", -1)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
s(d(h), { value: "nearestWeekday" }, {
|
|
258
|
+
default: m(() => [s(r, {
|
|
259
|
+
modelValue: S.nearestWeekday,
|
|
260
|
+
"onUpdate:modelValue": c[8] ||= (e) => S.nearestWeekday = e,
|
|
261
|
+
clearable: !1,
|
|
262
|
+
filterable: !1,
|
|
263
|
+
options: Array.from({ length: 31 }, (e, t) => t + 1).map((e) => ({
|
|
264
|
+
label: String(e),
|
|
265
|
+
value: String(e)
|
|
266
|
+
}))
|
|
267
|
+
}, null, 8, ["modelValue", "options"]), c[28] ||= o(" 日最近的一个工作日", -1)]),
|
|
268
|
+
_: 1
|
|
269
|
+
}),
|
|
270
|
+
s(d(h), { value: "nthXqOfMonth" }, {
|
|
271
|
+
default: m(() => [
|
|
272
|
+
c[29] ||= o("月第 ", -1),
|
|
273
|
+
s(r, {
|
|
274
|
+
modelValue: S.nthXqOfMonthNth,
|
|
275
|
+
"onUpdate:modelValue": c[9] ||= (e) => S.nthXqOfMonthNth = e,
|
|
276
|
+
clearable: !1,
|
|
277
|
+
filterable: !1,
|
|
278
|
+
options: Array.from({ length: 5 }, (e, t) => t + 1).map((e) => ({
|
|
279
|
+
label: String(e),
|
|
280
|
+
value: String(e)
|
|
281
|
+
}))
|
|
282
|
+
}, null, 8, ["modelValue", "options"]),
|
|
283
|
+
c[30] ||= o(" 个星期 ", -1),
|
|
284
|
+
s(r, {
|
|
285
|
+
modelValue: S.nthXqOfMonthXq,
|
|
286
|
+
"onUpdate:modelValue": c[10] ||= (e) => S.nthXqOfMonthXq = e,
|
|
287
|
+
clearable: !1,
|
|
288
|
+
filterable: !1,
|
|
289
|
+
options: C
|
|
290
|
+
}, null, 8, ["modelValue"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}, 8, ["modelValue"]));
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
//#endregion
|
|
300
|
+
export { b as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as e } from "./Common-JCpJRcIQ.mjs";
|
|
2
|
+
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Hour.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "Hour",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { required: !0 },
|
|
9
|
+
modelModifiers: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(n) {
|
|
13
|
+
let a = i(n, "modelValue");
|
|
14
|
+
return (n, i) => (r(), t(e, {
|
|
15
|
+
modelValue: a.value,
|
|
16
|
+
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17
|
+
"select-length": 24,
|
|
18
|
+
unit: "时"
|
|
19
|
+
}, null, 8, ["modelValue"]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as e } from "./Common-JCpJRcIQ.mjs";
|
|
2
|
+
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Minute.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "Minute",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { required: !0 },
|
|
9
|
+
modelModifiers: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(n) {
|
|
13
|
+
let a = i(n, "modelValue");
|
|
14
|
+
return (n, i) => (r(), t(e, {
|
|
15
|
+
modelValue: a.value,
|
|
16
|
+
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17
|
+
"select-length": 60,
|
|
18
|
+
unit: "分"
|
|
19
|
+
}, null, 8, ["modelValue"]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as e } from "./Common-JCpJRcIQ.mjs";
|
|
2
|
+
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Month.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "Month",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { required: !0 },
|
|
9
|
+
modelModifiers: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(n) {
|
|
13
|
+
let a = i(n, "modelValue");
|
|
14
|
+
return (n, i) => (r(), t(e, {
|
|
15
|
+
modelValue: a.value,
|
|
16
|
+
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17
|
+
"select-length": 12,
|
|
18
|
+
"start-zero": !1,
|
|
19
|
+
unit: "月"
|
|
20
|
+
}, null, 8, ["modelValue"]));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as e } from "./Common-JCpJRcIQ.mjs";
|
|
2
|
+
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/cron/src/Second.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "Second",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { required: !0 },
|
|
9
|
+
modelModifiers: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(n) {
|
|
13
|
+
let a = i(n, "modelValue");
|
|
14
|
+
return (n, i) => (r(), t(e, {
|
|
15
|
+
modelValue: a.value,
|
|
16
|
+
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17
|
+
"select-length": 60,
|
|
18
|
+
unit: "秒"
|
|
19
|
+
}, null, 8, ["modelValue"]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./useAppContext-D47amIp5.mjs";
|
|
2
2
|
import { h as t } from "./user-DsSzsUIW.mjs";
|
|
3
3
|
import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
|
|
4
|
-
import
|
|
4
|
+
import i from "../hooks/useList/index.mjs";
|
|
5
5
|
import { computed as a, createBlock as o, defineComponent as s, getCurrentInstance as c, h as l, mergeProps as u, openBlock as d, resolveDynamicComponent as f, unref as p } from "vue";
|
|
6
6
|
import { CheckboxGroup as m } from "tdesign-vue-next";
|
|
7
7
|
//#endregion
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import e from "../plugins/autoImport/$confirm/index.mjs";
|
|
2
|
+
import { n as t } from "./input-B8jjJrK5.mjs";
|
|
3
|
+
import { computed as n, createBlock as r, defineAsyncComponent as i, defineComponent as a, getCurrentInstance as o, guardReactiveProps as s, h as c, inject as l, mergeDefaults as u, mergeProps as d, normalizeProps as f, openBlock as p, ref as m, resolveComponent as h, useAttrs as g } from "vue";
|
|
4
|
+
import { Button as _ } from "tdesign-vue-next";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../packages/dlzn-ui/components/cron/src/cron.vue
|
|
7
|
+
var v = /* @__PURE__ */ a({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "cron",
|
|
10
|
+
props: /*@__PURE__*/ u({
|
|
11
|
+
modelValue: {},
|
|
12
|
+
adornment: {},
|
|
13
|
+
align: {},
|
|
14
|
+
allowInputOverMax: { type: Boolean },
|
|
15
|
+
autoWidth: { type: Boolean },
|
|
16
|
+
autocomplete: {},
|
|
17
|
+
autofocus: { type: Boolean },
|
|
18
|
+
borderless: { type: Boolean },
|
|
19
|
+
clearable: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
format: { type: Function },
|
|
22
|
+
inputClass: {},
|
|
23
|
+
label: {},
|
|
24
|
+
maxcharacter: {},
|
|
25
|
+
maxlength: {},
|
|
26
|
+
name: {},
|
|
27
|
+
placeholder: {},
|
|
28
|
+
prefixIcon: {},
|
|
29
|
+
readonly: { type: Boolean },
|
|
30
|
+
showClearIconOnEmpty: { type: Boolean },
|
|
31
|
+
showLimitNumber: { type: Boolean },
|
|
32
|
+
size: {},
|
|
33
|
+
spellCheck: { type: Boolean },
|
|
34
|
+
status: {},
|
|
35
|
+
suffix: {},
|
|
36
|
+
suffixIcon: {},
|
|
37
|
+
tips: {},
|
|
38
|
+
type: {},
|
|
39
|
+
onBlur: { type: Function },
|
|
40
|
+
onChange: { type: Function },
|
|
41
|
+
onClear: { type: Function },
|
|
42
|
+
onClick: { type: Function },
|
|
43
|
+
onCompositionend: { type: Function },
|
|
44
|
+
onCompositionstart: { type: Function },
|
|
45
|
+
onEnter: { type: Function },
|
|
46
|
+
onFocus: { type: Function },
|
|
47
|
+
onKeydown: { type: Function },
|
|
48
|
+
onKeypress: { type: Function },
|
|
49
|
+
onKeyup: { type: Function },
|
|
50
|
+
onMouseenter: { type: Function },
|
|
51
|
+
onMouseleave: { type: Function },
|
|
52
|
+
onPaste: { type: Function },
|
|
53
|
+
onValidate: { type: Function },
|
|
54
|
+
onWheel: { type: Function }
|
|
55
|
+
}, t),
|
|
56
|
+
emits: ["update:modelValue"],
|
|
57
|
+
setup(t, { emit: a }) {
|
|
58
|
+
let u = t, v = a, y = l("isFormDisabled", n(() => !1)), b = l("isFormReadonly", n(() => !1)), x = n(() => {
|
|
59
|
+
let t = u.disabled ?? y.value, n = u.readonly ?? b.value;
|
|
60
|
+
return {
|
|
61
|
+
...u,
|
|
62
|
+
adornment: { append: () => c(_, {
|
|
63
|
+
default: "cron",
|
|
64
|
+
onClick: () => {
|
|
65
|
+
let r = m(null);
|
|
66
|
+
e({
|
|
67
|
+
body: () => c(i(() => import("../components/cron/src/Picker.mjs")), {
|
|
68
|
+
disabled: t,
|
|
69
|
+
modelValue: u.modelValue,
|
|
70
|
+
onVnodeMounted: (e) => {
|
|
71
|
+
r.value = e.component.exposed;
|
|
72
|
+
},
|
|
73
|
+
onVnodeUnmounted: () => {
|
|
74
|
+
r.value = null;
|
|
75
|
+
},
|
|
76
|
+
readonly: n
|
|
77
|
+
}),
|
|
78
|
+
header: "cron表达式",
|
|
79
|
+
onConfirmCallback: async () => {
|
|
80
|
+
let e = await r.value.handleSubmit();
|
|
81
|
+
v("update:modelValue", e);
|
|
82
|
+
},
|
|
83
|
+
width: 1e3
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
variant: "text"
|
|
87
|
+
}) }
|
|
88
|
+
};
|
|
89
|
+
}), S = g(), C = o();
|
|
90
|
+
function w(e) {
|
|
91
|
+
C.exposed = e ?? {};
|
|
92
|
+
}
|
|
93
|
+
let T = n(() => d(S, {
|
|
94
|
+
...x.value,
|
|
95
|
+
onChange: (...e) => {
|
|
96
|
+
v("update:modelValue", e[0]), u.onChange?.(...e);
|
|
97
|
+
},
|
|
98
|
+
ref: w
|
|
99
|
+
}));
|
|
100
|
+
return (e, t) => {
|
|
101
|
+
let n = h("TInput");
|
|
102
|
+
return p(), r(n, f(s(T.value)), null, 16);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
export { v as t };
|