@aplus-frontend/ui 0.6.6 → 0.6.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 (85) hide show
  1. package/es/index.mjs +28 -26
  2. package/es/src/ap-form/interface.d.ts +4 -0
  3. package/es/src/ap-form/list/index.vue.d.ts +2 -1
  4. package/es/src/ap-form/list/index.vue.mjs +31 -27
  5. package/es/src/ap-form/search-form/index.vue.d.ts +1 -0
  6. package/es/src/ap-form/search-form/index.vue.mjs +53 -48
  7. package/es/src/ap-grid/editable/form-item.vue.mjs +25 -24
  8. package/es/src/ap-grid/editable/index.vue.mjs +1 -0
  9. package/es/src/ap-grid/index.d.ts +1 -0
  10. package/es/src/ap-grid/index.mjs +4 -2
  11. package/es/src/ap-grid/index.vue.mjs +2 -1
  12. package/es/src/ap-grid/interface.d.ts +12 -0
  13. package/es/src/ap-grid/utils/col.mjs +44 -44
  14. package/es/src/ap-grid/utils/renderer.mjs +9 -9
  15. package/es/src/ap-grid/utils/table.mjs +15 -9
  16. package/es/src/ap-grid/utils/to-tree-array.d.ts +13 -0
  17. package/es/src/ap-grid/utils/to-tree-array.mjs +19 -0
  18. package/es/src/business/ap-copy/ApCopy.mjs +27 -25
  19. package/es/src/business/ap-label/ApLabel.d.ts +4 -3
  20. package/es/src/business/ap-label/ApLabel.mjs +18 -17
  21. package/es/src/business/ap-label/constans.d.ts +2 -2
  22. package/es/src/business/ap-label/constans.mjs +1 -1
  23. package/es/src/business/ap-label/index.d.ts +7 -7
  24. package/es/src/business/ap-label/interface.d.ts +1 -1
  25. package/es/src/business/ap-product-info/ApProductInfo.d.ts +3 -3
  26. package/es/src/business/ap-product-info/ApProductInfo.mjs +55 -40
  27. package/es/src/business/ap-product-info/interface.d.ts +2 -0
  28. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  29. package/es/src/business/ap-radio-group/index.d.ts +3 -3
  30. package/es/src/business/ap-summary/interface.d.ts +1 -1
  31. package/es/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
  32. package/es/src/business/hooks/useKeepAliveFlag.mjs +18 -0
  33. package/es/src/business/hooks/usePageListApGrid.d.ts +4 -0
  34. package/es/src/business/hooks/usePageListApGrid.mjs +42 -31
  35. package/es/src/index.mjs +24 -22
  36. package/es/src/version.d.ts +1 -1
  37. package/es/src/version.mjs +1 -1
  38. package/lib/index.js +1 -1
  39. package/lib/src/ap-form/interface.d.ts +4 -0
  40. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  41. package/lib/src/ap-form/list/index.vue.js +1 -1
  42. package/lib/src/ap-form/search-form/index.vue.d.ts +1 -0
  43. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  44. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  45. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  46. package/lib/src/ap-grid/index.d.ts +1 -0
  47. package/lib/src/ap-grid/index.js +1 -1
  48. package/lib/src/ap-grid/index.vue.js +1 -1
  49. package/lib/src/ap-grid/interface.d.ts +12 -0
  50. package/lib/src/ap-grid/utils/col.js +1 -1
  51. package/lib/src/ap-grid/utils/renderer.js +1 -1
  52. package/lib/src/ap-grid/utils/table.js +1 -1
  53. package/lib/src/ap-grid/utils/to-tree-array.d.ts +13 -0
  54. package/lib/src/ap-grid/utils/to-tree-array.js +1 -0
  55. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  56. package/lib/src/business/ap-label/ApLabel.d.ts +4 -3
  57. package/lib/src/business/ap-label/ApLabel.js +1 -1
  58. package/lib/src/business/ap-label/constans.d.ts +2 -2
  59. package/lib/src/business/ap-label/constans.js +1 -1
  60. package/lib/src/business/ap-label/index.d.ts +7 -7
  61. package/lib/src/business/ap-label/interface.d.ts +1 -1
  62. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +3 -3
  63. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  64. package/lib/src/business/ap-product-info/interface.d.ts +2 -0
  65. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  66. package/lib/src/business/ap-radio-group/index.d.ts +3 -3
  67. package/lib/src/business/ap-summary/interface.d.ts +1 -1
  68. package/lib/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
  69. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -0
  70. package/lib/src/business/hooks/usePageListApGrid.d.ts +4 -0
  71. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  72. package/lib/src/index.js +1 -1
  73. package/lib/src/version.d.ts +1 -1
  74. package/lib/src/version.js +1 -1
  75. package/package.json +3 -3
  76. package/theme/ap-grid/index.css +12 -0
  77. package/theme/ap-grid/index.less +16 -0
  78. package/theme/ap-label/ap-label.css +4 -0
  79. package/theme/ap-label/ap-label.less +5 -1
  80. package/theme/ap-product-info/ap-product-info.less +0 -1
  81. package/theme/font/aplusuiiconfont.otf +0 -0
  82. package/theme/font/font.css +5 -0
  83. package/theme/font/font.less +6 -0
  84. package/theme/index.css +21 -0
  85. package/theme/index.less +1 -0
@@ -1,19 +1,19 @@
1
1
  import { createVNode as v, Fragment as O } from "vue";
2
- import { isUndefined as S, isArray as $, isString as x, isBoolean as c, isNumber as M, pick as A } from "lodash-unified";
3
- import { valueEnumToArray as V, objectToString as j, getTableTitle as R, getTableRenderType as B, getTableRenderProps as W, getTableCellRenderNode as _ } from "../../ap-table/utils.mjs";
4
- import { noRenderAsFormItemValueList as k } from "../../ap-table/constants.mjs";
2
+ import { isUndefined as S, isArray as $, isString as x, isBoolean as A, isNumber as M, pick as R } from "lodash-unified";
3
+ import { valueEnumToArray as V, objectToString as j, getTableTitle as c, getTableRenderType as q, getTableRenderProps as B, getTableCellRenderNode as W } from "../../ap-table/utils.mjs";
4
+ import { noRenderAsFormItemValueList as _ } from "../../ap-table/constants.mjs";
5
5
  import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
6
- import z from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
- function b(e) {
6
+ import k from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
+ function N(e) {
8
8
  if (!S(e))
9
9
  return $(e) ? e.reduce((r, i) => x(i) ? `${r}.${i}` : `${r}[${i}]`, "") : String(e);
10
10
  }
11
- function w(e) {
11
+ function b(e) {
12
12
  if (e)
13
13
  return e === !0 ? "left" : e;
14
14
  }
15
- function G(e) {
16
- return c(e) ? {
15
+ function z(e) {
16
+ return A(e) ? {
17
17
  sortable: e
18
18
  } : e ? {
19
19
  sortable: !0,
@@ -23,18 +23,18 @@ function G(e) {
23
23
  sortable: !1
24
24
  };
25
25
  }
26
- function I(e) {
26
+ function G(e) {
27
27
  let r;
28
- return c(e.filters) && e.valueEnum ? r = V(e.valueEnum) : r = e.filters, r == null ? void 0 : r.map((i) => ({
28
+ return A(e.filters) && e.valueEnum ? r = V(e.valueEnum) : r = e.filters, r == null ? void 0 : r.map((i) => ({
29
29
  label: x(i.text) ? i.text : "",
30
30
  value: i.value
31
31
  }));
32
32
  }
33
- function L(e) {
33
+ function I(e) {
34
34
  if (e)
35
35
  return (r) => e(r.value, r.row);
36
36
  }
37
- function U(e, r) {
37
+ function L(e, r) {
38
38
  return e ? M(e) ? {
39
39
  tooltip: r,
40
40
  rows: e
@@ -47,12 +47,12 @@ function U(e, r) {
47
47
  htmlTitle: e === "title" ? r : ""
48
48
  } : !1;
49
49
  }
50
- function q(e, r, i) {
51
- if (k.includes(e.valueType))
50
+ function U(e, r, i) {
51
+ if (_.includes(e.valueType))
52
52
  return i;
53
53
  if (e.copyable || e.ellipsis) {
54
- const l = U(e.ellipsis, r), t = j(r);
55
- return v(z, {
54
+ const l = L(e.ellipsis, r), t = j(r);
55
+ return v(k, {
56
56
  rawValue: t,
57
57
  copyable: e.copyable,
58
58
  ellipsis: l,
@@ -62,63 +62,63 @@ function q(e, r, i) {
62
62
  return i;
63
63
  }
64
64
  function y(e, r, i) {
65
- const l = A(e, ["width", "minWidth", "align"]);
66
- return l.field = b(e.dataIndex), l.fixed = w(e.fixed), l.slots = {
67
- header: () => R(e, i, void 0, r)
65
+ const l = R(e, ["width", "minWidth", "align"]);
66
+ return l.field = N(e.dataIndex), l.fixed = b(e.fixed), l.slots = {
67
+ header: () => c(e, i, void 0, r)
68
68
  }, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
69
69
  }
70
70
  function F(e, r, i, l) {
71
- const t = A(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName"]);
72
- t.field = b(e.dataIndex), t.fixed = w(e.fixed), t.headerAlign = e.align, t.footerAlign = e.align, t.showOverflow = !1, t.showFooterOverflow = !1, Object.assign(t, G(e.sorter)), t.filters = I(e), t.filterMultiple = e.filterMultiple, t.filterMethod = L(e.onFilter);
71
+ const t = R(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
72
+ t.field = N(e.dataIndex), t.fixed = b(e.fixed), t.headerAlign = e.align, t.footerAlign = e.align, t.showOverflow = !1, t.showFooterOverflow = !1, Object.assign(t, z(e.sorter)), t.filters = G(e), t.filterMultiple = e.filterMultiple, t.filterMethod = I(e.onFilter);
73
73
  const f = ({
74
- value: n,
74
+ value: d,
75
75
  ...s
76
76
  }) => {
77
77
  var o, T;
78
- const a = B(e), u = W({
78
+ const a = q(e), u = B({
79
79
  ...e,
80
80
  valueType: a
81
81
  }, {
82
- value: n,
82
+ value: d,
83
83
  ...s
84
- }), E = _(a, u, s.record, l), h = ((o = e.renderText) == null ? void 0 : o.call(e, {
85
- value: n,
84
+ }), w = W(a, u, s.record, l), h = ((o = e.renderText) == null ? void 0 : o.call(e, {
85
+ value: d,
86
86
  ...s
87
- })) || n, N = e.renderText ? v(O, null, [(T = e.renderText) == null ? void 0 : T.call(e, {
88
- value: n,
87
+ })) || d, E = e.renderText ? v(O, null, [(T = e.renderText) == null ? void 0 : T.call(e, {
88
+ value: d,
89
89
  ...s
90
- })]) : E;
91
- let p = q(e, h, N);
90
+ })]) : w;
91
+ let p = U(e, h, E);
92
92
  return e.customRender && (p = e.customRender({
93
- value: n,
93
+ value: d,
94
94
  ...s,
95
95
  column: e,
96
96
  originalNode: p,
97
97
  originalText: h
98
98
  })), p;
99
- }, d = ({
100
- row: n,
99
+ }, n = ({
100
+ row: d,
101
101
  rowIndex: s
102
102
  }) => f({
103
- value: n[t.field],
104
- text: n[t.field],
105
- record: n,
103
+ value: d[t.field],
104
+ text: d[t.field],
105
+ record: d,
106
106
  index: s,
107
107
  renderIndex: s,
108
108
  column: e
109
109
  });
110
110
  return t.slots = {
111
- header: () => R(e, i, void 0, r),
112
- default: d,
113
- footer: d
114
- }, e.html && (delete t.slots.default, delete t.slots.footer, t.type = "html"), t;
111
+ header: () => c(e, i, void 0, r),
112
+ default: n,
113
+ footer: n
114
+ }, e.html && (delete t.slots.default, delete t.slots.footer, t.type = "html"), e.seq && (t.type = "seq", t.slots = {}), t;
115
115
  }
116
116
  function Y(e, r, i, l) {
117
- var d;
118
- if (!((d = e.children) != null && d.length))
117
+ var n;
118
+ if (!((n = e.children) != null && n.length))
119
119
  return F(e, r, i, l);
120
- function t(n) {
121
- return n.map((s) => {
120
+ function t(d) {
121
+ return d.map((s) => {
122
122
  var a;
123
123
  if ((a = s.children) != null && a.length) {
124
124
  const u = y(s, r, i);
@@ -1,20 +1,20 @@
1
- import { createVNode as m } from "vue";
1
+ import { createVNode as l } from "vue";
2
2
  import { VxeColumn as u, VxeColgroup as p } from "vxe-table";
3
- import { transformCol as d } from "./col.mjs";
3
+ import { transformCol as s } from "./col.mjs";
4
4
  function n(r) {
5
5
  var e;
6
- return (e = r.children) != null && e.length ? m(p, r, {
6
+ return (e = r.children) != null && e.length ? l(p, r, {
7
7
  ...r.slots || {},
8
8
  default: () => {
9
- var t;
10
- return (t = r.children) == null ? void 0 : t.map((o) => n(o));
9
+ var o;
10
+ return (o = r.children) == null ? void 0 : o.map((t) => n(t));
11
11
  }
12
- }) : m(u, r, {
12
+ }) : (console.log("config", r), l(u, r, {
13
13
  ...r.slots || {}
14
- });
14
+ }));
15
15
  }
16
- function C(r, e, t, o) {
17
- return r.map((l) => n(d(l, e, t, o)));
16
+ function C(r, e, o, t) {
17
+ return r.map((m) => n(s(m, e, o, t)));
18
18
  }
19
19
  export {
20
20
  C as renderWithColumns
@@ -1,10 +1,10 @@
1
- import { omit as u, isUndefined as s, isFunction as c, isNumber as C } from "lodash-unified";
1
+ import { omit as d, isUndefined as s, isFunction as c, isNumber as C } from "lodash-unified";
2
2
  import { isDef as m } from "../../utils/index.mjs";
3
- const w = 20, b = 50, g = (e) => e.some((t) => !!t.html);
3
+ const g = 20, w = 50, b = (e) => e.some((t) => !!t.html);
4
4
  function R(e) {
5
5
  var n;
6
6
  const t = {
7
- ...u(e, [
7
+ ...d(e, [
8
8
  "columns",
9
9
  "request",
10
10
  "searchForm",
@@ -18,7 +18,7 @@ function R(e) {
18
18
  isHover: !0,
19
19
  keyField: e.rowKey,
20
20
  isCurrent: !!e.rowHighlightable
21
- }, t.columnConfig = {}, g(e.columns || []) && (t.rowConfig.useKey = !0, t.columnConfig.useKey = !0), e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig.resizable = !0), e.rowSelection) {
21
+ }, t.columnConfig = {}, b(e.columns || []) && (t.rowConfig.useKey = !0, t.columnConfig.useKey = !0), e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig.resizable = !0), e.rowSelection) {
22
22
  const o = e.rowSelection === !0 ? {} : e.rowSelection;
23
23
  o.type === "radio" ? t.radioConfig = {
24
24
  highlight: !0,
@@ -42,7 +42,7 @@ function R(e) {
42
42
  range: o.range || !1
43
43
  };
44
44
  }
45
- return t.border = e.bordered === !1 ? "inner" : !0, e.expandable && (t.expandConfig = u(e.expandable, [
45
+ return t.border = e.bordered === !1 ? "inner" : !0, e.expandable && (t.expandConfig = d(e.expandable, [
46
46
  "renderContent",
47
47
  "width",
48
48
  "title"
@@ -50,15 +50,21 @@ function R(e) {
50
50
  enabled: !1
51
51
  }, t.virtualYConfig = {
52
52
  enabled: !1
53
- }) : (a(t, "X", e.virtual), a(t, "Y", e.virtual)), t.round = m(e.round) ? e.round : !e.card, e.virtual !== !1 && (t.headerCellConfig = {
53
+ }) : (f(t, "X", e.virtual), f(t, "Y", e.virtual)), t.round = m(e.round) ? e.round : !e.card, e.virtual !== !1 && (t.headerCellConfig = {
54
54
  height: 36,
55
55
  ...t.headerCellConfig || {}
56
+ }), t.treeConfig && (t.treeConfig = {
57
+ ...t.treeConfig || {},
58
+ /**
59
+ * 使用非树层级列表,配合transform
60
+ */
61
+ transform: !0
56
62
  }), t;
57
63
  }
58
- function a(e, t, i) {
59
- const n = t === "X", o = n ? "x" : "y", r = n ? "virtualXConfig" : "virtualYConfig", l = i == null ? void 0 : i[o], f = l !== !1, d = n ? w : b, h = C(l) && l >= 0 ? l : d;
64
+ function f(e, t, i) {
65
+ const n = t === "X", o = n ? "x" : "y", r = n ? "virtualXConfig" : "virtualYConfig", l = i == null ? void 0 : i[o], a = l !== !1, u = n ? g : w, h = C(l) && l >= 0 ? l : u;
60
66
  e[r] = {
61
- enabled: f,
67
+ enabled: a,
62
68
  gt: h,
63
69
  oSize: (i == null ? void 0 : i.oSize) || 0
64
70
  };
@@ -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: {