zhihao-ui 1.3.58 → 1.3.59-alpha.2
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-Bx3C9ZBL.js +51 -0
- package/dist/es/BaseItem-B1E_ckBc.js +127 -0
- package/dist/es/{Button-DlEYWX3X.js → Button-BFA52ivn.js} +2 -2
- package/dist/es/{CascaderLoadMore-DsQfSHJS.js → CascaderLoadMore-C6micaqI.js} +65 -68
- package/dist/es/{DatePicker-Dsu_fuVt.js → DatePicker-BxalhOJm.js} +3 -3
- package/dist/es/{DetailHeader-DU1bbSjD.js → DetailHeader-CTHrhLa3.js} +3 -3
- package/dist/es/{DetailSubTitle-DFPCx1sq.js → DetailSubTitle-CeXkvL12.js} +2 -2
- package/dist/es/{Dialog-B_Psb_wh.js → Dialog-BptDzN8n.js} +3 -3
- package/dist/es/{DiyDataTable-Qcs2hktR.js → DiyDataTable-BIwNu91S.js} +4 -4
- package/dist/es/{EditInfoPair-3JMSayr1.js → EditInfoPair-BuNjky_P.js} +3 -3
- package/dist/es/{FileWrapper-B-g_NLuL.js → FileWrapper-SNPju9Db.js} +4 -4
- package/dist/es/{Grid-C1mkzQ0C.js → Grid-8CT6JVvo.js} +35 -34
- package/dist/es/{InfoPair-mbI5s0rV.js → InfoPair-W4cuHn-N.js} +3 -3
- package/dist/es/{Input-DjQtffZg.js → Input-FPnMJc-X.js} +3 -3
- package/dist/es/{Loading-CDxuHkdt.js → Loading-D1OYqPWU.js} +2 -2
- package/dist/es/Map-B7b_QqZC.js +2446 -0
- package/dist/es/{MessageBox-kkpNeAii.js → MessageBox-BIQVuTBY.js} +2 -2
- package/dist/es/{MoneyInput-Ca8_COsK.js → MoneyInput-CSzkTtxb.js} +5 -5
- package/dist/es/{PageHeadPanel-DsEeXTgj.js → PageHeadPanel-BV5qQLDj.js} +2 -2
- package/dist/es/{Table-CZ2AbcN7.js → Table-BnXX6Zcr.js} +155 -155
- package/dist/es/{ToolTips-BRjrysPf.js → ToolTips-B9Z_U4WM.js} +3 -3
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-B-n1yx0L.js → utils-COxKH46Q.js} +1 -1
- package/dist/es/{vendor-DkGhDRdQ.js → vendor-CbeG2C4c.js} +22839 -23665
- package/dist/index.css +1 -1
- package/dist/types/components/BaseInfo/BaseInfo.vue.d.ts +2 -2
- package/dist/types/components/BaseInfo/index.d.ts +33 -33
- package/dist/types/components/BaseItem/BaseItem.vue.d.ts +1 -1
- package/dist/types/components/BaseItem/index.d.ts +24 -24
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +6 -6
- package/dist/types/components/DiyDataTable/index.d.ts +18 -18
- package/dist/types/components/Grid/Grid.vue.d.ts +1 -1
- package/dist/types/components/Grid/index.d.ts +15 -15
- package/dist/types/components/Input/Input.vue.d.ts +6 -6
- package/dist/types/components/Input/index.d.ts +9 -9
- package/dist/types/components/Map/Map.vue.d.ts +4 -2
- package/dist/types/components/Map/function/carTrack.d.ts +4 -2
- package/dist/types/components/Map/function/map.d.ts +2 -0
- package/dist/types/components/Map/function/renderPolygon.d.ts +25 -0
- package/dist/types/components/Map/function/ship/index.d.ts +6 -2
- package/dist/types/components/Map/function/ship/style.d.ts +5 -3
- package/dist/types/components/Map/index.d.ts +12 -6
- package/dist/types/components/Map/meta/index.d.ts +3 -1
- package/dist/types/components/Map/utils/animation.d.ts +13 -0
- package/dist/types/components/Map/utils/shipOverlay.d.ts +1 -0
- package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +4 -4
- package/dist/types/components/MoneyInput/index.d.ts +6 -6
- package/dist/types/components/Table/types.d.ts +2 -2
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +59 -132
- package/package.json +1 -1
- package/dist/es/BaseInfo-ehtLJvVF.js +0 -53
- package/dist/es/BaseItem-NLySOoTL.js +0 -130
- package/dist/es/Map-CmcmvvxF.js +0 -2363
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as o, provide as n, watch as i, resolveComponent as p, openBlock as m, createBlock as W, withCtx as v, renderSlot as b } from "vue";
|
|
2
|
-
import { w as g } from "./utils-B-n1yx0L.js";
|
|
3
|
-
const C = /* @__PURE__ */ h({
|
|
4
|
-
name: "ZhBaseInfo",
|
|
5
|
-
__name: "BaseInfo",
|
|
6
|
-
props: {
|
|
7
|
-
contentWidth: { default: void 0 },
|
|
8
|
-
labelWidth: { default: "70px" },
|
|
9
|
-
infoDirection: { default: "vertical" },
|
|
10
|
-
cols: { default: 5 },
|
|
11
|
-
gap: { default: 16 }
|
|
12
|
-
},
|
|
13
|
-
setup(r) {
|
|
14
|
-
const t = r, a = o(), l = o(), c = o();
|
|
15
|
-
n("infoLabelWidth", a), n("infoContentWidth", l), n("infoDirection", c);
|
|
16
|
-
function d() {
|
|
17
|
-
a.value = t.labelWidth;
|
|
18
|
-
}
|
|
19
|
-
function f() {
|
|
20
|
-
l.value = t.contentWidth;
|
|
21
|
-
}
|
|
22
|
-
function s() {
|
|
23
|
-
c.value = t.infoDirection;
|
|
24
|
-
}
|
|
25
|
-
return i(
|
|
26
|
-
() => t.contentWidth,
|
|
27
|
-
() => f(),
|
|
28
|
-
{ immediate: !0 }
|
|
29
|
-
), i(
|
|
30
|
-
() => t.labelWidth,
|
|
31
|
-
() => d(),
|
|
32
|
-
{ immediate: !0 }
|
|
33
|
-
), i(
|
|
34
|
-
() => t.infoDirection,
|
|
35
|
-
() => s(),
|
|
36
|
-
{ immediate: !0 }
|
|
37
|
-
), (e, D) => {
|
|
38
|
-
const u = p("grid");
|
|
39
|
-
return m(), W(u, {
|
|
40
|
-
cols: e.cols,
|
|
41
|
-
gap: e.gap
|
|
42
|
-
}, {
|
|
43
|
-
default: v(() => [
|
|
44
|
-
b(e.$slots, "default")
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 8, ["cols", "gap"]);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}), I = g(C);
|
|
51
|
-
export {
|
|
52
|
-
I as Z
|
|
53
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, useSlots as R, inject as T, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as s, withCtx as d, createElementVNode as h, normalizeClass as m, normalizeStyle as W, resolveDynamicComponent as k, createElementBlock as i, toDisplayString as o, renderSlot as S, Fragment as v, withModifiers as V, createTextVNode as f, createVNode as p, createCommentVNode as O } from "vue";
|
|
2
|
-
import { E as D, a as Z, d as g } from "./vendor-DkGhDRdQ.js";
|
|
3
|
-
import { Z as G } from "./Grid-C1mkzQ0C.js";
|
|
4
|
-
import { w as U } from "./utils-B-n1yx0L.js";
|
|
5
|
-
const b = "--", X = "YYYY-MM-DDTHH:mm:ss", x = "YYYY-MM-DDT23:59:59", ee = "YYYY-MM-DD", le = "https://static.zhihaoscm.cn/", _ = { key: 1 }, H = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "zh-base-item--value--file"
|
|
8
|
-
}, $ = { key: 2 }, j = /* @__PURE__ */ z({
|
|
9
|
-
name: "ZhBaseItem",
|
|
10
|
-
__name: "BaseItem",
|
|
11
|
-
props: {
|
|
12
|
-
label: {},
|
|
13
|
-
labelRender: {},
|
|
14
|
-
colon: { type: Boolean, default: !1 },
|
|
15
|
-
value: {},
|
|
16
|
-
fileId: {},
|
|
17
|
-
rewriteFileName: {},
|
|
18
|
-
valueRender: {},
|
|
19
|
-
onClick: {},
|
|
20
|
-
labelWidth: {},
|
|
21
|
-
infoDirection: { default: "horizontal" },
|
|
22
|
-
defaultValue: { default: b },
|
|
23
|
-
className: {},
|
|
24
|
-
labelClassName: {},
|
|
25
|
-
valueClassName: {},
|
|
26
|
-
span: { default: 1 },
|
|
27
|
-
showFileName: { type: Boolean, default: !0 },
|
|
28
|
-
fetchFileById: {}
|
|
29
|
-
},
|
|
30
|
-
setup(C) {
|
|
31
|
-
const I = R(), l = C, w = T(
|
|
32
|
-
"infoLabelWidth",
|
|
33
|
-
void 0
|
|
34
|
-
), F = n(() => !!(l.onClick && l.value)), y = n(() => !!(!l.value && l.fileId)), c = M(), E = n(() => {
|
|
35
|
-
var a;
|
|
36
|
-
const e = (a = c.value) == null ? void 0 : a.name;
|
|
37
|
-
if (!e)
|
|
38
|
-
return "";
|
|
39
|
-
if (l.rewriteFileName) {
|
|
40
|
-
const r = e.substring(e.lastIndexOf("."));
|
|
41
|
-
return l.rewriteFileName + r;
|
|
42
|
-
}
|
|
43
|
-
return e;
|
|
44
|
-
}), B = n(() => {
|
|
45
|
-
const e = {}, a = l.labelWidth || w;
|
|
46
|
-
return a && l.infoDirection === "horizontal" && (isNaN(Number(a)) ? e.width = a : e.width = a + "px"), e;
|
|
47
|
-
}), L = n(() => ({
|
|
48
|
-
...B.value
|
|
49
|
-
})), Y = n(() => l.value === "" ? b : l.value ?? b);
|
|
50
|
-
return A(async () => {
|
|
51
|
-
!y.value || !l.fileId || !l.fetchFileById || (c.value = await l.fetchFileById(l.fileId));
|
|
52
|
-
}), (e, a) => (t(), u(s(G), {
|
|
53
|
-
span: e.span,
|
|
54
|
-
label: e.label
|
|
55
|
-
}, {
|
|
56
|
-
default: d((r) => {
|
|
57
|
-
var N;
|
|
58
|
-
return [
|
|
59
|
-
h("div", {
|
|
60
|
-
class: m(["zh-base-item", [e.infoDirection, e.className]])
|
|
61
|
-
}, [
|
|
62
|
-
h("div", {
|
|
63
|
-
class: m(["zh-base-item-label", [e.infoDirection, e.labelClassName]]),
|
|
64
|
-
style: W({
|
|
65
|
-
width: e.infoDirection === "horizontal" && r.maxLabelWidthInCol ? r.maxLabelWidthInCol + "px" : void 0,
|
|
66
|
-
...L.value
|
|
67
|
-
})
|
|
68
|
-
}, [
|
|
69
|
-
e.labelRender ? (t(), u(k(e.labelRender), { key: 0 })) : (t(), i("span", _, o(e.label) + o(e.colon ? ":" : ""), 1))
|
|
70
|
-
], 6),
|
|
71
|
-
h("div", {
|
|
72
|
-
class: m(["zh-base-item-value", e.valueClassName])
|
|
73
|
-
}, [
|
|
74
|
-
s(I).value ? S(e.$slots, "value", {
|
|
75
|
-
key: 0,
|
|
76
|
-
content: e.value
|
|
77
|
-
}) : (t(), i(v, { key: 1 }, [
|
|
78
|
-
F.value ? (t(), u(s(D), {
|
|
79
|
-
key: 0,
|
|
80
|
-
type: "primary",
|
|
81
|
-
class: "zh-base-item--value--link",
|
|
82
|
-
onClick: a[0] || (a[0] = V((K) => e.onClick && e.onClick(e.value), ["stop"]))
|
|
83
|
-
}, {
|
|
84
|
-
default: d(() => [
|
|
85
|
-
f(o(e.value), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})) : y.value ? (t(), i("div", H, [
|
|
89
|
-
e.showFileName ? (t(), i(v, { key: 0 }, [
|
|
90
|
-
p(s(Z), { class: "iconfont" }, {
|
|
91
|
-
default: d(() => [
|
|
92
|
-
p(s(g))
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
f(" " + o(E.value), 1)
|
|
97
|
-
], 64)) : O("", !0),
|
|
98
|
-
p(s(D), {
|
|
99
|
-
type: "primary",
|
|
100
|
-
href: (N = c.value) == null ? void 0 : N.path,
|
|
101
|
-
target: "_blank",
|
|
102
|
-
class: m({ "ml-8": e.showFileName })
|
|
103
|
-
}, {
|
|
104
|
-
default: d(() => a[1] || (a[1] = [
|
|
105
|
-
f(" 查看/下载 ")
|
|
106
|
-
])),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["href", "class"])
|
|
109
|
-
])) : e.valueRender ? (t(), i("div", $, [
|
|
110
|
-
(t(), u(k(e.valueRender)))
|
|
111
|
-
])) : (t(), i(v, { key: 3 }, [
|
|
112
|
-
f(o(Y.value), 1)
|
|
113
|
-
], 64))
|
|
114
|
-
], 64))
|
|
115
|
-
], 2)
|
|
116
|
-
], 2)
|
|
117
|
-
];
|
|
118
|
-
}),
|
|
119
|
-
_: 3
|
|
120
|
-
}, 8, ["span", "label"]));
|
|
121
|
-
}
|
|
122
|
-
}), ae = U(j);
|
|
123
|
-
export {
|
|
124
|
-
le as C,
|
|
125
|
-
b as D,
|
|
126
|
-
X as L,
|
|
127
|
-
ae as Z,
|
|
128
|
-
ee as a,
|
|
129
|
-
x as b
|
|
130
|
-
};
|