zhihao-ui 1.3.61-alpha.1 → 1.3.61-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-aiVRbjTP.js → BaseInfo-DWd9fBe_.js} +4 -4
- package/dist/es/{BaseItem-B_4mwWHs.js → BaseItem-BIgkJypI.js} +4 -4
- package/dist/es/{Button-BFA52ivn.js → Button-C39vlreJ.js} +5 -5
- package/dist/es/{CascaderLoadMore-C6micaqI.js → CascaderLoadMore-3c8IyUIK.js} +11 -11
- package/dist/es/{DatePicker-DyqXtiRa.js → DatePicker-BPxk-cae.js} +5 -5
- package/dist/es/{DetailHeader-pQXMyG5I.js → DetailHeader-DayCYQYv.js} +11 -11
- package/dist/es/{DetailSubTitle-B-DcaPqI.js → DetailSubTitle-LdM7Vzn2.js} +5 -5
- package/dist/es/{Dialog-BptDzN8n.js → Dialog-BVC9Lz_w.js} +24 -19
- package/dist/es/{DiyDataTable-Bt-ZrRFy.js → DiyDataTable-B4LomMD5.js} +10 -10
- package/dist/es/{EditInfoPair-DCjZGPkz.js → EditInfoPair-DKVWV5Hg.js} +6 -6
- package/dist/es/{FileWrapper-xu2XFTT8.js → FileWrapper-B5pKpayw.js} +10 -10
- package/dist/es/{Grid-DEbsTV3v.js → Grid-0ApZ4lgz.js} +10 -10
- package/dist/es/{InfoPair-B9nTZ_iX.js → InfoPair-BIWQXLV1.js} +6 -6
- package/dist/es/{Input-FPnMJc-X.js → Input-D4Bh5SDE.js} +8 -8
- package/dist/es/{Loading-D1OYqPWU.js → Loading-CjOeNl4l.js} +4 -4
- package/dist/es/Map-qSFTN8LW.js +2464 -0
- package/dist/es/{MessageBox-CvwRq0Fw.js → MessageBox-CUGnKhiO.js} +2 -2
- package/dist/es/{MoneyInput-DJ5g8rhm.js → MoneyInput-C_4ls5Mc.js} +14 -14
- package/dist/es/{PageHeadPanel-BV5qQLDj.js → PageHeadPanel-CnbPae_Q.js} +4 -4
- package/dist/es/{Table-D49FFXP7.js → Table-CCFUdM1X.js} +13 -13
- package/dist/es/{ToolTips-B9Z_U4WM.js → ToolTips-BXk9Ppfb.js} +5 -5
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-COxKH46Q.js → utils-D7-cBAU3.js} +1 -1
- package/dist/es/{vendor-CbeG2C4c.js → vendor-Dz44HqMM.js} +17957 -17308
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +42 -12
- package/dist/types/components/Dialog/index.d.ts +63 -18
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +2 -368
- package/dist/types/components/DiyDataTable/index.d.ts +3 -1101
- package/dist/types/components/Map/Map.vue.d.ts +26 -0
- package/dist/types/components/Map/function/ship/index.d.ts +1 -1
- package/dist/types/components/Map/index.d.ts +93 -6
- package/dist/types/components/Map/interface/mapProps.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +51 -66
- package/package.json +1 -1
- package/dist/es/Map-B7b_QqZC.js +0 -2446
- package/dist/types/components/Map/components/copyright.vue.d.ts +0 -36
- package/dist/types/components/Map/components/measure.vue.d.ts +0 -23
- package/dist/types/components/Map/components/toolPanel.vue.d.ts +0 -40
- package/dist/types/components/Map/config.d.ts +0 -32
- package/dist/types/components/Map/enum/car.d.ts +0 -5
- package/dist/types/components/Map/enum/device.d.ts +0 -8
- package/dist/types/components/Map/enum/index.d.ts +0 -5
- package/dist/types/components/Map/enum/openLayers.d.ts +0 -10
- package/dist/types/components/Map/enum/ship.d.ts +0 -50
- package/dist/types/components/Map/function/renderPolygon.d.ts +0 -25
- package/dist/types/components/Map/function/ship/label.d.ts +0 -5
- package/dist/types/components/Map/function/shipTrack.d.ts +0 -16
- package/dist/types/components/Map/interface/common/BaseEntity.d.ts +0 -29
- package/dist/types/components/Map/interface/common/page.d.ts +0 -34
- package/dist/types/components/Map/interface/entity/dashboard.d.ts +0 -16
- package/dist/types/components/Map/interface/entity/map.d.ts +0 -36
- package/dist/types/components/Map/interface/entity/point.d.ts +0 -10
- package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +0 -86
- package/dist/types/components/Map/interface/entity/render.d.ts +0 -57
- package/dist/types/components/Map/interface/entity/ship.d.ts +0 -361
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +0 -210
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +0 -27
- package/dist/types/components/Map/interface/entity/shipMarker.d.ts +0 -8
- package/dist/types/components/Map/interface/entity/shipTrack.d.ts +0 -56
- package/dist/types/components/Map/interface/entity/vehicle.d.ts +0 -345
- package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +0 -20
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +0 -15
- package/dist/types/components/Map/render/canvasRender/geometry.d.ts +0 -22
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +0 -5
- package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +0 -10
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +0 -5
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +0 -12
- package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +0 -3
- package/dist/types/components/Map/render/drawPolygon.d.ts +0 -10
- package/dist/types/components/Map/render/renderDashboard.d.ts +0 -12
- package/dist/types/components/Map/render/renderMarker.d.ts +0 -7
- package/dist/types/components/Map/render/renderPoint.d.ts +0 -80
- package/dist/types/components/Map/render/renderShip.d.ts +0 -20
- package/dist/types/components/Map/render/renderTrack.d.ts +0 -12
- package/dist/types/components/Map/render/renderTruck.d.ts +0 -10
- package/dist/types/components/Map/utils/common.d.ts +0 -27
- package/dist/types/components/Map/utils/format.d.ts +0 -10
- package/dist/types/components/Map/utils/overlay.d.ts +0 -5
- package/dist/types/components/Map/utils/store.d.ts +0 -32
- package/dist/types/components/Map/utils/transform.d.ts +0 -44
|
@@ -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, createBlock as u, openBlock as m, withCtx as p, renderSlot as W } from "vue";
|
|
2
|
+
import { _ } from "./Grid-0ApZ4lgz.js";
|
|
3
|
+
import { w as b } from "./utils-D7-cBAU3.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) => (m(), u(_, {
|
|
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, createBlock as u, openBlock as t, unref as s, withCtx as m, createElementVNode as h, normalizeClass as d, normalizeStyle as S, createElementBlock as i, resolveDynamicComponent as D, toDisplayString as o, renderSlot as V, Fragment as p, withModifiers as O, createTextVNode as f, createCommentVNode as W, createVNode as b } from "vue";
|
|
2
|
+
import { E as C, a as g, d as Z } from "./vendor-Dz44HqMM.js";
|
|
3
|
+
import { Z as G } from "./Grid-0ApZ4lgz.js";
|
|
4
|
+
import { w as U } from "./utils-D7-cBAU3.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, createBlock as a, openBlock 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-Dz44HqMM.js";
|
|
3
|
+
import { w as _ } from "./utils-D7-cBAU3.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) => (p(), a(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) => (p(), a(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, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te,
|
|
2
|
-
import { e as
|
|
3
|
-
import { w as fe } from "./utils-
|
|
1
|
+
import { defineComponent as le, mergeModels as F, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te, createElementBlock as P, openBlock as g, createVNode as z, unref as C, withCtx as V, createBlock as $, createCommentVNode as oe, toDisplayString as se, mergeProps as ne, Fragment as re, renderList as ce } from "vue";
|
|
2
|
+
import { e as ie, f as ue, g as pe, h as de, C as ve, i as A } from "./vendor-Dz44HqMM.js";
|
|
3
|
+
import { w as fe } from "./utils-D7-cBAU3.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__ */ F({
|
|
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__ */ F(["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
|
+
z(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
|
+
z(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(), $(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(), $(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, se(c.noDataText), 1)),
|
|
263
|
+
k.value ? (g(), P("div", he, "加载中...")) : oe("", !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, createElementBlock as f, openBlock 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-Dz44HqMM.js";
|
|
3
|
+
import { D as m, a as b, L as p, b as k } from "./BaseItem-BIgkJypI.js";
|
|
4
|
+
import { w as E } from "./utils-D7-cBAU3.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) => (h(), f("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 _, createElementBlock as a, openBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, createCommentVNode as D, normalizeClass as g } from "vue";
|
|
2
|
+
import { D as v } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { _ as k } from "./Button-C39vlreJ.js";
|
|
4
|
+
import { w as y } from "./utils-D7-cBAU3.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 o(), a("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
|
+
(o(!0), a(m, null, u(r.leftInfos, (s) => (o(), a("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) : (o(), a("div", C, [
|
|
40
|
+
(o(!0), a(m, null, u(r.rightInfos, (s) => (o(), a("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 ? (o(), a("div", {
|
|
48
48
|
key: 0,
|
|
49
|
-
class:
|
|
50
|
-
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) :
|
|
49
|
+
class: g(["state common-title", (d = e.stateMeta) == null ? void 0 : d.state])
|
|
50
|
+
}, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) : D("", !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, createElementBlock as o, openBlock as s, createElementVNode as l, createTextVNode as a, createCommentVNode as p, toDisplayString as t, normalizeClass as c, renderSlot as m, unref as d } from "vue";
|
|
2
|
+
import { D as u } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { w as f } from "./utils-D7-cBAU3.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) => (s(), o("div", _, [
|
|
19
19
|
l("div", v, [
|
|
20
20
|
a(t(i.title) + " ", 1),
|
|
21
|
-
e.tip ? (
|
|
21
|
+
e.tip ? (s(), o("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, useModel as w, computed as T,
|
|
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, mergeModels as r, useModel as w, computed as T, createBlock as v, openBlock as c, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as m, createVNode as u, createTextVNode as p, toDisplayString as l, createElementBlock as Z, createCommentVNode as z } from "vue";
|
|
2
|
+
import { Z as f } from "./Button-C39vlreJ.js";
|
|
3
|
+
import { l as E } from "./vendor-Dz44HqMM.js";
|
|
4
|
+
import { w as I } from "./utils-D7-cBAU3.js";
|
|
5
5
|
const N = { class: "title" }, O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sub-title"
|
|
8
|
-
},
|
|
8
|
+
}, P = { class: "zh-dialog__footer" }, S = /* @__PURE__ */ k({
|
|
9
9
|
name: "ZhDialog",
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "Dialog",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ r({
|
|
13
13
|
title: {},
|
|
14
14
|
subTitle: {},
|
|
15
15
|
cancelButtonText: { default: "取消" },
|
|
@@ -25,14 +25,19 @@ const N = { class: "title" }, O = {
|
|
|
25
25
|
closeOnPressEscape: { type: Boolean },
|
|
26
26
|
lockScroll: { type: Boolean },
|
|
27
27
|
modal: { type: Boolean },
|
|
28
|
+
modalPenetrable: { type: Boolean },
|
|
28
29
|
openDelay: {},
|
|
29
30
|
closeDelay: {},
|
|
30
31
|
top: {},
|
|
31
32
|
modelValue: { type: Boolean },
|
|
32
33
|
modalClass: {},
|
|
34
|
+
headerClass: {},
|
|
35
|
+
bodyClass: {},
|
|
36
|
+
footerClass: {},
|
|
33
37
|
zIndex: {},
|
|
34
38
|
trapFocus: { type: Boolean },
|
|
35
39
|
headerAriaLevel: {},
|
|
40
|
+
transition: {},
|
|
36
41
|
center: { type: Boolean },
|
|
37
42
|
alignCenter: { type: Boolean },
|
|
38
43
|
closeIcon: {},
|
|
@@ -45,7 +50,7 @@ const N = { class: "title" }, O = {
|
|
|
45
50
|
modelValue: { type: Boolean, default: !0 },
|
|
46
51
|
modelModifiers: {}
|
|
47
52
|
}),
|
|
48
|
-
emits: /* @__PURE__ */
|
|
53
|
+
emits: /* @__PURE__ */ r(["submit", "close"], ["update:modelValue"]),
|
|
49
54
|
setup(n, { emit: B }) {
|
|
50
55
|
const t = n, d = w(n, "modelValue"), a = B, y = () => {
|
|
51
56
|
a("close");
|
|
@@ -53,33 +58,33 @@ const N = { class: "title" }, O = {
|
|
|
53
58
|
a("submit");
|
|
54
59
|
}, C = () => {
|
|
55
60
|
a("close");
|
|
56
|
-
},
|
|
61
|
+
}, b = {
|
|
57
62
|
small: "400px",
|
|
58
63
|
middle: "600px",
|
|
59
64
|
large: "800px",
|
|
60
65
|
extraLarge: "920px"
|
|
61
|
-
},
|
|
62
|
-
return (e, i) => (
|
|
66
|
+
}, g = T(() => t.width ? t.width : b[t.size]);
|
|
67
|
+
return (e, i) => (c(), v(D(E), M({
|
|
63
68
|
modelValue: d.value,
|
|
64
69
|
"onUpdate:modelValue": i[0] || (i[0] = (V) => d.value = V),
|
|
65
70
|
class: "zh-dialog"
|
|
66
71
|
}, e.$attrs, {
|
|
67
|
-
width:
|
|
72
|
+
width: g.value,
|
|
68
73
|
"close-on-click-modal": e.closeOnClickModal,
|
|
69
74
|
onClose: C
|
|
70
75
|
}), {
|
|
71
76
|
header: o(() => [
|
|
72
77
|
s(e.$slots, "header", {}, () => [
|
|
73
|
-
|
|
74
|
-
e.subTitle ? (
|
|
78
|
+
m("div", N, l(e.title), 1),
|
|
79
|
+
e.subTitle ? (c(), Z("div", O, l(e.subTitle), 1)) : z("", !0)
|
|
75
80
|
])
|
|
76
81
|
]),
|
|
77
82
|
footer: o(() => [
|
|
78
83
|
s(e.$slots, "footer", {}, () => [
|
|
79
|
-
|
|
84
|
+
m("div", P, [
|
|
80
85
|
u(f, { onClick: y }, {
|
|
81
86
|
default: o(() => [
|
|
82
|
-
|
|
87
|
+
p(l(e.cancelButtonText), 1)
|
|
83
88
|
]),
|
|
84
89
|
_: 1
|
|
85
90
|
}),
|
|
@@ -89,7 +94,7 @@ const N = { class: "title" }, O = {
|
|
|
89
94
|
onClick: h
|
|
90
95
|
}, {
|
|
91
96
|
default: o(() => [
|
|
92
|
-
|
|
97
|
+
p(l(e.confirmButtonText), 1)
|
|
93
98
|
]),
|
|
94
99
|
_: 1
|
|
95
100
|
}, 8, ["disabled"])
|
|
@@ -102,8 +107,8 @@ const N = { class: "title" }, O = {
|
|
|
102
107
|
_: 3
|
|
103
108
|
}, 16, ["modelValue", "width", "close-on-click-modal"]));
|
|
104
109
|
}
|
|
105
|
-
}),
|
|
110
|
+
}), L = I(S);
|
|
106
111
|
export {
|
|
107
|
-
|
|
108
|
-
_
|
|
112
|
+
L as Z,
|
|
113
|
+
S as _
|
|
109
114
|
};
|
|
@@ -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, mergeModels as j, useModel as G, ref as E, computed as J, createBlock as m, openBlock as s, unref as u, withCtx as f, createVNode as R, mergeProps as Q, createCommentVNode as x, createElementBlock as v, Fragment as A, renderList as Y, renderSlot as T, normalizeClass as S, toDisplayString as C, createTextVNode as D, createElementVNode as k } from "vue";
|
|
2
|
+
import { D as F } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { m as V, i as N, n as ee, o as te, p as _, q as L, r as ae, s as I, b as U } from "./vendor-Dz44HqMM.js";
|
|
4
|
+
import { _ as oe } from "./Button-C39vlreJ.js";
|
|
5
|
+
import { w as le } from "./utils-D7-cBAU3.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__ */ j({
|
|
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 = G(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 = J(() => 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), Q({ 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, Y(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, createElementBlock as o, openBlock as s, createElementVNode as a, createTextVNode as r, createCommentVNode as p, toDisplayString as t, normalizeClass as c, renderSlot as d, unref as m } from "vue";
|
|
2
|
+
import { D as f } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { _ } from "./Button-C39vlreJ.js";
|
|
4
|
+
import { w as u } from "./utils-D7-cBAU3.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) => (s(), o("div", v, [
|
|
20
20
|
a("div", h, [
|
|
21
21
|
r(t(i.title) + " ", 1),
|
|
22
|
-
e.tip ? (
|
|
22
|
+
e.tip ? (s(), o("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, createElementBlock as i, openBlock as o, createCommentVNode as n, createElementVNode as t, toDisplayString as s, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
|
|
2
|
+
import { D as w } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { E as y } from "./vendor-Dz44HqMM.js";
|
|
4
|
+
import { _ as h } from "./Button-C39vlreJ.js";
|
|
5
|
+
import { w as v } from "./utils-D7-cBAU3.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) => (o(), i("div", k, [
|
|
44
|
+
e.title ? (o(), i("div", x, s(e.title), 1)) : n("", !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, s(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 ? (o(), i("i", {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "iconfont icon-close close",
|
|
69
69
|
onClick: c
|
|
70
|
-
})) :
|
|
70
|
+
})) : n("", !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, onMounted as P, onActivated as U, onUnmounted as N, onDeactivated as T, ref as d, provide as p, computed as D, useSlots as O, watch as _, inject as m, onBeforeUpdate as q, onUpdated as F, createElementBlock as k, openBlock 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-CCFUdM1X.js";
|
|
3
|
+
import { w as A } from "./utils-D7-cBAU3.js";
|
|
4
4
|
const Y = /* @__PURE__ */ L({
|
|
5
5
|
name: "Grid",
|
|
6
6
|
__name: "Grid",
|
|
@@ -14,11 +14,11 @@ 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
|
-
}),
|
|
17
|
+
}), U(() => {
|
|
18
18
|
f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
|
|
19
|
-
}),
|
|
19
|
+
}), N(() => {
|
|
20
20
|
window.removeEventListener("resize", f);
|
|
21
|
-
}),
|
|
21
|
+
}), T(() => {
|
|
22
22
|
window.removeEventListener("resize", f);
|
|
23
23
|
});
|
|
24
24
|
const f = (n) => {
|
|
@@ -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 = O().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) => (M(), k("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((M(), k("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) => (M(), k("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, createElementBlock as i, openBlock as s, createElementVNode as a, createTextVNode as r, createCommentVNode as p, toDisplayString as t, normalizeClass as c, renderSlot as m, unref as f } from "vue";
|
|
2
|
+
import { D as d } from "./BaseItem-BIgkJypI.js";
|
|
3
|
+
import { _ } from "./Button-C39vlreJ.js";
|
|
4
|
+
import { w as u } from "./utils-D7-cBAU3.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) => (s(), i("div", v, [
|
|
20
20
|
a("div", h, [
|
|
21
21
|
r(t(o.title) + " ", 1),
|
|
22
|
-
e.tip ? (
|
|
22
|
+
e.tip ? (s(), i("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, useAttrs as v, useModel as
|
|
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, mergeModels as E, useAttrs as v, useModel as j, createElementBlock as I, openBlock 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, normalizeStyle as A } from "vue";
|
|
2
|
+
import { s as U } from "./vendor-Dz44HqMM.js";
|
|
3
|
+
import { _ as Z } from "./Button-C39vlreJ.js";
|
|
4
|
+
import { w as k } from "./utils-D7-cBAU3.js";
|
|
5
5
|
const H = /* @__PURE__ */ V({
|
|
6
6
|
name: "zh-input",
|
|
7
7
|
__name: "Input",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ E({
|
|
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 = j(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) => (z(), I("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) => (z(), I("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, createElementBlock as s, openBlock as a, createElementVNode as o } from "vue";
|
|
2
|
+
import { _ as e } from "./Button-C39vlreJ.js";
|
|
3
|
+
import { w as i } from "./utils-D7-cBAU3.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) => (a(), s("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"),
|