@aplus-frontend/ui 0.6.5 → 0.6.7

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 (69) hide show
  1. package/es/index.mjs +28 -26
  2. package/es/src/ap-form/list/index.vue.d.ts +2 -1
  3. package/es/src/ap-form/list/index.vue.mjs +31 -27
  4. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +4 -1
  5. package/es/src/ap-grid/editable/form-item.vue.mjs +25 -24
  6. package/es/src/ap-grid/editable/index.vue.mjs +1 -0
  7. package/es/src/ap-grid/index.d.ts +1 -0
  8. package/es/src/ap-grid/index.mjs +4 -2
  9. package/es/src/ap-grid/index.vue.mjs +2 -1
  10. package/es/src/ap-grid/interface.d.ts +12 -0
  11. package/es/src/ap-grid/utils/col.mjs +44 -44
  12. package/es/src/ap-grid/utils/renderer.mjs +9 -9
  13. package/es/src/ap-grid/utils/table.mjs +15 -9
  14. package/es/src/ap-grid/utils/to-tree-array.d.ts +13 -0
  15. package/es/src/ap-grid/utils/to-tree-array.mjs +19 -0
  16. package/es/src/business/ap-copy/ApCopy.mjs +27 -25
  17. package/es/src/business/ap-label/ApLabel.d.ts +4 -3
  18. package/es/src/business/ap-label/ApLabel.mjs +18 -17
  19. package/es/src/business/ap-label/constans.d.ts +2 -2
  20. package/es/src/business/ap-label/constans.mjs +1 -1
  21. package/es/src/business/ap-label/index.d.ts +7 -7
  22. package/es/src/business/ap-label/interface.d.ts +1 -1
  23. package/es/src/business/ap-product-info/ApProductInfo.d.ts +3 -3
  24. package/es/src/business/ap-product-info/ApProductInfo.mjs +55 -40
  25. package/es/src/business/ap-product-info/interface.d.ts +2 -0
  26. package/es/src/business/ap-view/ap-view.vue2.mjs +1 -1
  27. package/es/src/index.mjs +24 -22
  28. package/es/src/version.d.ts +1 -1
  29. package/es/src/version.mjs +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  32. package/lib/src/ap-form/list/index.vue.js +1 -1
  33. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  34. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  35. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  36. package/lib/src/ap-grid/index.d.ts +1 -0
  37. package/lib/src/ap-grid/index.js +1 -1
  38. package/lib/src/ap-grid/index.vue.js +1 -1
  39. package/lib/src/ap-grid/interface.d.ts +12 -0
  40. package/lib/src/ap-grid/utils/col.js +1 -1
  41. package/lib/src/ap-grid/utils/renderer.js +1 -1
  42. package/lib/src/ap-grid/utils/table.js +1 -1
  43. package/lib/src/ap-grid/utils/to-tree-array.d.ts +13 -0
  44. package/lib/src/ap-grid/utils/to-tree-array.js +1 -0
  45. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  46. package/lib/src/business/ap-label/ApLabel.d.ts +4 -3
  47. package/lib/src/business/ap-label/ApLabel.js +1 -1
  48. package/lib/src/business/ap-label/constans.d.ts +2 -2
  49. package/lib/src/business/ap-label/constans.js +1 -1
  50. package/lib/src/business/ap-label/index.d.ts +7 -7
  51. package/lib/src/business/ap-label/interface.d.ts +1 -1
  52. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +3 -3
  53. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  54. package/lib/src/business/ap-product-info/interface.d.ts +2 -0
  55. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  56. package/lib/src/index.js +1 -1
  57. package/lib/src/version.d.ts +1 -1
  58. package/lib/src/version.js +1 -1
  59. package/package.json +1 -1
  60. package/theme/ap-grid/index.css +12 -0
  61. package/theme/ap-grid/index.less +16 -0
  62. package/theme/ap-label/ap-label.css +4 -0
  63. package/theme/ap-label/ap-label.less +5 -1
  64. package/theme/ap-product-info/ap-product-info.less +0 -1
  65. package/theme/font/aplusuiiconfont.otf +0 -0
  66. package/theme/font/font.css +5 -0
  67. package/theme/font/font.less +6 -0
  68. package/theme/index.css +21 -0
  69. package/theme/index.less +1 -0
@@ -0,0 +1,13 @@
1
+ type ToTreeArrayOptions = {
2
+ parentKey?: string;
3
+ key?: string;
4
+ children?: string;
5
+ };
6
+ /**
7
+ * 将树形结构的表格数据平铺
8
+ * @param array 待转换的树形数据
9
+ * @param options 配置 缺省配置为{ parentKey: 'parentId', key: 'id', children: 'children' }
10
+ * @returns
11
+ */
12
+ export declare function toTreeArray(array: any[], options?: ToTreeArrayOptions): any[];
13
+ export {};
@@ -0,0 +1,19 @@
1
+ const y = {
2
+ parentKey: "parentId",
3
+ key: "id",
4
+ children: "children"
5
+ };
6
+ function f(s, i = {}) {
7
+ const n = Object.assign(i, y), l = n.parentKey, d = n.key, t = n.children, r = [];
8
+ function o(p, a = null) {
9
+ var c;
10
+ for (const u of p) {
11
+ const e = { ...u };
12
+ e[l] = a, r.push(e), (c = e[t]) != null && c.length && o(e[t], e[d]), delete e[t];
13
+ }
14
+ }
15
+ return o(s, null), r;
16
+ }
17
+ export {
18
+ f as toTreeArray
19
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, Text as p, isVNode as y, computed as m, createVNode as n, Fragment as b } from "vue";
1
+ import { defineComponent as C, Text as p, isVNode as y, computed as m, createVNode as r, Fragment as T } from "vue";
2
2
  import { ApCopyProps as h } from "./constans.mjs";
3
3
  import { IconApAdLineCopy as k } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
@@ -6,20 +6,20 @@ import { message as d } from "@aplus-frontend/antdv";
6
6
  import { isNull as P, isUndefined as j } from "lodash-unified";
7
7
  import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  import { useLocale as N } from "../../config-provider/hooks/use-locale.mjs";
9
- const D = /* @__PURE__ */ T({
9
+ const D = /* @__PURE__ */ C({
10
10
  name: "CopyBtn",
11
11
  props: h(),
12
- setup(r, {
13
- slots: a
12
+ setup(n, {
13
+ slots: l
14
14
  }) {
15
15
  const {
16
16
  b: x,
17
- e: l,
17
+ e: a,
18
18
  m: g
19
19
  } = A("ap-copy"), {
20
20
  t: u
21
21
  } = N(), v = (t) => {
22
- t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(r.text || c() || "").then(() => {
22
+ t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(n.text || c() || "").then(() => {
23
23
  d.success(u("ap.apCopy.copySuccess"));
24
24
  }).catch(() => {
25
25
  d.error(u("ap.apCopy.copyError"));
@@ -31,17 +31,17 @@ const D = /* @__PURE__ */ T({
31
31
  return !0;
32
32
  }
33
33
  return !1;
34
- }, C = (t) => {
34
+ }, b = (t) => {
35
35
  if (!t.length) return "";
36
36
  const e = t[0];
37
37
  return e.type === p || e.type.toString() === "Symbol(Text)" ? String(e.children) : y(e) && typeof e.children == "string" ? e.children : "";
38
38
  }, c = () => {
39
39
  var f;
40
- const t = (f = a.default) == null ? void 0 : f.call(a);
41
- return t && S(t) ? C(t) : null;
40
+ const t = (f = l.default) == null ? void 0 : f.call(l);
41
+ return t && S(t) ? b(t) : null;
42
42
  }, s = (t) => !(P(t) || j(t) || typeof t == "string" && t === ""), o = m(() => {
43
- if (typeof r.textStyle == "string")
44
- switch (r.textStyle) {
43
+ if (typeof n.textStyle == "string")
44
+ switch (n.textStyle) {
45
45
  case "link":
46
46
  return "text-link";
47
47
  case "minor":
@@ -51,27 +51,29 @@ const D = /* @__PURE__ */ T({
51
51
  default:
52
52
  return "text-major";
53
53
  }
54
- else if (typeof r.textStyle == "object")
54
+ else if (typeof n.textStyle == "object")
55
55
  return {
56
- ...r.textStyle
56
+ ...n.textStyle
57
57
  };
58
58
  return {};
59
- }), i = m(() => c() || r.text || "");
60
- return () => n(b, null, [n("div", {
59
+ }), i = m(() => c() || n.text || "");
60
+ return () => r(T, null, [r("div", {
61
61
  class: [x()]
62
- }, [n("div", {
63
- class: [l("text"), typeof o.value == "string" && g(o.value)],
62
+ }, [r("div", {
63
+ class: [a("text"), typeof o.value == "string" && g(o.value)],
64
64
  style: typeof o.value != "string" && o.value,
65
65
  title: typeof o.value == "string" ? i.value : ""
66
- }, [s(i.value) ? r.link ? n("a", {
67
- href: r.link,
66
+ }, [s(i.value) ? n.link ? r("a", {
67
+ href: n.link,
68
68
  target: "_blank"
69
- }, [i.value]) : i.value : "--"]), s(i.value) && !r.disableCopy && n("div", {
70
- class: [l("copy-btn"), "copy-btn"],
71
- onClick: r.disableCopy ? void 0 : v
72
- }, [n(k, {
73
- size: r.size
74
- }, null)])])]);
69
+ }, [i.value]) : i.value : "--"]), s(i.value) && !n.disableCopy ? r("div", {
70
+ class: [a("copy-btn"), "copy-btn"],
71
+ onClick: n.disableCopy ? void 0 : v
72
+ }, [r(k, {
73
+ size: n.size
74
+ }, null)]) : r("div", {
75
+ class: [a("copy-btn"), "copy-btn"]
76
+ }, null)])]);
75
77
  }
76
78
  });
77
79
  export {
@@ -1,4 +1,5 @@
1
1
  import { VNode, DefineComponent, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
2
+ import { ApLabelProps as ApLabelPropsType } from './interface';
2
3
  import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
3
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
5
  import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
@@ -16,7 +17,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
16
17
  default: string;
17
18
  };
18
19
  iconType: {
19
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
20
+ type: PropType<ApLabelPropsType["iconType"]>;
20
21
  default: string;
21
22
  };
22
23
  iconSize: {
@@ -76,7 +77,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
76
77
  default: string;
77
78
  };
78
79
  iconType: {
79
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
80
+ type: PropType<ApLabelPropsType["iconType"]>;
80
81
  default: string;
81
82
  };
82
83
  iconSize: {
@@ -127,7 +128,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
127
128
  placement: TooltipPlacement;
128
129
  show: boolean;
129
130
  dot: boolean;
130
- iconType: "ellipsis" | "success" | "warning" | "question";
131
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
131
132
  count: any;
132
133
  showZero: boolean;
133
134
  overflowCount: number;
@@ -1,24 +1,23 @@
1
- import { defineComponent as a, useSlots as r, computed as m, createVNode as e, mergeProps as d } from "vue";
1
+ import { defineComponent as s, useSlots as r, computed as m, createVNode as e, mergeProps as d } from "vue";
2
2
  import { Tooltip as f, Badge as p } from "@aplus-frontend/antdv";
3
- import { IconApAdLineAnnotation as A, IconApAdFillWarn as y, IconApAdFillExecution as v, IconApAdFillSuccessful as b } from "@aplus-frontend/icon";
3
+ import { IconApAdLineAnnotation as A, IconApAdFillWarn as y, IconApAdLineWarn as v, IconApAdFillExecution as g, IconApAdFillSuccessful as T } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { ApLabelProps as g } from "./constans.mjs";
6
- import { omit as T } from "lodash-unified";
7
- import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
8
- const z = /* @__PURE__ */ a({
5
+ import { ApLabelProps as b } from "./constans.mjs";
6
+ import { omit as L } from "lodash-unified";
7
+ import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
8
+ const B = /* @__PURE__ */ s({
9
9
  name: "ApLabel",
10
- props: g(),
10
+ props: b(),
11
11
  setup(l) {
12
12
  const {
13
- b: s,
13
+ b: c,
14
14
  e: i
15
- } = x("ap-label"), o = r(), n = m(() => ({
15
+ } = I("ap-label"), o = r(), n = m(() => ({
16
16
  color: l.iconColor,
17
17
  "font-size": l.iconSize + "px",
18
18
  "margin-left": "4px",
19
- display: "inline-flex",
20
19
  cursor: "pointer"
21
- })), c = (u, t) => u ? e(f, {
20
+ })), a = (u, t) => u ? e(f, {
22
21
  title: u,
23
22
  placement: t.placement || "top",
24
23
  color: t.toolTipBgColor
@@ -27,23 +26,25 @@ const z = /* @__PURE__ */ a({
27
26
  style: n.value
28
27
  }, null), t.iconType === "warning" && e(y, {
29
28
  style: n.value
30
- }, null), t.iconType === "ellipsis" && e(v, {
29
+ }, null), t.iconType === "line-warning" && e(v, {
31
30
  style: n.value
32
- }, null), t.iconType === "success" && e(b, {
31
+ }, null), t.iconType === "ellipsis" && e(g, {
32
+ style: n.value
33
+ }, null), t.iconType === "success" && e(T, {
33
34
  style: n.value
34
35
  }, null)]
35
36
  }) : null;
36
37
  return () => e("div", null, [l.show ? e("div", {
37
- class: [s()]
38
+ class: [c()]
38
39
  }, [e("div", {
39
40
  class: [i("content")]
40
- }, [e(p, d(T(l, ["helpMessage", "placement", "iconColor"]), {
41
+ }, [e(p, d(L(l, ["helpMessage", "placement", "iconColor"]), {
41
42
  status: l.status ? l.status : "default"
42
- }), null), o.default ? o.default() : c(l.helpMessage, l)]), o.custom ? e("div", {
43
+ }), null), o.default ? o.default() : a(l.helpMessage, l)]), o.custom ? e("div", {
43
44
  class: [i("custom")]
44
45
  }, [o.custom()]) : null]) : null]);
45
46
  }
46
47
  });
47
48
  export {
48
- z as default
49
+ B as default
49
50
  };
@@ -1,5 +1,5 @@
1
1
  import { PropType, VNode, CSSProperties } from 'vue';
2
- import { ApLabelGroupItemProps } from './interface';
2
+ import { ApLabelGroupItemProps, ApLabelProps as ApLabelPropsInterface } from './interface';
3
3
  import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
@@ -35,7 +35,7 @@ export declare const ApLabelProps: () => {
35
35
  default: string;
36
36
  };
37
37
  iconType: {
38
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
38
+ type: PropType<ApLabelPropsInterface["iconType"]>;
39
39
  default: string;
40
40
  };
41
41
  iconSize: {
@@ -36,7 +36,7 @@ const o = () => ({
36
36
  },
37
37
  iconSize: {
38
38
  type: Number,
39
- default: 14
39
+ default: 16
40
40
  },
41
41
  show: {
42
42
  type: Boolean,
@@ -1,8 +1,8 @@
1
1
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, CSSProperties, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
3
+ import { ApLabelProps, ApLabelGroupItemProps } from './interface';
3
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
5
  import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
5
- import { ApLabelGroupItemProps } from './interface';
6
6
  export * from './interface';
7
7
  declare const ApLabel: {
8
8
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -19,7 +19,7 @@ declare const ApLabel: {
19
19
  default: string;
20
20
  };
21
21
  iconType: {
22
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
22
+ type: PropType< ApLabelProps["iconType"]>;
23
23
  default: string;
24
24
  };
25
25
  iconSize: {
@@ -70,7 +70,7 @@ declare const ApLabel: {
70
70
  placement: TooltipPlacement;
71
71
  show: boolean;
72
72
  dot: boolean;
73
- iconType: "ellipsis" | "success" | "warning" | "question";
73
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
74
74
  count: any;
75
75
  showZero: boolean;
76
76
  overflowCount: number;
@@ -101,7 +101,7 @@ declare const ApLabel: {
101
101
  default: string;
102
102
  };
103
103
  iconType: {
104
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
104
+ type: PropType< ApLabelProps["iconType"]>;
105
105
  default: string;
106
106
  };
107
107
  iconSize: {
@@ -152,7 +152,7 @@ declare const ApLabel: {
152
152
  placement: TooltipPlacement;
153
153
  show: boolean;
154
154
  dot: boolean;
155
- iconType: "ellipsis" | "success" | "warning" | "question";
155
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
156
156
  count: any;
157
157
  showZero: boolean;
158
158
  overflowCount: number;
@@ -180,7 +180,7 @@ declare const ApLabel: {
180
180
  default: string;
181
181
  };
182
182
  iconType: {
183
- type: PropType<"question" | "warning" | "ellipsis" | "success">;
183
+ type: PropType< ApLabelProps["iconType"]>;
184
184
  default: string;
185
185
  };
186
186
  iconSize: {
@@ -231,7 +231,7 @@ declare const ApLabel: {
231
231
  placement: TooltipPlacement;
232
232
  show: boolean;
233
233
  dot: boolean;
234
- iconType: "ellipsis" | "success" | "warning" | "question";
234
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
235
235
  count: any;
236
236
  showZero: boolean;
237
237
  overflowCount: number;
@@ -7,7 +7,7 @@ export type ApLabelProps = BadgeProps & Partial<{
7
7
  helpMessage: VNode | string | undefined;
8
8
  placement: TooltipPlacement;
9
9
  iconColor: string;
10
- iconType: 'question' | 'warning' | 'ellipsis' | 'success';
10
+ iconType: 'question' | 'warning' | 'line-warning' | 'ellipsis' | 'success';
11
11
  iconSize: number;
12
12
  show: boolean;
13
13
  toolTipBgColor: string;
@@ -1,5 +1,5 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
1
  import { ApProductInfoValue } from './interface';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ExtractPropTypes<{
4
4
  title: {
5
5
  type: StringConstructor;
@@ -14,7 +14,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
14
14
  default: boolean;
15
15
  };
16
16
  values: {
17
- type: PropType< ApProductInfoValue[]>;
17
+ type: PropType<ApProductInfoValue[]>;
18
18
  default: () => never[];
19
19
  };
20
20
  disableCopy: {
@@ -35,7 +35,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
35
35
  default: boolean;
36
36
  };
37
37
  values: {
38
- type: PropType< ApProductInfoValue[]>;
38
+ type: PropType<ApProductInfoValue[]>;
39
39
  default: () => never[];
40
40
  };
41
41
  disableCopy: {
@@ -1,64 +1,79 @@
1
- import { defineComponent as v, h as f, createVNode as l, createTextVNode as p } from "vue";
2
- import { ApProductInfoProps as m } from "./constans.mjs";
1
+ import { defineComponent as f, h as t, createVNode as e, createTextVNode as v } from "vue";
2
+ import { ApProductInfoProps as g } from "./constans.mjs";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { ApImage as y } from "../ap-image/index.mjs";
5
- import { ApCopy as a } from "../ap-copy/index.mjs";
6
- import { useNamespace as b } from "../../config-provider/hooks/use-namespace.mjs";
7
- import { useGlobalConfig as g } from "../../config-provider/hooks/use-global-config.mjs";
8
- const N = /* @__PURE__ */ v({
5
+ import { ApCopy as i } from "../ap-copy/index.mjs";
6
+ import { Space as h, Tooltip as m } from "@aplus-frontend/antdv";
7
+ import { IconApAdFillWarn as b } from "@aplus-frontend/icon";
8
+ import { useNamespace as k } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { useGlobalConfig as C } from "../../config-provider/hooks/use-global-config.mjs";
10
+ const T = /* @__PURE__ */ f({
9
11
  name: "ApProductInfo",
10
- props: m(),
11
- setup(i) {
12
+ props: g(),
13
+ setup(r) {
12
14
  const {
13
- b: n,
15
+ b: s,
14
16
  e: o,
15
- m: r
16
- } = b("ap-product-info"), s = (e) => typeof e.value == "function" ? e.value() : f(a, {
17
- text: e.value,
18
- textStyle: e.link ? "link" : "minor",
19
- link: e.link,
20
- disableCopy: i.disableCopy
21
- }, e.value), d = g("uiMode");
22
- return () => l("div", {
23
- class: [n(), `${r(d.value)}`]
24
- }, [l("div", {
17
+ m: a
18
+ } = k("ap-product-info"), c = (l) => typeof l.value == "function" ? l.value() : l.helpMessage ? t(h.Compact, {}, [t(i, {
19
+ text: l.value,
20
+ link: l.link,
21
+ textStyle: l.link ? "link" : "minor"
22
+ }), t(m, {
23
+ placement: "top",
24
+ color: l.toolTipBgColor,
25
+ title: typeof l.helpMessage == "string" ? l.helpMessage : t(l.helpMessage)
26
+ }, () => t(b, {
27
+ color: "#FFA940",
28
+ style: {
29
+ cursor: "pointer"
30
+ }
31
+ }))]) : t(i, {
32
+ text: l.value,
33
+ textStyle: l.link ? "link" : "minor",
34
+ link: l.link,
35
+ disableCopy: r.disableCopy
36
+ }, l.value), p = C("uiMode");
37
+ return () => e("div", {
38
+ class: [s(), `${a(p.value)}`]
39
+ }, [e("div", {
25
40
  class: o("img")
26
- }, [l(y, {
27
- src: i.imgSrc,
41
+ }, [e(y, {
42
+ src: r.imgSrc,
28
43
  width: 44,
29
44
  height: 44,
30
- preview: i.preview
31
- }, null)]), l("div", {
45
+ preview: r.preview
46
+ }, null)]), e("div", {
32
47
  class: [o("content")]
33
- }, [l(a, {
34
- disableCopy: i.disableCopy
48
+ }, [e(i, {
49
+ disableCopy: r.disableCopy
35
50
  }, {
36
- default: () => [i.title]
37
- }), l("div", {
51
+ default: () => [r.title]
52
+ }), e("div", {
38
53
  class: o("row-container")
39
- }, [i.values.map((e, u) => {
40
- const t = e.col === 2, c = e.col !== 2 && u % 2 === 0;
41
- return l("div", {
42
- key: JSON.stringify(e),
43
- class: [o("row-item"), r(t ? "full" : "half")]
44
- }, [l("div", {
54
+ }, [r.values.map((l, u) => {
55
+ const n = l.col === 2, d = l.col !== 2 && u % 2 === 0;
56
+ return e("div", {
57
+ key: JSON.stringify(l),
58
+ class: [o("row-item"), a(n ? "full" : "half")]
59
+ }, [e("div", {
45
60
  class: [o("item")]
46
- }, [e.label && l("div", {
61
+ }, [l.label && e("div", {
47
62
  class: o("label")
48
- }, [e.label, l("span", null, [p(":")])]), l("div", {
49
- class: [o("value"), !t && r("overflow")],
50
- title: typeof e.value != "function" ? String(e.value || "") : ""
51
- }, [s(e)])]), c && l("div", {
63
+ }, [l.label, e("span", null, [v(":")])]), e("div", {
64
+ class: [o("value"), !n && a("overflow")],
65
+ title: typeof l.value != "function" ? String(l.value || "") : ""
66
+ }, [c(l)])]), d && e("div", {
52
67
  class: o("divider"),
53
68
  style: {
54
69
  right: 0
55
70
  }
56
- }, [l("div", {
71
+ }, [e("div", {
57
72
  class: o("divider-vertical")
58
73
  }, null)])]);
59
74
  })])])]);
60
75
  }
61
76
  });
62
77
  export {
63
- N as default
78
+ T as default
64
79
  };
@@ -11,4 +11,6 @@ export interface ApProductInfoValue {
11
11
  link?: string;
12
12
  col?: number;
13
13
  value?: string | number | VNode | (() => VNode);
14
+ helpMessage?: string | VNode;
15
+ toolTipBgColor?: string;
14
16
  }
@@ -86,7 +86,7 @@ const _e = /* @__PURE__ */ Q({
86
86
  const i = r.value.find((l) => l.viewKey === V.value);
87
87
  i && setTimeout(() => {
88
88
  var l, o, m, f, n, u, y, x, h;
89
- i.viewKey === c ? ((l = e == null ? void 0 : e.resetSearchFormSorterItems) == null || l.call(e), d ? (o = e == null ? void 0 : e.submit) == null || o.call(e) : (m = e == null ? void 0 : e.reset) == null || m.call(e)) : ((u = e == null ? void 0 : e.setSearchFormValues) == null || u.call(e, {
89
+ i.viewKey === c ? d ? (l = e == null ? void 0 : e.submit) == null || l.call(e) : ((o = e == null ? void 0 : e.resetSearchFormSorterItems) == null || o.call(e), (m = e == null ? void 0 : e.reset) == null || m.call(e)) : ((u = e == null ? void 0 : e.setSearchFormValues) == null || u.call(e, {
90
90
  ...Object.fromEntries(Object.keys(((f = e == null ? void 0 : e.getSearchFormValues) == null ? void 0 : f.call(e)) ?? {}).map((J) => [J, void 0])) ?? {},
91
91
  ...((n = i.viewConfig) == null ? void 0 : n.searchForm) ?? {}
92
92
  }), (x = e == null ? void 0 : e.setSearchFormSorterItems) == null || x.call(e, ((y = i.viewConfig) == null ? void 0 : y.sorterItems) ?? []), (h = e == null ? void 0 : e.submit) == null || h.call(e)), d = !1;
package/es/src/index.mjs CHANGED
@@ -9,7 +9,7 @@ import "./ap-info-layout/index.mjs";
9
9
  import "./ap-upload/index.mjs";
10
10
  import "./ap-download/index.mjs";
11
11
  import { CheckCard as R } from "./check-card/index.mjs";
12
- import { ApModal as y } from "./ap-modal/index.mjs";
12
+ import { ApModal as v } from "./ap-modal/index.mjs";
13
13
  import "./ap-list/index.mjs";
14
14
  import "./ap-button/index.mjs";
15
15
  import { ApDrawer as w } from "./ap-drawer/index.mjs";
@@ -43,7 +43,7 @@ import { default as Ge } from "./ap-form/items/switch/index.vue.mjs";
43
43
  import { default as Ee } from "./ap-form/items/checkbox/index.vue.mjs";
44
44
  import { default as Le } from "./ap-form/items/text/password.vue.mjs";
45
45
  import { default as Re } from "./ap-form/items/tree-select/index.vue.mjs";
46
- import { default as ye } from "./ap-form/item/index.vue.mjs";
46
+ import { default as ve } from "./ap-form/item/index.vue.mjs";
47
47
  import { default as we } from "./ap-form/item-group/index.vue.mjs";
48
48
  import { default as Be } from "./ap-form/list/index.vue.mjs";
49
49
  import { default as Oe } from "./ap-form/search-form/index.vue.mjs";
@@ -69,7 +69,7 @@ import { default as go } from "./ap-field/segmented/index.vue.mjs";
69
69
  import { default as ho } from "./ap-field/rate/index.vue.mjs";
70
70
  import { default as Po } from "./ap-field/tree-select/index.vue.mjs";
71
71
  import { default as No } from "./ap-action/item-modal/index.vue.mjs";
72
- import { default as vo } from "./ap-action/item-popconfirm/index.vue.mjs";
72
+ import { default as yo } from "./ap-action/item-popconfirm/index.vue.mjs";
73
73
  import { default as Mo } from "./ap-action/item-dropdown/index.vue.mjs";
74
74
  import { default as ko } from "./ap-action/group/index.vue.mjs";
75
75
  import { DictCode as Ko, langMap as Oo } from "./work-order-modal/interfaces.mjs";
@@ -96,7 +96,7 @@ import { ApBatchAction as Gr } from "./business/ap-batch-action/index.mjs";
96
96
  import { ApBatchActionGroup as Er } from "./business/ap-batch-action-group/index.mjs";
97
97
  import { ApButtonGroup as Lr } from "./business/ap-button-group/index.mjs";
98
98
  import { ApCard as Rr } from "./business/ap-card/index.mjs";
99
- import { ApExpandAlert as yr } from "./business/ap-expand-alert/index.mjs";
99
+ import { ApExpandAlert as vr } from "./business/ap-expand-alert/index.mjs";
100
100
  import { ApExportGroupActionType as wr } from "./business/ap-export-group/interface.mjs";
101
101
  import { ApExportGroup as Br } from "./business/ap-export-group/index.mjs";
102
102
  import { handleExportDownload as Or } from "./business/ap-export-group/handleExportDownload.mjs";
@@ -119,7 +119,7 @@ import { ApNeedNameKeyDefault as Ct } from "./business/ap-appendix/interface.mjs
119
119
  import { ApAppendix as gt } from "./business/ap-appendix/index.mjs";
120
120
  import { ApExtensionSelect as ht, ApGroupSearch as Et, ApPopoverSelect as Pt } from "./business/ap-group-search/index.mjs";
121
121
  import { default as Nt } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
122
- import { default as vt } from "./business/batch-input-group/index.vue.mjs";
122
+ import { default as yt } from "./business/batch-input-group/index.vue.mjs";
123
123
  import { default as Mt } from "./business/batch-input-group/form-item.vue.mjs";
124
124
  import { ApSizeInput as kt } from "./business/ap-size-input/index.mjs";
125
125
  import { ApProductInfo as Kt } from "./business/ap-product-info/index.mjs";
@@ -143,12 +143,13 @@ import { default as Tp } from "./portal/index.vue.mjs";
143
143
  import { default as bp } from "./full-screen/index.vue.mjs";
144
144
  import { default as Dp } from "./resize-observer/index.vue.mjs";
145
145
  import { ROW_SELECTION_FIELD as Gp } from "./ap-grid/constants.mjs";
146
- import { default as Ep } from "./ap-grid/index.vue.mjs";
147
- import { default as Lp } from "./ap-grid/editable/index.vue.mjs";
148
- import { default as Rp } from "./ap-grid/editable/form-item.vue.mjs";
149
- import { default as yp } from "./text/index.vue.mjs";
150
- import { default as wp } from "./text/group.vue.mjs";
151
- import { default as Bp } from "./mask/index.vue.mjs";
146
+ import { toTreeArray as Ep } from "./ap-grid/utils/to-tree-array.mjs";
147
+ import { default as Lp } from "./ap-grid/index.vue.mjs";
148
+ import { default as Rp } from "./ap-grid/editable/index.vue.mjs";
149
+ import { default as vp } from "./ap-grid/editable/form-item.vue.mjs";
150
+ import { default as wp } from "./text/index.vue.mjs";
151
+ import { default as Bp } from "./text/group.vue.mjs";
152
+ import { default as Op } from "./mask/index.vue.mjs";
152
153
  export {
153
154
  S as APConfigProvider,
154
155
  ur as ApActionButton,
@@ -156,7 +157,7 @@ export {
156
157
  L as ApActionItem,
157
158
  Mo as ApActionItemDropdown,
158
159
  No as ApActionItemModal,
159
- vo as ApActionItemPopconfirm,
160
+ yo as ApActionItemPopconfirm,
160
161
  gt as ApAppendix,
161
162
  Dr as ApAttachment,
162
163
  Gr as ApBatchAction,
@@ -170,7 +171,7 @@ export {
170
171
  or as ApDownLoadNeedNameKeyDefault,
171
172
  tr as ApDownload,
172
173
  w as ApDrawer,
173
- yr as ApExpandAlert,
174
+ vr as ApExpandAlert,
174
175
  Br as ApExportGroup,
175
176
  wr as ApExportGroupActionType,
176
177
  ht as ApExtensionSelect,
@@ -193,7 +194,7 @@ export {
193
194
  Qe as ApFormControlRender,
194
195
  We as ApFormDependency,
195
196
  qe as ApFormDrawerForm,
196
- ye as ApFormItem,
197
+ ve as ApFormItem,
197
198
  Mt as ApFormItemBatchInput,
198
199
  Ee as ApFormItemCheckbox,
199
200
  Fe as ApFormItemDate,
@@ -213,7 +214,7 @@ export {
213
214
  $e as ApFormProvider,
214
215
  Oe as ApFormSearchForm,
215
216
  je as ApFormSet,
216
- Ep as ApGrid,
217
+ Lp as ApGrid,
217
218
  Et as ApGroupSearch,
218
219
  Wr as ApImage,
219
220
  Qo as ApInfoLayout,
@@ -224,7 +225,7 @@ export {
224
225
  Jr as ApLabelGroup,
225
226
  Zr as ApLadder,
226
227
  fr as ApList,
227
- y as ApModal,
228
+ v as ApModal,
228
229
  Ct as ApNeedNameKeyDefault,
229
230
  Pt as ApPopoverSelect,
230
231
  Kt as ApProductInfo,
@@ -238,28 +239,28 @@ export {
238
239
  Fr as ApTableModal,
239
240
  jo as ApTag,
240
241
  qo as ApTagGroup,
241
- yp as ApText,
242
- wp as ApTextGroup,
242
+ wp as ApText,
243
+ Bp as ApTextGroup,
243
244
  at as ApTitle,
244
245
  nr as ApTransformDataHelper,
245
246
  $o as ApUpload,
246
247
  Nt as ApUploadSingle,
247
248
  Vt as ApView,
248
- vt as BatchInputGroup,
249
+ yt as BatchInputGroup,
249
250
  R as CheckCard,
250
251
  ar as CheckCardGroup,
251
252
  le as ConfigProvider,
252
253
  W as DEFAULT_NAMESPACE,
253
254
  z as DEFAULT_UIMODE,
254
255
  Ko as DictCode,
255
- Lp as EditableGrid,
256
- Rp as EditableGridFormItem,
256
+ Rp as EditableGrid,
257
+ vp as EditableGridFormItem,
257
258
  ap as EditableTable,
258
259
  fp as EditableTableFormItem,
259
260
  bp as FullScreen,
260
261
  np as InternalScrollBar,
261
262
  Yt as LruCacher,
262
- Bp as Mask,
263
+ Op as Mask,
263
264
  Yo as NeedNameKeyDefault,
264
265
  Tp as Portal,
265
266
  Gp as ROW_SELECTION_FIELD,
@@ -292,6 +293,7 @@ export {
292
293
  Xr as locales,
293
294
  pe as namespaceContextKey,
294
295
  J as provideGlobalConfig,
296
+ Ep as toTreeArray,
295
297
  ee as translate,
296
298
  $t as useApKeepAliveInject,
297
299
  ae as useGetDerivedNamespace,