zhihao-ui 1.1.2 → 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-BkvnHbZn.js +53 -0
- package/dist/es/DetailHeader-BYcPM2qZ.js +57 -0
- 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 +12 -8
- package/dist/index.css +1 -1
- package/dist/types/components/BaseInfo/BaseInfo.vue.d.ts +48 -0
- package/dist/types/components/BaseInfo/index.d.ts +101 -0
- package/dist/types/components/BaseInfo/types.d.ts +7 -0
- package/dist/types/components/DetailHeader/DetailHeader.vue.d.ts +25 -0
- package/dist/types/components/DetailHeader/index.d.ts +62 -0
- package/dist/types/components/DetailHeader/types.d.ts +10 -0
- package/dist/types/components/Grid/Grid.vue.d.ts +1 -1
- package/dist/types/components/Grid/index.d.ts +15 -15
- package/dist/types/components/Input/Input.vue.d.ts +9 -9
- package/dist/types/components/Input/index.d.ts +15 -15
- package/dist/types/components/MessageBox/MessageBox.vue.d.ts +2 -2
- package/dist/types/components/MessageBox/index.d.ts +3 -3
- package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +4 -4
- package/dist/types/components/MoneyInput/index.d.ts +6 -6
- package/dist/types/components/index.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +11 -11
- 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[]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as f, resolveComponent as s, openBlock as h, createBlock as p, withCtx as u, renderSlot as m } from "vue";
|
|
2
|
+
import { w as W } from "./utils-DBdiSe6_.js";
|
|
3
|
+
const v = /* @__PURE__ */ f({
|
|
4
|
+
name: "ZhBaseInfo",
|
|
5
|
+
__name: "BaseInfo",
|
|
6
|
+
props: {
|
|
7
|
+
contentWidth: { default: void 0 },
|
|
8
|
+
labelWidth: { default: "70px" },
|
|
9
|
+
infoDirection: { default: "vertical" },
|
|
10
|
+
cols: { default: 5 },
|
|
11
|
+
gap: { default: 16 }
|
|
12
|
+
},
|
|
13
|
+
setup(a) {
|
|
14
|
+
const t = a, o = ref(), n = ref(), i = ref();
|
|
15
|
+
provide("infoLabelWidth", o), provide("infoContentWidth", n), provide("infoDirection", i);
|
|
16
|
+
function r() {
|
|
17
|
+
o.value = t.labelWidth;
|
|
18
|
+
}
|
|
19
|
+
function c() {
|
|
20
|
+
n.value = t.contentWidth;
|
|
21
|
+
}
|
|
22
|
+
function l() {
|
|
23
|
+
i.value = t.infoDirection;
|
|
24
|
+
}
|
|
25
|
+
return watch(
|
|
26
|
+
() => t.contentWidth,
|
|
27
|
+
() => c(),
|
|
28
|
+
{ immediate: !0 }
|
|
29
|
+
), watch(
|
|
30
|
+
() => t.labelWidth,
|
|
31
|
+
() => r(),
|
|
32
|
+
{ immediate: !0 }
|
|
33
|
+
), watch(
|
|
34
|
+
() => t.infoDirection,
|
|
35
|
+
() => l(),
|
|
36
|
+
{ immediate: !0 }
|
|
37
|
+
), (e, b) => {
|
|
38
|
+
const d = s("grid");
|
|
39
|
+
return h(), p(d, {
|
|
40
|
+
cols: e.cols,
|
|
41
|
+
gap: e.gap
|
|
42
|
+
}, {
|
|
43
|
+
default: u(() => [
|
|
44
|
+
m(e.$slots, "default")
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 8, ["cols", "gap"]);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}), C = W(v);
|
|
51
|
+
export {
|
|
52
|
+
C as Z
|
|
53
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { _ as k } from "./Button-Q7GkKwFF.js";
|
|
3
|
+
import { w as D } from "./utils-DBdiSe6_.js";
|
|
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
|
+
key: 1,
|
|
6
|
+
class: "detail-header--right"
|
|
7
|
+
}, M = { class: "info-pair--label" }, U = { class: "info-pair--value" }, V = /* @__PURE__ */ _({
|
|
8
|
+
name: "ZhDetailHeader",
|
|
9
|
+
__name: "DetailHeader",
|
|
10
|
+
props: {
|
|
11
|
+
title: {},
|
|
12
|
+
leftInfos: {},
|
|
13
|
+
rightInfos: {},
|
|
14
|
+
stateMeta: {}
|
|
15
|
+
},
|
|
16
|
+
setup(v) {
|
|
17
|
+
const m = h(), r = v;
|
|
18
|
+
return (e, C) => {
|
|
19
|
+
var n, d;
|
|
20
|
+
return a(), o("div", y, [
|
|
21
|
+
t("div", null, [
|
|
22
|
+
l(e.$slots, "menu", {}, void 0, !0)
|
|
23
|
+
]),
|
|
24
|
+
t("div", E, [
|
|
25
|
+
t("div", I, [
|
|
26
|
+
t("div", L, i(r.title), 1),
|
|
27
|
+
l(e.$slots, "extra-info", {}, void 0, !0),
|
|
28
|
+
(a(!0), o(c, null, u(r.leftInfos, (s) => (a(), o("div", {
|
|
29
|
+
class: "info-pair",
|
|
30
|
+
key: s.value
|
|
31
|
+
}, [
|
|
32
|
+
t("div", b, i(s.label), 1),
|
|
33
|
+
t("div", A, i(s.value ?? e.DEFAULT_VALUE), 1)
|
|
34
|
+
]))), 128))
|
|
35
|
+
]),
|
|
36
|
+
l(e.$slots, "default", {}, void 0, !0),
|
|
37
|
+
f(m)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", H, [
|
|
38
|
+
(a(!0), o(c, null, u(r.rightInfos, (s) => (a(), o("div", {
|
|
39
|
+
class: "info-pair",
|
|
40
|
+
key: s.value
|
|
41
|
+
}, [
|
|
42
|
+
t("div", M, i(s.label), 1),
|
|
43
|
+
t("div", U, i(s.value ?? e.DEFAULT_VALUE), 1)
|
|
44
|
+
]))), 128)),
|
|
45
|
+
e.stateMeta ? (a(), o("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: p(["state common-title", (n = e.stateMeta) == null ? void 0 : n.state])
|
|
48
|
+
}, i((d = e.stateMeta) == null ? void 0 : d.intro), 3)) : g("", !0)
|
|
49
|
+
]))
|
|
50
|
+
])
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}), $ = /* @__PURE__ */ k(V, [["__scopeId", "data-v-d9112e20"]]), w = D($);
|
|
55
|
+
export {
|
|
56
|
+
w as Z
|
|
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
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { m as o } from "./utils-DBdiSe6_.js";
|
|
2
2
|
import { Z as r } from "./Button-Q7GkKwFF.js";
|
|
3
|
-
import { Z as
|
|
4
|
-
import { Z as
|
|
5
|
-
import { Z as t } from "./Dialog-
|
|
3
|
+
import { Z as a } from "./DatePicker-D8LPaPf6.js";
|
|
4
|
+
import { Z as m } from "./DetailSubTitle-C5pVYJhX.js";
|
|
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
|
-
|
|
16
|
+
import { Z as d } from "./BaseInfo-BkvnHbZn.js";
|
|
17
|
+
import { Z as P } from "./DetailHeader-BYcPM2qZ.js";
|
|
18
|
+
const c = [r, a, m, t, Z, i, s, p, e, f, h, n, l, u, I, d, P], j = o(c);
|
|
17
19
|
export {
|
|
20
|
+
d as ZhBaseInfo,
|
|
18
21
|
r as ZhButton,
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
a as ZhDatePicker,
|
|
23
|
+
P as ZhDetailHeader,
|
|
24
|
+
m as ZhDetailSubTitle,
|
|
21
25
|
t as ZhDialog,
|
|
22
26
|
Z as ZhEditInfoPair,
|
|
23
27
|
i as ZhFileWrapper,
|
|
@@ -30,5 +34,5 @@ export {
|
|
|
30
34
|
l as ZhMoneyInput,
|
|
31
35
|
u as ZhPageHeadPanel,
|
|
32
36
|
I as ZhToolTips,
|
|
33
|
-
|
|
37
|
+
j as default
|
|
34
38
|
};
|