@unizhen/ui 0.0.46 → 0.0.47
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/lib/ui.js +12 -12
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -6345,38 +6345,38 @@ const C2 = /* @__PURE__ */ _(g2, [["render", x2]]), $2 = ue({
|
|
|
6345
6345
|
for (const z of j)
|
|
6346
6346
|
if (z.search.tab && (g.value = z.params.options, i.value = z.params.multiple, d.value = z.key, z.search.show = !1), z.input === "input" && z.params.type === "textarea" && (z.params.type = "text"), z.search.show = z.search.show ?? !0, z.defaultValue)
|
|
6347
6347
|
if (z.input === "date")
|
|
6348
|
-
if (z.
|
|
6349
|
-
switch (z.defaultValue) {
|
|
6348
|
+
if (z.params.type.indexOf("range") > -1)
|
|
6349
|
+
switch (z.search.defaultValue) {
|
|
6350
6350
|
case "now":
|
|
6351
|
-
z.
|
|
6351
|
+
O[z.key] = [Date.now(), Date.now()];
|
|
6352
6352
|
break;
|
|
6353
6353
|
case "start-now":
|
|
6354
6354
|
const U = ve().startOf("day").valueOf();
|
|
6355
|
-
z.
|
|
6355
|
+
O[z.key] = [U, U];
|
|
6356
6356
|
break;
|
|
6357
6357
|
case "end-now":
|
|
6358
6358
|
const G = ve().endOf("day").valueOf();
|
|
6359
|
-
z.
|
|
6359
|
+
O[z.key] = [G, G];
|
|
6360
6360
|
break;
|
|
6361
6361
|
default:
|
|
6362
6362
|
const se = Number(z.form.defaultValue);
|
|
6363
|
-
z.
|
|
6363
|
+
O[z.key] = Number.isNaN(se) ? null : [se, se];
|
|
6364
6364
|
break;
|
|
6365
6365
|
}
|
|
6366
6366
|
else
|
|
6367
|
-
switch (z.
|
|
6367
|
+
switch (z.search.defaultValue) {
|
|
6368
6368
|
case "now":
|
|
6369
|
-
z.
|
|
6369
|
+
O[z.key] = Date.now();
|
|
6370
6370
|
break;
|
|
6371
6371
|
case "start-now":
|
|
6372
|
-
z.
|
|
6372
|
+
O[z.key] = ve().startOf("day").valueOf();
|
|
6373
6373
|
break;
|
|
6374
6374
|
case "end-now":
|
|
6375
|
-
z.
|
|
6375
|
+
O[z.key] = ve().endOf("day").valueOf();
|
|
6376
6376
|
break;
|
|
6377
6377
|
default:
|
|
6378
6378
|
const U = Number(z.form.defaultValue);
|
|
6379
|
-
z.
|
|
6379
|
+
O[z.key] = Number.isNaN(U) ? null : U;
|
|
6380
6380
|
break;
|
|
6381
6381
|
}
|
|
6382
6382
|
else
|
|
@@ -10460,7 +10460,7 @@ function Pk(e, t, r) {
|
|
|
10460
10460
|
refetch: p
|
|
10461
10461
|
};
|
|
10462
10462
|
}
|
|
10463
|
-
const lk = "0.0.
|
|
10463
|
+
const lk = "0.0.47";
|
|
10464
10464
|
let Wc;
|
|
10465
10465
|
async function Jc() {
|
|
10466
10466
|
const e = await fetch(
|