zhihao-ui 1.3.57 → 1.3.58-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-CD2tAAod.js +51 -0
- package/dist/es/BaseItem-DcezA7sa.js +127 -0
- package/dist/es/{Button-DlEYWX3X.js → Button-B2Z_WKdq.js} +2 -2
- package/dist/es/CascaderLoadMore-Bt031LmH.js +277 -0
- package/dist/es/{DatePicker-CymT2gjS.js → DatePicker-CP0KSqBs.js} +3 -3
- package/dist/es/{DetailHeader-DlAjiYhV.js → DetailHeader-DoaD0eKO.js} +3 -3
- package/dist/es/{DetailSubTitle-OH6TMyKI.js → DetailSubTitle-oiPuqJg6.js} +2 -2
- package/dist/es/{Dialog-B_Psb_wh.js → Dialog-BynyEy56.js} +3 -3
- package/dist/es/{DiyDataTable-DRuRQedj.js → DiyDataTable-Bwk_tQDp.js} +9 -7
- package/dist/es/{EditInfoPair-B3TKNnnl.js → EditInfoPair-BRkRrmJI.js} +3 -3
- package/dist/es/{FileWrapper-bVyPV48o.js → FileWrapper-Bw-FhIY5.js} +4 -4
- package/dist/es/{Grid-CLU3cdzX.js → Grid-Cndtkriq.js} +35 -34
- package/dist/es/{InfoPair-nPqi45Ys.js → InfoPair-CIuXeXV1.js} +3 -3
- package/dist/es/{Input-DjQtffZg.js → Input-EcnKRK5Q.js} +3 -3
- package/dist/es/{Loading-CDxuHkdt.js → Loading-Mq3IiaFA.js} +2 -2
- package/dist/es/Map-CxCxmeGO.js +2560 -0
- package/dist/es/{MessageBox-kkpNeAii.js → MessageBox-wQY1ft63.js} +2 -2
- package/dist/es/{MoneyInput-ZLGQmpLk.js → MoneyInput-DZuOujIc.js} +5 -5
- package/dist/es/{PageHeadPanel-DsEeXTgj.js → PageHeadPanel-B2Uqf3zz.js} +2 -2
- package/dist/es/{Table-gFH87j_O.js → Table-NT97DzT0.js} +155 -155
- package/dist/es/{ToolTips-BRjrysPf.js → ToolTips-CVkx0nFU.js} +3 -3
- package/dist/es/index.js +60 -60
- package/dist/es/{utils-B-n1yx0L.js → utils-vqG84sMo.js} +1 -1
- package/dist/es/{vendor-DkGhDRdQ.js → vendor-MMWA2y7U.js} +29 -28
- 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/DetailSubTitle/index.d.ts +1 -0
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +32 -6
- package/dist/types/components/DiyDataTable/index.d.ts +96 -18
- package/dist/types/components/DiyDataTable/type.d.ts +1 -1
- 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 +9 -1
- package/dist/types/components/Map/function/drawPolygon.d.ts +1 -1
- package/dist/types/components/Map/function/event.d.ts +2 -1
- package/dist/types/components/Map/function/map.d.ts +2 -0
- package/dist/types/components/Map/function/renderPolygon.d.ts +24 -0
- package/dist/types/components/Map/function/ship/index.d.ts +1 -1
- package/dist/types/components/Map/function/ship/style.d.ts +5 -3
- package/dist/types/components/Map/index.d.ts +27 -3
- package/dist/types/components/Map/meta/index.d.ts +2 -1
- 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 +57 -58
- package/package.json +1 -1
- package/dist/es/BaseInfo-ehtLJvVF.js +0 -53
- package/dist/es/BaseItem-6LMSv4Je.js +0 -130
- package/dist/es/CascaderLoadMore-DKTvm00E.js +0 -287
- package/dist/es/Map-CmcmvvxF.js +0 -2363
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, onBeforeMount as H, useSlots as U, ref as d, computed as D, onMounted as P, onActivated as N, onUnmounted as T, onDeactivated as O, provide as p, watch as
|
|
2
|
-
import { g as X } from "./Table-
|
|
3
|
-
import { w as A } from "./utils-
|
|
1
|
+
import { defineComponent as L, onBeforeMount as H, useSlots as U, ref as d, computed as D, onMounted as P, onActivated as N, onUnmounted as T, onDeactivated as O, provide as p, watch as _, inject as m, onBeforeUpdate as q, onUpdated as F, openBlock as k, createElementBlock as M, normalizeStyle as Z, renderSlot as E, useAttrs as J, reactive as W, watchEffect as K, withDirectives as Q, vShow as V } from "vue";
|
|
2
|
+
import { g as X } from "./Table-NT97DzT0.js";
|
|
3
|
+
import { w as A } from "./utils-vqG84sMo.js";
|
|
4
4
|
const Y = /* @__PURE__ */ L({
|
|
5
5
|
name: "Grid",
|
|
6
6
|
__name: "Grid",
|
|
@@ -22,21 +22,21 @@ const Y = /* @__PURE__ */ L({
|
|
|
22
22
|
window.removeEventListener("resize", f);
|
|
23
23
|
});
|
|
24
24
|
const f = (n) => {
|
|
25
|
-
let
|
|
26
|
-
switch (!!
|
|
27
|
-
case
|
|
25
|
+
let s = n.target.innerWidth;
|
|
26
|
+
switch (!!s) {
|
|
27
|
+
case s < 768:
|
|
28
28
|
e.value = "xs";
|
|
29
29
|
break;
|
|
30
|
-
case (
|
|
30
|
+
case (s >= 768 && s < 992):
|
|
31
31
|
e.value = "sm";
|
|
32
32
|
break;
|
|
33
|
-
case (
|
|
33
|
+
case (s >= 992 && s < 1200):
|
|
34
34
|
e.value = "md";
|
|
35
35
|
break;
|
|
36
|
-
case (
|
|
36
|
+
case (s >= 1200 && s < 1920):
|
|
37
37
|
e.value = "lg";
|
|
38
38
|
break;
|
|
39
|
-
case
|
|
39
|
+
case s >= 1920:
|
|
40
40
|
e.value = "xl";
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
@@ -49,14 +49,14 @@ const Y = /* @__PURE__ */ L({
|
|
|
49
49
|
const v = D(() => typeof a.cols == "object" ? a.cols[e.value] ?? a.cols : a.cols);
|
|
50
50
|
p("cols", v);
|
|
51
51
|
const c = U().default(), G = () => {
|
|
52
|
-
var y, w, t,
|
|
53
|
-
let n = [],
|
|
52
|
+
var y, w, t, r;
|
|
53
|
+
let n = [], s = null;
|
|
54
54
|
c.forEach((i) => {
|
|
55
55
|
var h;
|
|
56
|
-
typeof i.type == "object" && i.type.name === "GridItem" && ((h = i.props) == null ? void 0 : h.suffix) !== void 0 && (
|
|
56
|
+
typeof i.type == "object" && i.type.name === "GridItem" && ((h = i.props) == null ? void 0 : h.suffix) !== void 0 && (s = i), typeof i.type == "symbol" && Array.isArray(i.children) && n.push(...i.children);
|
|
57
57
|
});
|
|
58
58
|
let I = 0;
|
|
59
|
-
|
|
59
|
+
s && (I = (((y = s.props[e.value]) == null ? void 0 : y.span) ?? ((w = s.props) == null ? void 0 : w.span) ?? 1) + (((t = s.props[e.value]) == null ? void 0 : t.offset) ?? ((r = s.props) == null ? void 0 : r.offset) ?? 0));
|
|
60
60
|
try {
|
|
61
61
|
let i = !1;
|
|
62
62
|
n.reduce((h = 0, b, j) => {
|
|
@@ -68,21 +68,21 @@ const Y = /* @__PURE__ */ L({
|
|
|
68
68
|
} catch {
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
_(
|
|
72
72
|
() => e.value,
|
|
73
73
|
() => {
|
|
74
74
|
a.collapsed && G();
|
|
75
75
|
}
|
|
76
|
-
),
|
|
76
|
+
), _(
|
|
77
77
|
() => a.collapsed,
|
|
78
78
|
(n) => {
|
|
79
79
|
if (n) return G();
|
|
80
80
|
o.value = -1;
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
const
|
|
83
|
+
const C = D(() => typeof a.gap == "number" ? `${a.gap}px` : Array.isArray(a.gap) ? `${a.gap[1]}px ${a.gap[0]}px` : "unset"), $ = D(() => ({
|
|
84
84
|
display: "grid",
|
|
85
|
-
gridGap:
|
|
85
|
+
gridGap: C.value,
|
|
86
86
|
gridTemplateColumns: `repeat(${v.value}, minmax(0, 1fr))`
|
|
87
87
|
})), x = m("clearGridItemData", () => {
|
|
88
88
|
}), g = d(!1);
|
|
@@ -92,7 +92,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
92
92
|
g.value = !1, x();
|
|
93
93
|
}), F(() => {
|
|
94
94
|
g.value = !0;
|
|
95
|
-
}), p("isRegistrationComplete", g), u({ breakPoint: e }), (n,
|
|
95
|
+
}), p("isRegistrationComplete", g), u({ breakPoint: e }), (n, s) => (k(), M("div", {
|
|
96
96
|
style: Z($.value)
|
|
97
97
|
}, [
|
|
98
98
|
E(n.$slots, "default")
|
|
@@ -114,7 +114,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
114
114
|
},
|
|
115
115
|
setup(l) {
|
|
116
116
|
const u = l, a = J(), f = d(!0), e = m("breakPoint", d("xl")), o = m("shouldHiddenIndex", d(-1));
|
|
117
|
-
|
|
117
|
+
_(
|
|
118
118
|
() => [o.value, e.value],
|
|
119
119
|
(t) => {
|
|
120
120
|
a.index && (f.value = !(t[0] !== -1 && parseInt(a.index) >= Number(t[0])));
|
|
@@ -123,24 +123,24 @@ const Y = /* @__PURE__ */ L({
|
|
|
123
123
|
);
|
|
124
124
|
const v = m("gap", 0), c = m("cols", d(4)), G = D(() => {
|
|
125
125
|
var i, h;
|
|
126
|
-
let t = ((i = u[e.value]) == null ? void 0 : i.span) ?? u.span,
|
|
126
|
+
let t = ((i = u[e.value]) == null ? void 0 : i.span) ?? u.span, r = ((h = u[e.value]) == null ? void 0 : h.offset) ?? u.offset;
|
|
127
127
|
return u.suffix ? {
|
|
128
|
-
gridColumnStart: c.value - t -
|
|
129
|
-
gridColumnEnd: `span ${t +
|
|
130
|
-
marginLeft:
|
|
128
|
+
gridColumnStart: c.value - t - r + 1,
|
|
129
|
+
gridColumnEnd: `span ${t + r}`,
|
|
130
|
+
marginLeft: r !== 0 ? `calc(((100% + ${v}px) / ${t + r}) * ${r})` : "unset"
|
|
131
131
|
} : {
|
|
132
|
-
gridColumn: `span ${t +
|
|
133
|
-
marginLeft:
|
|
132
|
+
gridColumn: `span ${t + r > c.value ? c.value : t + r}/span ${t + r > c.value ? c.value : t + r}`,
|
|
133
|
+
marginLeft: r !== 0 ? `calc(((100% + ${v}px) / ${t + r}) * ${r})` : "unset"
|
|
134
134
|
};
|
|
135
|
-
}),
|
|
135
|
+
}), C = m("gridItemData", W({})), $ = m("isMultiGrid", d(!1)), x = d(null), g = d(0), n = d(0), s = m("registerGridItem", null), I = m(
|
|
136
136
|
"getColumnData",
|
|
137
137
|
null
|
|
138
138
|
), y = m("isRegistrationComplete", d(!1)), w = () => {
|
|
139
|
-
if (x.value &&
|
|
139
|
+
if (x.value && s) {
|
|
140
140
|
const t = x.value.parentElement;
|
|
141
141
|
if (t) {
|
|
142
|
-
const
|
|
143
|
-
n.value = Math.floor(
|
|
142
|
+
const r = x.value.offsetLeft, i = t.offsetWidth / c.value;
|
|
143
|
+
n.value = Math.floor(r / i) + 1, i && s(n.value, u.label || "");
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
};
|
|
@@ -149,12 +149,12 @@ const Y = /* @__PURE__ */ L({
|
|
|
149
149
|
const t = I(n.value);
|
|
150
150
|
g.value = t.maxWidth || 0;
|
|
151
151
|
}
|
|
152
|
-
}), C
|
|
152
|
+
}), _(C, () => {
|
|
153
153
|
if (I) {
|
|
154
154
|
const t = I(n.value);
|
|
155
155
|
t.maxWidth !== g.value && (g.value = t.maxWidth);
|
|
156
156
|
}
|
|
157
|
-
}), (t,
|
|
157
|
+
}), (t, r) => Q((k(), M("div", {
|
|
158
158
|
style: Z(G.value),
|
|
159
159
|
ref_key: "gridItemRef",
|
|
160
160
|
ref: x
|
|
@@ -189,7 +189,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
189
189
|
l = W({});
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
}, ae = { class: "multi-grid" },
|
|
192
|
+
}, ae = { class: "multi-grid" }, se = /* @__PURE__ */ L({
|
|
193
193
|
name: "MultiGrid",
|
|
194
194
|
__name: "MultiGrid",
|
|
195
195
|
setup(l) {
|
|
@@ -198,9 +198,10 @@ const Y = /* @__PURE__ */ L({
|
|
|
198
198
|
E(o.$slots, "default")
|
|
199
199
|
]));
|
|
200
200
|
}
|
|
201
|
-
}), ne = A(Y), oe = A(ee), de = A(
|
|
201
|
+
}), ne = A(Y), oe = A(ee), de = A(se);
|
|
202
202
|
export {
|
|
203
203
|
oe as Z,
|
|
204
|
+
Y as _,
|
|
204
205
|
ne as a,
|
|
205
206
|
de as b
|
|
206
207
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as i, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as f } from "vue";
|
|
2
|
-
import { D as d } from "./BaseItem-
|
|
3
|
-
import { _ } from "./Button-
|
|
4
|
-
import { w as u } from "./utils-
|
|
2
|
+
import { D as d } from "./BaseItem-DcezA7sa.js";
|
|
3
|
+
import { _ } from "./Button-B2Z_WKdq.js";
|
|
4
|
+
import { w as u } from "./utils-vqG84sMo.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "info-pair--title--tip"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as Z } from "./Button-
|
|
4
|
-
import { w as k } from "./utils-
|
|
2
|
+
import { s as U } from "./vendor-MMWA2y7U.js";
|
|
3
|
+
import { _ as Z } from "./Button-B2Z_WKdq.js";
|
|
4
|
+
import { w as k } from "./utils-vqG84sMo.js";
|
|
5
5
|
const H = /* @__PURE__ */ V({
|
|
6
6
|
name: "zh-input",
|
|
7
7
|
__name: "Input",
|
|
@@ -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-B2Z_WKdq.js";
|
|
3
|
+
import { w as i } from "./utils-vqG84sMo.js";
|
|
4
4
|
const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
|
|
5
5
|
name: "zh-loading",
|
|
6
6
|
__name: "Loading",
|