@aplus-frontend/ui 7.7.11 → 7.9.0

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 (153) hide show
  1. package/es/index.mjs +230 -226
  2. package/es/src/ag-grid/index.vue.mjs +53 -52
  3. package/es/src/ag-grid/style/index.mjs +9 -4
  4. package/es/src/ap-field/hooks/use-default-placeholder.d.ts +2 -1
  5. package/es/src/ap-field/hooks/use-default-placeholder.mjs +8 -7
  6. package/es/src/ap-field/index.d.ts +10 -2
  7. package/es/src/ap-field/index.mjs +65 -58
  8. package/es/src/ap-field/interface.d.ts +11 -0
  9. package/es/src/ap-field/second/helper.d.ts +7 -0
  10. package/es/src/ap-field/second/helper.mjs +9 -0
  11. package/es/src/ap-field/second/index.vue.d.ts +44 -0
  12. package/es/src/ap-field/second/index.vue.mjs +90 -0
  13. package/es/src/ap-field/second/index.vue2.mjs +4 -0
  14. package/es/src/ap-field/second/read.vue.d.ts +6 -0
  15. package/es/src/ap-field/second/read.vue.mjs +4 -0
  16. package/es/src/ap-field/second/read.vue2.mjs +58 -0
  17. package/es/src/ap-field/style/textarea.mjs +15 -5
  18. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  19. package/es/src/ap-field/text-area/index.vue.mjs +44 -28
  20. package/es/src/ap-field/text-area/read.vue.d.ts +3 -0
  21. package/es/src/ap-field/text-area/read.vue2.mjs +26 -8
  22. package/es/src/ap-field/text-area/utils.d.ts +1 -0
  23. package/es/src/ap-field/text-area/utils.mjs +13 -0
  24. package/es/src/ap-form/items/text-area/index.vue.d.ts +12 -0
  25. package/es/src/ap-table/constants.d.ts +9 -0
  26. package/es/src/ap-table/style/index.d.ts +2 -2
  27. package/es/src/ap-table/style/index.mjs +3 -3
  28. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +20 -19
  29. package/es/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
  30. package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +14 -10
  31. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +19 -19
  32. package/es/src/business/ap-batch-action-group/interface.d.ts +4 -1
  33. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +73 -71
  34. package/es/src/index.d.ts +1 -0
  35. package/es/src/index.mjs +290 -286
  36. package/es/src/skeleton/components/desc/index.vue.d.ts +6 -0
  37. package/es/src/skeleton/components/desc/index.vue.mjs +4 -0
  38. package/es/src/skeleton/components/desc/index.vue2.mjs +37 -0
  39. package/es/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
  40. package/es/src/skeleton/components/desc/item-large.vue.mjs +4 -0
  41. package/es/src/skeleton/components/desc/item-large.vue2.mjs +72 -0
  42. package/es/src/skeleton/components/desc/item.vue.d.ts +7 -0
  43. package/es/src/skeleton/components/desc/item.vue.mjs +4 -0
  44. package/es/src/skeleton/components/desc/item.vue2.mjs +69 -0
  45. package/es/src/skeleton/components/line/index.d.ts +14 -0
  46. package/es/src/skeleton/components/line/index.mjs +26 -0
  47. package/es/src/skeleton/components/list/index.vue.d.ts +10 -0
  48. package/es/src/skeleton/components/list/index.vue.mjs +4 -0
  49. package/es/src/skeleton/components/list/index.vue2.mjs +49 -0
  50. package/es/src/skeleton/components/list/item.vue.d.ts +6 -0
  51. package/es/src/skeleton/components/list/item.vue.mjs +4 -0
  52. package/es/src/skeleton/components/list/item.vue2.mjs +57 -0
  53. package/es/src/skeleton/components/page-header/index.vue.d.ts +6 -0
  54. package/es/src/skeleton/components/page-header/index.vue.mjs +4 -0
  55. package/es/src/skeleton/components/page-header/index.vue2.mjs +24 -0
  56. package/es/src/skeleton/components/search-form/index.vue.d.ts +6 -0
  57. package/es/src/skeleton/components/search-form/index.vue.mjs +4 -0
  58. package/es/src/skeleton/components/search-form/index.vue2.mjs +99 -0
  59. package/es/src/skeleton/components/table/index.vue.d.ts +11 -0
  60. package/es/src/skeleton/components/table/index.vue.mjs +4 -0
  61. package/es/src/skeleton/components/table/index.vue2.mjs +78 -0
  62. package/es/src/skeleton/components/table/item.vue.d.ts +9 -0
  63. package/es/src/skeleton/components/table/item.vue.mjs +4 -0
  64. package/es/src/skeleton/components/table/item.vue2.mjs +80 -0
  65. package/es/src/skeleton/descriptions.vue.d.ts +8 -0
  66. package/es/src/skeleton/descriptions.vue.mjs +4 -0
  67. package/es/src/skeleton/descriptions.vue2.mjs +37 -0
  68. package/es/src/skeleton/index.d.ts +9 -0
  69. package/es/src/skeleton/index.mjs +12 -0
  70. package/es/src/skeleton/interface.d.ts +12 -0
  71. package/es/src/skeleton/interface.mjs +1 -0
  72. package/es/src/skeleton/list-page.vue.d.ts +10 -0
  73. package/es/src/skeleton/list-page.vue.mjs +4 -0
  74. package/es/src/skeleton/list-page.vue2.mjs +50 -0
  75. package/es/src/version.d.ts +1 -1
  76. package/es/src/version.mjs +1 -1
  77. package/lib/index.js +1 -1
  78. package/lib/src/ag-grid/index.vue.js +1 -1
  79. package/lib/src/ag-grid/style/index.js +1 -1
  80. package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +2 -1
  81. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  82. package/lib/src/ap-field/index.d.ts +10 -2
  83. package/lib/src/ap-field/index.js +1 -1
  84. package/lib/src/ap-field/interface.d.ts +11 -0
  85. package/lib/src/ap-field/second/helper.d.ts +7 -0
  86. package/lib/src/ap-field/second/helper.js +1 -0
  87. package/lib/src/ap-field/second/index.vue.d.ts +44 -0
  88. package/lib/src/ap-field/second/index.vue.js +1 -0
  89. package/lib/src/ap-field/second/index.vue2.js +1 -0
  90. package/lib/src/ap-field/second/read.vue.d.ts +6 -0
  91. package/lib/src/ap-field/second/read.vue.js +1 -0
  92. package/lib/src/ap-field/second/read.vue2.js +1 -0
  93. package/lib/src/ap-field/style/textarea.js +1 -1
  94. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  95. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  96. package/lib/src/ap-field/text-area/read.vue.d.ts +3 -0
  97. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  98. package/lib/src/ap-field/text-area/utils.d.ts +1 -0
  99. package/lib/src/ap-field/text-area/utils.js +1 -0
  100. package/lib/src/ap-form/items/text-area/index.vue.d.ts +12 -0
  101. package/lib/src/ap-table/constants.d.ts +9 -0
  102. package/lib/src/ap-table/style/index.d.ts +2 -2
  103. package/lib/src/ap-table/style/index.js +1 -1
  104. package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
  105. package/lib/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
  106. package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
  107. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  108. package/lib/src/business/ap-batch-action-group/interface.d.ts +4 -1
  109. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  110. package/lib/src/index.d.ts +1 -0
  111. package/lib/src/index.js +1 -1
  112. package/lib/src/skeleton/components/desc/index.vue.d.ts +6 -0
  113. package/lib/src/skeleton/components/desc/index.vue.js +1 -0
  114. package/lib/src/skeleton/components/desc/index.vue2.js +1 -0
  115. package/lib/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
  116. package/lib/src/skeleton/components/desc/item-large.vue.js +1 -0
  117. package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -0
  118. package/lib/src/skeleton/components/desc/item.vue.d.ts +7 -0
  119. package/lib/src/skeleton/components/desc/item.vue.js +1 -0
  120. package/lib/src/skeleton/components/desc/item.vue2.js +1 -0
  121. package/lib/src/skeleton/components/line/index.d.ts +14 -0
  122. package/lib/src/skeleton/components/line/index.js +1 -0
  123. package/lib/src/skeleton/components/list/index.vue.d.ts +10 -0
  124. package/lib/src/skeleton/components/list/index.vue.js +1 -0
  125. package/lib/src/skeleton/components/list/index.vue2.js +1 -0
  126. package/lib/src/skeleton/components/list/item.vue.d.ts +6 -0
  127. package/lib/src/skeleton/components/list/item.vue.js +1 -0
  128. package/lib/src/skeleton/components/list/item.vue2.js +1 -0
  129. package/lib/src/skeleton/components/page-header/index.vue.d.ts +6 -0
  130. package/lib/src/skeleton/components/page-header/index.vue.js +1 -0
  131. package/lib/src/skeleton/components/page-header/index.vue2.js +1 -0
  132. package/lib/src/skeleton/components/search-form/index.vue.d.ts +6 -0
  133. package/lib/src/skeleton/components/search-form/index.vue.js +1 -0
  134. package/lib/src/skeleton/components/search-form/index.vue2.js +1 -0
  135. package/lib/src/skeleton/components/table/index.vue.d.ts +11 -0
  136. package/lib/src/skeleton/components/table/index.vue.js +1 -0
  137. package/lib/src/skeleton/components/table/index.vue2.js +1 -0
  138. package/lib/src/skeleton/components/table/item.vue.d.ts +9 -0
  139. package/lib/src/skeleton/components/table/item.vue.js +1 -0
  140. package/lib/src/skeleton/components/table/item.vue2.js +1 -0
  141. package/lib/src/skeleton/descriptions.vue.d.ts +8 -0
  142. package/lib/src/skeleton/descriptions.vue.js +1 -0
  143. package/lib/src/skeleton/descriptions.vue2.js +1 -0
  144. package/lib/src/skeleton/index.d.ts +9 -0
  145. package/lib/src/skeleton/index.js +1 -0
  146. package/lib/src/skeleton/interface.d.ts +12 -0
  147. package/lib/src/skeleton/interface.js +1 -0
  148. package/lib/src/skeleton/list-page.vue.d.ts +10 -0
  149. package/lib/src/skeleton/list-page.vue.js +1 -0
  150. package/lib/src/skeleton/list-page.vue2.js +1 -0
  151. package/lib/src/version.d.ts +1 -1
  152. package/lib/src/version.js +1 -1
  153. package/package.json +3 -3
@@ -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,39 +1,39 @@
1
- import { defineComponent as f, ref as m, createBlock as l, openBlock as o, unref as s, withCtx as c, createElementBlock as _, Fragment as i, renderList as v, mergeProps as h, createElementVNode as y, withDirectives as k, createVNode as w, vShow as g, resolveDynamicComponent as C, h as b } from "vue";
2
- import { LoadingOutlined as L } from "@ant-design/icons-vue";
3
- import { Menu as M, MenuItem as B } from "@aplus-frontend/antdv";
4
- const R = { style: { display: "flex", "align-items": "center" } }, I = /* @__PURE__ */ f({
1
+ import { defineComponent as p, ref as m, createBlock as r, openBlock as o, unref as a, withCtx as d, createElementBlock as _, Fragment as u, renderList as v, mergeProps as w, createElementVNode as y, withDirectives as h, createVNode as k, vShow as b, resolveDynamicComponent as g, h as C } from "vue";
2
+ import { LoadingOutlined as R } from "@ant-design/icons-vue";
3
+ import { Menu as L, MenuItem as M } from "@aplus-frontend/antdv";
4
+ const B = { style: { display: "flex", "align-items": "center" } }, I = /* @__PURE__ */ p({
5
5
  __name: "MenuItemGroup",
6
6
  props: {
7
7
  selectedRows: {},
8
8
  buttonProps: {},
9
9
  menuList: {}
10
10
  },
11
- setup(d) {
12
- const a = d, t = m({});
13
- async function p(r, u) {
14
- const e = r?.id || u;
11
+ setup(i) {
12
+ const l = i, t = m({});
13
+ async function f(s, c) {
14
+ const e = s?.id || c;
15
15
  t.value[e] = !0;
16
16
  try {
17
- await r?.onClick?.({ selectedRows: a?.selectedRows });
17
+ await s?.onClick?.({ selectedRows: l?.selectedRows });
18
18
  } finally {
19
19
  t.value[e] = void 0;
20
20
  }
21
21
  }
22
- return (r, u) => (o(), l(s(M), null, {
23
- default: c(() => [
24
- (o(!0), _(i, null, v(a.menuList, (e, n) => (o(), l(s(B), h({
22
+ return (s, c) => (o(), r(a(L), null, {
23
+ default: d(() => [
24
+ (o(!0), _(u, null, v(l.menuList, (e, n) => (o(), r(a(M), w({
25
25
  key: e?.id || n
26
26
  }, { ref_for: !0 }, {
27
27
  ...e,
28
- onClick: () => p(e, n),
29
- disabled: t.value[e?.id || n] ?? e?.disabled ?? !1
28
+ onClick: () => f(e, n),
29
+ disabled: t.value[e?.id || n] ?? (typeof e?.disabled == "function" ? e?.disabled({ selectedRows: l?.selectedRows }) : e?.disabled) ?? !1
30
30
  }), {
31
- default: c(() => [
32
- y("div", R, [
33
- k(w(s(L), { style: { "margin-right": "10px" } }, null, 512), [
34
- [g, t.value[e?.id || n]]
31
+ default: d(() => [
32
+ y("div", B, [
33
+ h(k(a(R), { style: { "margin-right": "10px" } }, null, 512), [
34
+ [b, t.value[e?.id || n]]
35
35
  ]),
36
- (o(), l(C(b(i, [e?.content]))))
36
+ (o(), r(g(C(u, [e?.content]))))
37
37
  ])
38
38
  ]),
39
39
  _: 2
@@ -18,7 +18,7 @@ export type ApBatchActionGroupPropsKeys = keyof ApBatchActionGroupTypeProps;
18
18
  export type ApBatchActionGroupButtonProps<T extends ApBatchActionGroupPropsKeys = ApBatchActionGroupPropsKeys> = T extends ApBatchActionGroupPropsKeys ? {
19
19
  dropdownType?: T;
20
20
  } & ApBatchActionGroupTypeProps[T] : never;
21
- export type ApBatchActionGroupMenuProps<RecordType = any> = Omit<MenuItemProps, 'title' | 'icon' | 'role' | 'originItemValue' | 'onClick'> & {
21
+ export type ApBatchActionGroupMenuProps<RecordType = any> = Omit<MenuItemProps, 'title' | 'icon' | 'role' | 'originItemValue' | 'onClick' | 'disabled'> & {
22
22
  content?: VNodeChild;
23
23
  onClick?: (item?: {
24
24
  selectedRows?: RecordType[];
@@ -27,6 +27,9 @@ export type ApBatchActionGroupMenuProps<RecordType = any> = Omit<MenuItemProps,
27
27
  ifShow?: (item?: {
28
28
  selectedRows?: RecordType[];
29
29
  }) => boolean;
30
+ disabled?: boolean | ((item?: {
31
+ selectedRows?: RecordType[];
32
+ }) => boolean);
30
33
  };
31
34
  export type ApBatchActionGroupProps<RecordType = any> = {
32
35
  /**
@@ -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';