zhihao-ui 1.3.67 → 1.3.68
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/es/{BaseInfo-BSUYhkDo.js → BaseInfo-XS4JecSj.js} +4 -4
- package/dist/es/BaseItem-CAN_KwWb.js +123 -0
- package/dist/es/{Button-CYwXU2Yy.js → Button-BT4R8MkU.js} +7 -7
- package/dist/es/{CascaderLoadMore-eZqCIpyB.js → CascaderLoadMore-tnaJQx_w.js} +25 -25
- package/dist/es/DatePicker-CJ5w6yCA.js +64 -0
- package/dist/es/{DetailHeader-n9JvN9XX.js → DetailHeader-BQEbDPpV.js} +11 -11
- package/dist/es/{DetailSubTitle-D1n-SdwS.js → DetailSubTitle-BBjJkVjO.js} +5 -5
- package/dist/es/{Dialog-CD5WCfZ8.js → Dialog-B5xnEaZa.js} +14 -14
- package/dist/es/{DiyDataTable-yn039dHK.js → DiyDataTable-CO31PQts.js} +23 -23
- package/dist/es/{EditInfoPair-CK77NadR.js → EditInfoPair-CnwozWfd.js} +6 -6
- package/dist/es/{FileWrapper-1MkxOkNY.js → FileWrapper-V16IAbEm.js} +10 -10
- package/dist/es/{Grid-i0XtBZBH.js → Grid-BQUKS7g_.js} +6 -6
- package/dist/es/{InfoPair-CO7bmzOs.js → InfoPair-BwCmKdXe.js} +6 -6
- package/dist/es/{Input-o2MtcVWW.js → Input-CVQSDNQF.js} +8 -8
- package/dist/es/{Loading-3LGYpFaR.js → Loading-Bxw_6VLu.js} +4 -4
- package/dist/es/{Map-K6OK6pRi.js → Map-B4Iw7Leq.js} +85 -85
- package/dist/es/{MessageBox-CFXkslNx.js → MessageBox-DqTV43R2.js} +2 -2
- package/dist/es/{MoneyInput-ChHOCyiP.js → MoneyInput-B1Fqy7po.js} +14 -14
- package/dist/es/{PageHeadPanel-BLrKsXPh.js → PageHeadPanel-BpPwwgiZ.js} +4 -4
- package/dist/es/{Table-Cwtc8pqN.js → Table--mzx8rTV.js} +114 -114
- package/dist/es/{ToolTips-Bm4aK_y_.js → ToolTips-C01Nxxed.js} +6 -6
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-B06E8ScZ.js → utils-OH_cOHFS.js} +1 -1
- package/dist/es/{vendor-fiOGQL9d.js → vendor-BKq2DV36.js} +7501 -7473
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +2 -2
- package/dist/types/components/Dialog/index.d.ts +3 -3
- package/dist/types/components/ToolTips/index.d.ts +18 -6
- package/dist/types/components/VideoPlayer/components/live.vue.d.ts +27 -0
- package/dist/types/components/VideoPlayer/components/playback.vue.d.ts +35 -0
- package/dist/types/components/VideoPlayer/components/timeLine.vue.d.ts +114 -0
- package/dist/types/components/VideoPlayer/index.d.ts +124 -0
- package/dist/types/components/VideoPlayer/utils/easyPlayerPayload.d.ts +1 -0
- package/dist/types/components/VideoPlayer/utils/easyPlayerSoftDecoder.d.ts +43 -0
- package/dist/types/components/VideoPlayer/utils/h265Player.d.ts +78 -0
- package/dist/types/components/VideoPlayer/utils/libde265Payload.d.ts +6 -0
- package/dist/types/components/VideoPlayer/utils/libde265SoftDecoder.d.ts +73 -0
- package/dist/types/components/VideoPlayer/utils/loadSoftDecoders.d.ts +13 -0
- package/dist/types/components/VideoPlayer/videoPlayer.vue.d.ts +58 -0
- package/dist/umd/index.umd.cjs +40 -40
- package/package.json +1 -1
- package/dist/es/BaseItem-IQXLLFwY.js +0 -127
- package/dist/es/DatePicker-DlHee9Ul.js +0 -63
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +0 -834
- package/dist/types/components/DiyDataTable/index.d.ts +0 -2289
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as h, ref as o, provide as n, watch as i,
|
|
2
|
-
import { _ } from "./Grid-
|
|
3
|
-
import { w as b } from "./utils-
|
|
1
|
+
import { defineComponent as h, ref as o, provide as n, watch as i, openBlock as u, createBlock as m, withCtx as p, renderSlot as W } from "vue";
|
|
2
|
+
import { _ } from "./Grid-BQUKS7g_.js";
|
|
3
|
+
import { w as b } from "./utils-OH_cOHFS.js";
|
|
4
4
|
const D = /* @__PURE__ */ h({
|
|
5
5
|
name: "ZhBaseInfo",
|
|
6
6
|
__name: "BaseInfo",
|
|
@@ -35,7 +35,7 @@ const D = /* @__PURE__ */ h({
|
|
|
35
35
|
() => t.infoDirection,
|
|
36
36
|
() => d(),
|
|
37
37
|
{ immediate: !0 }
|
|
38
|
-
), (e, v) => (
|
|
38
|
+
), (e, v) => (u(), m(_, {
|
|
39
39
|
cols: e.cols,
|
|
40
40
|
gap: e.gap
|
|
41
41
|
}, {
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as V, useSlots as L, inject as R, computed as i, ref as W, watchEffect as g, openBlock as t, createBlock as u, unref as n, withCtx as d, createElementVNode as h, normalizeClass as m, normalizeStyle as Z, resolveDynamicComponent as w, createElementBlock as o, toDisplayString as s, renderSlot as A, Fragment as p, withModifiers as T, createTextVNode as f, createVNode as b, createCommentVNode as U } from "vue";
|
|
2
|
+
import { d as C, q as $, aw as j } from "./vendor-BKq2DV36.js";
|
|
3
|
+
import { Z as q } from "./Grid-BQUKS7g_.js";
|
|
4
|
+
import { D as y } from "./DatePicker-CJ5w6yCA.js";
|
|
5
|
+
import { w as G } from "./utils-OH_cOHFS.js";
|
|
6
|
+
const M = { key: 1 }, O = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "zh-base-item--value--file"
|
|
9
|
+
}, H = { key: 2 }, J = /* @__PURE__ */ V({
|
|
10
|
+
name: "ZhBaseItem",
|
|
11
|
+
__name: "BaseItem",
|
|
12
|
+
props: {
|
|
13
|
+
label: {},
|
|
14
|
+
labelRender: {},
|
|
15
|
+
colon: { type: Boolean, default: !1 },
|
|
16
|
+
value: {},
|
|
17
|
+
fileId: {},
|
|
18
|
+
rewriteFileName: {},
|
|
19
|
+
valueRender: {},
|
|
20
|
+
onClick: {},
|
|
21
|
+
labelWidth: {},
|
|
22
|
+
infoDirection: { default: "horizontal" },
|
|
23
|
+
defaultValue: { default: y },
|
|
24
|
+
className: {},
|
|
25
|
+
labelClassName: {},
|
|
26
|
+
valueClassName: {},
|
|
27
|
+
span: { default: 1 },
|
|
28
|
+
showFileName: { type: Boolean, default: !0 },
|
|
29
|
+
fetchFileById: {}
|
|
30
|
+
},
|
|
31
|
+
setup(I) {
|
|
32
|
+
const B = L(), l = I, c = R("infoLabelWidth"), F = i(() => !!(l.onClick && l.value)), k = i(() => !!(!l.value && l.fileId)), v = W(), z = i(() => {
|
|
33
|
+
var a;
|
|
34
|
+
const e = (a = v.value) == null ? void 0 : a.name;
|
|
35
|
+
if (!e)
|
|
36
|
+
return "";
|
|
37
|
+
if (l.rewriteFileName) {
|
|
38
|
+
const r = e.substring(e.lastIndexOf("."));
|
|
39
|
+
return l.rewriteFileName + r;
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}), D = i(() => {
|
|
43
|
+
const e = {}, a = l.labelWidth || (c == null ? void 0 : c.value);
|
|
44
|
+
return a && l.infoDirection === "horizontal" && (isNaN(Number(a)) ? e.width = String(a) : e.width = a + "px"), e;
|
|
45
|
+
}), E = i(() => ({
|
|
46
|
+
...D.value
|
|
47
|
+
})), S = i(() => l.value === "" ? y : l.value ?? y);
|
|
48
|
+
return g(async () => {
|
|
49
|
+
!k.value || !l.fileId || !l.fetchFileById || (v.value = await l.fetchFileById(l.fileId));
|
|
50
|
+
}), (e, a) => (t(), u(n(q), {
|
|
51
|
+
span: e.span,
|
|
52
|
+
label: e.label
|
|
53
|
+
}, {
|
|
54
|
+
default: d((r) => {
|
|
55
|
+
var N;
|
|
56
|
+
return [
|
|
57
|
+
h("div", {
|
|
58
|
+
class: m(["zh-base-item", [e.infoDirection, e.className]])
|
|
59
|
+
}, [
|
|
60
|
+
h("div", {
|
|
61
|
+
class: m(["zh-base-item-label", [e.infoDirection, e.labelClassName]]),
|
|
62
|
+
style: Z({
|
|
63
|
+
width: e.infoDirection === "horizontal" && r.maxLabelWidthInCol ? r.maxLabelWidthInCol + "px" : void 0,
|
|
64
|
+
...E.value
|
|
65
|
+
})
|
|
66
|
+
}, [
|
|
67
|
+
e.labelRender ? (t(), u(w(e.labelRender), { key: 0 })) : (t(), o("span", M, s(e.label) + s(e.colon ? ":" : ""), 1))
|
|
68
|
+
], 6),
|
|
69
|
+
h("div", {
|
|
70
|
+
class: m(["zh-base-item-value", e.valueClassName])
|
|
71
|
+
}, [
|
|
72
|
+
n(B).value ? A(e.$slots, "value", {
|
|
73
|
+
key: 0,
|
|
74
|
+
content: e.value
|
|
75
|
+
}) : (t(), o(p, { key: 1 }, [
|
|
76
|
+
F.value ? (t(), u(n(C), {
|
|
77
|
+
key: 0,
|
|
78
|
+
type: "primary",
|
|
79
|
+
class: "zh-base-item--value--link",
|
|
80
|
+
onClick: a[0] || (a[0] = T((K) => e.onClick && e.onClick(e.value ?? void 0), ["stop"]))
|
|
81
|
+
}, {
|
|
82
|
+
default: d(() => [
|
|
83
|
+
f(s(e.value), 1)
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})) : k.value ? (t(), o("div", O, [
|
|
87
|
+
e.showFileName ? (t(), o(p, { key: 0 }, [
|
|
88
|
+
b(n($), { class: "iconfont" }, {
|
|
89
|
+
default: d(() => [
|
|
90
|
+
b(n(j))
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}),
|
|
94
|
+
f(" " + s(z.value), 1)
|
|
95
|
+
], 64)) : U("", !0),
|
|
96
|
+
b(n(C), {
|
|
97
|
+
type: "primary",
|
|
98
|
+
href: (N = v.value) == null ? void 0 : N.path,
|
|
99
|
+
target: "_blank",
|
|
100
|
+
class: m({ "ml-8": e.showFileName })
|
|
101
|
+
}, {
|
|
102
|
+
default: d(() => a[1] || (a[1] = [
|
|
103
|
+
f(" 查看/下载 ")
|
|
104
|
+
])),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["href", "class"])
|
|
107
|
+
])) : e.valueRender ? (t(), o("div", H, [
|
|
108
|
+
(t(), u(w(e.valueRender)))
|
|
109
|
+
])) : (t(), o(p, { key: 3 }, [
|
|
110
|
+
f(s(S.value), 1)
|
|
111
|
+
], 64))
|
|
112
|
+
], 64))
|
|
113
|
+
], 2)
|
|
114
|
+
], 2)
|
|
115
|
+
];
|
|
116
|
+
}),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 8, ["span", "label"]));
|
|
119
|
+
}
|
|
120
|
+
}), x = G(J);
|
|
121
|
+
export {
|
|
122
|
+
x as Z
|
|
123
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
2
|
-
import {
|
|
3
|
-
import { w as _ } from "./utils-
|
|
1
|
+
import { defineComponent as r, openBlock as a, createBlock as p, unref as u, mergeProps as c, withCtx as l, renderSlot as i } from "vue";
|
|
2
|
+
import { E as m, a as d } from "./vendor-BKq2DV36.js";
|
|
3
|
+
import { w as _ } from "./utils-OH_cOHFS.js";
|
|
4
4
|
const h = /* @__PURE__ */ r({
|
|
5
5
|
name: "ZhButton",
|
|
6
6
|
inheritAttrs: !1,
|
|
@@ -13,7 +13,7 @@ const h = /* @__PURE__ */ r({
|
|
|
13
13
|
const e = t, s = (o) => {
|
|
14
14
|
e("click", o);
|
|
15
15
|
};
|
|
16
|
-
return (o, v) => (
|
|
16
|
+
return (o, v) => (a(), p(u(m), c(o.$attrs, {
|
|
17
17
|
class: ["zh-button", { "plr-16": o.p16 }],
|
|
18
18
|
onClick: s
|
|
19
19
|
}), {
|
|
@@ -28,7 +28,7 @@ const h = /* @__PURE__ */ r({
|
|
|
28
28
|
for (const [s, o] of t)
|
|
29
29
|
e[s] = o;
|
|
30
30
|
return e;
|
|
31
|
-
}, B = /* @__PURE__ */ f(h, [["__scopeId", "data-v-89b4cec1"]]), C = _(B),
|
|
31
|
+
}, B = /* @__PURE__ */ f(h, [["__scopeId", "data-v-89b4cec1"]]), C = _(B), k = /* @__PURE__ */ r({
|
|
32
32
|
name: "ZhButtonGroup",
|
|
33
33
|
inheritAttrs: !1,
|
|
34
34
|
__name: "ButtonGroup",
|
|
@@ -36,7 +36,7 @@ const h = /* @__PURE__ */ r({
|
|
|
36
36
|
template: { default: "" }
|
|
37
37
|
},
|
|
38
38
|
setup(n) {
|
|
39
|
-
return (t, e) => (
|
|
39
|
+
return (t, e) => (a(), p(u(d), c(t.$attrs, {
|
|
40
40
|
class: ["zh-button-group", { "operation-fix-button": t.template === "operation-fix-button" }]
|
|
41
41
|
}), {
|
|
42
42
|
default: l(() => [
|
|
@@ -45,7 +45,7 @@ const h = /* @__PURE__ */ r({
|
|
|
45
45
|
_: 3
|
|
46
46
|
}, 16, ["class"]));
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), b = /* @__PURE__ */ f(k, [["__scopeId", "data-v-5d6d5d4f"]]), g = _(b);
|
|
49
49
|
export {
|
|
50
50
|
B as Z,
|
|
51
51
|
f as _,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as le,
|
|
2
|
-
import {
|
|
3
|
-
import { w as fe } from "./utils-
|
|
1
|
+
import { defineComponent as le, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te, openBlock as g, createElementBlock as P, createVNode as z, unref as C, withCtx as V, createBlock as $, toDisplayString as oe, createCommentVNode as se, mergeProps as ne, Fragment as re, renderList as ce, mergeModels as A } from "vue";
|
|
2
|
+
import { ar as ue, as as ie, at as pe, au as de, av as ve, C as w } from "./vendor-BKq2DV36.js";
|
|
3
|
+
import { w as fe } from "./utils-OH_cOHFS.js";
|
|
4
4
|
const ge = { class: "w-100" }, me = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "cascader-select-empty"
|
|
@@ -10,7 +10,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
10
10
|
}, ye = /* @__PURE__ */ le({
|
|
11
11
|
name: "CascaderLoadMore",
|
|
12
12
|
__name: "CascaderLoadMore",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ A({
|
|
14
14
|
onChange: {
|
|
15
15
|
type: Function,
|
|
16
16
|
required: !1
|
|
@@ -93,9 +93,9 @@ const ge = { class: "w-100" }, me = {
|
|
|
93
93
|
modelValue: {},
|
|
94
94
|
modelModifiers: {}
|
|
95
95
|
}),
|
|
96
|
-
emits: /* @__PURE__ */
|
|
96
|
+
emits: /* @__PURE__ */ A(["change", "removeTag"], ["update:modelValue"]),
|
|
97
97
|
setup(c, { expose: I, emit: N }) {
|
|
98
|
-
const o = c, r = ae(c, "modelValue"), d = s(r.value || []), v = s(!1),
|
|
98
|
+
const o = c, r = ae(c, "modelValue"), d = s(r.value || []), v = s(!1), u = s({
|
|
99
99
|
page: 1,
|
|
100
100
|
size: o.pageSize
|
|
101
101
|
}), S = s(void 0), k = s(!1), O = s(!0), p = s(o.initialOptions || []), n = s(o.initialOptions || []), m = s(void 0), T = s(!1), W = {
|
|
@@ -117,8 +117,8 @@ const ge = { class: "w-100" }, me = {
|
|
|
117
117
|
};
|
|
118
118
|
function D(e) {
|
|
119
119
|
const l = [];
|
|
120
|
-
function a(t,
|
|
121
|
-
const y =
|
|
120
|
+
function a(t, i = "") {
|
|
121
|
+
const y = i && (o.cascaderProps.emitPath ?? !0) ? `${i}/${t.label}` : t.label;
|
|
122
122
|
l.push({
|
|
123
123
|
...t,
|
|
124
124
|
value: t.value,
|
|
@@ -130,22 +130,22 @@ const ge = { class: "w-100" }, me = {
|
|
|
130
130
|
return e.forEach((t) => a(t)), l;
|
|
131
131
|
}
|
|
132
132
|
const M = async (e) => {
|
|
133
|
-
var
|
|
133
|
+
var i;
|
|
134
134
|
if (!o.forceSearch && !e) return;
|
|
135
135
|
const l = m.value === e || !m.value && !e;
|
|
136
|
-
if (l || (
|
|
136
|
+
if (l || (u.value.page = 1), l && S.value !== void 0 && u.value.page > S.value && !T.value) return;
|
|
137
137
|
T.value = !1, k.value = !0, n.value.length === 0 && (O.value = !0);
|
|
138
|
-
const t = await o.requestFunction(
|
|
138
|
+
const t = await o.requestFunction(u.value.page, u.value.size, e);
|
|
139
139
|
if (t && Object.keys(t).length) {
|
|
140
140
|
S.value = t.totalPage;
|
|
141
|
-
const y = (
|
|
142
|
-
l &&
|
|
141
|
+
const y = (i = t == null ? void 0 : t.list) == null ? void 0 : i.map(o.handleOptionsFunction);
|
|
142
|
+
l && u.value.page !== 1 ? n.value = j([...n.value, ...y]) : n.value = y || [], d.value = w(r.value), p.value = D(n.value);
|
|
143
143
|
}
|
|
144
144
|
f(() => {
|
|
145
145
|
_();
|
|
146
146
|
}), m.value = e, k.value = !1, n.value.length !== 0 && (O.value = !1);
|
|
147
147
|
}, H = () => {
|
|
148
|
-
|
|
148
|
+
u.value.page = u.value.page + 1, M(m.value);
|
|
149
149
|
}, Z = async (e) => {
|
|
150
150
|
r.value = e, d.value = e, await f();
|
|
151
151
|
const l = E(e), a = o.onChange;
|
|
@@ -156,7 +156,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
156
156
|
(a) => (l || []).includes(a.value)
|
|
157
157
|
) : p.value.find((a) => a.value === l);
|
|
158
158
|
}, Q = () => {
|
|
159
|
-
r.value = o.initialValue, d.value = o.initialValue,
|
|
159
|
+
r.value = o.initialValue, d.value = o.initialValue, u.value.page = 1, u.value.size = o.pageSize, p.value = o.initialOptions || [], n.value = o.initialOptions || [], S.value = void 0, m.value = void 0;
|
|
160
160
|
}, G = N;
|
|
161
161
|
R(
|
|
162
162
|
() => o.initialOptions,
|
|
@@ -177,8 +177,8 @@ const ge = { class: "w-100" }, me = {
|
|
|
177
177
|
b.value && h.value && (b.value.removeEventListener("scroll", h.value), b.value = null, h.value = null);
|
|
178
178
|
}, X = (e) => {
|
|
179
179
|
const { scrollTop: l, scrollHeight: a, clientHeight: t } = e;
|
|
180
|
-
let
|
|
181
|
-
t + 10 >
|
|
180
|
+
let i = a - l;
|
|
181
|
+
t + 10 > i && H();
|
|
182
182
|
};
|
|
183
183
|
f(() => L()), R(v, (e) => {
|
|
184
184
|
e ? (console.log("visible", e), f(() => L())) : F();
|
|
@@ -193,8 +193,8 @@ const ge = { class: "w-100" }, me = {
|
|
|
193
193
|
var t;
|
|
194
194
|
const e = q.value.popperRef.contentRef, l = (t = x.value) == null ? void 0 : t.$el, a = e == null ? void 0 : e.querySelector(".cascader-select-empty");
|
|
195
195
|
if (l && a) {
|
|
196
|
-
const
|
|
197
|
-
a.style.width = `${
|
|
196
|
+
const i = l.offsetWidth;
|
|
197
|
+
a.style.width = `${i}px`;
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
return I({
|
|
@@ -205,7 +205,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
205
205
|
options: p,
|
|
206
206
|
cascderOptions: n
|
|
207
207
|
}), (e, l) => te((g(), P("div", ge, [
|
|
208
|
-
|
|
208
|
+
z(C(ue), {
|
|
209
209
|
ref_key: "popoverRef",
|
|
210
210
|
ref: q,
|
|
211
211
|
teleported: c.teleported,
|
|
@@ -215,7 +215,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
215
215
|
visible: v.value
|
|
216
216
|
}, {
|
|
217
217
|
reference: V(() => [
|
|
218
|
-
|
|
218
|
+
z(C(pe), ne({
|
|
219
219
|
ref_key: "remoteSelectRef",
|
|
220
220
|
ref: x,
|
|
221
221
|
modelValue: r.value,
|
|
@@ -241,7 +241,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
241
241
|
onFocus: B
|
|
242
242
|
}), {
|
|
243
243
|
default: V(() => [
|
|
244
|
-
(g(!0), P(re, null, ce(p.value, (a) => (g(),
|
|
244
|
+
(g(!0), P(re, null, ce(p.value, (a) => (g(), $(C(de), {
|
|
245
245
|
key: a.value,
|
|
246
246
|
label: a.label,
|
|
247
247
|
value: a.value
|
|
@@ -251,7 +251,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
251
251
|
}, 16, ["modelValue", "multiple", "placeholder", "clearable", "collapse-tags", "collapse-tags-tooltip"])
|
|
252
252
|
]),
|
|
253
253
|
default: V(() => [
|
|
254
|
-
!O.value && n.value.length > 0 ? (g(),
|
|
254
|
+
!O.value && n.value.length > 0 ? (g(), $(C(ie), {
|
|
255
255
|
key: 0,
|
|
256
256
|
modelValue: d.value,
|
|
257
257
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => d.value = a),
|
|
@@ -260,8 +260,8 @@ const ge = { class: "w-100" }, me = {
|
|
|
260
260
|
options: n.value,
|
|
261
261
|
class: "select-cascader-panel",
|
|
262
262
|
onChange: Y
|
|
263
|
-
}, null, 8, ["modelValue", "options"])) : (g(), P("div", me,
|
|
264
|
-
k.value ? (g(), P("div", he, "加载中...")) :
|
|
263
|
+
}, null, 8, ["modelValue", "options"])) : (g(), P("div", me, oe(c.noDataText), 1)),
|
|
264
|
+
k.value ? (g(), P("div", he, "加载中...")) : se("", !0)
|
|
265
265
|
]),
|
|
266
266
|
_: 1
|
|
267
267
|
}, 8, ["teleported", "placement", "trigger", "popper-class", "visible"])
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as f, createElementBlock as h, normalizeClass as D, createVNode as M, unref as T, mergeProps as _ } from "vue";
|
|
2
|
+
import { h as g, b as A } from "./vendor-BKq2DV36.js";
|
|
3
|
+
import { w as y } from "./utils-OH_cOHFS.js";
|
|
4
|
+
const m = "--", p = "YYYY-MM-DDTHH:mm:ss", Y = "YYYY-MM-DDT23:59:59", b = "YYYY-MM-DD", N = "https://static.zhihaoscm.cn/", d = (e, l = b) => e ? g(e).format(l).replace("Invalid date", m) : m, U = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
|
|
5
|
+
function L(e) {
|
|
6
|
+
const l = ["角", "分"], s = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], r = [
|
|
7
|
+
["元", "万", "亿"],
|
|
8
|
+
["", "拾", "佰", "仟"]
|
|
9
|
+
], i = e < 0 ? "负" : "";
|
|
10
|
+
e = Math.abs(e);
|
|
11
|
+
let o = "";
|
|
12
|
+
for (let a = 0; a < l.length; a++)
|
|
13
|
+
o += (s[Math.floor(e * 10 * Math.pow(10, a)) % 10] + l[a]).replace(/零./, "");
|
|
14
|
+
o = o || "整", e = Math.floor(e);
|
|
15
|
+
for (let a = 0; a < r[0].length && e > 0; a++) {
|
|
16
|
+
let n = "";
|
|
17
|
+
for (let t = 0; t < r[1].length && e > 0; t++)
|
|
18
|
+
n = s[e % 10] + r[1][t] + n, e = Math.floor(e / 10);
|
|
19
|
+
o = n.replace(/(零.)*零$/, "").replace(/^$/, "零") + r[0][a] + o;
|
|
20
|
+
}
|
|
21
|
+
return i + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
22
|
+
}
|
|
23
|
+
const E = /* @__PURE__ */ u({
|
|
24
|
+
name: "zh-date-picker",
|
|
25
|
+
__name: "DatePicker",
|
|
26
|
+
props: {
|
|
27
|
+
style: {},
|
|
28
|
+
class: {},
|
|
29
|
+
modelValue: {},
|
|
30
|
+
disabledDateAfterToday: { type: Boolean }
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue", "change"],
|
|
33
|
+
setup(e, { emit: l }) {
|
|
34
|
+
const s = e, r = l, i = (t) => Array.isArray(t) ? [d(t[0], p), d(t[1], Y)] : t && d(t, p), o = (t) => {
|
|
35
|
+
const c = i(t);
|
|
36
|
+
r("update:modelValue", c);
|
|
37
|
+
}, a = (t) => {
|
|
38
|
+
const c = i(t);
|
|
39
|
+
r("change", c);
|
|
40
|
+
}, n = (t) => {
|
|
41
|
+
const c = (/* @__PURE__ */ new Date()).getTime();
|
|
42
|
+
return new Date(t).getTime() > c;
|
|
43
|
+
};
|
|
44
|
+
return (t, c) => (f(), h("div", {
|
|
45
|
+
class: D([s.class, "zh-date-picker"])
|
|
46
|
+
}, [
|
|
47
|
+
M(T(A), _({
|
|
48
|
+
"disabled-date": s.disabledDateAfterToday ? n : void 0
|
|
49
|
+
}, t.$attrs, {
|
|
50
|
+
style: s.style,
|
|
51
|
+
"model-value": s.modelValue,
|
|
52
|
+
"onUpdate:modelValue": o,
|
|
53
|
+
onChange: a
|
|
54
|
+
}), null, 16, ["disabled-date", "style", "model-value"])
|
|
55
|
+
], 2));
|
|
56
|
+
}
|
|
57
|
+
}), O = y(E);
|
|
58
|
+
export {
|
|
59
|
+
N as C,
|
|
60
|
+
m as D,
|
|
61
|
+
O as Z,
|
|
62
|
+
L as d,
|
|
63
|
+
U as v
|
|
64
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as p, useSlots as _,
|
|
2
|
-
import { D as v } from "./
|
|
3
|
-
import { _ as k } from "./Button-
|
|
4
|
-
import { w as y } from "./utils-
|
|
1
|
+
import { defineComponent as p, useSlots as _, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as D, createCommentVNode as g } from "vue";
|
|
2
|
+
import { D as v } from "./DatePicker-CJ5w6yCA.js";
|
|
3
|
+
import { _ as k } from "./Button-BT4R8MkU.js";
|
|
4
|
+
import { w as y } from "./utils-OH_cOHFS.js";
|
|
5
5
|
const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class: "detail-header--left" }, H = { class: "title common-title" }, M = { class: "info-pair--label" }, $ = { class: "info-pair--value" }, C = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "detail-header--right"
|
|
@@ -19,7 +19,7 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
19
19
|
const h = _(), r = f;
|
|
20
20
|
return (e, w) => {
|
|
21
21
|
var d, c;
|
|
22
|
-
return
|
|
22
|
+
return a(), o("div", I, [
|
|
23
23
|
t("div", null, [
|
|
24
24
|
l(e.$slots, "menu", {}, void 0, !0)
|
|
25
25
|
]),
|
|
@@ -27,7 +27,7 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
27
27
|
t("div", E, [
|
|
28
28
|
t("div", H, i(r.title), 1),
|
|
29
29
|
l(e.$slots, "extra-info", {}, void 0, !0),
|
|
30
|
-
(
|
|
30
|
+
(a(!0), o(m, null, u(r.leftInfos, (s) => (a(), o("div", {
|
|
31
31
|
class: "info-pair",
|
|
32
32
|
key: s.value
|
|
33
33
|
}, [
|
|
@@ -36,18 +36,18 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
36
36
|
]))), 128))
|
|
37
37
|
]),
|
|
38
38
|
l(e.$slots, "default", {}, void 0, !0),
|
|
39
|
-
n(h)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (
|
|
40
|
-
(
|
|
39
|
+
n(h)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", C, [
|
|
40
|
+
(a(!0), o(m, null, u(r.rightInfos, (s) => (a(), o("div", {
|
|
41
41
|
class: "info-pair",
|
|
42
42
|
key: s.value
|
|
43
43
|
}, [
|
|
44
44
|
t("div", L, i(s.label), 1),
|
|
45
45
|
t("div", S, i(s.value ?? n(v)), 1)
|
|
46
46
|
]))), 128)),
|
|
47
|
-
e.stateDesc || e.stateMeta ? (
|
|
47
|
+
e.stateDesc || e.stateMeta ? (a(), o("div", {
|
|
48
48
|
key: 0,
|
|
49
|
-
class:
|
|
50
|
-
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) :
|
|
49
|
+
class: D(["state common-title", (d = e.stateMeta) == null ? void 0 : d.state])
|
|
50
|
+
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) : g("", !0)
|
|
51
51
|
]))
|
|
52
52
|
])
|
|
53
53
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
2
|
-
import { D as u } from "./
|
|
3
|
-
import { w as f } from "./utils-
|
|
1
|
+
import { defineComponent as r, openBlock as o, createElementBlock as s, createElementVNode as l, createTextVNode as a, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as d } from "vue";
|
|
2
|
+
import { D as u } from "./DatePicker-CJ5w6yCA.js";
|
|
3
|
+
import { w as f } from "./utils-OH_cOHFS.js";
|
|
4
4
|
const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "info-pair--title--tip"
|
|
@@ -15,10 +15,10 @@ const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
|
15
15
|
},
|
|
16
16
|
setup(n) {
|
|
17
17
|
const i = n;
|
|
18
|
-
return (e, E) => (
|
|
18
|
+
return (e, E) => (o(), s("div", _, [
|
|
19
19
|
l("div", v, [
|
|
20
20
|
a(t(i.title) + " ", 1),
|
|
21
|
-
e.tip ? (
|
|
21
|
+
e.tip ? (o(), s("div", h, t(e.tip), 1)) : p("", !0)
|
|
22
22
|
]),
|
|
23
23
|
l("div", {
|
|
24
24
|
class: c(["info-pair--value", { ellipsis: e.ellipsis }])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k,
|
|
2
|
-
import { Z as f } from "./Button-
|
|
3
|
-
import {
|
|
4
|
-
import { w as I } from "./utils-
|
|
1
|
+
import { defineComponent as k, useModel as w, computed as T, openBlock as r, createBlock as v, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as m, toDisplayString as l, createElementBlock as Z, createCommentVNode as z, mergeModels as p } from "vue";
|
|
2
|
+
import { Z as f } from "./Button-BT4R8MkU.js";
|
|
3
|
+
import { c as E } from "./vendor-BKq2DV36.js";
|
|
4
|
+
import { w as I } from "./utils-OH_cOHFS.js";
|
|
5
5
|
const N = { class: "title" }, O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sub-title"
|
|
@@ -9,7 +9,7 @@ const N = { class: "title" }, O = {
|
|
|
9
9
|
name: "ZhDialog",
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "Dialog",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ p({
|
|
13
13
|
title: {},
|
|
14
14
|
subTitle: {},
|
|
15
15
|
cancelButtonText: { default: "取消" },
|
|
@@ -48,7 +48,7 @@ const N = { class: "title" }, O = {
|
|
|
48
48
|
modelValue: { type: Boolean, default: !0 },
|
|
49
49
|
modelModifiers: {}
|
|
50
50
|
}),
|
|
51
|
-
emits: /* @__PURE__ */
|
|
51
|
+
emits: /* @__PURE__ */ p(["submit", "close"], ["update:modelValue"]),
|
|
52
52
|
setup(n, { emit: B }) {
|
|
53
53
|
const t = n, d = w(n, "modelValue"), a = B, y = () => {
|
|
54
54
|
a("close");
|
|
@@ -62,7 +62,7 @@ const N = { class: "title" }, O = {
|
|
|
62
62
|
large: "800px",
|
|
63
63
|
extraLarge: "920px"
|
|
64
64
|
}, b = T(() => t.width ? t.width : g[t.size]);
|
|
65
|
-
return (e, i) => (
|
|
65
|
+
return (e, i) => (r(), v(D(E), M({
|
|
66
66
|
modelValue: d.value,
|
|
67
67
|
"onUpdate:modelValue": i[0] || (i[0] = (V) => d.value = V),
|
|
68
68
|
class: "zh-dialog"
|
|
@@ -73,26 +73,26 @@ const N = { class: "title" }, O = {
|
|
|
73
73
|
}), {
|
|
74
74
|
header: o(() => [
|
|
75
75
|
s(e.$slots, "header", {}, () => [
|
|
76
|
-
|
|
77
|
-
e.subTitle ? (
|
|
76
|
+
c("div", N, l(e.title), 1),
|
|
77
|
+
e.subTitle ? (r(), Z("div", O, l(e.subTitle), 1)) : z("", !0)
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
footer: o(() => [
|
|
81
81
|
s(e.$slots, "footer", {}, () => [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
c("div", S, [
|
|
83
|
+
u(f, { onClick: y }, {
|
|
84
84
|
default: o(() => [
|
|
85
|
-
|
|
85
|
+
m(l(e.cancelButtonText), 1)
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
88
|
}),
|
|
89
|
-
|
|
89
|
+
u(f, {
|
|
90
90
|
type: "primary",
|
|
91
91
|
disabled: e.confirmButtonDisabled,
|
|
92
92
|
onClick: h
|
|
93
93
|
}, {
|
|
94
94
|
default: o(() => [
|
|
95
|
-
|
|
95
|
+
m(l(e.confirmButtonText), 1)
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
98
98
|
}, 8, ["disabled"])
|