zhihao-ui 1.1.3 → 1.1.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/components.ts +4 -0
- package/dist/es/{BaseInfo-DZxvnbZO.js → BaseInfo-BkvnHbZn.js} +1 -1
- package/dist/es/{DetailHeader-BjsiG5RL.js → DetailHeader-BYcPM2qZ.js} +8 -8
- package/dist/es/{Dialog-BASeD5f8.js → Dialog-BEZ3yodA.js} +1 -1
- package/dist/es/{MessageBox-26ImfgOR.js → MessageBox-DrIbylqd.js} +1 -1
- package/dist/es/index.js +4 -4
- package/dist/index.css +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +2 -2
- package/index.ts +7 -0
- package/package.json +1 -21
- package/vite.es.config.ts +62 -0
- package/vite.umd.config.ts +54 -0
package/components.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ZhButton, ZhDatePicker, ZhDetailSubTitle, ZhDialog, ZhEditInfoPair, ZhFileWrapper, ZhGrid, ZhInfoPair, ZhInput, ZhInputNumber , ZhLoading, ZhMessageBox, ZhMoneyInput, ZhPageHeadPanel, ZhToolTips, ZhBaseInfo, ZhDetailHeader} from "@zhihao-ui/components";
|
|
2
|
+
import type { Plugin } from "vue"
|
|
3
|
+
|
|
4
|
+
export default [ ZhButton, ZhDatePicker, ZhDetailSubTitle, ZhDialog, ZhEditInfoPair, ZhFileWrapper, ZhGrid, ZhInfoPair, ZhInput, ZhInputNumber, ZhLoading, ZhMessageBox, ZhMoneyInput, ZhPageHeadPanel, ZhToolTips, ZhBaseInfo, ZhDetailHeader ] as Plugin[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, resolveComponent as s, openBlock as h, createBlock as p, withCtx as u, renderSlot as m } from "vue";
|
|
2
2
|
import { w as W } from "./utils-DBdiSe6_.js";
|
|
3
3
|
const v = /* @__PURE__ */ f({
|
|
4
|
-
name: ZhBaseInfo,
|
|
4
|
+
name: "ZhBaseInfo",
|
|
5
5
|
__name: "BaseInfo",
|
|
6
6
|
props: {
|
|
7
7
|
contentWidth: { default: void 0 },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, useSlots as h, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as c, renderList as u, unref as f, normalizeClass as p, createCommentVNode as g } from "vue";
|
|
2
2
|
import { _ as k } from "./Button-Q7GkKwFF.js";
|
|
3
3
|
import { w as D } from "./utils-DBdiSe6_.js";
|
|
4
|
-
const y = { class: "common-card" }, E = { class: "detail-header" }, I = { class: "detail-header--left" },
|
|
4
|
+
const y = { class: "common-card" }, E = { class: "detail-header" }, I = { class: "detail-header--left" }, L = { class: "title common-title" }, b = { class: "info-pair--label" }, A = { class: "info-pair--value" }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "detail-header--right"
|
|
7
|
-
}, M = { class: "info-pair--label" }, U = { class: "info-pair--value" }, V = /* @__PURE__ */
|
|
7
|
+
}, M = { class: "info-pair--label" }, U = { class: "info-pair--value" }, V = /* @__PURE__ */ _({
|
|
8
8
|
name: "ZhDetailHeader",
|
|
9
9
|
__name: "DetailHeader",
|
|
10
10
|
props: {
|
|
@@ -14,7 +14,7 @@ const y = { class: "common-card" }, E = { class: "detail-header" }, I = { class:
|
|
|
14
14
|
stateMeta: {}
|
|
15
15
|
},
|
|
16
16
|
setup(v) {
|
|
17
|
-
const m =
|
|
17
|
+
const m = h(), r = v;
|
|
18
18
|
return (e, C) => {
|
|
19
19
|
var n, d;
|
|
20
20
|
return a(), o("div", y, [
|
|
@@ -23,18 +23,18 @@ const y = { class: "common-card" }, E = { class: "detail-header" }, I = { class:
|
|
|
23
23
|
]),
|
|
24
24
|
t("div", E, [
|
|
25
25
|
t("div", I, [
|
|
26
|
-
t("div",
|
|
26
|
+
t("div", L, i(r.title), 1),
|
|
27
27
|
l(e.$slots, "extra-info", {}, void 0, !0),
|
|
28
28
|
(a(!0), o(c, null, u(r.leftInfos, (s) => (a(), o("div", {
|
|
29
29
|
class: "info-pair",
|
|
30
30
|
key: s.value
|
|
31
31
|
}, [
|
|
32
|
-
t("div",
|
|
32
|
+
t("div", b, i(s.label), 1),
|
|
33
33
|
t("div", A, i(s.value ?? e.DEFAULT_VALUE), 1)
|
|
34
34
|
]))), 128))
|
|
35
35
|
]),
|
|
36
36
|
l(e.$slots, "default", {}, void 0, !0),
|
|
37
|
-
|
|
37
|
+
f(m)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", H, [
|
|
38
38
|
(a(!0), o(c, null, u(r.rightInfos, (s) => (a(), o("div", {
|
|
39
39
|
class: "info-pair",
|
|
40
40
|
key: s.value
|
|
@@ -51,7 +51,7 @@ const y = { class: "common-card" }, E = { class: "detail-header" }, I = { class:
|
|
|
51
51
|
]);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
}), $ = /* @__PURE__ */ k(V, [["__scopeId", "data-v-
|
|
54
|
+
}), $ = /* @__PURE__ */ k(V, [["__scopeId", "data-v-d9112e20"]]), w = D($);
|
|
55
55
|
export {
|
|
56
56
|
w as Z
|
|
57
57
|
};
|
|
@@ -67,7 +67,7 @@ const E = { class: "dialog-wrap" }, M = { class: "title" }, N = {
|
|
|
67
67
|
}, 16, ["modelValue", "close-on-click-modal", "show-close"])
|
|
68
68
|
]));
|
|
69
69
|
}
|
|
70
|
-
}), S = /* @__PURE__ */ D(z, [["__scopeId", "data-v-
|
|
70
|
+
}), S = /* @__PURE__ */ D(z, [["__scopeId", "data-v-f0a19e8f"]]), O = B(S);
|
|
71
71
|
export {
|
|
72
72
|
O as Z,
|
|
73
73
|
S as z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, useModel as P, ref as m, openBlock as n, createBlock as p, mergeProps as r, withCtx as u, createElementBlock as w, toDisplayString as V, createCommentVNode as v, resolveDynamicComponent as M, normalizeProps as C, unref as d, createVNode as h, mergeModels as g } from "vue";
|
|
2
2
|
import { e as F, f as I, d as z } from "./vendor-mKFy0Hb6.js";
|
|
3
|
-
import { z as E } from "./Dialog-
|
|
3
|
+
import { z as E } from "./Dialog-BEZ3yodA.js";
|
|
4
4
|
import { _ } from "./Button-Q7GkKwFF.js";
|
|
5
5
|
import { w as A } from "./utils-DBdiSe6_.js";
|
|
6
6
|
const D = {
|
package/dist/es/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import { m as o } from "./utils-DBdiSe6_.js";
|
|
|
2
2
|
import { Z as r } from "./Button-Q7GkKwFF.js";
|
|
3
3
|
import { Z as a } from "./DatePicker-D8LPaPf6.js";
|
|
4
4
|
import { Z as m } from "./DetailSubTitle-C5pVYJhX.js";
|
|
5
|
-
import { Z as t } from "./Dialog-
|
|
5
|
+
import { Z as t } from "./Dialog-BEZ3yodA.js";
|
|
6
6
|
import { Z } from "./EditInfoPair-CM5piQwT.js";
|
|
7
7
|
import { Z as i } from "./FileWrapper-DN-KKB9p.js";
|
|
8
8
|
import { Z as s } from "./Grid-Ds-Jy0Mn.js";
|
|
9
9
|
import { Z as p } from "./InfoPair-CnBR3fy9.js";
|
|
10
10
|
import { Z as e, a as f } from "./Input-C1s8JqmI.js";
|
|
11
11
|
import { Z as h } from "./Loading-DELLXz7f.js";
|
|
12
|
-
import { Z as n } from "./MessageBox-
|
|
12
|
+
import { Z as n } from "./MessageBox-DrIbylqd.js";
|
|
13
13
|
import { Z as l } from "./MoneyInput-Dt_ZE-zv.js";
|
|
14
14
|
import { Z as u } from "./PageHeadPanel-CdohXWA9.js";
|
|
15
15
|
import { Z as I } from "./ToolTips-CxyQMewg.js";
|
|
16
|
-
import { Z as d } from "./BaseInfo-
|
|
17
|
-
import { Z as P } from "./DetailHeader-
|
|
16
|
+
import { Z as d } from "./BaseInfo-BkvnHbZn.js";
|
|
17
|
+
import { Z as P } from "./DetailHeader-BYcPM2qZ.js";
|
|
18
18
|
const c = [r, a, m, t, Z, i, s, p, e, f, h, n, l, u, I, d, P], j = o(c);
|
|
19
19
|
export {
|
|
20
20
|
d as ZhBaseInfo,
|