zhihao-ui 1.3.55 → 1.3.57
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-Bz9HbxrR.js → BaseInfo-ehtLJvVF.js} +1 -1
- package/dist/es/{BaseItem-YGnpIugn.js → BaseItem-6LMSv4Je.js} +3 -3
- package/dist/es/{Button-DSjKm2wO.js → Button-DlEYWX3X.js} +2 -2
- package/dist/es/CascaderLoadMore-DKTvm00E.js +287 -0
- package/dist/es/DatePicker-CymT2gjS.js +63 -0
- package/dist/es/{DetailHeader-lzEy7t5Y.js → DetailHeader-DlAjiYhV.js} +3 -3
- package/dist/es/{DetailSubTitle-DfqGXyKI.js → DetailSubTitle-OH6TMyKI.js} +2 -2
- package/dist/es/{Dialog-MVXB7s2S.js → Dialog-B_Psb_wh.js} +3 -3
- package/dist/es/{DiyDataTable-Yp1HvbS1.js → DiyDataTable-DRuRQedj.js} +33 -33
- package/dist/es/{EditInfoPair-BXF1tV3S.js → EditInfoPair-B3TKNnnl.js} +3 -3
- package/dist/es/{FileWrapper-CqbiXynu.js → FileWrapper-bVyPV48o.js} +4 -4
- package/dist/es/{Grid-CDS9IrCA.js → Grid-CLU3cdzX.js} +2 -2
- package/dist/es/{InfoPair-jRjF91Ro.js → InfoPair-nPqi45Ys.js} +3 -3
- package/dist/es/Input-DjQtffZg.js +91 -0
- package/dist/es/{Loading-C9Te67Gr.js → Loading-CDxuHkdt.js} +2 -2
- package/dist/es/{Map-BoN5eeEB.js → Map-CmcmvvxF.js} +945 -908
- package/dist/es/{MessageBox-BzwToZ0E.js → MessageBox-kkpNeAii.js} +2 -2
- package/dist/es/{MoneyInput-oY4Jr4Du.js → MoneyInput-ZLGQmpLk.js} +5 -5
- package/dist/es/{PageHeadPanel-oLoxYR29.js → PageHeadPanel-DsEeXTgj.js} +2 -2
- package/dist/es/{Table-BU_pHf2Y.js → Table-gFH87j_O.js} +6 -6
- package/dist/es/{ToolTips-H93PrmYL.js → ToolTips-BRjrysPf.js} +3 -3
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-DRDkj6ga.js → utils-B-n1yx0L.js} +3 -3
- package/dist/es/{vendor-CxcudVpO.js → vendor-DkGhDRdQ.js} +51 -50
- package/dist/index.css +1 -1
- package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +0 -3
- package/dist/types/components/CascaderLoadMore/index.d.ts +0 -6
- package/dist/types/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/types/components/DatePicker/index.d.ts +9 -0
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +1 -0
- package/dist/types/components/DiyDataTable/index.d.ts +3 -0
- package/dist/types/components/DiyDataTable/type.d.ts +2 -0
- package/dist/types/components/InputNumber/InputNumber.vue.d.ts +2 -0
- package/dist/types/components/InputNumber/index.d.ts +5 -0
- package/dist/types/components/Map/Map.vue.d.ts +2 -0
- package/dist/types/components/Map/function/position.d.ts +5 -0
- package/dist/types/components/Map/index.d.ts +6 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +33 -33
- package/package.json +1 -1
- package/dist/es/CascaderLoadMore-BwYi7PBx.js +0 -287
- package/dist/es/DatePicker-BkKUo2v1.js +0 -57
- package/dist/es/Input-CJadFglX.js +0 -88
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent as V, useAttrs as v, useModel as E, openBlock as I, createElementBlock as z, normalizeClass as S, createVNode as $, unref as N, mergeProps as x, createSlots as _, renderList as y, withCtx as B, renderSlot as C, normalizeProps as M, guardReactiveProps as P, mergeModels as j, normalizeStyle as A } from "vue";
|
|
2
|
+
import { s as U } from "./vendor-DkGhDRdQ.js";
|
|
3
|
+
import { _ as Z } from "./Button-DlEYWX3X.js";
|
|
4
|
+
import { w as k } from "./utils-B-n1yx0L.js";
|
|
5
|
+
const H = /* @__PURE__ */ V({
|
|
6
|
+
name: "zh-input",
|
|
7
|
+
__name: "Input",
|
|
8
|
+
props: /* @__PURE__ */ j({
|
|
9
|
+
style: {},
|
|
10
|
+
class: { default: "zh-default-input" },
|
|
11
|
+
size: { default: "default" },
|
|
12
|
+
className: {}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(d) {
|
|
19
|
+
const o = v(), a = d, s = E(d, "modelValue"), l = () => {
|
|
20
|
+
(o.max || Number(o.max) === 0) && Number(s.value) >= o.max && (s.value = o.max.toString()), (o.min || Number(o.min) === 0) && Number(s.value) <= o.min && (s.value = o.min.toString());
|
|
21
|
+
};
|
|
22
|
+
return (m, c) => (I(), z("div", {
|
|
23
|
+
class: S(a.class)
|
|
24
|
+
}, [
|
|
25
|
+
$(N(U), x(m.$attrs, {
|
|
26
|
+
modelValue: s.value,
|
|
27
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => s.value = r),
|
|
28
|
+
size: m.size,
|
|
29
|
+
onBlur: l
|
|
30
|
+
}), _({ _: 2 }, [
|
|
31
|
+
y(m.$slots, (r, b) => ({
|
|
32
|
+
name: r,
|
|
33
|
+
fn: B((f) => [
|
|
34
|
+
C(m.$slots, r, M(P(f)), void 0, !0)
|
|
35
|
+
])
|
|
36
|
+
}))
|
|
37
|
+
]), 1040, ["modelValue", "size"])
|
|
38
|
+
], 2));
|
|
39
|
+
}
|
|
40
|
+
}), L = /* @__PURE__ */ Z(H, [["__scopeId", "data-v-ce1df798"]]), J = k(L), O = /* @__PURE__ */ V({
|
|
41
|
+
name: "zh-input-number",
|
|
42
|
+
__name: "InputNumber",
|
|
43
|
+
props: {
|
|
44
|
+
style: {},
|
|
45
|
+
class: {},
|
|
46
|
+
modelValue: {}
|
|
47
|
+
},
|
|
48
|
+
emits: ["update:modelValue", "change"],
|
|
49
|
+
setup(d, { emit: o }) {
|
|
50
|
+
const a = d, s = o, l = v(), m = (t, n = 0, u = 0, p = 0) => {
|
|
51
|
+
let e = (t == null ? void 0 : t.toString()) ?? "", i, g, h;
|
|
52
|
+
return u === 0 ? (e = e.replace(/[^\d]/g, ""), e = e.replace(/^0\d+/g, "0"), n !== 0 && (e = e.slice(0, n))) : (e = e.replace(/[^\-\d.]/g, ""), e = e.replace(/^[^\-\d]/g, ""), e = e.replace(/\.{2}/g, "."), e = e.replace(/^0(\d+)/g, "$1"), i = e.split(".") || [], i.length > 1 ? (n === 0 ? g = i[0] : g = i[0].slice(0, n), h = i[1].slice(0, u), e = g + "." + h) : n !== 0 && (e = e.slice(0, n))), p !== 0 && (e = e.slice(0, p)), e;
|
|
53
|
+
}, c = () => {
|
|
54
|
+
a.modelValue === "" || a.modelValue === void 0 || (l.max && Number(a.modelValue) > l.max && s("update:modelValue", l.max.toString()), l.min && Number(a.modelValue) < l.min && s("update:modelValue", l.min.toString()));
|
|
55
|
+
}, r = (t) => t ? m(
|
|
56
|
+
t,
|
|
57
|
+
l.integer,
|
|
58
|
+
l.precision,
|
|
59
|
+
l.maxLength
|
|
60
|
+
) : "", b = (t) => {
|
|
61
|
+
/^\d+\.0*$/.test((t == null ? void 0 : t.toString()) || "") || t === "" ? s("update:modelValue", r(t)) : s("update:modelValue", Number(r(t)));
|
|
62
|
+
}, f = (t) => {
|
|
63
|
+
s("change", r(t));
|
|
64
|
+
};
|
|
65
|
+
return (t, n) => (I(), z("div", {
|
|
66
|
+
class: S(["input-number", a.class]),
|
|
67
|
+
style: A(a.style)
|
|
68
|
+
}, [
|
|
69
|
+
$(N(U), x(t.$attrs, {
|
|
70
|
+
"model-value": a.modelValue,
|
|
71
|
+
"onUpdate:modelValue": b,
|
|
72
|
+
onBlur: c,
|
|
73
|
+
style: { width: "100%" },
|
|
74
|
+
formatter: r,
|
|
75
|
+
onChange: f
|
|
76
|
+
}), _({ _: 2 }, [
|
|
77
|
+
y(Object.keys(t.$slots), (u) => ({
|
|
78
|
+
name: u,
|
|
79
|
+
fn: B((p) => [
|
|
80
|
+
C(t.$slots, u, M(P(p)), void 0, !0)
|
|
81
|
+
])
|
|
82
|
+
}))
|
|
83
|
+
]), 1040, ["model-value"])
|
|
84
|
+
], 6));
|
|
85
|
+
}
|
|
86
|
+
}), R = /* @__PURE__ */ Z(O, [["__scopeId", "data-v-17c3b6e2"]]), K = k(R);
|
|
87
|
+
export {
|
|
88
|
+
R as I,
|
|
89
|
+
J as Z,
|
|
90
|
+
K as a
|
|
91
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as s, createElementBlock as a, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as e } from "./Button-
|
|
3
|
-
import { w as i } from "./utils-
|
|
2
|
+
import { _ as e } from "./Button-DlEYWX3X.js";
|
|
3
|
+
import { w as i } from "./utils-B-n1yx0L.js";
|
|
4
4
|
const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
|
|
5
5
|
name: "zh-loading",
|
|
6
6
|
__name: "Loading",
|