zhihao-ui 1.2.31 → 1.2.33
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-CAuR2Id0.js → BaseInfo-C4sgm12k.js} +1 -1
- package/dist/es/{BaseItem-CQzBP1WX.js → BaseItem-Dok2Aus9.js} +5 -5
- package/dist/es/{Button-D-R-2Fix.js → Button-BbUxF68h.js} +2 -2
- package/dist/es/DatePicker-DJuI_Emt.js +73 -0
- package/dist/es/{DetailHeader-CBN9CqAp.js → DetailHeader-DKjKORoT.js} +3 -3
- package/dist/es/{DetailSubTitle-DsnSxPKH.js → DetailSubTitle-zqhDyrw7.js} +2 -2
- package/dist/es/{Dialog-C_hAbDgU.js → Dialog-CiO2p3lS.js} +3 -3
- package/dist/es/{DiyDataTable-CXSUoapn.js → DiyDataTable-0J0XHWOg.js} +4 -4
- package/dist/es/{EditInfoPair-C0Ielr4q.js → EditInfoPair-BCrdjdwr.js} +4 -4
- package/dist/es/{FileWrapper-DFqY2SD_.js → FileWrapper-DwI3Gpd7.js} +6 -6
- package/dist/es/{Grid-CLg9sn2Y.js → Grid-BEBnaQkh.js} +2 -2
- package/dist/es/{InfoPair-6agPuvqq.js → InfoPair-8ibzEbk8.js} +4 -4
- package/dist/es/{Input-CzlIXSCf.js → Input-CWfFyiHL.js} +5 -5
- package/dist/es/Loading-nlPpGN-L.js +22 -0
- package/dist/es/{Map-BJc6GMOA.js → Map-zDBSTbli.js} +512 -499
- package/dist/es/{MessageBox-CBMAgp6C.js → MessageBox-DJR9qhIT.js} +2 -2
- package/dist/es/{MoneyInput-EODuzFjO.js → MoneyInput-BUtchReq.js} +19 -18
- package/dist/es/{PageHeadPanel-DDnMIqmC.js → PageHeadPanel-Bw6wb6jF.js} +6 -6
- package/dist/es/{Table-D7YUOcI0.js → Table-Ce83Xr3L.js} +196 -200
- package/dist/es/ToolTips-D7B0F-bQ.js +37 -0
- package/dist/es/index.js +40 -41
- package/dist/es/utils-hD_p7bGY.js +14 -0
- package/dist/es/{vendor-Cq716b5Q.js → vendor-Bonn9k5m.js} +26 -26
- package/dist/index.css +1 -1
- package/dist/types/components/Map/Map.vue.d.ts +11 -3
- package/dist/types/components/Map/config.d.ts +1 -0
- package/dist/types/components/Map/index.d.ts +51 -31
- package/dist/types/components/Map/interface/entity/render.d.ts +1 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +2 -2
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +4 -2
- package/dist/types/components/Map/utils/store.d.ts +4 -2
- package/dist/types/components/utils.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +19 -19
- package/package.json +1 -1
- package/dist/es/DatePicker-BDz_yTX2.js +0 -36
- package/dist/es/Loading-ClE8eADM.js +0 -22
- package/dist/es/ToolTips-BpZo8gsa.js +0 -37
- package/dist/es/utils-BbWQLYZL.js +0 -52
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as p, createElementBlock as u, normalizeClass as _, createVNode as f, unref as h, mergeProps as k } from "vue";
|
|
2
|
-
import { e as D } from "./vendor-Cq716b5Q.js";
|
|
3
|
-
import { d as o, w as y } from "./utils-BbWQLYZL.js";
|
|
4
|
-
import { L as l, a as A } from "./BaseItem-CQzBP1WX.js";
|
|
5
|
-
const g = /* @__PURE__ */ i({
|
|
6
|
-
name: "zh-date-picker",
|
|
7
|
-
__name: "DatePicker",
|
|
8
|
-
props: {
|
|
9
|
-
style: {},
|
|
10
|
-
class: {},
|
|
11
|
-
modelValue: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue", "change"],
|
|
14
|
-
setup(m, { emit: c }) {
|
|
15
|
-
const a = m, r = c, s = (e) => Array.isArray(e) ? [o(e[0], l), o(e[1], A)] : e && o(e, l), n = (e) => {
|
|
16
|
-
const t = s(e);
|
|
17
|
-
r("update:modelValue", t);
|
|
18
|
-
}, d = (e) => {
|
|
19
|
-
const t = s(e);
|
|
20
|
-
r("change", t);
|
|
21
|
-
};
|
|
22
|
-
return (e, t) => (p(), u("div", {
|
|
23
|
-
class: _([a.class, "zh-date-picker"])
|
|
24
|
-
}, [
|
|
25
|
-
f(h(D), k(e.$attrs, {
|
|
26
|
-
style: a.style,
|
|
27
|
-
"model-value": a.modelValue,
|
|
28
|
-
"onUpdate:modelValue": n,
|
|
29
|
-
onChange: d
|
|
30
|
-
}), null, 16, ["style", "model-value"])
|
|
31
|
-
], 2));
|
|
32
|
-
}
|
|
33
|
-
}), O = y(g);
|
|
34
|
-
export {
|
|
35
|
-
O as Z
|
|
36
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, openBlock as a, createElementBlock as s, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as e } from "./Button-D-R-2Fix.js";
|
|
3
|
-
import { w as i } from "./utils-BbWQLYZL.js";
|
|
4
|
-
const r = { class: "loading-box" }, c = /* @__PURE__ */ t({
|
|
5
|
-
name: "zh-loading",
|
|
6
|
-
__name: "Loading",
|
|
7
|
-
setup(p) {
|
|
8
|
-
return (_, n) => (a(), s("div", r, n[0] || (n[0] = [
|
|
9
|
-
o("div", { class: "loading-wrap" }, [
|
|
10
|
-
o("span", { class: "dot dot-spin" }, [
|
|
11
|
-
o("i"),
|
|
12
|
-
o("i"),
|
|
13
|
-
o("i"),
|
|
14
|
-
o("i")
|
|
15
|
-
])
|
|
16
|
-
], -1)
|
|
17
|
-
])));
|
|
18
|
-
}
|
|
19
|
-
}), d = /* @__PURE__ */ e(c, [["__scopeId", "data-v-bcc04aa5"]]), g = i(d);
|
|
20
|
-
export {
|
|
21
|
-
g as Z
|
|
22
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as r, createBlock as l, unref as s, withCtx as a, renderSlot as c, createElementVNode as i } from "vue";
|
|
2
|
-
import { $ as m } from "./vendor-Cq716b5Q.js";
|
|
3
|
-
import { _ as f } from "./Button-D-R-2Fix.js";
|
|
4
|
-
import { w as d } from "./utils-BbWQLYZL.js";
|
|
5
|
-
const u = /* @__PURE__ */ p({
|
|
6
|
-
name: "zh-tool-tips",
|
|
7
|
-
__name: "ToolTips",
|
|
8
|
-
props: {
|
|
9
|
-
placement: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "top"
|
|
12
|
-
},
|
|
13
|
-
content: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "top"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(e) {
|
|
19
|
-
const t = e;
|
|
20
|
-
return (n, o) => (r(), l(s(m), {
|
|
21
|
-
class: "box-item",
|
|
22
|
-
effect: "dark",
|
|
23
|
-
content: t.content,
|
|
24
|
-
placement: t.placement
|
|
25
|
-
}, {
|
|
26
|
-
default: a(() => [
|
|
27
|
-
c(n.$slots, "default", {}, () => [
|
|
28
|
-
o[0] || (o[0] = i("i", { class: "iconfont icon-Frame2" }, null, -1))
|
|
29
|
-
], !0)
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["content", "placement"]));
|
|
33
|
-
}
|
|
34
|
-
}), _ = /* @__PURE__ */ f(u, [["__scopeId", "data-v-93c79d22"]]), w = d(_);
|
|
35
|
-
export {
|
|
36
|
-
w as Z
|
|
37
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ap as o, x as h } from "./vendor-Cq716b5Q.js";
|
|
2
|
-
import { D as f, b as p } from "./BaseItem-CQzBP1WX.js";
|
|
3
|
-
function I(t) {
|
|
4
|
-
return (a) => o(t, (r) => {
|
|
5
|
-
a.use(r);
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
const d = (t) => (t.install = (e) => {
|
|
9
|
-
const a = (t == null ? void 0 : t.name) || "UnnamedComponent";
|
|
10
|
-
e.component(a, t);
|
|
11
|
-
}, t), M = (t, e = p) => t ? h(t).format(e).replace("Invalid date", f) : f, w = (t) => typeof t == "number" ? !0 : typeof t == "string" ? !isNaN(parseFloat(t)) : !1;
|
|
12
|
-
function E(t) {
|
|
13
|
-
const e = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], r = [
|
|
14
|
-
["元", "万", "亿"],
|
|
15
|
-
["", "拾", "佰", "仟"]
|
|
16
|
-
], i = t < 0 ? "负" : "";
|
|
17
|
-
t = Math.abs(t);
|
|
18
|
-
let l = "";
|
|
19
|
-
for (let s = 0; s < e.length; s++)
|
|
20
|
-
l += (a[Math.floor(t * 10 * Math.pow(10, s)) % 10] + e[s]).replace(/零./, "");
|
|
21
|
-
l = l || "整", t = Math.floor(t);
|
|
22
|
-
for (let s = 0; s < r[0].length && t > 0; s++) {
|
|
23
|
-
let n = "";
|
|
24
|
-
for (let c = 0; c < r[1].length && t > 0; c++)
|
|
25
|
-
n = a[t % 10] + r[1][c] + n, t = Math.floor(t / 10);
|
|
26
|
-
l = n.replace(/(零.)*零$/, "").replace(/^$/, "零") + r[0][s] + l;
|
|
27
|
-
}
|
|
28
|
-
return i + l.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
29
|
-
}
|
|
30
|
-
function u(t) {
|
|
31
|
-
let e = t.replace(/^#/, "");
|
|
32
|
-
e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]);
|
|
33
|
-
const a = parseInt(e.slice(0, 2), 16), r = parseInt(e.slice(2, 4), 16), i = parseInt(e.slice(4, 6), 16);
|
|
34
|
-
return [a, r, i];
|
|
35
|
-
}
|
|
36
|
-
function g(t) {
|
|
37
|
-
const [e, a, r] = t;
|
|
38
|
-
return 0.299 * e + 0.587 * a + 0.114 * r;
|
|
39
|
-
}
|
|
40
|
-
function F(t, e = 128) {
|
|
41
|
-
t === "white" && (t = "#fff"), t === "black" && (t = "#000");
|
|
42
|
-
const a = u(t);
|
|
43
|
-
return g(a) > e ? "black" : "white";
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
E as a,
|
|
47
|
-
M as d,
|
|
48
|
-
F as g,
|
|
49
|
-
I as m,
|
|
50
|
-
w as v,
|
|
51
|
-
d as w
|
|
52
|
-
};
|