zhihao-ui 1.1.2 → 1.1.3

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.
@@ -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 f, useSlots as _, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as c, renderList as u, unref as h, 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" }, b = { class: "title common-title" }, L = { 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__ */ f({
8
+ name: "ZhDetailHeader",
9
+ __name: "DetailHeader",
10
+ props: {
11
+ title: {},
12
+ leftInfos: {},
13
+ rightInfos: {},
14
+ stateMeta: {}
15
+ },
16
+ setup(v) {
17
+ const m = _(), 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", b, 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", L, 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
+ h(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-1bc0f0f5"]]), w = D($);
55
+ export {
56
+ w as Z
57
+ };
package/dist/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { m as o } from "./utils-DBdiSe6_.js";
2
2
  import { Z as r } from "./Button-Q7GkKwFF.js";
3
- import { Z as m } from "./DatePicker-D8LPaPf6.js";
4
- import { Z as a } from "./DetailSubTitle-C5pVYJhX.js";
3
+ import { Z as a } from "./DatePicker-D8LPaPf6.js";
4
+ import { Z as m } from "./DetailSubTitle-C5pVYJhX.js";
5
5
  import { Z as t } from "./Dialog-BASeD5f8.js";
6
6
  import { Z } from "./EditInfoPair-CM5piQwT.js";
7
7
  import { Z as i } from "./FileWrapper-DN-KKB9p.js";
@@ -13,11 +13,15 @@ import { Z as n } from "./MessageBox-26ImfgOR.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
- const d = [r, m, a, t, Z, i, s, p, e, f, h, n, l, u, I], L = o(d);
16
+ import { Z as d } from "./BaseInfo-DZxvnbZO.js";
17
+ import { Z as P } from "./DetailHeader-BjsiG5RL.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
- m as ZhDatePicker,
20
- a as ZhDetailSubTitle,
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
- L as default
37
+ j as default
34
38
  };