zhihao-ui 1.2.30 → 1.2.32
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-BFxwaTMt.js} +5 -5
- package/dist/es/{Button-D-R-2Fix.js → Button-BbUxF68h.js} +2 -2
- package/dist/es/DatePicker-Ci7cvNBv.js +73 -0
- package/dist/es/{DetailHeader-CBN9CqAp.js → DetailHeader-CjOQGsUf.js} +3 -3
- package/dist/es/{DetailSubTitle-DsnSxPKH.js → DetailSubTitle-D0yLSSyv.js} +2 -2
- package/dist/es/{Dialog-C_hAbDgU.js → Dialog-CiO2p3lS.js} +3 -3
- package/dist/es/{DiyDataTable-CXSUoapn.js → DiyDataTable-BF1_jzWq.js} +4 -4
- package/dist/es/{EditInfoPair-C0Ielr4q.js → EditInfoPair-BJQiTE2F.js} +3 -3
- package/dist/es/{FileWrapper-DFqY2SD_.js → FileWrapper-x299zfxX.js} +4 -4
- package/dist/es/{Grid-CLg9sn2Y.js → Grid-CXOlWZvI.js} +2 -2
- package/dist/es/{InfoPair-6agPuvqq.js → InfoPair-DIGArRxD.js} +3 -3
- package/dist/es/{Input-CzlIXSCf.js → Input-DhjDFkPC.js} +3 -3
- package/dist/es/{Loading-ClE8eADM.js → Loading-BUKmsH3_.js} +2 -2
- package/dist/es/{Map-Ch7K-0xC.js → Map-DOYV-j68.js} +492 -464
- package/dist/es/{MessageBox-CBMAgp6C.js → MessageBox-DJR9qhIT.js} +2 -2
- package/dist/es/{MoneyInput-EODuzFjO.js → MoneyInput-CPvzXyjc.js} +17 -16
- package/dist/es/{PageHeadPanel-DDnMIqmC.js → PageHeadPanel-BAkSI9xv.js} +2 -2
- package/dist/es/{Table-D7YUOcI0.js → Table-C0SJnAXO.js} +5 -5
- package/dist/es/{ToolTips-BpZo8gsa.js → ToolTips-BFpd9Tho.js} +3 -3
- package/dist/es/index.js +44 -44
- 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 +2 -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/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/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,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
|
-
};
|