zhihao-ui 1.3.61-alpha.2 → 1.3.61-alpha.4
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-DWd9fBe_.js → BaseInfo-aiVRbjTP.js} +4 -4
- package/dist/es/{BaseItem-BIgkJypI.js → BaseItem-B_4mwWHs.js} +4 -4
- package/dist/es/{Button-C39vlreJ.js → Button-BFA52ivn.js} +5 -5
- package/dist/es/{CascaderLoadMore-3c8IyUIK.js → CascaderLoadMore-C6micaqI.js} +11 -11
- package/dist/es/{DatePicker-BPxk-cae.js → DatePicker-DyqXtiRa.js} +5 -5
- package/dist/es/{DetailHeader-DayCYQYv.js → DetailHeader-pQXMyG5I.js} +11 -11
- package/dist/es/{DetailSubTitle-LdM7Vzn2.js → DetailSubTitle-B-DcaPqI.js} +5 -5
- package/dist/es/{Dialog-BVC9Lz_w.js → Dialog-BptDzN8n.js} +19 -24
- package/dist/es/{DiyDataTable-B4LomMD5.js → DiyDataTable-Bt-ZrRFy.js} +10 -10
- package/dist/es/{EditInfoPair-DKVWV5Hg.js → EditInfoPair-DCjZGPkz.js} +6 -6
- package/dist/es/{FileWrapper-B5pKpayw.js → FileWrapper-xu2XFTT8.js} +10 -10
- package/dist/es/{Grid-0ApZ4lgz.js → Grid-DEbsTV3v.js} +10 -10
- package/dist/es/{InfoPair-BIWQXLV1.js → InfoPair-B9nTZ_iX.js} +6 -6
- package/dist/es/{Input-D4Bh5SDE.js → Input-FPnMJc-X.js} +8 -8
- package/dist/es/{Loading-CjOeNl4l.js → Loading-D1OYqPWU.js} +4 -4
- package/dist/es/{Map-qSFTN8LW.js → Map-JC-tR-ga.js} +364 -354
- package/dist/es/{MessageBox-CUGnKhiO.js → MessageBox-CvwRq0Fw.js} +2 -2
- package/dist/es/{MoneyInput-C_4ls5Mc.js → MoneyInput-DJ5g8rhm.js} +14 -14
- package/dist/es/{PageHeadPanel-CnbPae_Q.js → PageHeadPanel-BV5qQLDj.js} +4 -4
- package/dist/es/{Table-CCFUdM1X.js → Table-D49FFXP7.js} +13 -13
- package/dist/es/{ToolTips-BXk9Ppfb.js → ToolTips-B9Z_U4WM.js} +5 -5
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-D7-cBAU3.js → utils-COxKH46Q.js} +1 -1
- package/dist/es/{vendor-Dz44HqMM.js → vendor-CbeG2C4c.js} +17314 -17963
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +12 -42
- package/dist/types/components/Dialog/index.d.ts +18 -63
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +368 -2
- package/dist/types/components/DiyDataTable/index.d.ts +1101 -3
- package/dist/types/components/Map/components/copyright.vue.d.ts +36 -0
- package/dist/types/components/Map/components/measure.vue.d.ts +23 -0
- package/dist/types/components/Map/components/toolPanel.vue.d.ts +40 -0
- package/dist/types/components/Map/config.d.ts +32 -0
- package/dist/types/components/Map/enum/car.d.ts +5 -0
- package/dist/types/components/Map/enum/device.d.ts +8 -0
- package/dist/types/components/Map/enum/index.d.ts +5 -0
- package/dist/types/components/Map/enum/openLayers.d.ts +10 -0
- package/dist/types/components/Map/enum/ship.d.ts +50 -0
- package/dist/types/components/Map/function/renderPolygon.d.ts +25 -0
- package/dist/types/components/Map/function/ship/label.d.ts +5 -0
- package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
- package/dist/types/components/Map/index.d.ts +9 -0
- package/dist/types/components/Map/interface/common/BaseEntity.d.ts +29 -0
- package/dist/types/components/Map/interface/common/page.d.ts +34 -0
- package/dist/types/components/Map/interface/entity/dashboard.d.ts +16 -0
- package/dist/types/components/Map/interface/entity/map.d.ts +36 -0
- package/dist/types/components/Map/interface/entity/point.d.ts +10 -0
- package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +86 -0
- package/dist/types/components/Map/interface/entity/render.d.ts +57 -0
- package/dist/types/components/Map/interface/entity/ship.d.ts +361 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +210 -0
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +27 -0
- package/dist/types/components/Map/interface/entity/shipMarker.d.ts +8 -0
- package/dist/types/components/Map/interface/entity/shipTrack.d.ts +56 -0
- package/dist/types/components/Map/interface/entity/vehicle.d.ts +345 -0
- package/dist/types/components/Map/interface/mapProps.d.ts +1 -0
- package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +15 -0
- package/dist/types/components/Map/render/canvasRender/geometry.d.ts +22 -0
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +5 -0
- package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +10 -0
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +5 -0
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +12 -0
- package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +3 -0
- package/dist/types/components/Map/render/drawPolygon.d.ts +10 -0
- package/dist/types/components/Map/render/renderDashboard.d.ts +12 -0
- package/dist/types/components/Map/render/renderMarker.d.ts +7 -0
- package/dist/types/components/Map/render/renderPoint.d.ts +80 -0
- package/dist/types/components/Map/render/renderShip.d.ts +20 -0
- package/dist/types/components/Map/render/renderTrack.d.ts +12 -0
- package/dist/types/components/Map/render/renderTruck.d.ts +10 -0
- package/dist/types/components/Map/utils/common.d.ts +27 -0
- package/dist/types/components/Map/utils/format.d.ts +10 -0
- package/dist/types/components/Map/utils/overlay.d.ts +5 -0
- package/dist/types/components/Map/utils/store.d.ts +32 -0
- package/dist/types/components/Map/utils/transform.d.ts +44 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +65 -50
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as h, ref as o, provide as n, watch as i,
|
|
2
|
-
import { _ } from "./Grid-
|
|
3
|
-
import { w as b } from "./utils-
|
|
1
|
+
import { defineComponent as h, ref as o, provide as n, watch as i, openBlock as u, createBlock as m, withCtx as p, renderSlot as W } from "vue";
|
|
2
|
+
import { _ } from "./Grid-DEbsTV3v.js";
|
|
3
|
+
import { w as b } from "./utils-COxKH46Q.js";
|
|
4
4
|
const D = /* @__PURE__ */ h({
|
|
5
5
|
name: "ZhBaseInfo",
|
|
6
6
|
__name: "BaseInfo",
|
|
@@ -35,7 +35,7 @@ const D = /* @__PURE__ */ h({
|
|
|
35
35
|
() => t.infoDirection,
|
|
36
36
|
() => d(),
|
|
37
37
|
{ immediate: !0 }
|
|
38
|
-
), (e, v) => (
|
|
38
|
+
), (e, v) => (u(), m(_, {
|
|
39
39
|
cols: e.cols,
|
|
40
40
|
gap: e.gap
|
|
41
41
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as R, useSlots as T, inject as L, computed as n, ref as M, watchEffect as A,
|
|
2
|
-
import { E as C, a as g, d as Z } from "./vendor-
|
|
3
|
-
import { Z as G } from "./Grid-
|
|
4
|
-
import { w as U } from "./utils-
|
|
1
|
+
import { defineComponent as R, useSlots as T, inject as L, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as s, withCtx as m, createElementVNode as h, normalizeClass as d, normalizeStyle as S, resolveDynamicComponent as D, createElementBlock as i, toDisplayString as o, renderSlot as V, Fragment as p, withModifiers as O, createTextVNode as f, createVNode as b, createCommentVNode as W } from "vue";
|
|
2
|
+
import { E as C, a as g, d as Z } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { Z as G } from "./Grid-DEbsTV3v.js";
|
|
4
|
+
import { w as U } from "./utils-COxKH46Q.js";
|
|
5
5
|
const y = "--", 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
6
|
key: 1,
|
|
7
7
|
class: "zh-base-item--value--file"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
2
|
-
import { b as m, c as d } from "./vendor-
|
|
3
|
-
import { w as _ } from "./utils-
|
|
1
|
+
import { defineComponent as r, openBlock as a, createBlock as p, unref as u, mergeProps as c, withCtx as l, renderSlot as i } from "vue";
|
|
2
|
+
import { b as m, c as d } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { w as _ } from "./utils-COxKH46Q.js";
|
|
4
4
|
const h = /* @__PURE__ */ r({
|
|
5
5
|
name: "ZhButton",
|
|
6
6
|
inheritAttrs: !1,
|
|
@@ -13,7 +13,7 @@ const h = /* @__PURE__ */ r({
|
|
|
13
13
|
const e = t, s = (o) => {
|
|
14
14
|
e("click", o);
|
|
15
15
|
};
|
|
16
|
-
return (o, v) => (
|
|
16
|
+
return (o, v) => (a(), p(u(m), c(o.$attrs, {
|
|
17
17
|
class: ["zh-button", { "plr-16": o.p16 }],
|
|
18
18
|
onClick: s
|
|
19
19
|
}), {
|
|
@@ -36,7 +36,7 @@ const h = /* @__PURE__ */ r({
|
|
|
36
36
|
template: { default: "" }
|
|
37
37
|
},
|
|
38
38
|
setup(n) {
|
|
39
|
-
return (t, e) => (
|
|
39
|
+
return (t, e) => (a(), p(u(d), c(t.$attrs, {
|
|
40
40
|
class: ["zh-button-group", { "operation-fix-button": t.template === "operation-fix-button" }]
|
|
41
41
|
}), {
|
|
42
42
|
default: l(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as le,
|
|
2
|
-
import { e as
|
|
3
|
-
import { w as fe } from "./utils-
|
|
1
|
+
import { defineComponent as le, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te, openBlock as g, createElementBlock as P, createVNode as F, unref as C, withCtx as V, createBlock as z, toDisplayString as oe, createCommentVNode as se, mergeProps as ne, Fragment as re, renderList as ce, mergeModels as $ } from "vue";
|
|
2
|
+
import { e as A, f as ie, g as ue, h as pe, i as de, C as ve } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { w as fe } from "./utils-COxKH46Q.js";
|
|
4
4
|
const ge = { class: "w-100" }, me = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "cascader-select-empty"
|
|
@@ -10,7 +10,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
10
10
|
}, ye = /* @__PURE__ */ le({
|
|
11
11
|
name: "CascaderLoadMore",
|
|
12
12
|
__name: "CascaderLoadMore",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ $({
|
|
14
14
|
onChange: {
|
|
15
15
|
type: Function,
|
|
16
16
|
required: !1
|
|
@@ -93,7 +93,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
93
93
|
modelValue: {},
|
|
94
94
|
modelModifiers: {}
|
|
95
95
|
}),
|
|
96
|
-
emits: /* @__PURE__ */
|
|
96
|
+
emits: /* @__PURE__ */ $(["change", "removeTag"], ["update:modelValue"]),
|
|
97
97
|
setup(c, { expose: w, emit: I }) {
|
|
98
98
|
const o = c, r = ae(c, "modelValue"), d = s(r.value || []), v = s(!1), i = s({
|
|
99
99
|
page: 1,
|
|
@@ -205,7 +205,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
205
205
|
options: p,
|
|
206
206
|
cascderOptions: n
|
|
207
207
|
}), (e, l) => te((g(), P("div", ge, [
|
|
208
|
-
|
|
208
|
+
F(C(ie), {
|
|
209
209
|
ref_key: "popoverRef",
|
|
210
210
|
ref: q,
|
|
211
211
|
teleported: c.teleported,
|
|
@@ -215,7 +215,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
215
215
|
visible: v.value
|
|
216
216
|
}, {
|
|
217
217
|
reference: V(() => [
|
|
218
|
-
|
|
218
|
+
F(C(pe), ne({
|
|
219
219
|
ref_key: "remoteSelectRef",
|
|
220
220
|
ref: x,
|
|
221
221
|
modelValue: r.value,
|
|
@@ -240,7 +240,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
240
240
|
onRemoveTag: J
|
|
241
241
|
}), {
|
|
242
242
|
default: V(() => [
|
|
243
|
-
(g(!0), P(re, null, ce(p.value, (a) => (g(),
|
|
243
|
+
(g(!0), P(re, null, ce(p.value, (a) => (g(), z(C(de), {
|
|
244
244
|
key: a.value,
|
|
245
245
|
label: a.label,
|
|
246
246
|
value: a.value
|
|
@@ -250,7 +250,7 @@ const ge = { class: "w-100" }, me = {
|
|
|
250
250
|
}, 16, ["modelValue", "multiple", "placeholder", "clearable", "collapse-tags", "collapse-tags-tooltip"])
|
|
251
251
|
]),
|
|
252
252
|
default: V(() => [
|
|
253
|
-
!O.value && n.value.length > 0 ? (g(),
|
|
253
|
+
!O.value && n.value.length > 0 ? (g(), z(C(ue), {
|
|
254
254
|
key: 0,
|
|
255
255
|
modelValue: d.value,
|
|
256
256
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => d.value = a),
|
|
@@ -259,8 +259,8 @@ const ge = { class: "w-100" }, me = {
|
|
|
259
259
|
options: n.value,
|
|
260
260
|
class: "select-cascader-panel",
|
|
261
261
|
onChange: Y
|
|
262
|
-
}, null, 8, ["modelValue", "options"])) : (g(), P("div", me,
|
|
263
|
-
k.value ? (g(), P("div", he, "加载中...")) :
|
|
262
|
+
}, null, 8, ["modelValue", "options"])) : (g(), P("div", me, oe(c.noDataText), 1)),
|
|
263
|
+
k.value ? (g(), P("div", he, "加载中...")) : se("", !0)
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
266
266
|
}, 8, ["teleported", "placement", "trigger", "popper-class", "visible"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u,
|
|
2
|
-
import { j as T, k as y } from "./vendor-
|
|
3
|
-
import { D as m, a as b, L as p, b as k } from "./BaseItem-
|
|
4
|
-
import { w as E } from "./utils-
|
|
1
|
+
import { defineComponent as u, openBlock as f, createElementBlock as h, normalizeClass as D, createVNode as g, unref as _, mergeProps as A } from "vue";
|
|
2
|
+
import { j as T, k as y } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { D as m, a as b, L as p, b as k } from "./BaseItem-B_4mwWHs.js";
|
|
4
|
+
import { w as E } from "./utils-COxKH46Q.js";
|
|
5
5
|
const d = (e, l = b) => e ? T(e).format(l).replace("Invalid date", m) : m, P = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
|
|
6
6
|
function U(e) {
|
|
7
7
|
const l = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
|
|
@@ -42,7 +42,7 @@ const M = /* @__PURE__ */ u({
|
|
|
42
42
|
const c = (/* @__PURE__ */ new Date()).getTime();
|
|
43
43
|
return new Date(t).getTime() > c;
|
|
44
44
|
};
|
|
45
|
-
return (t, c) => (
|
|
45
|
+
return (t, c) => (f(), h("div", {
|
|
46
46
|
class: D([r.class, "zh-date-picker"])
|
|
47
47
|
}, [
|
|
48
48
|
g(_(y), A({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as p, useSlots as _,
|
|
2
|
-
import { D as v } from "./BaseItem-
|
|
3
|
-
import { _ as k } from "./Button-
|
|
4
|
-
import { w as y } from "./utils-
|
|
1
|
+
import { defineComponent as p, useSlots as _, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as D, createCommentVNode as g } from "vue";
|
|
2
|
+
import { D as v } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { _ as k } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as y } from "./utils-COxKH46Q.js";
|
|
5
5
|
const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class: "detail-header--left" }, H = { class: "title common-title" }, M = { class: "info-pair--label" }, $ = { class: "info-pair--value" }, C = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "detail-header--right"
|
|
@@ -19,7 +19,7 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
19
19
|
const h = _(), r = f;
|
|
20
20
|
return (e, w) => {
|
|
21
21
|
var d, c;
|
|
22
|
-
return
|
|
22
|
+
return a(), o("div", I, [
|
|
23
23
|
t("div", null, [
|
|
24
24
|
l(e.$slots, "menu", {}, void 0, !0)
|
|
25
25
|
]),
|
|
@@ -27,7 +27,7 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
27
27
|
t("div", E, [
|
|
28
28
|
t("div", H, i(r.title), 1),
|
|
29
29
|
l(e.$slots, "extra-info", {}, void 0, !0),
|
|
30
|
-
(
|
|
30
|
+
(a(!0), o(m, null, u(r.leftInfos, (s) => (a(), o("div", {
|
|
31
31
|
class: "info-pair",
|
|
32
32
|
key: s.value
|
|
33
33
|
}, [
|
|
@@ -36,18 +36,18 @@ const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class:
|
|
|
36
36
|
]))), 128))
|
|
37
37
|
]),
|
|
38
38
|
l(e.$slots, "default", {}, void 0, !0),
|
|
39
|
-
n(h)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (
|
|
40
|
-
(
|
|
39
|
+
n(h)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", C, [
|
|
40
|
+
(a(!0), o(m, null, u(r.rightInfos, (s) => (a(), o("div", {
|
|
41
41
|
class: "info-pair",
|
|
42
42
|
key: s.value
|
|
43
43
|
}, [
|
|
44
44
|
t("div", L, i(s.label), 1),
|
|
45
45
|
t("div", S, i(s.value ?? n(v)), 1)
|
|
46
46
|
]))), 128)),
|
|
47
|
-
e.stateDesc || e.stateMeta ? (
|
|
47
|
+
e.stateDesc || e.stateMeta ? (a(), o("div", {
|
|
48
48
|
key: 0,
|
|
49
|
-
class:
|
|
50
|
-
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) :
|
|
49
|
+
class: D(["state common-title", (d = e.stateMeta) == null ? void 0 : d.state])
|
|
50
|
+
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) : g("", !0)
|
|
51
51
|
]))
|
|
52
52
|
])
|
|
53
53
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
2
|
-
import { D as u } from "./BaseItem-
|
|
3
|
-
import { w as f } from "./utils-
|
|
1
|
+
import { defineComponent as r, openBlock as o, createElementBlock as s, createElementVNode as l, createTextVNode as a, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as d } from "vue";
|
|
2
|
+
import { D as u } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { w as f } from "./utils-COxKH46Q.js";
|
|
4
4
|
const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "info-pair--title--tip"
|
|
@@ -15,10 +15,10 @@ const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
|
15
15
|
},
|
|
16
16
|
setup(n) {
|
|
17
17
|
const i = n;
|
|
18
|
-
return (e, E) => (
|
|
18
|
+
return (e, E) => (o(), s("div", _, [
|
|
19
19
|
l("div", v, [
|
|
20
20
|
a(t(i.title) + " ", 1),
|
|
21
|
-
e.tip ? (
|
|
21
|
+
e.tip ? (o(), s("div", h, t(e.tip), 1)) : p("", !0)
|
|
22
22
|
]),
|
|
23
23
|
l("div", {
|
|
24
24
|
class: c(["info-pair--value", { ellipsis: e.ellipsis }])
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as k,
|
|
2
|
-
import { Z as f } from "./Button-
|
|
3
|
-
import { l as E } from "./vendor-
|
|
4
|
-
import { w as I } from "./utils-
|
|
1
|
+
import { defineComponent as k, useModel as w, computed as T, openBlock as r, createBlock as v, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as m, toDisplayString as l, createElementBlock as Z, createCommentVNode as z, mergeModels as p } from "vue";
|
|
2
|
+
import { Z as f } from "./Button-BFA52ivn.js";
|
|
3
|
+
import { l as E } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { w as I } from "./utils-COxKH46Q.js";
|
|
5
5
|
const N = { class: "title" }, O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sub-title"
|
|
8
|
-
},
|
|
8
|
+
}, S = { class: "zh-dialog__footer" }, _ = /* @__PURE__ */ k({
|
|
9
9
|
name: "ZhDialog",
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "Dialog",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ p({
|
|
13
13
|
title: {},
|
|
14
14
|
subTitle: {},
|
|
15
15
|
cancelButtonText: { default: "取消" },
|
|
@@ -25,19 +25,14 @@ const N = { class: "title" }, O = {
|
|
|
25
25
|
closeOnPressEscape: { type: Boolean },
|
|
26
26
|
lockScroll: { type: Boolean },
|
|
27
27
|
modal: { type: Boolean },
|
|
28
|
-
modalPenetrable: { type: Boolean },
|
|
29
28
|
openDelay: {},
|
|
30
29
|
closeDelay: {},
|
|
31
30
|
top: {},
|
|
32
31
|
modelValue: { type: Boolean },
|
|
33
32
|
modalClass: {},
|
|
34
|
-
headerClass: {},
|
|
35
|
-
bodyClass: {},
|
|
36
|
-
footerClass: {},
|
|
37
33
|
zIndex: {},
|
|
38
34
|
trapFocus: { type: Boolean },
|
|
39
35
|
headerAriaLevel: {},
|
|
40
|
-
transition: {},
|
|
41
36
|
center: { type: Boolean },
|
|
42
37
|
alignCenter: { type: Boolean },
|
|
43
38
|
closeIcon: {},
|
|
@@ -50,7 +45,7 @@ const N = { class: "title" }, O = {
|
|
|
50
45
|
modelValue: { type: Boolean, default: !0 },
|
|
51
46
|
modelModifiers: {}
|
|
52
47
|
}),
|
|
53
|
-
emits: /* @__PURE__ */
|
|
48
|
+
emits: /* @__PURE__ */ p(["submit", "close"], ["update:modelValue"]),
|
|
54
49
|
setup(n, { emit: B }) {
|
|
55
50
|
const t = n, d = w(n, "modelValue"), a = B, y = () => {
|
|
56
51
|
a("close");
|
|
@@ -58,33 +53,33 @@ const N = { class: "title" }, O = {
|
|
|
58
53
|
a("submit");
|
|
59
54
|
}, C = () => {
|
|
60
55
|
a("close");
|
|
61
|
-
},
|
|
56
|
+
}, g = {
|
|
62
57
|
small: "400px",
|
|
63
58
|
middle: "600px",
|
|
64
59
|
large: "800px",
|
|
65
60
|
extraLarge: "920px"
|
|
66
|
-
},
|
|
67
|
-
return (e, i) => (
|
|
61
|
+
}, b = T(() => t.width ? t.width : g[t.size]);
|
|
62
|
+
return (e, i) => (r(), v(D(E), M({
|
|
68
63
|
modelValue: d.value,
|
|
69
64
|
"onUpdate:modelValue": i[0] || (i[0] = (V) => d.value = V),
|
|
70
65
|
class: "zh-dialog"
|
|
71
66
|
}, e.$attrs, {
|
|
72
|
-
width:
|
|
67
|
+
width: b.value,
|
|
73
68
|
"close-on-click-modal": e.closeOnClickModal,
|
|
74
69
|
onClose: C
|
|
75
70
|
}), {
|
|
76
71
|
header: o(() => [
|
|
77
72
|
s(e.$slots, "header", {}, () => [
|
|
78
|
-
|
|
79
|
-
e.subTitle ? (
|
|
73
|
+
c("div", N, l(e.title), 1),
|
|
74
|
+
e.subTitle ? (r(), Z("div", O, l(e.subTitle), 1)) : z("", !0)
|
|
80
75
|
])
|
|
81
76
|
]),
|
|
82
77
|
footer: o(() => [
|
|
83
78
|
s(e.$slots, "footer", {}, () => [
|
|
84
|
-
|
|
79
|
+
c("div", S, [
|
|
85
80
|
u(f, { onClick: y }, {
|
|
86
81
|
default: o(() => [
|
|
87
|
-
|
|
82
|
+
m(l(e.cancelButtonText), 1)
|
|
88
83
|
]),
|
|
89
84
|
_: 1
|
|
90
85
|
}),
|
|
@@ -94,7 +89,7 @@ const N = { class: "title" }, O = {
|
|
|
94
89
|
onClick: h
|
|
95
90
|
}, {
|
|
96
91
|
default: o(() => [
|
|
97
|
-
|
|
92
|
+
m(l(e.confirmButtonText), 1)
|
|
98
93
|
]),
|
|
99
94
|
_: 1
|
|
100
95
|
}, 8, ["disabled"])
|
|
@@ -107,8 +102,8 @@ const N = { class: "title" }, O = {
|
|
|
107
102
|
_: 3
|
|
108
103
|
}, 16, ["modelValue", "width", "close-on-click-modal"]));
|
|
109
104
|
}
|
|
110
|
-
}),
|
|
105
|
+
}), P = I(_);
|
|
111
106
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
P as Z,
|
|
108
|
+
_
|
|
114
109
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K,
|
|
2
|
-
import { D as F } from "./BaseItem-
|
|
3
|
-
import { m as V,
|
|
4
|
-
import { _ as oe } from "./Button-
|
|
5
|
-
import { w as le } from "./utils-
|
|
1
|
+
import { defineComponent as K, useModel as j, ref as E, computed as G, openBlock as s, createBlock as m, unref as u, withCtx as f, createVNode as R, mergeProps as J, createCommentVNode as x, createElementBlock as v, Fragment as A, renderList as Q, normalizeClass as S, toDisplayString as C, renderSlot as T, createTextVNode as D, createElementVNode as k, mergeModels as Y } from "vue";
|
|
2
|
+
import { D as F } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { m as V, e as N, n as ee, o as te, p as _, q as L, r as ae, s as I, b as U } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { _ as oe } from "./Button-BFA52ivn.js";
|
|
5
|
+
import { w as le } from "./utils-COxKH46Q.js";
|
|
6
6
|
var w = /* @__PURE__ */ ((h) => (h.AUTOCOMPLETE = "autocomplete", h.FORMAT = "format", h.TEXT = "text", h.INDEX = "index", h))(w || {});
|
|
7
7
|
const re = { key: 0 }, de = {
|
|
8
8
|
key: 1,
|
|
@@ -10,7 +10,7 @@ const re = { key: 0 }, de = {
|
|
|
10
10
|
}, ie = ["onClick"], se = { key: 0 }, ne = { class: "header-operation-container" }, ue = { class: "operation-container" }, pe = ["onClick"], H = "$ZH_DIV$", fe = /* @__PURE__ */ K({
|
|
11
11
|
name: "zh-diy-data-table",
|
|
12
12
|
__name: "DiyDataTable",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ Y({
|
|
14
14
|
isEdit: { type: Boolean, default: !1 },
|
|
15
15
|
maxRowLength: { default: 50 },
|
|
16
16
|
maxColLength: { default: 10 },
|
|
@@ -28,14 +28,14 @@ const re = { key: 0 }, de = {
|
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:rawData"],
|
|
30
30
|
setup(h, { expose: q }) {
|
|
31
|
-
const r = h, n =
|
|
31
|
+
const r = h, n = j(h, "rawData"), d = E([]), g = E({
|
|
32
32
|
isShow: !0,
|
|
33
33
|
width: 150,
|
|
34
34
|
customAddRow: !0,
|
|
35
35
|
addRowText: "增行",
|
|
36
36
|
customAddColumn: !0,
|
|
37
37
|
addColumnText: "增列"
|
|
38
|
-
}), c =
|
|
38
|
+
}), c = G(() => r.operationOption ? {
|
|
39
39
|
...g.value,
|
|
40
40
|
...r.operationOption || {}
|
|
41
41
|
} : {
|
|
@@ -218,7 +218,7 @@ const re = { key: 0 }, de = {
|
|
|
218
218
|
ref: b
|
|
219
219
|
}, {
|
|
220
220
|
default: f(() => [
|
|
221
|
-
R(u(te),
|
|
221
|
+
R(u(te), J({ data: n.value }, t.$attrs), {
|
|
222
222
|
default: f(() => [
|
|
223
223
|
y.value.isShow ? (s(), m(u(_), {
|
|
224
224
|
key: 0,
|
|
@@ -228,7 +228,7 @@ const re = { key: 0 }, de = {
|
|
|
228
228
|
minWidth: y.value.minWidth,
|
|
229
229
|
fixed: y.value.fixed
|
|
230
230
|
}, null, 8, ["type", "label", "width", "minWidth", "fixed"])) : x("", !0),
|
|
231
|
-
(s(!0), v(A, null,
|
|
231
|
+
(s(!0), v(A, null, Q(d.value, (e, l) => (s(), m(u(_), {
|
|
232
232
|
key: e.key || l,
|
|
233
233
|
prop: e.prop,
|
|
234
234
|
label: e.label,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as l,
|
|
2
|
-
import { D as f } from "./BaseItem-
|
|
3
|
-
import { _ } from "./Button-
|
|
4
|
-
import { w as u } from "./utils-
|
|
1
|
+
import { defineComponent as l, openBlock as o, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as d, unref as m } from "vue";
|
|
2
|
+
import { D as f } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { _ } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as u } from "./utils-COxKH46Q.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "info-pair--title--tip"
|
|
@@ -16,10 +16,10 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
|
|
|
16
16
|
},
|
|
17
17
|
setup(n) {
|
|
18
18
|
const i = n;
|
|
19
|
-
return (e, k) => (
|
|
19
|
+
return (e, k) => (o(), s("div", v, [
|
|
20
20
|
a("div", h, [
|
|
21
21
|
r(t(i.title) + " ", 1),
|
|
22
|
-
e.tip ? (
|
|
22
|
+
e.tip ? (o(), s("div", E, t(e.tip), 1)) : p("", !0)
|
|
23
23
|
]),
|
|
24
24
|
a("div", {
|
|
25
25
|
class: c(["info-pair--value", { ellipsis: e.ellipsis }])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as f,
|
|
2
|
-
import { D as w } from "./BaseItem-
|
|
3
|
-
import { E as y } from "./vendor-
|
|
4
|
-
import { _ as h } from "./Button-
|
|
5
|
-
import { w as v } from "./utils-
|
|
1
|
+
import { defineComponent as f, openBlock as i, createElementBlock as o, toDisplayString as n, createCommentVNode as s, createElementVNode as t, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
|
|
2
|
+
import { D as w } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { E as y } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { _ as h } from "./Button-BFA52ivn.js";
|
|
5
|
+
import { w as v } from "./utils-COxKH46Q.js";
|
|
6
6
|
const k = { class: "file_wrapper" }, x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "header"
|
|
@@ -40,14 +40,14 @@ const k = { class: "file_wrapper" }, x = {
|
|
|
40
40
|
const e = a, d = r, c = () => {
|
|
41
41
|
e.canDelete && d("deleteFile", e.fileId);
|
|
42
42
|
};
|
|
43
|
-
return (L, l) => (
|
|
44
|
-
e.title ? (
|
|
43
|
+
return (L, l) => (i(), o("div", k, [
|
|
44
|
+
e.title ? (i(), o("div", x, n(e.title), 1)) : s("", !0),
|
|
45
45
|
t("div", F, [
|
|
46
46
|
t("div", N, [
|
|
47
47
|
l[0] || (l[0] = t("div", { class: "file_type mr-12" }, [
|
|
48
48
|
t("i", { class: "iconfont icon-xiangmuguanli" })
|
|
49
49
|
], -1)),
|
|
50
|
-
t("div", g,
|
|
50
|
+
t("div", g, n(e.fileName), 1)
|
|
51
51
|
]),
|
|
52
52
|
p(m(y), {
|
|
53
53
|
size: "small",
|
|
@@ -63,11 +63,11 @@ const k = { class: "file_wrapper" }, x = {
|
|
|
63
63
|
])),
|
|
64
64
|
_: 1
|
|
65
65
|
}, 8, ["href"]),
|
|
66
|
-
a.canDelete ? (
|
|
66
|
+
a.canDelete ? (i(), o("i", {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "iconfont icon-close close",
|
|
69
69
|
onClick: c
|
|
70
|
-
})) :
|
|
70
|
+
})) : s("", !0)
|
|
71
71
|
])
|
|
72
72
|
]));
|
|
73
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, onBeforeMount as H,
|
|
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-D49FFXP7.js";
|
|
3
|
+
import { w as A } from "./utils-COxKH46Q.js";
|
|
4
4
|
const Y = /* @__PURE__ */ L({
|
|
5
5
|
name: "Grid",
|
|
6
6
|
__name: "Grid",
|
|
@@ -14,12 +14,12 @@ const Y = /* @__PURE__ */ L({
|
|
|
14
14
|
const a = l;
|
|
15
15
|
H(() => a.collapsed && G()), P(() => {
|
|
16
16
|
f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
|
|
17
|
-
}), U(() => {
|
|
18
|
-
f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
|
|
19
17
|
}), N(() => {
|
|
20
|
-
window.
|
|
18
|
+
f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
|
|
21
19
|
}), T(() => {
|
|
22
20
|
window.removeEventListener("resize", f);
|
|
21
|
+
}), O(() => {
|
|
22
|
+
window.removeEventListener("resize", f);
|
|
23
23
|
});
|
|
24
24
|
const f = (n) => {
|
|
25
25
|
let s = n.target.innerWidth;
|
|
@@ -48,7 +48,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
48
48
|
p("shouldHiddenIndex", o);
|
|
49
49
|
const v = D(() => typeof a.cols == "object" ? a.cols[e.value] ?? a.cols : a.cols);
|
|
50
50
|
p("cols", v);
|
|
51
|
-
const c =
|
|
51
|
+
const c = U().default(), G = () => {
|
|
52
52
|
var y, w, t, r;
|
|
53
53
|
let n = [], s = null;
|
|
54
54
|
c.forEach((i) => {
|
|
@@ -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, s) => (
|
|
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")
|
|
@@ -154,7 +154,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
154
154
|
const t = I(n.value);
|
|
155
155
|
t.maxWidth !== g.value && (g.value = t.maxWidth);
|
|
156
156
|
}
|
|
157
|
-
}), (t, r) => Q((
|
|
157
|
+
}), (t, r) => Q((k(), M("div", {
|
|
158
158
|
style: Z(G.value),
|
|
159
159
|
ref_key: "gridItemRef",
|
|
160
160
|
ref: x
|
|
@@ -194,7 +194,7 @@ const Y = /* @__PURE__ */ L({
|
|
|
194
194
|
__name: "MultiGrid",
|
|
195
195
|
setup(l) {
|
|
196
196
|
const { getColumnData: u, registerGridItem: a, clearGridItemData: f, gridItemData: e } = te();
|
|
197
|
-
return p("registerGridItem", a), p("getColumnData", u), p("clearGridItemData", f), p("gridItemData", e), p("isMultiGrid", d(!0)), (o, v) => (
|
|
197
|
+
return p("registerGridItem", a), p("getColumnData", u), p("clearGridItemData", f), p("gridItemData", e), p("isMultiGrid", d(!0)), (o, v) => (k(), M("div", ae, [
|
|
198
198
|
E(o.$slots, "default")
|
|
199
199
|
]));
|
|
200
200
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as l,
|
|
2
|
-
import { D as d } from "./BaseItem-
|
|
3
|
-
import { _ } from "./Button-
|
|
4
|
-
import { w as u } from "./utils-
|
|
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-B_4mwWHs.js";
|
|
3
|
+
import { _ } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as u } from "./utils-COxKH46Q.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"
|
|
@@ -16,10 +16,10 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
|
|
|
16
16
|
},
|
|
17
17
|
setup(n) {
|
|
18
18
|
const o = n;
|
|
19
|
-
return (e, k) => (
|
|
19
|
+
return (e, k) => (i(), s("div", v, [
|
|
20
20
|
a("div", h, [
|
|
21
21
|
r(t(o.title) + " ", 1),
|
|
22
|
-
e.tip ? (
|
|
22
|
+
e.tip ? (i(), s("div", I, t(e.tip), 1)) : p("", !0)
|
|
23
23
|
]),
|
|
24
24
|
a("div", {
|
|
25
25
|
class: c(["info-pair--value", { ellipsis: e.ellipsis }])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as V,
|
|
2
|
-
import { s as U } from "./vendor-
|
|
3
|
-
import { _ as Z } from "./Button-
|
|
4
|
-
import { w as k } from "./utils-
|
|
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-CbeG2C4c.js";
|
|
3
|
+
import { _ as Z } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as k } from "./utils-COxKH46Q.js";
|
|
5
5
|
const H = /* @__PURE__ */ V({
|
|
6
6
|
name: "zh-input",
|
|
7
7
|
__name: "Input",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ j({
|
|
9
9
|
style: {},
|
|
10
10
|
class: { default: "zh-default-input" },
|
|
11
11
|
size: { default: "default" },
|
|
@@ -16,10 +16,10 @@ const H = /* @__PURE__ */ V({
|
|
|
16
16
|
}),
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(d) {
|
|
19
|
-
const o = v(), a = d, s =
|
|
19
|
+
const o = v(), a = d, s = E(d, "modelValue"), l = () => {
|
|
20
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
21
|
};
|
|
22
|
-
return (m, c) => (
|
|
22
|
+
return (m, c) => (I(), z("div", {
|
|
23
23
|
class: S(a.class)
|
|
24
24
|
}, [
|
|
25
25
|
$(N(U), x(m.$attrs, {
|
|
@@ -62,7 +62,7 @@ const H = /* @__PURE__ */ V({
|
|
|
62
62
|
}, f = (t) => {
|
|
63
63
|
s("change", r(t));
|
|
64
64
|
};
|
|
65
|
-
return (t, n) => (
|
|
65
|
+
return (t, n) => (I(), z("div", {
|
|
66
66
|
class: S(["input-number", a.class]),
|
|
67
67
|
style: A(a.style)
|
|
68
68
|
}, [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
2
|
-
import { _ as e } from "./Button-
|
|
3
|
-
import { w as i } from "./utils-
|
|
1
|
+
import { defineComponent as t, openBlock as s, createElementBlock as a, createElementVNode as o } from "vue";
|
|
2
|
+
import { _ as e } from "./Button-BFA52ivn.js";
|
|
3
|
+
import { w as i } from "./utils-COxKH46Q.js";
|
|
4
4
|
const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
|
|
5
5
|
name: "zh-loading",
|
|
6
6
|
__name: "Loading",
|
|
7
7
|
setup(p) {
|
|
8
|
-
return (_, n) => (
|
|
8
|
+
return (_, n) => (s(), a("div", d, n[0] || (n[0] = [
|
|
9
9
|
o("div", { class: "loading-wrap" }, [
|
|
10
10
|
o("span", { class: "dot dot-spin" }, [
|
|
11
11
|
o("i"),
|