@aplus-frontend/ui 7.8.0 → 7.9.1

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 (109) hide show
  1. package/es/index.mjs +26 -24
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +2 -2
  3. package/es/src/ag-grid/index.vue.mjs +53 -52
  4. package/es/src/ag-grid/style/index.mjs +9 -4
  5. package/es/src/ap-form/style/item-text-group.mjs +8 -4
  6. package/es/src/ap-table/style/index.d.ts +2 -2
  7. package/es/src/ap-table/style/index.mjs +3 -3
  8. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +20 -19
  9. package/es/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
  10. package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +14 -10
  11. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +73 -71
  12. package/es/src/index.d.ts +1 -0
  13. package/es/src/index.mjs +288 -286
  14. package/es/src/skeleton/components/desc/index.vue.d.ts +6 -0
  15. package/es/src/skeleton/components/desc/index.vue.mjs +4 -0
  16. package/es/src/skeleton/components/desc/index.vue2.mjs +37 -0
  17. package/es/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
  18. package/es/src/skeleton/components/desc/item-large.vue.mjs +4 -0
  19. package/es/src/skeleton/components/desc/item-large.vue2.mjs +72 -0
  20. package/es/src/skeleton/components/desc/item.vue.d.ts +7 -0
  21. package/es/src/skeleton/components/desc/item.vue.mjs +4 -0
  22. package/es/src/skeleton/components/desc/item.vue2.mjs +69 -0
  23. package/es/src/skeleton/components/line/index.d.ts +14 -0
  24. package/es/src/skeleton/components/line/index.mjs +26 -0
  25. package/es/src/skeleton/components/list/index.vue.d.ts +10 -0
  26. package/es/src/skeleton/components/list/index.vue.mjs +4 -0
  27. package/es/src/skeleton/components/list/index.vue2.mjs +49 -0
  28. package/es/src/skeleton/components/list/item.vue.d.ts +6 -0
  29. package/es/src/skeleton/components/list/item.vue.mjs +4 -0
  30. package/es/src/skeleton/components/list/item.vue2.mjs +57 -0
  31. package/es/src/skeleton/components/page-header/index.vue.d.ts +6 -0
  32. package/es/src/skeleton/components/page-header/index.vue.mjs +4 -0
  33. package/es/src/skeleton/components/page-header/index.vue2.mjs +24 -0
  34. package/es/src/skeleton/components/search-form/index.vue.d.ts +6 -0
  35. package/es/src/skeleton/components/search-form/index.vue.mjs +4 -0
  36. package/es/src/skeleton/components/search-form/index.vue2.mjs +99 -0
  37. package/es/src/skeleton/components/table/index.vue.d.ts +11 -0
  38. package/es/src/skeleton/components/table/index.vue.mjs +4 -0
  39. package/es/src/skeleton/components/table/index.vue2.mjs +78 -0
  40. package/es/src/skeleton/components/table/item.vue.d.ts +9 -0
  41. package/es/src/skeleton/components/table/item.vue.mjs +4 -0
  42. package/es/src/skeleton/components/table/item.vue2.mjs +80 -0
  43. package/es/src/skeleton/descriptions.vue.d.ts +8 -0
  44. package/es/src/skeleton/descriptions.vue.mjs +4 -0
  45. package/es/src/skeleton/descriptions.vue2.mjs +37 -0
  46. package/es/src/skeleton/index.d.ts +9 -0
  47. package/es/src/skeleton/index.mjs +12 -0
  48. package/es/src/skeleton/interface.d.ts +12 -0
  49. package/es/src/skeleton/interface.mjs +1 -0
  50. package/es/src/skeleton/list-page.vue.d.ts +10 -0
  51. package/es/src/skeleton/list-page.vue.mjs +4 -0
  52. package/es/src/skeleton/list-page.vue2.mjs +50 -0
  53. package/es/src/version.d.ts +1 -1
  54. package/es/src/version.mjs +1 -1
  55. package/lib/index.js +1 -1
  56. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  57. package/lib/src/ag-grid/index.vue.js +1 -1
  58. package/lib/src/ag-grid/style/index.js +1 -1
  59. package/lib/src/ap-form/style/item-text-group.js +1 -1
  60. package/lib/src/ap-table/style/index.d.ts +2 -2
  61. package/lib/src/ap-table/style/index.js +1 -1
  62. package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
  63. package/lib/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
  64. package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
  65. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  66. package/lib/src/index.d.ts +1 -0
  67. package/lib/src/index.js +1 -1
  68. package/lib/src/skeleton/components/desc/index.vue.d.ts +6 -0
  69. package/lib/src/skeleton/components/desc/index.vue.js +1 -0
  70. package/lib/src/skeleton/components/desc/index.vue2.js +1 -0
  71. package/lib/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
  72. package/lib/src/skeleton/components/desc/item-large.vue.js +1 -0
  73. package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -0
  74. package/lib/src/skeleton/components/desc/item.vue.d.ts +7 -0
  75. package/lib/src/skeleton/components/desc/item.vue.js +1 -0
  76. package/lib/src/skeleton/components/desc/item.vue2.js +1 -0
  77. package/lib/src/skeleton/components/line/index.d.ts +14 -0
  78. package/lib/src/skeleton/components/line/index.js +1 -0
  79. package/lib/src/skeleton/components/list/index.vue.d.ts +10 -0
  80. package/lib/src/skeleton/components/list/index.vue.js +1 -0
  81. package/lib/src/skeleton/components/list/index.vue2.js +1 -0
  82. package/lib/src/skeleton/components/list/item.vue.d.ts +6 -0
  83. package/lib/src/skeleton/components/list/item.vue.js +1 -0
  84. package/lib/src/skeleton/components/list/item.vue2.js +1 -0
  85. package/lib/src/skeleton/components/page-header/index.vue.d.ts +6 -0
  86. package/lib/src/skeleton/components/page-header/index.vue.js +1 -0
  87. package/lib/src/skeleton/components/page-header/index.vue2.js +1 -0
  88. package/lib/src/skeleton/components/search-form/index.vue.d.ts +6 -0
  89. package/lib/src/skeleton/components/search-form/index.vue.js +1 -0
  90. package/lib/src/skeleton/components/search-form/index.vue2.js +1 -0
  91. package/lib/src/skeleton/components/table/index.vue.d.ts +11 -0
  92. package/lib/src/skeleton/components/table/index.vue.js +1 -0
  93. package/lib/src/skeleton/components/table/index.vue2.js +1 -0
  94. package/lib/src/skeleton/components/table/item.vue.d.ts +9 -0
  95. package/lib/src/skeleton/components/table/item.vue.js +1 -0
  96. package/lib/src/skeleton/components/table/item.vue2.js +1 -0
  97. package/lib/src/skeleton/descriptions.vue.d.ts +8 -0
  98. package/lib/src/skeleton/descriptions.vue.js +1 -0
  99. package/lib/src/skeleton/descriptions.vue2.js +1 -0
  100. package/lib/src/skeleton/index.d.ts +9 -0
  101. package/lib/src/skeleton/index.js +1 -0
  102. package/lib/src/skeleton/interface.d.ts +12 -0
  103. package/lib/src/skeleton/interface.js +1 -0
  104. package/lib/src/skeleton/list-page.vue.d.ts +10 -0
  105. package/lib/src/skeleton/list-page.vue.js +1 -0
  106. package/lib/src/skeleton/list-page.vue2.js +1 -0
  107. package/lib/src/version.d.ts +1 -1
  108. package/lib/src/version.js +1 -1
  109. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as _, ref as H, createVNode as i, mergeProps as L, onUnmounted as j } from "vue";
2
2
  import { ApModal as q } from "../../../ap-modal/index.mjs";
3
3
  import "../../../ag-grid/index.mjs";
4
- import { AsyncCallback as G, genRequest as T, delRowKeyField as D, addRowKeyField as F, getModalLayoutConfig as E } from "../utils.mjs";
4
+ import { AsyncCallback as D, genRequest as G, delRowKeyField as T, addRowKeyField as F, getModalLayoutConfig as E } from "../utils.mjs";
5
5
  import { useAgGridInstance as U } from "./use-ag-grid-instance.mjs";
6
- import { isFunction as u, cloneDeep as W, isEmpty as b, omitBy as $, isUndefined as z, omit as p } from "lodash-unified";
6
+ import { isFunction as u, cloneDeep as W, isEmpty as b, omitBy as $, isUndefined as z, omit as S } from "lodash-unified";
7
7
  import { ROW_KEY as B } from "../constants.mjs";
8
8
  import { useModalTitle as N } from "./use-modal-title.mjs";
9
9
  import { message as V } from "@aplus-frontend/antdv";
@@ -15,14 +15,14 @@ import J from "../wrapper/index.vue2.mjs";
15
15
  import Q from "../modal-layout/index.vue2.mjs";
16
16
  import X from "../../../ag-grid/index.vue.mjs";
17
17
  function we(t) {
18
- let c, f = null, g = null;
19
- const d = new G(), [K, S] = N(), {
18
+ let d, f = null, g = null;
19
+ const c = new D(), [x, K] = N(), {
20
20
  t: k
21
- } = Y(), [s, x] = U({
21
+ } = Y(), [s, p] = U({
22
22
  onSelectedRows(e) {
23
- S.setCount(e?.length || 0);
23
+ K.setCount(e?.length || 0);
24
24
  }
25
- }), w = T(t.api, t.getRowKey, s.setDataSourceLength), y = (e) => {
25
+ }), w = G(t.api, t.getRowKey, s.setDataSourceLength), y = (e) => {
26
26
  const {
27
27
  title: o,
28
28
  width: l,
@@ -42,16 +42,16 @@ function we(t) {
42
42
  keys: A(o),
43
43
  rows: o.map((a) => {
44
44
  const r = m(a);
45
- return e === "old" && c?.[r] ? c[r] : D(a);
45
+ return e === "old" && d?.[r] ? d[r] : T(a);
46
46
  })
47
47
  };
48
48
  }, h = async () => {
49
49
  const e = P(), o = t.maxCount || 1 / 0;
50
50
  return e.keys.length > o ? (V.warning(k("ap.apTableModal.messageMaxCount", {
51
51
  maxCount: o
52
- })), Promise.reject()) : (await t.beforeOk?.(e), t.finishCallback?.(e), d.resolve(e), e);
52
+ })), Promise.reject()) : (await t.beforeOk?.(e), t.finishCallback?.(e), c.resolve(e), e);
53
53
  }, M = () => {
54
- d.reject("modal is closed!");
54
+ c.reject("modal is closed!");
55
55
  }, I = /* @__PURE__ */ _({
56
56
  name: "AgGridModalSelectContent",
57
57
  props: {
@@ -73,12 +73,12 @@ function we(t) {
73
73
  };
74
74
  }, () => {
75
75
  const l = e.selectedRows?.map((r) => F(r, o.value.getRowKey)), n = o.value, a = E(n.modalLayout);
76
- return i(x, null, {
76
+ return i(p, null, {
77
77
  default: () => [i(J, {
78
78
  height: n.height,
79
79
  rowHeight: n.rowHeight
80
80
  }, {
81
- default: () => [t.renderHeader?.(p(s, "setInstance"), {
81
+ default: () => [t.renderHeader?.(S(s, "setInstance"), {
82
82
  updateProps: y
83
83
  }), i(Q, a.props, {
84
84
  default: () => [i(X, L({
@@ -103,7 +103,7 @@ function we(t) {
103
103
  fixed: "left",
104
104
  columnWidth: 38,
105
105
  disabled(r) {
106
- return u(n.disabledCheckbox) ? n.disabledCheckbox(r, p(s, "setInstance")) : n.disabledCheckbox ?? !1;
106
+ return u(n.disabledCheckbox) ? n.disabledCheckbox(r, S(s, "setInstance")) : n.disabledCheckbox ?? !1;
107
107
  },
108
108
  ...t.rowSelection
109
109
  },
@@ -123,11 +123,12 @@ function we(t) {
123
123
  }, null);
124
124
  }
125
125
  function v() {
126
- const e = Object.values(c || {}), o = C(e);
126
+ const e = Object.values(d || {}), o = C(e);
127
127
  f = q.createModal({
128
- title: i(K, {
128
+ title: i(x, {
129
129
  title: t.title,
130
- maxCount: t.maxCount || 1 / 0
130
+ maxCount: t.maxCount || 1 / 0,
131
+ isShowDefaultSuffix: t.mode !== "radio"
131
132
  }, t.modalTitleSlots),
132
133
  width: t.width,
133
134
  destroyOnClose: !0,
@@ -145,17 +146,17 @@ function we(t) {
145
146
  return e?.map(m) || [];
146
147
  }
147
148
  function R(e, o, l = !1) {
148
- if (c = e?.reduce((n, a) => {
149
+ if (d = e?.reduce((n, a) => {
149
150
  const r = m(a);
150
151
  return n[r] = a, n;
151
152
  }, {}), w.setExtraParams(o?.extraParams), v(), l)
152
- return d.buildPromise();
153
+ return c.buildPromise();
153
154
  }
154
155
  function O(e, o) {
155
156
  return R(e, o, !0);
156
157
  }
157
158
  return j(() => {
158
- d.reject("component is Unmounted!");
159
+ c.reject("component is Unmounted!");
159
160
  }), {
160
161
  open: R,
161
162
  asyncOpen: O,
@@ -8,6 +8,10 @@ export declare function useModalTitle(): readonly [ DefineComponent<ExtractPropT
8
8
  type: NumberConstructor;
9
9
  required: true;
10
10
  };
11
+ isShowDefaultSuffix: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
11
15
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
12
16
  title: {
13
17
  type: any;
@@ -17,8 +21,13 @@ export declare function useModalTitle(): readonly [ DefineComponent<ExtractPropT
17
21
  type: NumberConstructor;
18
22
  required: true;
19
23
  };
24
+ isShowDefaultSuffix: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
20
28
  }>> & Readonly<{}>, {
21
29
  title: any;
30
+ isShowDefaultSuffix: boolean;
22
31
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
23
32
  readonly setCount: (data: number) => void;
24
33
  }];
@@ -1,9 +1,9 @@
1
- import { ref as u, defineComponent as i, createVNode as l } from "vue";
1
+ import { ref as n, defineComponent as i, createVNode as l } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { useToken as r } from "../../../config-provider/hooks/use-token.mjs";
4
- import { useLocale as m } from "../../../config-provider/hooks/use-locale.mjs";
3
+ import { useToken as f } from "../../../config-provider/hooks/use-token.mjs";
4
+ import { useLocale as r } from "../../../config-provider/hooks/use-locale.mjs";
5
5
  function C() {
6
- const e = u(0);
6
+ const e = n(0);
7
7
  return [/* @__PURE__ */ i({
8
8
  props: {
9
9
  title: {
@@ -13,6 +13,10 @@ function C() {
13
13
  maxCount: {
14
14
  type: Number,
15
15
  required: !0
16
+ },
17
+ isShowDefaultSuffix: {
18
+ type: Boolean,
19
+ default: !0
16
20
  }
17
21
  },
18
22
  setup(t, {
@@ -20,15 +24,15 @@ function C() {
20
24
  }) {
21
25
  const {
22
26
  t: o
23
- } = m(), {
24
- token: n
25
- } = r();
27
+ } = r(), {
28
+ token: u
29
+ } = f();
26
30
  return () => l("div", null, [t.title, a.default ? a.default({
27
31
  maxCount: t.maxCount,
28
32
  count: e.value
29
- }) : l("span", {
33
+ }) : t.isShowDefaultSuffix && l("span", {
30
34
  style: {
31
- color: n.value?.textColor3,
35
+ color: u.value?.textColor3,
32
36
  fontSize: "12px",
33
37
  fontWeight: "normal",
34
38
  marginLeft: "12px"
@@ -37,7 +41,7 @@ function C() {
37
41
  maxCount: t.maxCount
38
42
  }) : "", o("ap.apTableModal.titleSuffixTwo"), l("span", {
39
43
  style: {
40
- color: n.value?.colorPrimary
44
+ color: u.value?.colorPrimary
41
45
  }
42
46
  }, [e.value]), o("ap.apTableModal.titleSuffixThree")])]);
43
47
  }
@@ -1,13 +1,13 @@
1
- import { defineComponent as W, computed as c, ref as g, watch as x, nextTick as f, onMounted as j, createElementBlock as i, openBlock as a, normalizeClass as n, unref as t, createVNode as S, withCtx as m, createElementVNode as C, normalizeStyle as y, renderSlot as H, createBlock as $, toDisplayString as u, resolveDynamicComponent as I, Fragment as E, renderList as G, createCommentVNode as L, createTextVNode as J } from "vue";
2
- import { DownOutlined as P } from "@ant-design/icons-vue";
3
- import { Alert as Q, Tooltip as U } from "@aplus-frontend/antdv";
4
- import { ApActionItem as X } from "../../ap-action/index.mjs";
1
+ import { defineComponent as j, computed as c, ref as f, watch as x, nextTick as m, onMounted as G, createElementBlock as i, createCommentVNode as C, openBlock as l, normalizeClass as n, unref as t, createVNode as S, withCtx as y, createElementVNode as $, normalizeStyle as h, renderSlot as L, createBlock as E, toDisplayString as u, resolveDynamicComponent as z, Fragment as A, renderList as J, createTextVNode as P } from "vue";
2
+ import { DownOutlined as Q } from "@ant-design/icons-vue";
3
+ import { Alert as U, Tooltip as X } from "@aplus-frontend/antdv";
4
+ import { ApActionItem as Y } from "../../ap-action/index.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { isNil as Y, isString as A } from "lodash-unified";
7
- import Z from "./style/index.mjs";
8
- import { useLocale as _ } from "../../config-provider/hooks/use-locale.mjs";
9
- import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
10
- const te = ["onClick"], ce = /* @__PURE__ */ W({
6
+ import { isNil as Z, isString as B } from "lodash-unified";
7
+ import _ from "./style/index.mjs";
8
+ import { useLocale as ee } from "../../config-provider/hooks/use-locale.mjs";
9
+ import { useNamespace as te } from "../../config-provider/hooks/use-namespace.mjs";
10
+ const le = ["onClick"], fe = /* @__PURE__ */ j({
11
11
  __name: "ApExpandAlert",
12
12
  props: {
13
13
  type: { default: "warning" },
@@ -26,38 +26,39 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
26
26
  afterClose: {}
27
27
  },
28
28
  emits: ["choose", "expand", "close"],
29
- setup(z, { expose: D, emit: V }) {
30
- const h = V, p = z, { t: B } = _(), R = c(() => {
29
+ setup(D, { expose: V, emit: R }) {
30
+ const v = R, p = D, { t: N } = ee(), q = c(() => {
31
31
  if (p.type != "card")
32
32
  return p.type;
33
- }), l = g(""), d = g(null), q = c(() => ({
33
+ }), a = f(""), d = f(null), F = c(() => ({
34
34
  fontWeight: "400",
35
35
  wordBreak: "break-all",
36
36
  overflow: "hidden",
37
37
  display: "-webkit-box",
38
- webkitLineClamp: l.value,
38
+ webkitLineClamp: a.value,
39
39
  webkitBoxOrient: "vertical",
40
40
  lineHeight: "18px"
41
41
  }));
42
- function F() {
43
- l.value === "1" ? (l.value = "", h("expand", "expand")) : (l.value = "1", h("expand", "collapse"));
42
+ function M() {
43
+ a.value === "1" ? (a.value = "", v("expand", "expand")) : (a.value = "1", v("expand", "collapse"));
44
44
  }
45
- const M = c(() => l.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), v = g(!0), N = c(() => l.value !== "1");
46
- function k(e) {
47
- e ? l.value = "" : l.value = "1";
45
+ const O = c(() => a.value === "1" ? N("ap.apExpandAlert.expand") : N("ap.apExpandAlert.collapse")), k = f(!0), T = c(() => a.value !== "1");
46
+ function w(e) {
47
+ e ? a.value = "" : a.value = "1";
48
48
  }
49
- function O(e) {
50
- h("close", e);
49
+ const H = f(!1);
50
+ function K(e) {
51
+ v("close", e), H.value = !0;
51
52
  }
52
53
  x(
53
54
  () => p.data,
54
55
  () => {
55
- l.value = "", f(() => {
56
+ a.value = "", m(() => {
56
57
  if (d.value) {
57
58
  const e = Number(d.value.clientHeight), r = Number(
58
59
  parseInt(d.value.style.lineHeight)
59
60
  );
60
- e < r * Number(p.rows) && N.value ? v.value = !1 : v.value = !0;
61
+ e < r * Number(p.rows) && T.value ? k.value = !1 : k.value = !0;
61
62
  }
62
63
  });
63
64
  },
@@ -67,22 +68,22 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
67
68
  ), x(
68
69
  () => p.defaultExpand,
69
70
  (e) => {
70
- e ? f(() => {
71
- k(e);
72
- }) : f(() => {
73
- k(e);
71
+ e ? m(() => {
72
+ w(e);
73
+ }) : m(() => {
74
+ w(e);
74
75
  });
75
76
  },
76
77
  { immediate: !0 }
77
- ), j(() => {
78
+ ), G(() => {
78
79
  x(
79
80
  () => p.contentStyle,
80
81
  (e) => {
81
- Y(e.lineHeight) || f(() => {
82
+ Z(e.lineHeight) || m(() => {
82
83
  const r = document.querySelector(
83
- `#${w} .ant-alert-action`
84
+ `#${b} .ant-alert-action`
84
85
  ), s = document.querySelector(
85
- `#${w} .ant-alert-icon`
86
+ `#${b} .ant-alert-icon`
86
87
  );
87
88
  r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
88
89
  });
@@ -94,84 +95,85 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
94
95
  }
95
96
  );
96
97
  });
97
- const { b: T, e: o } = ee("ap-expand-alert"), K = Z("ap-expand-alert"), w = `${T()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`;
98
- return D({
99
- setExpand: k
100
- }), (e, r) => (a(), i("div", {
101
- id: w,
102
- class: n([t(T)(), t(K)])
98
+ const { b: I, e: o } = te("ap-expand-alert"), W = _("ap-expand-alert"), b = `${I()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`;
99
+ return V({
100
+ setExpand: w
101
+ }), (e, r) => H.value ? C("", !0) : (l(), i("div", {
102
+ key: 0,
103
+ id: b,
104
+ class: n([t(I)(), t(W)])
103
105
  }, [
104
- S(t(Q), {
105
- type: R.value,
106
+ S(t(U), {
107
+ type: q.value,
106
108
  "show-icon": e.showIcon,
107
109
  closable: e.closable,
108
110
  class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""]),
109
111
  "after-close": e.afterClose,
110
- onClose: O
112
+ onClose: K
111
113
  }, {
112
- action: m(() => [
113
- v.value ? (a(), $(t(X), {
114
+ action: y(() => [
115
+ k.value ? (l(), E(t(Y), {
114
116
  key: 0,
115
117
  size: "small",
116
118
  style: { "font-size": "12px", "padding-left": "16px" },
117
- onClick: r[0] || (r[0] = (s) => F())
119
+ onClick: r[0] || (r[0] = (s) => M())
118
120
  }, {
119
- default: m(() => [
120
- C("span", {
121
+ default: y(() => [
122
+ $("span", {
121
123
  class: n(t(o)("expandText"))
122
- }, u(M.value), 3),
123
- S(t(P), {
124
- class: n(N.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
124
+ }, u(O.value), 3),
125
+ S(t(Q), {
126
+ class: n(T.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
125
127
  }, null, 8, ["class"])
126
128
  ]),
127
129
  _: 1
128
- })) : L("", !0)
130
+ })) : C("", !0)
129
131
  ]),
130
- message: m(() => [
131
- C("div", {
132
+ message: y(() => [
133
+ $("div", {
132
134
  ref_key: "ellipsisBoxRef",
133
135
  ref: d,
134
- style: y({ ...q.value, ...e.contentStyle }),
136
+ style: h({ ...F.value, ...e.contentStyle }),
135
137
  class: n(t(o)("alertContent"))
136
138
  }, [
137
- H(e.$slots, "default", {}, () => [
138
- t(A)(e.prefix) ? (a(), i("span", {
139
+ L(e.$slots, "default", {}, () => [
140
+ t(B)(e.prefix) ? (l(), i("span", {
139
141
  key: 0,
140
142
  class: n(t(o)("prefix")),
141
- style: y(e.prefixStyle)
142
- }, u(e.prefix), 7)) : (a(), $(I(e.prefix), {
143
+ style: h(e.prefixStyle)
144
+ }, u(e.prefix), 7)) : (l(), E(z(e.prefix), {
143
145
  key: 1,
144
- style: y(e.prefixStyle)
146
+ style: h(e.prefixStyle)
145
147
  }, null, 8, ["style"])),
146
- t(A)(e.data) ? (a(), i("span", {
148
+ t(B)(e.data) ? (l(), i("span", {
147
149
  key: 2,
148
150
  class: n(t(o)("text"))
149
- }, u(e.data), 3)) : (a(!0), i(E, { key: 3 }, G(e.data, (s, b) => (a(), i(E, { key: b }, [
150
- S(t(U), {
151
+ }, u(e.data), 3)) : (l(!0), i(A, { key: 3 }, J(e.data, (s, g) => (l(), i(A, { key: g }, [
152
+ S(t(X), {
151
153
  title: e.tipTitle ? e.tipTitle : null
152
154
  }, {
153
- default: m(() => [
154
- H(e.$slots, "item", {
155
+ default: y(() => [
156
+ L(e.$slots, "item", {
155
157
  record: s,
156
- index: b
158
+ index: g
157
159
  }, () => [
158
- C("span", {
160
+ $("span", {
159
161
  class: n(t(o)("showItem")),
160
162
  onClick: (ae) => e.$emit("choose", s)
161
- }, u(e.mapLabel ? s[e.mapLabel] : s), 11, te)
163
+ }, u(e.mapLabel ? s[e.mapLabel] : s), 11, le)
162
164
  ])
163
165
  ]),
164
166
  _: 2
165
167
  }, 1032, ["title"]),
166
- b !== e.data.length - 1 ? (a(), i("span", {
168
+ g !== e.data.length - 1 ? (l(), i("span", {
167
169
  key: 0,
168
170
  class: n(t(o)("spliter")),
169
- style: y(e.separatorStyle)
171
+ style: h(e.separatorStyle)
170
172
  }, [
171
- t(A)(e.separator) ? (a(), i(E, { key: 0 }, [
172
- J(u(e.separator), 1)
173
- ], 64)) : (a(), $(I(e.separator), { key: 1 }))
174
- ], 6)) : L("", !0)
173
+ t(B)(e.separator) ? (l(), i(A, { key: 0 }, [
174
+ P(u(e.separator), 1)
175
+ ], 64)) : (l(), E(z(e.separator), { key: 1 }))
176
+ ], 6)) : C("", !0)
175
177
  ], 64))), 128))
176
178
  ])
177
179
  ], 6)
@@ -182,5 +184,5 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
182
184
  }
183
185
  });
184
186
  export {
185
- ce as default
187
+ fe as default
186
188
  };
package/es/src/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export * from './text';
26
26
  export * from './mask';
27
27
  export * from './splitter';
28
28
  export * from './ag-grid';
29
+ export * from './skeleton';