zhihao-ui 1.1.4 → 1.1.5

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/componens.ts ADDED
@@ -0,0 +1,41 @@
1
+ import type { Plugin } from "vue"
2
+ import {
3
+ ZhBaseInfo,
4
+ ZhButton,
5
+ ZhDatePicker,
6
+ ZhDetailHeader,
7
+ ZhDetailSubTitle,
8
+ ZhDialog,
9
+ ZhEditInfoPair,
10
+ ZhFileWrapper,
11
+ ZhGrid,
12
+ ZhInfoPair,
13
+ ZhInput,
14
+ ZhInputNumber,
15
+ ZhLoading,
16
+ ZhMessageBox,
17
+ ZhMoneyInput,
18
+ ZhPageHeadPanel,
19
+ ZhToolTips
20
+ } from "@zhihao-ui/components";
21
+
22
+
23
+ export default [
24
+ ZhBaseInfo,
25
+ ZhButton,
26
+ ZhDatePicker,
27
+ ZhDetailHeader,
28
+ ZhDetailSubTitle,
29
+ ZhDialog,
30
+ ZhEditInfoPair,
31
+ ZhFileWrapper,
32
+ ZhGrid,
33
+ ZhInfoPair,
34
+ ZhInput,
35
+ ZhInputNumber,
36
+ ZhLoading,
37
+ ZhMessageBox,
38
+ ZhMoneyInput,
39
+ ZhPageHeadPanel,
40
+ ZhToolTips
41
+ ] as Plugin[]
@@ -0,0 +1,53 @@
1
+ import { defineComponent as h, ref as o, provide as n, watch as i, resolveComponent as p, openBlock as m, createBlock as W, withCtx as v, renderSlot as b } from "vue";
2
+ import { w as g } from "./utils-DBdiSe6_.js";
3
+ const C = /* @__PURE__ */ h({
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(r) {
14
+ const t = r, a = o(), l = o(), c = o();
15
+ n("infoLabelWidth", a), n("infoContentWidth", l), n("infoDirection", c);
16
+ function d() {
17
+ a.value = t.labelWidth;
18
+ }
19
+ function f() {
20
+ l.value = t.contentWidth;
21
+ }
22
+ function s() {
23
+ c.value = t.infoDirection;
24
+ }
25
+ return i(
26
+ () => t.contentWidth,
27
+ () => f(),
28
+ { immediate: !0 }
29
+ ), i(
30
+ () => t.labelWidth,
31
+ () => d(),
32
+ { immediate: !0 }
33
+ ), i(
34
+ () => t.infoDirection,
35
+ () => s(),
36
+ { immediate: !0 }
37
+ ), (e, D) => {
38
+ const u = p("grid");
39
+ return m(), W(u, {
40
+ cols: e.cols,
41
+ gap: e.gap
42
+ }, {
43
+ default: v(() => [
44
+ b(e.$slots, "default")
45
+ ]),
46
+ _: 3
47
+ }, 8, ["cols", "gap"]);
48
+ };
49
+ }
50
+ }), I = g(C);
51
+ export {
52
+ I as Z
53
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as h, useSlots as p, openBlock as a, createElementBlock as o, createElementVNode as e, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as g, createCommentVNode as k } from "vue";
2
+ import { D as v } from "./DatePicker-D8LPaPf6.js";
3
+ import { _ as D } from "./Button-Q7GkKwFF.js";
4
+ import { w as y } from "./utils-DBdiSe6_.js";
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
+ key: 1,
7
+ class: "detail-header--right"
8
+ }, L = { class: "info-pair--label" }, S = { class: "info-pair--value" }, V = /* @__PURE__ */ h({
9
+ name: "ZhDetailHeader",
10
+ __name: "DetailHeader",
11
+ props: {
12
+ title: {},
13
+ leftInfos: {},
14
+ rightInfos: {},
15
+ stateMeta: {}
16
+ },
17
+ setup(_) {
18
+ const f = p(), r = _;
19
+ return (t, w) => {
20
+ var d, c;
21
+ return a(), o("div", I, [
22
+ e("div", null, [
23
+ l(t.$slots, "menu", {}, void 0, !0)
24
+ ]),
25
+ e("div", b, [
26
+ e("div", E, [
27
+ e("div", H, i(r.title), 1),
28
+ l(t.$slots, "extra-info", {}, void 0, !0),
29
+ (a(!0), o(m, null, u(r.leftInfos, (s) => (a(), o("div", {
30
+ class: "info-pair",
31
+ key: s.value
32
+ }, [
33
+ e("div", M, i(s.label), 1),
34
+ e("div", $, i(s.value ?? n(v)), 1)
35
+ ]))), 128))
36
+ ]),
37
+ l(t.$slots, "default", {}, void 0, !0),
38
+ n(f)["right-infos"] ? l(t.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", C, [
39
+ (a(!0), o(m, null, u(r.rightInfos, (s) => (a(), o("div", {
40
+ class: "info-pair",
41
+ key: s.value
42
+ }, [
43
+ e("div", L, i(s.label), 1),
44
+ e("div", S, i(s.value ?? n(v)), 1)
45
+ ]))), 128)),
46
+ t.stateMeta ? (a(), o("div", {
47
+ key: 0,
48
+ class: g(["state common-title", (d = t.stateMeta) == null ? void 0 : d.state])
49
+ }, i((c = t.stateMeta) == null ? void 0 : c.intro), 3)) : k("", !0)
50
+ ]))
51
+ ])
52
+ ]);
53
+ };
54
+ }
55
+ }), Z = /* @__PURE__ */ D(V, [["__scopeId", "data-v-8830340b"]]), U = y(Z);
56
+ export {
57
+ U as Z
58
+ };
@@ -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-f0a19e8f"]]), O = B(S);
70
+ }), S = /* @__PURE__ */ D(z, [["__scopeId", "data-v-f26f266e"]]), 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-BEZ3yodA.js";
3
+ import { z as E } from "./Dialog-DrsOxk4u.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,20 +2,38 @@ 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-BEZ3yodA.js";
5
+ import { Z as t } from "./Dialog-DrsOxk4u.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-DrIbylqd.js";
12
+ import { Z as n } from "./MessageBox-B5ibisN4.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-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);
16
+ import { Z as d } from "./BaseInfo-DqxHM6sE.js";
17
+ import { Z as P } from "./DetailHeader-Bzo3r_rs.js";
18
+ const c = [
19
+ d,
20
+ r,
21
+ a,
22
+ P,
23
+ m,
24
+ t,
25
+ Z,
26
+ i,
27
+ s,
28
+ p,
29
+ e,
30
+ f,
31
+ h,
32
+ n,
33
+ l,
34
+ u,
35
+ I
36
+ ], j = o(c);
19
37
  export {
20
38
  d as ZhBaseInfo,
21
39
  r as ZhButton,