zhihao-ui 1.2.7 → 1.2.8

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.
Files changed (46) hide show
  1. package/dist/es/{BaseInfo-CboHDiqp.js → BaseInfo-Dv-eon6t.js} +1 -1
  2. package/dist/es/Button-DBbUF88w.js +51 -0
  3. package/dist/es/{DatePicker-AcRbvS-8.js → DatePicker-CWQoV03Q.js} +13 -13
  4. package/dist/es/{DetailHeader-CoaVXtN3.js → DetailHeader-C_mAB8-2.js} +3 -3
  5. package/dist/es/{DetailSubTitle-Csp4LjFx.js → DetailSubTitle-DD7Yllhf.js} +2 -2
  6. package/dist/es/Dialog-DyDSVm-6.js +109 -0
  7. package/dist/es/{DiyDataTable-CP7yYQaU.js → DiyDataTable-cJVfvtax.js} +4 -4
  8. package/dist/es/{EditInfoPair-DBbRqppY.js → EditInfoPair-D0b5jY5Y.js} +3 -3
  9. package/dist/es/{FileWrapper-BwQhQopY.js → FileWrapper-CMSYWmEz.js} +4 -4
  10. package/dist/es/{Grid-B-FutGih.js → Grid-B5O9dZNI.js} +1 -1
  11. package/dist/es/{InfoPair-WmMCXoUh.js → InfoPair-Do3sSVw-.js} +3 -3
  12. package/dist/es/{Input-DFnH7_jo.js → Input-DVpd0Yte.js} +11 -11
  13. package/dist/es/{Loading-BW6Doqh_.js → Loading-DwtfOhMD.js} +2 -2
  14. package/dist/es/{Map-IjNHD4K5.js → Map-CMiThYaG.js} +641 -315
  15. package/dist/es/MessageBox-BowhqMYW.js +48 -0
  16. package/dist/es/{MoneyInput-BwkFhS2B.js → MoneyInput-CaTrJLi1.js} +7 -7
  17. package/dist/es/{PageHeadPanel-BhR3Bq1A.js → PageHeadPanel-_mKu2rMQ.js} +2 -2
  18. package/dist/es/{ToolTips-BEYXkt4n.js → ToolTips-BTCP0N--.js} +3 -3
  19. package/dist/es/index.js +30 -28
  20. package/dist/es/{utils-B1dH8Kx6.js → utils-DZ8-2Fg2.js} +1 -1
  21. package/dist/es/{vendor-Cu-cEPs_.js → vendor-BY-fHNA3.js} +9646 -8896
  22. package/dist/index.css +1 -1
  23. package/dist/types/components/ButtonGroup/ButtonGroup.test.d.ts +1 -0
  24. package/dist/types/components/ButtonGroup/ButtonGroup.vue.d.ts +37 -0
  25. package/dist/types/components/ButtonGroup/index.d.ts +38 -0
  26. package/dist/types/components/Dialog/Dialog.test.d.ts +1 -0
  27. package/dist/types/components/Dialog/Dialog.vue.d.ts +187 -14
  28. package/dist/types/components/Dialog/index.d.ts +296 -25
  29. package/dist/types/components/Dialog/types.d.ts +15 -5
  30. package/dist/types/components/Map/Map.vue.d.ts +15 -5
  31. package/dist/types/components/Map/index.d.ts +27 -0
  32. package/dist/types/components/Map/interface/entity/render.d.ts +32 -0
  33. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +4 -0
  34. package/dist/types/components/Map/interface/index.d.ts +1 -0
  35. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +5 -3
  36. package/dist/types/components/Map/render/drawPolygon.d.ts +9 -0
  37. package/dist/types/components/MessageBox/MessageBox.test.d.ts +1 -0
  38. package/dist/types/components/MessageBox/MessageBox.vue.d.ts +11 -218
  39. package/dist/types/components/MessageBox/index.d.ts +4 -342
  40. package/dist/types/components/index.d.ts +1 -0
  41. package/dist/umd/index.css +1 -1
  42. package/dist/umd/index.umd.cjs +25 -17
  43. package/package.json +1 -1
  44. package/dist/es/Button-C1Q6WvkI.js +0 -32
  45. package/dist/es/Dialog-CtU-qGdR.js +0 -74
  46. package/dist/es/MessageBox-CjuBt74R.js +0 -100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhihao-ui",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "components",
5
5
  "type": "module",
6
6
  "main": "./dist/umd/index.umd.cjs",
@@ -1,32 +0,0 @@
1
- import { defineComponent as s, openBlock as c, createBlock as a, unref as i, mergeProps as l, withCtx as m, renderSlot as u } from "vue";
2
- import { E as _ } from "./vendor-Cu-cEPs_.js";
3
- import { w as p } from "./utils-B1dH8Kx6.js";
4
- const f = /* @__PURE__ */ s({
5
- name: "ZhButton",
6
- inheritAttrs: !1,
7
- __name: "Button",
8
- emits: ["click"],
9
- setup(e, { emit: n }) {
10
- const o = n, r = (t) => {
11
- o("click", t);
12
- };
13
- return (t, k) => (c(), a(i(_), l(t.$attrs, {
14
- class: "zh-button",
15
- onClick: r
16
- }), {
17
- default: m(() => [
18
- u(t.$slots, "default", {}, void 0, !0)
19
- ]),
20
- _: 3
21
- }, 16));
22
- }
23
- }), d = (e, n) => {
24
- const o = e.__vccOpts || e;
25
- for (const [r, t] of n)
26
- o[r] = t;
27
- return o;
28
- }, h = /* @__PURE__ */ d(f, [["__scopeId", "data-v-59ad2ca5"]]), w = p(h);
29
- export {
30
- w as Z,
31
- d as _
32
- };
@@ -1,74 +0,0 @@
1
- import { defineComponent as v, useModel as _, openBlock as r, createElementBlock as n, createVNode as l, unref as s, mergeProps as k, withCtx as o, renderSlot as C, createElementVNode as m, createTextVNode as u, toDisplayString as a, createCommentVNode as w, mergeModels as c } from "vue";
2
- import { b as y, E as p } from "./vendor-Cu-cEPs_.js";
3
- import { _ as D } from "./Button-C1Q6WvkI.js";
4
- import { w as B } from "./utils-B1dH8Kx6.js";
5
- const E = { class: "dialog-wrap" }, M = { class: "title" }, N = {
6
- key: 0,
7
- class: "subtitle"
8
- }, $ = { class: "dialog-footer" }, z = /* @__PURE__ */ v({
9
- name: "zh-dialog",
10
- __name: "Dialog",
11
- props: /* @__PURE__ */ c({
12
- title: {},
13
- subtitle: {},
14
- submitText: {},
15
- submitDisabled: { type: Boolean }
16
- }, {
17
- modelValue: { type: Boolean, default: !0 },
18
- modelModifiers: {}
19
- }),
20
- emits: /* @__PURE__ */ c(["close", "submit"], ["update:modelValue"]),
21
- setup(f, { emit: b }) {
22
- const i = b, d = _(f, "modelValue"), g = async () => {
23
- i("submit");
24
- }, h = () => {
25
- i("close");
26
- };
27
- return (e, t) => (r(), n("div", E, [
28
- l(s(y), k({
29
- modelValue: d.value,
30
- "onUpdate:modelValue": t[0] || (t[0] = (V) => d.value = V)
31
- }, e.$attrs, {
32
- "close-on-click-modal": e.$attrs.closeOnClickModal ?? !1,
33
- "show-close": e.$attrs.showClose ?? !0
34
- }), {
35
- header: o(() => [
36
- m("div", M, a(e.title), 1),
37
- e.subtitle ? (r(), n("div", N, a(e.subtitle), 1)) : w("", !0)
38
- ]),
39
- footer: o(() => [
40
- m("div", $, [
41
- l(s(p), {
42
- plain: "",
43
- onClick: h
44
- }, {
45
- default: o(() => t[1] || (t[1] = [
46
- u("取消")
47
- ])),
48
- _: 1
49
- }),
50
- l(s(p), {
51
- type: "primary",
52
- color: "#1966FF",
53
- onClick: g,
54
- disabled: e.submitDisabled
55
- }, {
56
- default: o(() => [
57
- u(a(e.submitText || "提交"), 1)
58
- ]),
59
- _: 1
60
- }, 8, ["disabled"])
61
- ])
62
- ]),
63
- default: o(() => [
64
- C(e.$slots, "default", {}, void 0, !0)
65
- ]),
66
- _: 3
67
- }, 16, ["modelValue", "close-on-click-modal", "show-close"])
68
- ]));
69
- }
70
- }), S = /* @__PURE__ */ D(z, [["__scopeId", "data-v-f26f266e"]]), O = B(S);
71
- export {
72
- O as Z,
73
- S as z
74
- };
@@ -1,100 +0,0 @@
1
- import { defineComponent as B, 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 c, createVNode as h, mergeModels as g } from "vue";
2
- import { e as F, i as I, k as z } from "./vendor-Cu-cEPs_.js";
3
- import { z as E } from "./Dialog-CtU-qGdR.js";
4
- import { _ } from "./Button-C1Q6WvkI.js";
5
- import { w as A } from "./utils-B1dH8Kx6.js";
6
- const D = {
7
- key: 0,
8
- class: "tips"
9
- }, T = /* @__PURE__ */ B({
10
- name: "zh-message-box",
11
- __name: "MessageBox",
12
- props: /* @__PURE__ */ g({
13
- title: {},
14
- subtitle: {},
15
- tip: {},
16
- placeholder: {},
17
- formItemProps: {},
18
- formProps: {},
19
- inputProps: {},
20
- closeOnClickModal: { type: Boolean },
21
- callBack: { type: Function },
22
- onAction: { type: Function },
23
- onVanish: { type: Function },
24
- submitText: {},
25
- render: { type: Function },
26
- maxlength: {},
27
- renderProps: {}
28
- }, {
29
- visible: { type: Boolean, default: !0 },
30
- visibleModifiers: {}
31
- }),
32
- emits: /* @__PURE__ */ g(["action", "vanish"], ["update:visible"]),
33
- setup(d, { emit: y }) {
34
- const t = d, i = y, l = P(d, "visible"), f = m(), s = m({
35
- textarea: ""
36
- }), x = m({
37
- textarea: [{ validator: (e, a, o) => {
38
- a || o(t.placeholder), o();
39
- }, trigger: ["blur", "change"] }]
40
- }), b = async () => {
41
- var e;
42
- t.placeholder ? (e = f.value) == null || e.validate(async (a) => {
43
- if (a)
44
- try {
45
- if (t.callBack) {
46
- const o = await t.callBack(s.value.textarea);
47
- console.log(o);
48
- }
49
- i("action", "submit"), l.value = !1;
50
- } catch (o) {
51
- console.log(o);
52
- }
53
- }) : (i("action", "submit"), l.value = !1);
54
- }, k = () => {
55
- i("action", "cancel"), l.value = !1;
56
- };
57
- return (e, a) => (n(), p(E, r({
58
- modelValue: l.value,
59
- "onUpdate:modelValue": a[1] || (a[1] = (o) => l.value = o),
60
- width: "544"
61
- }, t, {
62
- onSubmit: b,
63
- onClose: k
64
- }), {
65
- default: u(() => [
66
- e.tip ? (n(), w("div", D, V(e.tip), 1)) : v("", !0),
67
- e.render ? (n(), p(M(e.render), C(r({ key: 1 }, t.renderProps)), null, 16)) : e.placeholder ? (n(), p(c(F), r({
68
- key: 2,
69
- ref_key: "formRef",
70
- ref: f,
71
- model: s.value,
72
- rules: x.value
73
- }, t.formProps), {
74
- default: u(() => [
75
- h(c(I), r({ prop: "textarea" }, t.formItemProps), {
76
- default: u(() => [
77
- h(c(z), r({
78
- modelValue: s.value.textarea,
79
- "onUpdate:modelValue": a[0] || (a[0] = (o) => s.value.textarea = o),
80
- style: { width: "100%" },
81
- rows: 4,
82
- type: "textarea",
83
- placeholder: e.placeholder,
84
- maxlength: t.maxlength || 100,
85
- "show-word-limit": ""
86
- }, e.inputProps), null, 16, ["modelValue", "placeholder", "maxlength"])
87
- ]),
88
- _: 1
89
- }, 16)
90
- ]),
91
- _: 1
92
- }, 16, ["model", "rules"])) : v("", !0)
93
- ]),
94
- _: 1
95
- }, 16, ["modelValue"]));
96
- }
97
- }), N = /* @__PURE__ */ _(T, [["__scopeId", "data-v-1903b5ef"]]), q = A(N);
98
- export {
99
- q as Z
100
- };