zhihao-ui 1.3.64 → 1.3.65-alpha.1
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-DRE7tqhe.js → BaseInfo-DqEFRLn8.js} +4 -4
- package/dist/es/{BaseItem-B9hyAgCm.js → BaseItem-m83RrA2F.js} +4 -4
- package/dist/es/{Button-CSE0Mb4I.js → Button-BbbSzwN-.js} +5 -5
- package/dist/es/{CascaderLoadMore-DlIfow9Z.js → CascaderLoadMore-DBsWANI9.js} +11 -11
- package/dist/es/{DatePicker-DRO5YMZ8.js → DatePicker-CWP-R2oa.js} +5 -5
- package/dist/es/{DetailHeader-WPFCQJFq.js → DetailHeader-lHQhoYOA.js} +11 -11
- package/dist/es/{DetailSubTitle-BWOpKhxk.js → DetailSubTitle-Bz7xsRSw.js} +5 -5
- package/dist/es/{Dialog-CAiA_v3J.js → Dialog-BjIyAcj7.js} +24 -19
- package/dist/es/DiyDataTable-B4MAzhOX.js +448 -0
- package/dist/es/{EditInfoPair-CZ_m9ph_.js → EditInfoPair-Cf0uYf93.js} +7 -7
- package/dist/es/{FileWrapper-Dk5178uk.js → FileWrapper-BV8cQBfA.js} +11 -11
- package/dist/es/{Grid-DXdd3Eqi.js → Grid-ipgXJGA5.js} +10 -10
- package/dist/es/InfoPair-BzyTEuuM.js +36 -0
- package/dist/es/{Input-CCkgPIDm.js → Input-CJN-YLXW.js} +16 -16
- package/dist/es/{Loading-CtaMdigH.js → Loading-cq6BW1kF.js} +4 -4
- package/dist/es/{Map-BTJrG_eT.js → Map-gs0EAlCP.js} +12 -12
- package/dist/es/{MessageBox-DdmHDM2f.js → MessageBox-CZdTHeI3.js} +2 -2
- package/dist/es/{MoneyInput-CsELS7YH.js → MoneyInput-DFvUG16j.js} +15 -15
- package/dist/es/{PageHeadPanel-TzAwDM3_.js → PageHeadPanel-CLV6EyGv.js} +4 -4
- package/dist/es/{Table-DELBhqxN.js → Table-ejaaY5Zk.js} +20 -20
- package/dist/es/{ToolTips-BsqDNvAz.js → ToolTips-Cajf-Tbu.js} +5 -5
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-SutTRvhl.js → utils-BCPlncac.js} +1 -1
- package/dist/es/{vendor-BnoIpJXx.js → vendor-CrOEdcTJ.js} +19400 -17975
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +44 -14
- package/dist/types/components/Dialog/index.d.ts +66 -21
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +665 -378
- package/dist/types/components/DiyDataTable/index.d.ts +1974 -1131
- package/dist/types/components/DiyDataTable/type.d.ts +19 -4
- package/dist/types/components/Map/Map.vue.d.ts +13 -13
- package/dist/types/components/Map/index.d.ts +39 -39
- package/dist/types/components/Map/useMap.d.ts +38 -2
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +58 -66
- package/package.json +1 -1
- package/dist/es/DiyDataTable-SdMOvzzG.js +0 -369
- package/dist/es/InfoPair-C8tc2XjH.js +0 -36
- package/dist/types/components/Button/types.d.ts +0 -1
- package/dist/types/components/DatePicker/types.d.ts +0 -1
- package/dist/types/components/EditInfoPair/types.d.ts +0 -1
- package/dist/types/components/FileWrapper/types.d.ts +0 -1
- package/dist/types/components/InfoPair/types.d.ts +0 -1
- package/dist/types/components/Input/types.d.ts +0 -1
- package/dist/types/components/InputNumber/types.d.ts +0 -1
- package/dist/types/components/Loading/types.d.ts +0 -1
- 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
- package/dist/types/components/MoneyInput/types.d.ts +0 -1
- package/dist/types/components/PageHeadPanel/types.d.ts +0 -1
- package/dist/types/components/ToolTips/types.d.ts +0 -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, createBlock as u, openBlock as m, withCtx as p, renderSlot as W } from "vue";
|
|
2
|
+
import { _ } from "./Grid-ipgXJGA5.js";
|
|
3
|
+
import { w as b } from "./utils-BCPlncac.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-CrOEdcTJ.js";
|
|
3
|
+
import { Z as G } from "./Grid-ipgXJGA5.js";
|
|
4
|
+
import { w as U } from "./utils-BCPlncac.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-CrOEdcTJ.js";
|
|
3
|
+
import { w as _ } from "./utils-BCPlncac.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-CrOEdcTJ.js";
|
|
3
|
+
import { w as fe } from "./utils-BCPlncac.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-CrOEdcTJ.js";
|
|
3
|
+
import { D as m, a as b, L as p, b as k } from "./BaseItem-m83RrA2F.js";
|
|
4
|
+
import { w as E } from "./utils-BCPlncac.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-m83RrA2F.js";
|
|
3
|
+
import { _ as k } from "./Button-BbbSzwN-.js";
|
|
4
|
+
import { w as y } from "./utils-BCPlncac.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-m83RrA2F.js";
|
|
3
|
+
import { w as f } from "./utils-BCPlncac.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-BbbSzwN-.js";
|
|
3
|
+
import { l as E } from "./vendor-CrOEdcTJ.js";
|
|
4
|
+
import { w as I } from "./utils-BCPlncac.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
|
};
|