zhihao-ui 1.2.29 → 1.2.31

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 (55) hide show
  1. package/dist/es/{BaseInfo-XETJaruy.js → BaseInfo-CAuR2Id0.js} +1 -1
  2. package/dist/es/BaseItem-CQzBP1WX.js +129 -0
  3. package/dist/es/{Button-CzjgaPIL.js → Button-D-R-2Fix.js} +4 -4
  4. package/dist/es/DatePicker-BDz_yTX2.js +36 -0
  5. package/dist/es/{DetailHeader-C7L01g9Z.js → DetailHeader-CBN9CqAp.js} +3 -3
  6. package/dist/es/{DetailSubTitle-ChWfR3qA.js → DetailSubTitle-DsnSxPKH.js} +2 -2
  7. package/dist/es/{Dialog-Cky8TKRM.js → Dialog-C_hAbDgU.js} +3 -3
  8. package/dist/es/{DiyDataTable-D1s7-cdV.js → DiyDataTable-CXSUoapn.js} +10 -10
  9. package/dist/es/{EditInfoPair-C0EG8kUd.js → EditInfoPair-C0Ielr4q.js} +3 -3
  10. package/dist/es/{FileWrapper-CmvheBNp.js → FileWrapper-DFqY2SD_.js} +4 -4
  11. package/dist/es/Grid-CLg9sn2Y.js +198 -0
  12. package/dist/es/{InfoPair-JA1pAAyP.js → InfoPair-6agPuvqq.js} +3 -3
  13. package/dist/es/{Input-12ajHBoj.js → Input-CzlIXSCf.js} +3 -3
  14. package/dist/es/{Loading-CHji9tKE.js → Loading-ClE8eADM.js} +2 -2
  15. package/dist/es/{Map-Bq9kPMot.js → Map-BJc6GMOA.js} +231 -222
  16. package/dist/es/{MessageBox-1NCCwju7.js → MessageBox-CBMAgp6C.js} +2 -2
  17. package/dist/es/{MoneyInput-PI2K9BeH.js → MoneyInput-EODuzFjO.js} +17 -18
  18. package/dist/es/{PageHeadPanel-CBDItYUC.js → PageHeadPanel-DDnMIqmC.js} +2 -2
  19. package/dist/es/{Table-BBWU5wYF.js → Table-D7YUOcI0.js} +132 -130
  20. package/dist/es/{ToolTips-BBCd543g.js → ToolTips-BpZo8gsa.js} +3 -3
  21. package/dist/es/index.js +67 -60
  22. package/dist/es/utils-BbWQLYZL.js +52 -0
  23. package/dist/es/{vendor-BhAIOWbw.js → vendor-Cq716b5Q.js} +2034 -2019
  24. package/dist/index.css +1 -1
  25. package/dist/types/components/BaseItem/BaseItem.test.d.ts +1 -0
  26. package/dist/types/components/BaseItem/BaseItem.vue.d.ts +50 -0
  27. package/dist/types/components/BaseItem/index.d.ts +209 -0
  28. package/dist/types/components/BaseItem/types.d.ts +39 -0
  29. package/dist/types/components/DatePicker/DatePicker.vue.d.ts +2 -2
  30. package/dist/types/components/DatePicker/index.d.ts +5 -5
  31. package/dist/types/components/Dialog/Dialog.vue.d.ts +29 -29
  32. package/dist/types/components/Dialog/index.d.ts +45 -45
  33. package/dist/types/components/FileWrapper/FileWrapper.vue.d.ts +2 -2
  34. package/dist/types/components/FileWrapper/index.d.ts +6 -6
  35. package/dist/types/components/Grid/Grid.vue.d.ts +7 -9
  36. package/dist/types/components/Grid/components/GridItem.vue.d.ts +71 -0
  37. package/dist/types/components/Grid/components/MultiGrid.vue.d.ts +11 -0
  38. package/dist/types/components/Grid/components/collectGridItems.d.ts +9 -0
  39. package/dist/types/components/Grid/index.d.ts +187 -0
  40. package/dist/types/components/Grid/types.d.ts +14 -1
  41. package/dist/types/components/Map/config.d.ts +1 -0
  42. package/dist/types/components/Map/interface/entity/render.d.ts +2 -0
  43. package/dist/types/components/Map/render/renderPoint.d.ts +1 -2
  44. package/dist/types/components/Table/components/ColSetting.vue.d.ts +2 -2
  45. package/dist/types/components/Table/components/SearchForm.vue.d.ts +2 -2
  46. package/dist/types/components/ToolTips/ToolTips.vue.d.ts +1 -1
  47. package/dist/types/components/ToolTips/index.d.ts +3 -3
  48. package/dist/types/components/index.d.ts +1 -0
  49. package/dist/types/components/utils/color.d.ts +1 -0
  50. package/dist/umd/index.css +1 -1
  51. package/dist/umd/index.umd.cjs +19 -19
  52. package/package.json +1 -1
  53. package/dist/es/DatePicker-DNgii92T.js +0 -58
  54. package/dist/es/Grid-CfJ_U3gi.js +0 -96
  55. package/dist/es/utils-BIGjF-zg.js +0 -14
package/dist/es/index.js CHANGED
@@ -1,86 +1,93 @@
1
- import { m as a } from "./utils-BIGjF-zg.js";
2
- import { a as o, b as r } from "./Button-CzjgaPIL.js";
3
- import { Z as m } from "./DatePicker-DNgii92T.js";
4
- import { Z as t } from "./DetailSubTitle-ChWfR3qA.js";
5
- import { Z as s } from "./Dialog-Cky8TKRM.js";
6
- import { Z } from "./EditInfoPair-C0EG8kUd.js";
7
- import { Z as i } from "./FileWrapper-CmvheBNp.js";
8
- import { Z as p } from "./Grid-CfJ_U3gi.js";
9
- import { Z as e } from "./InfoPair-JA1pAAyP.js";
10
- import { Z as f, a as h } from "./Input-12ajHBoj.js";
11
- import { Z as n } from "./Loading-CHji9tKE.js";
12
- import { Z as l, a as D, b as u, c as T } from "./MessageBox-1NCCwju7.js";
13
- import { Z as P } from "./MoneyInput-PI2K9BeH.js";
14
- import { Z as b } from "./PageHeadPanel-CBDItYUC.js";
15
- import { Z as d } from "./ToolTips-BBCd543g.js";
16
- import { Z as I } from "./BaseInfo-XETJaruy.js";
17
- import { Z as A } from "./DetailHeader-C7L01g9Z.js";
18
- import { Z as L } from "./DiyDataTable-D1s7-cdV.js";
19
- import { D as z } from "./DiyDataTable-D1s7-cdV.js";
20
- import { Z as c } from "./Map-Bq9kPMot.js";
21
- import { C as Q, D as X, L as $, P as aa, b as oa, a as ra, m as ma, p as ta, r as sa, t as Za } from "./Map-Bq9kPMot.js";
22
- import { Z as M } from "./Table-BBWU5wYF.js";
23
- const _ = [
24
- I,
1
+ import { m as a } from "./utils-BbWQLYZL.js";
2
+ import { a as o, b as r } from "./Button-D-R-2Fix.js";
3
+ import { Z as m } from "./DatePicker-BDz_yTX2.js";
4
+ import { Z as t } from "./DetailSubTitle-DsnSxPKH.js";
5
+ import { Z as s } from "./Dialog-C_hAbDgU.js";
6
+ import { Z } from "./EditInfoPair-C0Ielr4q.js";
7
+ import { Z as i } from "./FileWrapper-DFqY2SD_.js";
8
+ import { a as e, Z as p, b as f } from "./Grid-CLg9sn2Y.js";
9
+ import { Z as h } from "./InfoPair-6agPuvqq.js";
10
+ import { Z as n, a as l } from "./Input-CzlIXSCf.js";
11
+ import { Z as D } from "./Loading-ClE8eADM.js";
12
+ import { Z as u, a as d, b as I, c as T } from "./MessageBox-CBMAgp6C.js";
13
+ import { Z as b } from "./MoneyInput-EODuzFjO.js";
14
+ import { Z as P } from "./PageHeadPanel-DDnMIqmC.js";
15
+ import { Z as A } from "./ToolTips-BpZo8gsa.js";
16
+ import { Z as L } from "./BaseInfo-CAuR2Id0.js";
17
+ import { Z as M } from "./DetailHeader-CBN9CqAp.js";
18
+ import { Z as c } from "./DiyDataTable-CXSUoapn.js";
19
+ import { D as Q } from "./DiyDataTable-CXSUoapn.js";
20
+ import { Z as _ } from "./Map-BJc6GMOA.js";
21
+ import { C as $, D as aa, L as oa, P as ra, b as ma, a as ta, m as sa, p as Za, r as ia, t as ea, z as pa } from "./Map-BJc6GMOA.js";
22
+ import { Z as g } from "./Table-D7YUOcI0.js";
23
+ import { Z as ha } from "./BaseItem-CQzBP1WX.js";
24
+ const x = [
25
+ L,
25
26
  o,
26
27
  m,
27
- A,
28
+ M,
28
29
  t,
29
30
  s,
30
- L,
31
+ c,
31
32
  Z,
32
33
  i,
33
- p,
34
34
  e,
35
+ p,
35
36
  f,
36
37
  h,
37
38
  n,
38
39
  l,
39
40
  D,
40
41
  u,
42
+ d,
43
+ I,
41
44
  T,
42
- P,
43
45
  b,
44
- d,
45
- c,
46
+ P,
47
+ A,
48
+ _,
46
49
  r,
47
- M
48
- ], q = a(_);
50
+ g
51
+ ], v = a(x);
49
52
  export {
50
- Q as CDN_URL,
51
- X as DEFAULT_VALUE,
52
- z as DIY_DATA_TYPE,
53
- $ as LOG_DATE_FORMAT,
54
- aa as PointMarkerClass,
55
- u as ZhAlert,
56
- I as ZhBaseInfo,
53
+ $ as CDN_URL,
54
+ aa as DEFAULT_VALUE,
55
+ Q as DIY_DATA_TYPE,
56
+ oa as LOG_DATE_FORMAT,
57
+ ra as PointMarkerClass,
58
+ I as ZhAlert,
59
+ L as ZhBaseInfo,
60
+ ha as ZhBaseItem,
57
61
  o as ZhButton,
58
62
  r as ZhButtonGroup,
59
- D as ZhConfirm,
63
+ d as ZhConfirm,
60
64
  m as ZhDatePicker,
61
- A as ZhDetailHeader,
65
+ M as ZhDetailHeader,
62
66
  t as ZhDetailSubTitle,
63
67
  s as ZhDialog,
64
- L as ZhDiyDataTable,
68
+ c as ZhDiyDataTable,
65
69
  Z as ZhEditInfoPair,
66
70
  i as ZhFileWrapper,
67
- p as ZhGrid,
68
- e as ZhInfoPair,
69
- f as ZhInput,
70
- h as ZhInputNumber,
71
- n as ZhLoading,
72
- c as ZhMap,
73
- l as ZhMessageBox,
74
- P as ZhMoneyInput,
75
- b as ZhPageHeadPanel,
71
+ e as ZhGrid,
72
+ p as ZhGridItem,
73
+ h as ZhInfoPair,
74
+ n as ZhInput,
75
+ l as ZhInputNumber,
76
+ D as ZhLoading,
77
+ _ as ZhMap,
78
+ u as ZhMessageBox,
79
+ b as ZhMoneyInput,
80
+ f as ZhMultiGrid,
81
+ P as ZhPageHeadPanel,
76
82
  T as ZhPrompt,
77
- M as ZhTable,
78
- d as ZhToolTips,
79
- oa as baseMap,
80
- q as default,
81
- ra as mapDefaultCenter,
82
- ma as mapZoom,
83
- ta as projection,
84
- sa as renderShipsLimit,
85
- Za as tiandituKey
83
+ g as ZhTable,
84
+ A as ZhToolTips,
85
+ ma as baseMap,
86
+ v as default,
87
+ ta as mapDefaultCenter,
88
+ sa as mapZoom,
89
+ Za as projection,
90
+ ia as renderShipsLimit,
91
+ ea as tiandituKey,
92
+ pa as zhongkeKey
86
93
  };
@@ -0,0 +1,52 @@
1
+ import { ap as o, x as h } from "./vendor-Cq716b5Q.js";
2
+ import { D as f, b as p } from "./BaseItem-CQzBP1WX.js";
3
+ function I(t) {
4
+ return (a) => o(t, (r) => {
5
+ a.use(r);
6
+ });
7
+ }
8
+ const d = (t) => (t.install = (e) => {
9
+ const a = (t == null ? void 0 : t.name) || "UnnamedComponent";
10
+ e.component(a, t);
11
+ }, t), M = (t, e = p) => t ? h(t).format(e).replace("Invalid date", f) : f, w = (t) => typeof t == "number" ? !0 : typeof t == "string" ? !isNaN(parseFloat(t)) : !1;
12
+ function E(t) {
13
+ const e = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], r = [
14
+ ["元", "万", "亿"],
15
+ ["", "拾", "佰", "仟"]
16
+ ], i = t < 0 ? "负" : "";
17
+ t = Math.abs(t);
18
+ let l = "";
19
+ for (let s = 0; s < e.length; s++)
20
+ l += (a[Math.floor(t * 10 * Math.pow(10, s)) % 10] + e[s]).replace(/零./, "");
21
+ l = l || "整", t = Math.floor(t);
22
+ for (let s = 0; s < r[0].length && t > 0; s++) {
23
+ let n = "";
24
+ for (let c = 0; c < r[1].length && t > 0; c++)
25
+ n = a[t % 10] + r[1][c] + n, t = Math.floor(t / 10);
26
+ l = n.replace(/(零.)*零$/, "").replace(/^$/, "零") + r[0][s] + l;
27
+ }
28
+ return i + l.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
29
+ }
30
+ function u(t) {
31
+ let e = t.replace(/^#/, "");
32
+ e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]);
33
+ const a = parseInt(e.slice(0, 2), 16), r = parseInt(e.slice(2, 4), 16), i = parseInt(e.slice(4, 6), 16);
34
+ return [a, r, i];
35
+ }
36
+ function g(t) {
37
+ const [e, a, r] = t;
38
+ return 0.299 * e + 0.587 * a + 0.114 * r;
39
+ }
40
+ function F(t, e = 128) {
41
+ t === "white" && (t = "#fff"), t === "black" && (t = "#000");
42
+ const a = u(t);
43
+ return g(a) > e ? "black" : "white";
44
+ }
45
+ export {
46
+ E as a,
47
+ M as d,
48
+ F as g,
49
+ I as m,
50
+ w as v,
51
+ d as w
52
+ };