z-vue-design 0.0.33 → 0.0.34
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/styles/z-vue-design.css +1 -1
- package/dist/z-vue-design.es.js +53164 -5
- package/dist/z-vue-design.umd.js +125 -188
- package/package.json +1 -1
- package/dist/KeyCode-BQ8PiGWB.mjs +0 -151
- package/dist/SearchOutlined-C8PgMkgm.mjs +0 -339
- package/dist/UtilsEmpty-BzsM7Cba.mjs +0 -10
- package/dist/ZDatePicker-wFB8-HrO.mjs +0 -36
- package/dist/ZInput-7W7W0XFO.mjs +0 -2498
- package/dist/ZRangePicker-DHcuHk1d.mjs +0 -36
- package/dist/ZSelect-Dv55rL9P.mjs +0 -4370
- package/dist/ZSwitch-CaOLFlcD.mjs +0 -423
- package/dist/ZTimePicker-Bvv31dHj.mjs +0 -35
- package/dist/ZTimeRangePicker-NPKMnAat.mjs +0 -36
- package/dist/dayjs-Bt0Scx6s.mjs +0 -166
- package/dist/dayjs-DEHSsOBE.mjs +0 -23
- package/dist/index-BNanAhZ5.mjs +0 -775
- package/dist/index-CwR0eJ0A.mjs +0 -12848
- package/dist/slide-DaUC7i86.mjs +0 -313
- package/dist/statusUtils-D245_o98.mjs +0 -15
- package/dist/zh_CN-DrK7CiiO.mjs +0 -8151
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, computed as m, onBeforeMount as F, ref as v, watch as L, onMounted as A, nextTick as O, createVNode as h, useModel as W, resolveComponent as X, createBlock as j, openBlock as R, mergeProps as K } from "vue";
|
|
2
|
-
import { r as N, A as U, T as G, _ as w, x as Z, D as Q, E as q, P as a, u as J, h as Y, d as k, W as ii, b as p, L as ni, G as f, t as ei, l as b, z as ci } from "./index-CwR0eJ0A.mjs";
|
|
3
|
-
import { o as ai, K as C } from "./KeyCode-BQ8PiGWB.mjs";
|
|
4
|
-
const ti = (i) => {
|
|
5
|
-
const {
|
|
6
|
-
componentCls: n
|
|
7
|
-
} = i, e = `${n}-inner`;
|
|
8
|
-
return {
|
|
9
|
-
[n]: {
|
|
10
|
-
[`&${n}-small`]: {
|
|
11
|
-
minWidth: i.switchMinWidthSM,
|
|
12
|
-
height: i.switchHeightSM,
|
|
13
|
-
lineHeight: `${i.switchHeightSM}px`,
|
|
14
|
-
[`${n}-inner`]: {
|
|
15
|
-
paddingInlineStart: i.switchInnerMarginMaxSM,
|
|
16
|
-
paddingInlineEnd: i.switchInnerMarginMinSM,
|
|
17
|
-
[`${e}-checked`]: {
|
|
18
|
-
marginInlineStart: `calc(-100% + ${i.switchPinSizeSM + i.switchPadding * 2}px - ${i.switchInnerMarginMaxSM * 2}px)`,
|
|
19
|
-
marginInlineEnd: `calc(100% - ${i.switchPinSizeSM + i.switchPadding * 2}px + ${i.switchInnerMarginMaxSM * 2}px)`
|
|
20
|
-
},
|
|
21
|
-
[`${e}-unchecked`]: {
|
|
22
|
-
marginTop: -i.switchHeightSM,
|
|
23
|
-
marginInlineStart: 0,
|
|
24
|
-
marginInlineEnd: 0
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
[`${n}-handle`]: {
|
|
28
|
-
width: i.switchPinSizeSM,
|
|
29
|
-
height: i.switchPinSizeSM
|
|
30
|
-
},
|
|
31
|
-
[`${n}-loading-icon`]: {
|
|
32
|
-
top: (i.switchPinSizeSM - i.switchLoadingIconSize) / 2,
|
|
33
|
-
fontSize: i.switchLoadingIconSize
|
|
34
|
-
},
|
|
35
|
-
[`&${n}-checked`]: {
|
|
36
|
-
[`${n}-inner`]: {
|
|
37
|
-
paddingInlineStart: i.switchInnerMarginMinSM,
|
|
38
|
-
paddingInlineEnd: i.switchInnerMarginMaxSM,
|
|
39
|
-
[`${e}-checked`]: {
|
|
40
|
-
marginInlineStart: 0,
|
|
41
|
-
marginInlineEnd: 0
|
|
42
|
-
},
|
|
43
|
-
[`${e}-unchecked`]: {
|
|
44
|
-
marginInlineStart: `calc(100% - ${i.switchPinSizeSM + i.switchPadding * 2}px + ${i.switchInnerMarginMaxSM * 2}px)`,
|
|
45
|
-
marginInlineEnd: `calc(-100% + ${i.switchPinSizeSM + i.switchPadding * 2}px - ${i.switchInnerMarginMaxSM * 2}px)`
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
[`${n}-handle`]: {
|
|
49
|
-
insetInlineStart: `calc(100% - ${i.switchPinSizeSM + i.switchPadding}px)`
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
[`&:not(${n}-disabled):active`]: {
|
|
53
|
-
[`&:not(${n}-checked) ${e}`]: {
|
|
54
|
-
[`${e}-unchecked`]: {
|
|
55
|
-
marginInlineStart: i.marginXXS / 2,
|
|
56
|
-
marginInlineEnd: -i.marginXXS / 2
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
[`&${n}-checked ${e}`]: {
|
|
60
|
-
[`${e}-checked`]: {
|
|
61
|
-
marginInlineStart: -i.marginXXS / 2,
|
|
62
|
-
marginInlineEnd: i.marginXXS / 2
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}, di = (i) => {
|
|
70
|
-
const {
|
|
71
|
-
componentCls: n
|
|
72
|
-
} = i;
|
|
73
|
-
return {
|
|
74
|
-
[n]: {
|
|
75
|
-
[`${n}-loading-icon${i.iconCls}`]: {
|
|
76
|
-
position: "relative",
|
|
77
|
-
top: (i.switchPinSize - i.fontSize) / 2,
|
|
78
|
-
color: i.switchLoadingIconColor,
|
|
79
|
-
verticalAlign: "top"
|
|
80
|
-
},
|
|
81
|
-
[`&${n}-checked ${n}-loading-icon`]: {
|
|
82
|
-
color: i.switchColor
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}, li = (i) => {
|
|
87
|
-
const {
|
|
88
|
-
componentCls: n
|
|
89
|
-
} = i, e = `${n}-handle`;
|
|
90
|
-
return {
|
|
91
|
-
[n]: {
|
|
92
|
-
[e]: {
|
|
93
|
-
position: "absolute",
|
|
94
|
-
top: i.switchPadding,
|
|
95
|
-
insetInlineStart: i.switchPadding,
|
|
96
|
-
width: i.switchPinSize,
|
|
97
|
-
height: i.switchPinSize,
|
|
98
|
-
transition: `all ${i.switchDuration} ease-in-out`,
|
|
99
|
-
"&::before": {
|
|
100
|
-
position: "absolute",
|
|
101
|
-
top: 0,
|
|
102
|
-
insetInlineEnd: 0,
|
|
103
|
-
bottom: 0,
|
|
104
|
-
insetInlineStart: 0,
|
|
105
|
-
backgroundColor: i.colorWhite,
|
|
106
|
-
borderRadius: i.switchPinSize / 2,
|
|
107
|
-
boxShadow: i.switchHandleShadow,
|
|
108
|
-
transition: `all ${i.switchDuration} ease-in-out`,
|
|
109
|
-
content: '""'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
[`&${n}-checked ${e}`]: {
|
|
113
|
-
insetInlineStart: `calc(100% - ${i.switchPinSize + i.switchPadding}px)`
|
|
114
|
-
},
|
|
115
|
-
[`&:not(${n}-disabled):active`]: {
|
|
116
|
-
[`${e}::before`]: {
|
|
117
|
-
insetInlineEnd: i.switchHandleActiveInset,
|
|
118
|
-
insetInlineStart: 0
|
|
119
|
-
},
|
|
120
|
-
[`&${n}-checked ${e}::before`]: {
|
|
121
|
-
insetInlineEnd: 0,
|
|
122
|
-
insetInlineStart: i.switchHandleActiveInset
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}, si = (i) => {
|
|
128
|
-
const {
|
|
129
|
-
componentCls: n
|
|
130
|
-
} = i, e = `${n}-inner`;
|
|
131
|
-
return {
|
|
132
|
-
[n]: {
|
|
133
|
-
[e]: {
|
|
134
|
-
display: "block",
|
|
135
|
-
overflow: "hidden",
|
|
136
|
-
borderRadius: 100,
|
|
137
|
-
height: "100%",
|
|
138
|
-
paddingInlineStart: i.switchInnerMarginMax,
|
|
139
|
-
paddingInlineEnd: i.switchInnerMarginMin,
|
|
140
|
-
transition: `padding-inline-start ${i.switchDuration} ease-in-out, padding-inline-end ${i.switchDuration} ease-in-out`,
|
|
141
|
-
[`${e}-checked, ${e}-unchecked`]: {
|
|
142
|
-
display: "block",
|
|
143
|
-
color: i.colorTextLightSolid,
|
|
144
|
-
fontSize: i.fontSizeSM,
|
|
145
|
-
transition: `margin-inline-start ${i.switchDuration} ease-in-out, margin-inline-end ${i.switchDuration} ease-in-out`,
|
|
146
|
-
pointerEvents: "none"
|
|
147
|
-
},
|
|
148
|
-
[`${e}-checked`]: {
|
|
149
|
-
marginInlineStart: `calc(-100% + ${i.switchPinSize + i.switchPadding * 2}px - ${i.switchInnerMarginMax * 2}px)`,
|
|
150
|
-
marginInlineEnd: `calc(100% - ${i.switchPinSize + i.switchPadding * 2}px + ${i.switchInnerMarginMax * 2}px)`
|
|
151
|
-
},
|
|
152
|
-
[`${e}-unchecked`]: {
|
|
153
|
-
marginTop: -i.switchHeight,
|
|
154
|
-
marginInlineStart: 0,
|
|
155
|
-
marginInlineEnd: 0
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
[`&${n}-checked ${e}`]: {
|
|
159
|
-
paddingInlineStart: i.switchInnerMarginMin,
|
|
160
|
-
paddingInlineEnd: i.switchInnerMarginMax,
|
|
161
|
-
[`${e}-checked`]: {
|
|
162
|
-
marginInlineStart: 0,
|
|
163
|
-
marginInlineEnd: 0
|
|
164
|
-
},
|
|
165
|
-
[`${e}-unchecked`]: {
|
|
166
|
-
marginInlineStart: `calc(100% - ${i.switchPinSize + i.switchPadding * 2}px + ${i.switchInnerMarginMax * 2}px)`,
|
|
167
|
-
marginInlineEnd: `calc(-100% + ${i.switchPinSize + i.switchPadding * 2}px - ${i.switchInnerMarginMax * 2}px)`
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
[`&:not(${n}-disabled):active`]: {
|
|
171
|
-
[`&:not(${n}-checked) ${e}`]: {
|
|
172
|
-
[`${e}-unchecked`]: {
|
|
173
|
-
marginInlineStart: i.switchPadding * 2,
|
|
174
|
-
marginInlineEnd: -i.switchPadding * 2
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
[`&${n}-checked ${e}`]: {
|
|
178
|
-
[`${e}-checked`]: {
|
|
179
|
-
marginInlineStart: -i.switchPadding * 2,
|
|
180
|
-
marginInlineEnd: i.switchPadding * 2
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
}, ri = (i) => {
|
|
187
|
-
const {
|
|
188
|
-
componentCls: n
|
|
189
|
-
} = i;
|
|
190
|
-
return {
|
|
191
|
-
[n]: w(w(w(w({}, Z(i)), {
|
|
192
|
-
position: "relative",
|
|
193
|
-
display: "inline-block",
|
|
194
|
-
boxSizing: "border-box",
|
|
195
|
-
minWidth: i.switchMinWidth,
|
|
196
|
-
height: i.switchHeight,
|
|
197
|
-
lineHeight: `${i.switchHeight}px`,
|
|
198
|
-
verticalAlign: "middle",
|
|
199
|
-
background: i.colorTextQuaternary,
|
|
200
|
-
border: "0",
|
|
201
|
-
borderRadius: 100,
|
|
202
|
-
cursor: "pointer",
|
|
203
|
-
transition: `all ${i.motionDurationMid}`,
|
|
204
|
-
userSelect: "none",
|
|
205
|
-
[`&:hover:not(${n}-disabled)`]: {
|
|
206
|
-
background: i.colorTextTertiary
|
|
207
|
-
}
|
|
208
|
-
}), Q(i)), {
|
|
209
|
-
[`&${n}-checked`]: {
|
|
210
|
-
background: i.switchColor,
|
|
211
|
-
[`&:hover:not(${n}-disabled)`]: {
|
|
212
|
-
background: i.colorPrimaryHover
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
[`&${n}-loading, &${n}-disabled`]: {
|
|
216
|
-
cursor: "not-allowed",
|
|
217
|
-
opacity: i.switchDisabledOpacity,
|
|
218
|
-
"*": {
|
|
219
|
-
boxShadow: "none",
|
|
220
|
-
cursor: "not-allowed"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
// rtl style
|
|
224
|
-
[`&${n}-rtl`]: {
|
|
225
|
-
direction: "rtl"
|
|
226
|
-
}
|
|
227
|
-
})
|
|
228
|
-
};
|
|
229
|
-
}, oi = N("Switch", (i) => {
|
|
230
|
-
const n = i.fontSize * i.lineHeight, e = i.controlHeight / 2, t = 2, s = n - t * 2, d = e - t * 2, r = U(i, {
|
|
231
|
-
switchMinWidth: s * 2 + t * 4,
|
|
232
|
-
switchHeight: n,
|
|
233
|
-
switchDuration: i.motionDurationMid,
|
|
234
|
-
switchColor: i.colorPrimary,
|
|
235
|
-
switchDisabledOpacity: i.opacityLoading,
|
|
236
|
-
switchInnerMarginMin: s / 2,
|
|
237
|
-
switchInnerMarginMax: s + t + t * 2,
|
|
238
|
-
switchPadding: t,
|
|
239
|
-
switchPinSize: s,
|
|
240
|
-
switchBg: i.colorBgContainer,
|
|
241
|
-
switchMinWidthSM: d * 2 + t * 2,
|
|
242
|
-
switchHeightSM: e,
|
|
243
|
-
switchInnerMarginMinSM: d / 2,
|
|
244
|
-
switchInnerMarginMaxSM: d + t + t * 2,
|
|
245
|
-
switchPinSizeSM: d,
|
|
246
|
-
switchHandleShadow: `0 2px 4px 0 ${new G("#00230b").setAlpha(0.2).toRgbString()}`,
|
|
247
|
-
switchLoadingIconSize: i.fontSizeIcon * 0.75,
|
|
248
|
-
switchLoadingIconColor: `rgba(0, 0, 0, ${i.opacityLoading})`,
|
|
249
|
-
switchHandleActiveInset: "-30%"
|
|
250
|
-
});
|
|
251
|
-
return [
|
|
252
|
-
ri(r),
|
|
253
|
-
// inner style
|
|
254
|
-
si(r),
|
|
255
|
-
// handle style
|
|
256
|
-
li(r),
|
|
257
|
-
// loading style
|
|
258
|
-
di(r),
|
|
259
|
-
// small style
|
|
260
|
-
ti(r)
|
|
261
|
-
];
|
|
262
|
-
}), hi = ei("small", "default"), ui = () => ({
|
|
263
|
-
id: String,
|
|
264
|
-
prefixCls: String,
|
|
265
|
-
size: a.oneOf(hi),
|
|
266
|
-
disabled: {
|
|
267
|
-
type: Boolean,
|
|
268
|
-
default: void 0
|
|
269
|
-
},
|
|
270
|
-
checkedChildren: a.any,
|
|
271
|
-
unCheckedChildren: a.any,
|
|
272
|
-
tabindex: a.oneOfType([a.string, a.number]),
|
|
273
|
-
autofocus: {
|
|
274
|
-
type: Boolean,
|
|
275
|
-
default: void 0
|
|
276
|
-
},
|
|
277
|
-
loading: {
|
|
278
|
-
type: Boolean,
|
|
279
|
-
default: void 0
|
|
280
|
-
},
|
|
281
|
-
checked: a.oneOfType([a.string, a.number, a.looseBool]),
|
|
282
|
-
checkedValue: a.oneOfType([a.string, a.number, a.looseBool]).def(!0),
|
|
283
|
-
unCheckedValue: a.oneOfType([a.string, a.number, a.looseBool]).def(!1),
|
|
284
|
-
onChange: {
|
|
285
|
-
type: Function
|
|
286
|
-
},
|
|
287
|
-
onClick: {
|
|
288
|
-
type: Function
|
|
289
|
-
},
|
|
290
|
-
onKeydown: {
|
|
291
|
-
type: Function
|
|
292
|
-
},
|
|
293
|
-
onMouseup: {
|
|
294
|
-
type: Function
|
|
295
|
-
},
|
|
296
|
-
"onUpdate:checked": {
|
|
297
|
-
type: Function
|
|
298
|
-
},
|
|
299
|
-
onBlur: Function,
|
|
300
|
-
onFocus: Function
|
|
301
|
-
}), gi = V({
|
|
302
|
-
compatConfig: {
|
|
303
|
-
MODE: 3
|
|
304
|
-
},
|
|
305
|
-
name: "ASwitch",
|
|
306
|
-
__ANT_SWITCH: !0,
|
|
307
|
-
inheritAttrs: !1,
|
|
308
|
-
props: ui(),
|
|
309
|
-
slots: Object,
|
|
310
|
-
// emits: ['update:checked', 'mouseup', 'change', 'click', 'keydown', 'blur'],
|
|
311
|
-
setup(i, n) {
|
|
312
|
-
let {
|
|
313
|
-
attrs: e,
|
|
314
|
-
slots: t,
|
|
315
|
-
expose: s,
|
|
316
|
-
emit: d
|
|
317
|
-
} = n;
|
|
318
|
-
const r = J(), x = Y(), g = m(() => {
|
|
319
|
-
var c;
|
|
320
|
-
return (c = i.disabled) !== null && c !== void 0 ? c : x.value;
|
|
321
|
-
});
|
|
322
|
-
F(() => {
|
|
323
|
-
b(!("defaultChecked" in e), "Switch", "'defaultChecked' is deprecated, please use 'v-model:checked'"), b(!("value" in e), "Switch", "`value` is not validate prop, do you mean `checked`?");
|
|
324
|
-
});
|
|
325
|
-
const S = v(i.checked !== void 0 ? i.checked : e.defaultChecked), I = m(() => S.value === i.checkedValue);
|
|
326
|
-
L(() => i.checked, () => {
|
|
327
|
-
S.value = i.checked;
|
|
328
|
-
});
|
|
329
|
-
const {
|
|
330
|
-
prefixCls: l,
|
|
331
|
-
direction: y,
|
|
332
|
-
size: P
|
|
333
|
-
} = k("switch", i), [z, E] = oi(l), u = v(), M = () => {
|
|
334
|
-
var c;
|
|
335
|
-
(c = u.value) === null || c === void 0 || c.focus();
|
|
336
|
-
};
|
|
337
|
-
s({
|
|
338
|
-
focus: M,
|
|
339
|
-
blur: () => {
|
|
340
|
-
var c;
|
|
341
|
-
(c = u.value) === null || c === void 0 || c.blur();
|
|
342
|
-
}
|
|
343
|
-
}), A(() => {
|
|
344
|
-
O(() => {
|
|
345
|
-
i.autofocus && !g.value && u.value.focus();
|
|
346
|
-
});
|
|
347
|
-
});
|
|
348
|
-
const $ = (c, o) => {
|
|
349
|
-
g.value || (d("update:checked", c), d("change", c, o), r.onFieldChange());
|
|
350
|
-
}, H = (c) => {
|
|
351
|
-
d("blur", c);
|
|
352
|
-
}, _ = (c) => {
|
|
353
|
-
M();
|
|
354
|
-
const o = I.value ? i.unCheckedValue : i.checkedValue;
|
|
355
|
-
$(o, c), d("click", o, c);
|
|
356
|
-
}, T = (c) => {
|
|
357
|
-
c.keyCode === C.LEFT ? $(i.unCheckedValue, c) : c.keyCode === C.RIGHT && $(i.checkedValue, c), d("keydown", c);
|
|
358
|
-
}, D = (c) => {
|
|
359
|
-
var o;
|
|
360
|
-
(o = u.value) === null || o === void 0 || o.blur(), d("mouseup", c);
|
|
361
|
-
}, B = m(() => ({
|
|
362
|
-
[`${l.value}-small`]: P.value === "small",
|
|
363
|
-
[`${l.value}-loading`]: i.loading,
|
|
364
|
-
[`${l.value}-checked`]: I.value,
|
|
365
|
-
[`${l.value}-disabled`]: g.value,
|
|
366
|
-
[l.value]: !0,
|
|
367
|
-
[`${l.value}-rtl`]: y.value === "rtl",
|
|
368
|
-
[E.value]: !0
|
|
369
|
-
}));
|
|
370
|
-
return () => {
|
|
371
|
-
var c;
|
|
372
|
-
return z(h(ii, null, {
|
|
373
|
-
default: () => [h("button", p(p(p({}, ai(i, ["prefixCls", "checkedChildren", "unCheckedChildren", "checked", "autofocus", "checkedValue", "unCheckedValue", "id", "onChange", "onUpdate:checked"])), e), {}, {
|
|
374
|
-
id: (c = i.id) !== null && c !== void 0 ? c : r.id.value,
|
|
375
|
-
onKeydown: T,
|
|
376
|
-
onClick: _,
|
|
377
|
-
onBlur: H,
|
|
378
|
-
onMouseup: D,
|
|
379
|
-
type: "button",
|
|
380
|
-
role: "switch",
|
|
381
|
-
"aria-checked": S.value,
|
|
382
|
-
disabled: g.value || i.loading,
|
|
383
|
-
class: [e.class, B.value],
|
|
384
|
-
ref: u
|
|
385
|
-
}), [h("div", {
|
|
386
|
-
class: `${l.value}-handle`
|
|
387
|
-
}, [i.loading ? h(ni, {
|
|
388
|
-
class: `${l.value}-loading-icon`
|
|
389
|
-
}, null) : null]), h("span", {
|
|
390
|
-
class: `${l.value}-inner`
|
|
391
|
-
}, [h("span", {
|
|
392
|
-
class: `${l.value}-inner-checked`
|
|
393
|
-
}, [f(t, i, "checkedChildren")]), h("span", {
|
|
394
|
-
class: `${l.value}-inner-unchecked`
|
|
395
|
-
}, [f(t, i, "unCheckedChildren")])])])]
|
|
396
|
-
}));
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
}), wi = q(gi), Si = {
|
|
400
|
-
name: "ZSwitch",
|
|
401
|
-
components: {
|
|
402
|
-
ASwitch: wi
|
|
403
|
-
}
|
|
404
|
-
}, $i = /* @__PURE__ */ Object.assign(Si, {
|
|
405
|
-
props: {
|
|
406
|
-
modelValue: {},
|
|
407
|
-
modelModifiers: {}
|
|
408
|
-
},
|
|
409
|
-
emits: ["update:modelValue"],
|
|
410
|
-
setup(i) {
|
|
411
|
-
const n = W(i, "modelValue");
|
|
412
|
-
return (e, t) => {
|
|
413
|
-
const s = X("a-switch");
|
|
414
|
-
return R(), j(s, K({
|
|
415
|
-
checked: n.value,
|
|
416
|
-
"onUpdate:checked": t[0] || (t[0] = (d) => n.value = d)
|
|
417
|
-
}, e.$attrs), null, 16, ["checked"]);
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
}), vi = /* @__PURE__ */ ci($i, [["__scopeId", "data-v-db05950a"]]);
|
|
421
|
-
export {
|
|
422
|
-
vi as default
|
|
423
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useModel as c, resolveComponent as r, createBlock as s, openBlock as m, unref as d, withCtx as p, createVNode as u, mergeProps as _ } from "vue";
|
|
2
|
-
import { C as f, l as v } from "./zh_CN-DrK7CiiO.mjs";
|
|
3
|
-
import { z as k } from "./index-CwR0eJ0A.mjs";
|
|
4
|
-
import { T as g } from "./dayjs-Bt0Scx6s.mjs";
|
|
5
|
-
const P = {
|
|
6
|
-
name: "ZRangePicker",
|
|
7
|
-
components: {
|
|
8
|
-
ATimePicker: g,
|
|
9
|
-
AConfigProvider: f
|
|
10
|
-
}
|
|
11
|
-
}, V = /* @__PURE__ */ Object.assign(P, {
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {},
|
|
14
|
-
modelModifiers: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:modelValue"],
|
|
17
|
-
setup(a) {
|
|
18
|
-
const e = c(a, "modelValue");
|
|
19
|
-
return (t, o) => {
|
|
20
|
-
const l = r("a-time-picker"), i = r("a-config-provider");
|
|
21
|
-
return m(), s(i, { locale: d(v) }, {
|
|
22
|
-
default: p(() => [
|
|
23
|
-
u(l, _({
|
|
24
|
-
value: e.value,
|
|
25
|
-
"onUpdate:value": o[0] || (o[0] = (n) => e.value = n)
|
|
26
|
-
}, t.$attrs), null, 16, ["value"])
|
|
27
|
-
]),
|
|
28
|
-
_: 1
|
|
29
|
-
}, 8, ["locale"]);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}), A = /* @__PURE__ */ k(V, [["__scopeId", "data-v-d1d1deb7"]]);
|
|
33
|
-
export {
|
|
34
|
-
A as default
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useModel as c, resolveComponent as a, createBlock as s, openBlock as m, unref as p, withCtx as u, createVNode as d, mergeProps as _ } from "vue";
|
|
2
|
-
import { C as f, l as g } from "./zh_CN-DrK7CiiO.mjs";
|
|
3
|
-
import { z as v } from "./index-CwR0eJ0A.mjs";
|
|
4
|
-
import { a as k } from "./dayjs-Bt0Scx6s.mjs";
|
|
5
|
-
const P = {
|
|
6
|
-
name: "ZRangePicker",
|
|
7
|
-
components: {
|
|
8
|
-
ATimeRangePicker: k,
|
|
9
|
-
AConfigProvider: f
|
|
10
|
-
}
|
|
11
|
-
}, V = /* @__PURE__ */ Object.assign(P, {
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {},
|
|
14
|
-
modelModifiers: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:modelValue"],
|
|
17
|
-
setup(r) {
|
|
18
|
-
const e = c(r, "modelValue");
|
|
19
|
-
return (t, o) => {
|
|
20
|
-
const n = a("a-time-range-picker"), i = a("a-config-provider");
|
|
21
|
-
return m(), s(i, { locale: p(g) }, {
|
|
22
|
-
default: u(() => [
|
|
23
|
-
d(n, _({
|
|
24
|
-
class: "z-time-range-picker",
|
|
25
|
-
value: e.value,
|
|
26
|
-
"onUpdate:value": o[0] || (o[0] = (l) => e.value = l)
|
|
27
|
-
}, t.$attrs), null, 16, ["value"])
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["locale"]);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}), z = /* @__PURE__ */ v(V, [["__scopeId", "data-v-5e447850"]]);
|
|
34
|
-
export {
|
|
35
|
-
z as default
|
|
36
|
-
};
|
package/dist/dayjs-Bt0Scx6s.mjs
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { _ as t, s as U, p as c, u as O, V as D, b as d } from "./index-CwR0eJ0A.mjs";
|
|
2
|
-
import { defineComponent as N, ref as B, createVNode as w } from "vue";
|
|
3
|
-
import { g as H, c as R, d as V, r as M, a as W } from "./zh_CN-DrK7CiiO.mjs";
|
|
4
|
-
import { o as S } from "./KeyCode-BQ8PiGWB.mjs";
|
|
5
|
-
const T = () => ({
|
|
6
|
-
format: String,
|
|
7
|
-
showNow: c(),
|
|
8
|
-
showHour: c(),
|
|
9
|
-
showMinute: c(),
|
|
10
|
-
showSecond: c(),
|
|
11
|
-
use12Hours: c(),
|
|
12
|
-
hourStep: Number,
|
|
13
|
-
minuteStep: Number,
|
|
14
|
-
secondStep: Number,
|
|
15
|
-
hideDisabledOptions: c(),
|
|
16
|
-
popupClassName: String,
|
|
17
|
-
status: U()
|
|
18
|
-
});
|
|
19
|
-
function $(u) {
|
|
20
|
-
const _ = H(u, t(t({}, T()), {
|
|
21
|
-
order: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !0
|
|
24
|
-
}
|
|
25
|
-
})), {
|
|
26
|
-
TimePicker: I,
|
|
27
|
-
RangePicker: y
|
|
28
|
-
} = _, j = N({
|
|
29
|
-
name: "ATimePicker",
|
|
30
|
-
inheritAttrs: !1,
|
|
31
|
-
props: t(t(t(t({}, R()), V()), T()), {
|
|
32
|
-
addon: {
|
|
33
|
-
type: Function
|
|
34
|
-
}
|
|
35
|
-
}),
|
|
36
|
-
slots: Object,
|
|
37
|
-
setup(m, g) {
|
|
38
|
-
let {
|
|
39
|
-
slots: i,
|
|
40
|
-
expose: C,
|
|
41
|
-
emit: n,
|
|
42
|
-
attrs: h
|
|
43
|
-
} = g;
|
|
44
|
-
const r = m, a = O();
|
|
45
|
-
D(!(i.addon || r.addon), "TimePicker", "`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");
|
|
46
|
-
const s = B();
|
|
47
|
-
C({
|
|
48
|
-
focus: () => {
|
|
49
|
-
var o;
|
|
50
|
-
(o = s.value) === null || o === void 0 || o.focus();
|
|
51
|
-
},
|
|
52
|
-
blur: () => {
|
|
53
|
-
var o;
|
|
54
|
-
(o = s.value) === null || o === void 0 || o.blur();
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
const f = (o, F) => {
|
|
58
|
-
n("update:value", o), n("change", o, F), a.onFieldChange();
|
|
59
|
-
}, k = (o) => {
|
|
60
|
-
n("update:open", o), n("openChange", o);
|
|
61
|
-
}, P = (o) => {
|
|
62
|
-
n("focus", o);
|
|
63
|
-
}, v = (o) => {
|
|
64
|
-
n("blur", o), a.onFieldBlur();
|
|
65
|
-
}, b = (o) => {
|
|
66
|
-
n("ok", o);
|
|
67
|
-
};
|
|
68
|
-
return () => {
|
|
69
|
-
const {
|
|
70
|
-
id: o = a.id.value
|
|
71
|
-
} = r;
|
|
72
|
-
return w(I, d(d(d({}, h), S(r, ["onUpdate:value", "onUpdate:open"])), {}, {
|
|
73
|
-
id: o,
|
|
74
|
-
dropdownClassName: r.popupClassName,
|
|
75
|
-
mode: void 0,
|
|
76
|
-
ref: s,
|
|
77
|
-
renderExtraFooter: r.addon || i.addon || r.renderExtraFooter || i.renderExtraFooter,
|
|
78
|
-
onChange: f,
|
|
79
|
-
onOpenChange: k,
|
|
80
|
-
onFocus: P,
|
|
81
|
-
onBlur: v,
|
|
82
|
-
onOk: b
|
|
83
|
-
}), i);
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
}), A = N({
|
|
87
|
-
name: "ATimeRangePicker",
|
|
88
|
-
inheritAttrs: !1,
|
|
89
|
-
props: t(t(t(t({}, R()), M()), T()), {
|
|
90
|
-
order: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: !0
|
|
93
|
-
}
|
|
94
|
-
}),
|
|
95
|
-
slots: Object,
|
|
96
|
-
setup(m, g) {
|
|
97
|
-
let {
|
|
98
|
-
slots: i,
|
|
99
|
-
expose: C,
|
|
100
|
-
emit: n,
|
|
101
|
-
attrs: h
|
|
102
|
-
} = g;
|
|
103
|
-
const r = m, a = B(), s = O();
|
|
104
|
-
C({
|
|
105
|
-
focus: () => {
|
|
106
|
-
var e;
|
|
107
|
-
(e = a.value) === null || e === void 0 || e.focus();
|
|
108
|
-
},
|
|
109
|
-
blur: () => {
|
|
110
|
-
var e;
|
|
111
|
-
(e = a.value) === null || e === void 0 || e.blur();
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
const f = (e, l) => {
|
|
115
|
-
n("update:value", e), n("change", e, l), s.onFieldChange();
|
|
116
|
-
}, k = (e) => {
|
|
117
|
-
n("update:open", e), n("openChange", e);
|
|
118
|
-
}, P = (e) => {
|
|
119
|
-
n("focus", e);
|
|
120
|
-
}, v = (e) => {
|
|
121
|
-
n("blur", e), s.onFieldBlur();
|
|
122
|
-
}, b = (e, l) => {
|
|
123
|
-
n("panelChange", e, l);
|
|
124
|
-
}, o = (e) => {
|
|
125
|
-
n("ok", e);
|
|
126
|
-
}, F = (e, l, E) => {
|
|
127
|
-
n("calendarChange", e, l, E);
|
|
128
|
-
};
|
|
129
|
-
return () => {
|
|
130
|
-
const {
|
|
131
|
-
id: e = s.id.value
|
|
132
|
-
} = r;
|
|
133
|
-
return w(y, d(d(d({}, h), S(r, ["onUpdate:open", "onUpdate:value"])), {}, {
|
|
134
|
-
id: e,
|
|
135
|
-
dropdownClassName: r.popupClassName,
|
|
136
|
-
picker: "time",
|
|
137
|
-
mode: void 0,
|
|
138
|
-
ref: a,
|
|
139
|
-
onChange: f,
|
|
140
|
-
onOpenChange: k,
|
|
141
|
-
onFocus: P,
|
|
142
|
-
onBlur: v,
|
|
143
|
-
onPanelChange: b,
|
|
144
|
-
onOk: o,
|
|
145
|
-
onCalendarChange: F
|
|
146
|
-
}), i);
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
return {
|
|
151
|
-
TimePicker: j,
|
|
152
|
-
TimeRangePicker: A
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
const {
|
|
156
|
-
TimePicker: p,
|
|
157
|
-
TimeRangePicker: x
|
|
158
|
-
} = $(W), K = t(p, {
|
|
159
|
-
TimePicker: p,
|
|
160
|
-
TimeRangePicker: x,
|
|
161
|
-
install: (u) => (u.component(p.name, p), u.component(x.name, x), u)
|
|
162
|
-
});
|
|
163
|
-
export {
|
|
164
|
-
K as T,
|
|
165
|
-
x as a
|
|
166
|
-
};
|
package/dist/dayjs-DEHSsOBE.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { _ as m } from "./index-CwR0eJ0A.mjs";
|
|
2
|
-
import { g as a, a as i } from "./zh_CN-DrK7CiiO.mjs";
|
|
3
|
-
const {
|
|
4
|
-
DatePicker: n,
|
|
5
|
-
WeekPicker: r,
|
|
6
|
-
MonthPicker: o,
|
|
7
|
-
YearPicker: k,
|
|
8
|
-
TimePicker: s,
|
|
9
|
-
QuarterPicker: t,
|
|
10
|
-
RangePicker: c
|
|
11
|
-
} = a(i), f = m(n, {
|
|
12
|
-
WeekPicker: r,
|
|
13
|
-
MonthPicker: o,
|
|
14
|
-
YearPicker: k,
|
|
15
|
-
RangePicker: c,
|
|
16
|
-
TimePicker: s,
|
|
17
|
-
QuarterPicker: t,
|
|
18
|
-
install: (e) => (e.component(n.name, n), e.component(c.name, c), e.component(o.name, o), e.component(r.name, r), e.component(t.name, t), e)
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
f as D,
|
|
22
|
-
c as R
|
|
23
|
-
};
|