zf-dbs 0.1.12 → 0.1.15
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/chunks/{slXKdM5n.mjs → BHHE86vT.mjs} +7 -6
- package/dist/chunks/{OYzm_MFq.mjs → D91KXUFh.mjs} +33 -33
- package/dist/components/zf-app.mjs +1 -1
- package/dist/components/zf-tween-number.mjs +1 -1
- package/dist/index.d.ts +76 -342
- package/dist/index.mjs +2947 -3077
- package/package.json +17 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, useSlots as
|
|
1
|
+
import { defineComponent as j, useSlots as m, ref as $, onMounted as B, watch as N, onUnmounted as q, unref as v, openBlock as C, createElementBlock as z, normalizeClass as F, normalizeStyle as M, toDisplayString as P, createBlock as L, resolveDynamicComponent as G, withCtx as Q, renderSlot as O, normalizeProps as R, guardReactiveProps as W, createTextVNode as k, mergeProps as Z } from "vue";
|
|
2
2
|
import { _ as H } from "./CHgC5LLL.mjs";
|
|
3
3
|
var b = {
|
|
4
4
|
Linear: {
|
|
@@ -357,7 +357,7 @@ const ne = /* @__PURE__ */ j({
|
|
|
357
357
|
style: { default: "" }
|
|
358
358
|
},
|
|
359
359
|
setup(e) {
|
|
360
|
-
const t = e, i =
|
|
360
|
+
const t = e, i = m(), n = $({
|
|
361
361
|
value: "",
|
|
362
362
|
prefix: "",
|
|
363
363
|
number: "",
|
|
@@ -413,8 +413,9 @@ const ne = /* @__PURE__ */ j({
|
|
|
413
413
|
n.value.value = p.value, n.value.number = p.number, n.value.negativeFlag = !!p.negative, n.value.integer = p.integer, n.value.decimalFull = p.decimalFull, n.value.decimal = p.decimal, n.value.decimalDecimal = p.decimal.length;
|
|
414
414
|
}).start(), h();
|
|
415
415
|
}
|
|
416
|
-
return
|
|
417
|
-
|
|
416
|
+
return B(() => {
|
|
417
|
+
const o = s(t.value).decimal.length;
|
|
418
|
+
d(0 .toFixed(o), t.value);
|
|
418
419
|
}), N(() => t.value, (o, f) => {
|
|
419
420
|
f !== o && d(f, o);
|
|
420
421
|
}), q(() => {
|
|
@@ -423,7 +424,7 @@ const ne = /* @__PURE__ */ j({
|
|
|
423
424
|
key: 0,
|
|
424
425
|
class: F(t.class),
|
|
425
426
|
style: M(t.style)
|
|
426
|
-
}, P(v(n).value), 7)) : t.tag ? (C(), G(
|
|
427
|
+
}, P(v(n).value), 7)) : t.tag ? (C(), L(G(t.tag), {
|
|
427
428
|
key: 1,
|
|
428
429
|
class: F(t.class),
|
|
429
430
|
style: M(t.style)
|
|
@@ -438,7 +439,7 @@ const ne = /* @__PURE__ */ j({
|
|
|
438
439
|
k(P(v(n).value), 1)
|
|
439
440
|
], !0);
|
|
440
441
|
}
|
|
441
|
-
}), D = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-
|
|
442
|
+
}), D = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-27baf3ce"]]), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
442
443
|
__proto__: null,
|
|
443
444
|
ZfTweenNumber: D,
|
|
444
445
|
default: D
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as v, defineComponent as
|
|
2
|
-
import { Z as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { ref as v, defineComponent as S, reactive as z, computed as C, provide as b, unref as i, openBlock as c, createElementBlock as l, createVNode as y, withCtx as W, createElementVNode as u, renderSlot as f, normalizeStyle as H } from "vue";
|
|
2
|
+
import { Z as k } from "./zkyql-F5.mjs";
|
|
3
|
+
import { _ as E } from "./CHgC5LLL.mjs";
|
|
4
4
|
const a = v(null);
|
|
5
|
-
function
|
|
5
|
+
function O(o) {
|
|
6
6
|
return a.value = Object.assign({
|
|
7
7
|
appTitle: "zf-dbs template",
|
|
8
8
|
appHeight: 1080,
|
|
@@ -11,34 +11,34 @@ function j(o) {
|
|
|
11
11
|
useScale: !0,
|
|
12
12
|
useStretch: !1,
|
|
13
13
|
useUE: !1,
|
|
14
|
+
sign: void 0,
|
|
14
15
|
pollingInterval: 1e3 * 60 * 5,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
sign: void 0
|
|
16
|
+
request: {
|
|
17
|
+
baseURL: "",
|
|
18
|
+
formatCodeKey: "",
|
|
19
|
+
formatMessageKey: "",
|
|
20
|
+
formatDataKey: "",
|
|
21
|
+
checkSuccessCode: [200],
|
|
22
|
+
errorAuthCode: [401],
|
|
23
|
+
errorAuthHandle: void 0,
|
|
24
|
+
showErrorMessage: !0,
|
|
25
|
+
errorIgnoreMessageCode: [],
|
|
26
|
+
handleToken: void 0
|
|
27
|
+
}
|
|
28
28
|
}, o), a;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function M() {
|
|
31
31
|
if (!a.value)
|
|
32
32
|
throw new Error("请先调用 defineConfig 进行配置");
|
|
33
33
|
return a;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const x = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "app"
|
|
38
|
-
},
|
|
38
|
+
}, A = { class: "app__view" }, R = { class: "app__view" }, T = /* @__PURE__ */ S({
|
|
39
39
|
__name: "zf-app",
|
|
40
40
|
setup(o) {
|
|
41
|
-
const e =
|
|
41
|
+
const e = M(), n = z({
|
|
42
42
|
width: window.innerWidth,
|
|
43
43
|
height: window.innerHeight
|
|
44
44
|
});
|
|
@@ -52,45 +52,45 @@ const A = {
|
|
|
52
52
|
return Math.abs(m - p) < Math.abs(w - p) ? h : d;
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const r =
|
|
55
|
+
const r = C(() => {
|
|
56
56
|
const t = [
|
|
57
57
|
...e.value.appWidths?.map((s) => ({ width: s, height: e.value.appHeight })) ?? [],
|
|
58
58
|
{ width: e.value.appWidth, height: e.value.appHeight }
|
|
59
59
|
];
|
|
60
60
|
return _(n, t);
|
|
61
61
|
});
|
|
62
|
-
return
|
|
63
|
-
y(i(
|
|
62
|
+
return b("pageSize", r), (t, s) => i(e).useScale ? (c(), l("div", x, [
|
|
63
|
+
y(i(k), {
|
|
64
64
|
width: i(r).width,
|
|
65
65
|
height: i(r).height,
|
|
66
66
|
mode: i(e).useStretch ? "scaleToFill" : "aspectFit"
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
68
|
+
default: W(() => [
|
|
69
|
+
u("div", A, [
|
|
70
70
|
f(t.$slots, "default", {}, void 0, !0)
|
|
71
71
|
])
|
|
72
72
|
]),
|
|
73
73
|
_: 3
|
|
74
74
|
}, 8, ["width", "height", "mode"])
|
|
75
|
-
])) : (c(),
|
|
75
|
+
])) : (c(), l("div", {
|
|
76
76
|
key: 1,
|
|
77
77
|
class: "app",
|
|
78
|
-
style:
|
|
78
|
+
style: H({ width: `${i(e).appWidth}px`, height: `${i(e).appHeight}px` })
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
u("div", R, [
|
|
81
81
|
f(t.$slots, "default", {}, void 0, !0)
|
|
82
82
|
])
|
|
83
83
|
], 4));
|
|
84
84
|
}
|
|
85
|
-
}), g = /* @__PURE__ */
|
|
85
|
+
}), g = /* @__PURE__ */ E(T, [["__scopeId", "data-v-29b93127"]]), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
86
|
__proto__: null,
|
|
87
87
|
ZfApp: g,
|
|
88
88
|
default: g
|
|
89
89
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
Z as _,
|
|
92
92
|
a as c,
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
O as d,
|
|
94
|
+
M as u,
|
|
95
95
|
g as z
|
|
96
96
|
};
|