@aplus-frontend/ui 7.0.0-beta.3 → 7.0.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 (199) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
  2. package/es/src/ag-grid/index.vue.mjs +1 -0
  3. package/es/src/ag-grid/interface.d.ts +1 -0
  4. package/es/src/ag-grid/style/custom-header.d.ts +2 -2
  5. package/es/src/ag-grid/style/editable.d.ts +2 -2
  6. package/es/src/ag-grid/style/index.d.ts +2 -2
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
  8. package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
  9. package/es/src/ap-action/style/index.d.ts +2 -2
  10. package/es/src/ap-button/style/index.d.ts +2 -2
  11. package/es/src/ap-button/utils/index.mjs +16 -16
  12. package/es/src/ap-descriptions/style/index.d.ts +2 -2
  13. package/es/src/ap-download/ap-download.vue.d.ts +4 -4
  14. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  15. package/es/src/ap-download/interface.d.ts +4 -0
  16. package/es/src/ap-download/style/index.d.ts +2 -2
  17. package/es/src/ap-drawer/style/index.d.ts +2 -2
  18. package/es/src/ap-field/style/index.d.ts +2 -2
  19. package/es/src/ap-form/style/drawer-form.d.ts +2 -2
  20. package/es/src/ap-form/style/item-group.d.ts +2 -2
  21. package/es/src/ap-form/style/item-text-group.d.ts +2 -2
  22. package/es/src/ap-form/style/item.d.ts +2 -2
  23. package/es/src/ap-form/style/modal-form.d.ts +2 -2
  24. package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
  25. package/es/src/ap-form/style/search-form.d.ts +2 -2
  26. package/es/src/ap-grid/style/editable.d.ts +2 -2
  27. package/es/src/ap-grid/style/index.d.ts +2 -2
  28. package/es/src/ap-grid/utils/col.mjs +33 -33
  29. package/es/src/ap-list/style/index.d.ts +2 -2
  30. package/es/src/ap-modal/interface.d.ts +31 -11
  31. package/es/src/ap-modal/utils/createModal.mjs +52 -45
  32. package/es/src/ap-pro-card/style/divider.d.ts +2 -2
  33. package/es/src/ap-pro-card/style/index.d.ts +2 -2
  34. package/es/src/ap-pro-card/style/operation.d.ts +2 -2
  35. package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
  36. package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  37. package/es/src/ap-pro-card/style/title.d.ts +2 -2
  38. package/es/src/ap-table/style/ellipsis.d.ts +2 -2
  39. package/es/src/ap-table/style/index-comp.d.ts +2 -2
  40. package/es/src/ap-table/style/index.d.ts +2 -2
  41. package/es/src/ap-table/style/setting.d.ts +2 -2
  42. package/es/src/ap-tag/style/group.d.ts +2 -2
  43. package/es/src/ap-tag/style/index.d.ts +2 -2
  44. package/es/src/ap-upload/style/index.d.ts +2 -2
  45. package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
  46. package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  47. package/es/src/business/ag-grid-modal/utils.mjs +23 -23
  48. package/es/src/business/ap-appendix/style/index.d.ts +3 -3
  49. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  50. package/es/src/business/ap-attachment/ApAttachment.mjs +70 -66
  51. package/es/src/business/ap-attachment/style/index.d.ts +2 -2
  52. package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
  53. package/es/src/business/ap-batch-action/style/index.mjs +1 -1
  54. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
  55. package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  56. package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
  57. package/es/src/business/ap-card/style/index.d.ts +3 -3
  58. package/es/src/business/ap-card/style/index.mjs +8 -8
  59. package/es/src/business/ap-copy/style/index.d.ts +2 -2
  60. package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  61. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  62. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
  63. package/es/src/business/ap-expand-alert/index.d.ts +5 -2
  64. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  65. package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
  66. package/es/src/business/ap-image/style/index.d.ts +3 -3
  67. package/es/src/business/ap-image/style/index.mjs +6 -6
  68. package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
  69. package/es/src/business/ap-label/style/index.d.ts +2 -2
  70. package/es/src/business/ap-ladder/style/index.d.ts +2 -2
  71. package/es/src/business/ap-product-info/style/index.d.ts +2 -2
  72. package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
  73. package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
  74. package/es/src/business/ap-size-input/style/index.d.ts +2 -2
  75. package/es/src/business/ap-status/style/index.d.ts +2 -2
  76. package/es/src/business/ap-summary/style/index.d.ts +2 -2
  77. package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
  78. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
  79. package/es/src/business/ap-title/style/index.d.ts +2 -2
  80. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  81. package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
  82. package/es/src/business/ap-view/style/index.d.ts +3 -3
  83. package/es/src/business/ap-view/style/index.mjs +1 -1
  84. package/es/src/business/batch-input-group/style/index.d.ts +2 -2
  85. package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
  86. package/es/src/check-card/style/index.d.ts +2 -2
  87. package/es/src/editable-table/style/index.d.ts +2 -2
  88. package/es/src/full-screen/style/index.d.ts +2 -2
  89. package/es/src/mask/style/index.d.ts +2 -2
  90. package/es/src/scroll-bar/style/index.d.ts +2 -2
  91. package/es/src/scroll-view/style/index.d.ts +2 -2
  92. package/es/src/splitter/style/index.d.ts +2 -2
  93. package/es/src/text/style/group.d.ts +2 -2
  94. package/es/src/text/style/index.d.ts +2 -2
  95. package/es/src/utils/cssinjs/index.d.ts +2 -2
  96. package/es/src/utils/cssinjs/index.mjs +41 -35
  97. package/es/src/utils/cssinjs/plugin-specificity.mjs +13 -0
  98. package/es/src/version.d.ts +1 -1
  99. package/es/src/version.mjs +1 -1
  100. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  101. package/lib/src/ag-grid/index.vue.js +1 -1
  102. package/lib/src/ag-grid/interface.d.ts +1 -0
  103. package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
  104. package/lib/src/ag-grid/style/editable.d.ts +2 -2
  105. package/lib/src/ag-grid/style/index.d.ts +2 -2
  106. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  107. package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
  108. package/lib/src/ap-action/style/index.d.ts +2 -2
  109. package/lib/src/ap-button/style/index.d.ts +2 -2
  110. package/lib/src/ap-button/utils/index.js +1 -1
  111. package/lib/src/ap-descriptions/style/index.d.ts +2 -2
  112. package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
  113. package/lib/src/ap-download/ap-download.vue.js +1 -1
  114. package/lib/src/ap-download/interface.d.ts +4 -0
  115. package/lib/src/ap-download/style/index.d.ts +2 -2
  116. package/lib/src/ap-drawer/style/index.d.ts +2 -2
  117. package/lib/src/ap-field/style/index.d.ts +2 -2
  118. package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
  119. package/lib/src/ap-form/style/item-group.d.ts +2 -2
  120. package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
  121. package/lib/src/ap-form/style/item.d.ts +2 -2
  122. package/lib/src/ap-form/style/modal-form.d.ts +2 -2
  123. package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
  124. package/lib/src/ap-form/style/search-form.d.ts +2 -2
  125. package/lib/src/ap-grid/style/editable.d.ts +2 -2
  126. package/lib/src/ap-grid/style/index.d.ts +2 -2
  127. package/lib/src/ap-grid/utils/col.js +1 -1
  128. package/lib/src/ap-list/style/index.d.ts +2 -2
  129. package/lib/src/ap-modal/interface.d.ts +31 -11
  130. package/lib/src/ap-modal/utils/createModal.js +1 -1
  131. package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
  132. package/lib/src/ap-pro-card/style/index.d.ts +2 -2
  133. package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
  134. package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
  135. package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  136. package/lib/src/ap-pro-card/style/title.d.ts +2 -2
  137. package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
  138. package/lib/src/ap-table/style/index-comp.d.ts +2 -2
  139. package/lib/src/ap-table/style/index.d.ts +2 -2
  140. package/lib/src/ap-table/style/setting.d.ts +2 -2
  141. package/lib/src/ap-tag/style/group.d.ts +2 -2
  142. package/lib/src/ap-tag/style/index.d.ts +2 -2
  143. package/lib/src/ap-upload/style/index.d.ts +2 -2
  144. package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
  145. package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  146. package/lib/src/business/ag-grid-modal/utils.js +1 -1
  147. package/lib/src/business/ap-appendix/style/index.d.ts +3 -3
  148. package/lib/src/business/ap-appendix/style/index.js +1 -1
  149. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  150. package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
  151. package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
  152. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  153. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  154. package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  155. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  156. package/lib/src/business/ap-card/style/index.d.ts +3 -3
  157. package/lib/src/business/ap-card/style/index.js +1 -1
  158. package/lib/src/business/ap-copy/style/index.d.ts +2 -2
  159. package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  160. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  161. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  162. package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
  163. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  164. package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
  165. package/lib/src/business/ap-image/style/index.d.ts +3 -3
  166. package/lib/src/business/ap-image/style/index.js +1 -1
  167. package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
  168. package/lib/src/business/ap-label/style/index.d.ts +2 -2
  169. package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
  170. package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
  171. package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
  172. package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
  173. package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
  174. package/lib/src/business/ap-status/style/index.d.ts +2 -2
  175. package/lib/src/business/ap-summary/style/index.d.ts +2 -2
  176. package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
  177. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  178. package/lib/src/business/ap-title/style/index.d.ts +2 -2
  179. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  180. package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
  181. package/lib/src/business/ap-view/style/index.d.ts +3 -3
  182. package/lib/src/business/ap-view/style/index.js +1 -1
  183. package/lib/src/business/batch-input-group/style/index.d.ts +2 -2
  184. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  185. package/lib/src/check-card/style/index.d.ts +2 -2
  186. package/lib/src/editable-table/style/index.d.ts +2 -2
  187. package/lib/src/full-screen/style/index.d.ts +2 -2
  188. package/lib/src/mask/style/index.d.ts +2 -2
  189. package/lib/src/scroll-bar/style/index.d.ts +2 -2
  190. package/lib/src/scroll-view/style/index.d.ts +2 -2
  191. package/lib/src/splitter/style/index.d.ts +2 -2
  192. package/lib/src/text/style/group.d.ts +2 -2
  193. package/lib/src/text/style/index.d.ts +2 -2
  194. package/lib/src/utils/cssinjs/index.d.ts +2 -2
  195. package/lib/src/utils/cssinjs/index.js +1 -1
  196. package/lib/src/utils/cssinjs/plugin-specificity.js +1 -0
  197. package/lib/src/version.d.ts +1 -1
  198. package/lib/src/version.js +1 -1
  199. package/package.json +1 -1
@@ -1,14 +1,14 @@
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 b, withCtx as m, createElementVNode as S, normalizeStyle as y, renderSlot as H, createBlock as $, toDisplayString as u, resolveDynamicComponent as I, Fragment as C, renderList as J, createCommentVNode as L, 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";
1
+ import { defineComponent as j, computed as c, ref as g, watch as x, nextTick as f, onMounted as J, createElementBlock as i, openBlock as l, normalizeClass as n, unref as t, createVNode as C, withCtx as m, createElementVNode as S, normalizeStyle as y, renderSlot as H, createBlock as $, toDisplayString as u, resolveDynamicComponent as I, Fragment as E, renderList as P, createCommentVNode as L, createTextVNode as Q } from "vue";
2
+ import { DownOutlined as U } from "@ant-design/icons-vue";
3
+ import { Alert as X, Tooltip as Y } from "@aplus-frontend/antdv";
4
+ import { ApActionItem as Z } from "../../ap-action/index.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { isNil as Z, isString as E } 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";
6
+ import { isNil as _, isString as A } from "lodash-unified";
7
+ import ee from "./style/index.mjs";
8
+ import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
9
+ import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
11
- const le = ["onClick"], ye = /* @__PURE__ */ W({
11
+ const oe = ["onClick"], he = /* @__PURE__ */ j({
12
12
  __name: "ApExpandAlert",
13
13
  props: {
14
14
  type: { default: "warning" },
@@ -22,38 +22,43 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
22
22
  prefixStyle: { default: () => ({}) },
23
23
  rows: { default: 2 },
24
24
  defaultExpand: { type: Boolean, default: !0 },
25
- showIcon: { type: Boolean, default: !0 }
25
+ showIcon: { type: Boolean, default: !0 },
26
+ closable: { type: Boolean },
27
+ afterClose: {}
26
28
  },
27
- emits: ["choose", "expand"],
29
+ emits: ["choose", "expand", "close"],
28
30
  setup(z, { expose: D, emit: M }) {
29
- const A = M, p = z, { t: B } = ee(), V = c(() => {
31
+ const h = M, p = z, { t: B } = te(), V = c(() => {
30
32
  if (p.type != "card")
31
33
  return p.type;
32
- }), l = g(""), d = g(null), R = c(() => ({
34
+ }), a = g(""), d = g(null), R = c(() => ({
33
35
  fontWeight: "400",
34
36
  wordBreak: "break-all",
35
37
  overflow: "hidden",
36
38
  display: "-webkit-box",
37
- webkitLineClamp: l.value,
39
+ webkitLineClamp: a.value,
38
40
  webkitBoxOrient: "vertical",
39
41
  lineHeight: "18px"
40
42
  }));
41
43
  function q() {
42
- l.value === "1" ? (l.value = "", A("expand", "expand")) : (l.value = "1", A("expand", "collapse"));
44
+ a.value === "1" ? (a.value = "", h("expand", "expand")) : (a.value = "1", h("expand", "collapse"));
43
45
  }
44
- const F = c(() => l.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), h = g(!0), N = c(() => l.value !== "1");
45
- function v(e) {
46
- e ? l.value = "" : l.value = "1";
46
+ const F = c(() => a.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), v = g(!0), N = c(() => a.value !== "1");
47
+ function k(e) {
48
+ e ? a.value = "" : a.value = "1";
49
+ }
50
+ function O(e) {
51
+ h("close", e);
47
52
  }
48
53
  x(
49
54
  () => p.data,
50
55
  () => {
51
- l.value = "", f(() => {
56
+ a.value = "", f(() => {
52
57
  if (d.value) {
53
58
  const e = Number(d.value.clientHeight), r = Number(
54
59
  parseInt(d.value.style.lineHeight)
55
60
  );
56
- e < r * Number(p.rows) && N.value ? h.value = !1 : h.value = !0;
61
+ e < r * Number(p.rows) && N.value ? v.value = !1 : v.value = !0;
57
62
  }
58
63
  });
59
64
  },
@@ -64,21 +69,21 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
64
69
  () => p.defaultExpand,
65
70
  (e) => {
66
71
  e ? f(() => {
67
- v(e);
72
+ k(e);
68
73
  }) : f(() => {
69
- v(e);
74
+ k(e);
70
75
  });
71
76
  },
72
77
  { immediate: !0 }
73
- ), j(() => {
78
+ ), J(() => {
74
79
  x(
75
80
  () => p.contentStyle,
76
81
  (e) => {
77
- Z(e.lineHeight) || f(() => {
82
+ _(e.lineHeight) || f(() => {
78
83
  const r = document.querySelector(
79
- `#${k} .ant-alert-action`
84
+ `#${w} .ant-alert-action`
80
85
  ), s = document.querySelector(
81
- `#${k} .ant-alert-icon`
86
+ `#${w} .ant-alert-icon`
82
87
  );
83
88
  r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
84
89
  });
@@ -90,20 +95,23 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
90
95
  }
91
96
  );
92
97
  });
93
- const { b: T, e: o, m: O } = te("ap-expand-alert"), G = _("ap-expand-alert"), k = `${T()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`, K = ae("uiMode", "aplus");
98
+ const { b: T, e: o, m: G } = le("ap-expand-alert"), K = ee("ap-expand-alert"), w = `${T()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`, W = ae("uiMode", "aplus");
94
99
  return D({
95
- setExpand: v
96
- }), (e, r) => (a(), i("div", {
97
- id: k,
98
- class: n([t(T)(), `${t(O)(t(K))}`, t(G)])
100
+ setExpand: k
101
+ }), (e, r) => (l(), i("div", {
102
+ id: w,
103
+ class: n([t(T)(), `${t(G)(t(W))}`, t(K)])
99
104
  }, [
100
- b(t(U), {
105
+ C(t(X), {
101
106
  type: V.value,
102
107
  "show-icon": e.showIcon,
103
- class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""])
108
+ closable: e.closable,
109
+ class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""]),
110
+ "after-close": e.afterClose,
111
+ onClose: O
104
112
  }, {
105
113
  action: m(() => [
106
- h.value ? (a(), $(t(Y), {
114
+ v.value ? (l(), $(t(Z), {
107
115
  key: 0,
108
116
  size: "small",
109
117
  style: { "font-size": "12px", "padding-left": "16px" },
@@ -113,7 +121,7 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
113
121
  S("span", {
114
122
  class: n(t(o)("expandText"))
115
123
  }, u(F.value), 3),
116
- b(t(Q), {
124
+ C(t(U), {
117
125
  class: n(N.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
118
126
  }, null, 8, ["class"])
119
127
  ]),
@@ -128,52 +136,52 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
128
136
  class: n(t(o)("alertContent"))
129
137
  }, [
130
138
  H(e.$slots, "default", {}, () => [
131
- t(E)(e.prefix) ? (a(), i("span", {
139
+ t(A)(e.prefix) ? (l(), i("span", {
132
140
  key: 0,
133
141
  class: n(t(o)("prefix")),
134
142
  style: y(e.prefixStyle)
135
- }, u(e.prefix), 7)) : (a(), $(I(e.prefix), {
143
+ }, u(e.prefix), 7)) : (l(), $(I(e.prefix), {
136
144
  key: 1,
137
145
  style: y(e.prefixStyle)
138
146
  }, null, 8, ["style"])),
139
- t(E)(e.data) ? (a(), i("span", {
147
+ t(A)(e.data) ? (l(), i("span", {
140
148
  key: 2,
141
149
  class: n(t(o)("text"))
142
- }, u(e.data), 3)) : (a(!0), i(C, { key: 3 }, J(e.data, (s, w) => (a(), i(C, { key: w }, [
143
- b(t(X), {
150
+ }, u(e.data), 3)) : (l(!0), i(E, { key: 3 }, P(e.data, (s, b) => (l(), i(E, { key: b }, [
151
+ C(t(Y), {
144
152
  title: e.tipTitle ? e.tipTitle : null
145
153
  }, {
146
154
  default: m(() => [
147
155
  H(e.$slots, "item", {
148
156
  record: s,
149
- index: w
157
+ index: b
150
158
  }, () => [
151
159
  S("span", {
152
160
  class: n(t(o)("showItem")),
153
- onClick: (oe) => e.$emit("choose", s)
154
- }, u(e.mapLabel ? s[e.mapLabel] : s), 11, le)
161
+ onClick: (ne) => e.$emit("choose", s)
162
+ }, u(e.mapLabel ? s[e.mapLabel] : s), 11, oe)
155
163
  ])
156
164
  ]),
157
165
  _: 2
158
166
  }, 1032, ["title"]),
159
- w !== e.data.length - 1 ? (a(), i("span", {
167
+ b !== e.data.length - 1 ? (l(), i("span", {
160
168
  key: 0,
161
169
  class: n(t(o)("spliter")),
162
170
  style: y(e.separatorStyle)
163
171
  }, [
164
- t(E)(e.separator) ? (a(), i(C, { key: 0 }, [
165
- P(u(e.separator), 1)
166
- ], 64)) : (a(), $(I(e.separator), { key: 1 }))
172
+ t(A)(e.separator) ? (l(), i(E, { key: 0 }, [
173
+ Q(u(e.separator), 1)
174
+ ], 64)) : (l(), $(I(e.separator), { key: 1 }))
167
175
  ], 6)) : L("", !0)
168
176
  ], 64))), 128))
169
177
  ])
170
178
  ], 6)
171
179
  ]),
172
180
  _: 3
173
- }, 8, ["type", "show-icon", "class"])
181
+ }, 8, ["type", "show-icon", "closable", "class", "after-close"])
174
182
  ], 2));
175
183
  }
176
184
  });
177
185
  export {
178
- ye as default
186
+ he as default
179
187
  };
@@ -15,9 +15,10 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
15
15
  index: number;
16
16
  }): any;
17
17
  };
18
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
18
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
19
19
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
20
20
  props: {
21
+ readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
21
22
  readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
22
23
  readonly onChoose?: ((args_0: T) => any) | undefined;
23
24
  type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
@@ -31,6 +32,8 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
31
32
  prefixStyle?: CSSProperties | undefined;
32
33
  rows?: string | number | undefined;
33
34
  defaultExpand?: boolean | undefined;
35
+ closable?: boolean | undefined;
36
+ afterClose?: (() => void) | undefined;
34
37
  showIcon?: boolean | undefined;
35
38
  } & PublicProps;
36
39
  expose(exposed: ShallowUnwrapRef<{
@@ -50,7 +53,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
50
53
  index: number;
51
54
  }): any;
52
55
  };
53
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
56
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
54
57
  }>) => VNode & {
55
58
  __ctx?: Awaited<typeof __VLS_setup>;
56
59
  }) & ( Plugin & (new (...args: any[]) => {
@@ -45,4 +45,4 @@ export type ApExpandAlertProps<T> = {
45
45
  * 默认是否展开
46
46
  */
47
47
  defaultExpand?: boolean;
48
- } & Pick<AlertProps, 'showIcon'>;
48
+ } & Pick<AlertProps, 'showIcon' | 'closable' | 'afterClose'>;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApImageStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- const n = (o) => {
3
- const { componentCls: e } = o;
2
+ const n = (e) => {
3
+ const { componentCls: o } = e;
4
4
  return {
5
- [`${e}-toolbar`]: {
5
+ [`${o}-toolbar`]: {
6
6
  display: "flex",
7
7
  alignItems: "center",
8
8
  padding: "0 24px",
@@ -10,10 +10,10 @@ const n = (o) => {
10
10
  borderRadius: "100px"
11
11
  }
12
12
  };
13
- }, a = t("ApImage", (o) => [
14
- n(o)
13
+ }, a = t("ApImage", (e) => [
14
+ n(e)
15
15
  ]);
16
16
  export {
17
17
  a as default,
18
- n as genProCardStyle
18
+ n as genApImageStyle
19
19
  };
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type ApRadioGroupToken = {
3
3
  apRadioGroupItemActiveBgColor: string;
4
4
  };
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genApTableModalStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as q, createVNode as h, resolveDynamicComponent as V } from "vue";
2
- import { message as R, Modal as j } from "@aplus-frontend/antdv";
1
+ import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as j, createVNode as h, resolveDynamicComponent as q } from "vue";
2
+ import { message as R, Modal as V } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { ApTable as z } from "../../ap-table/index.mjs";
5
5
  import { cloneDeep as W, omit as T } from "lodash-unified";
@@ -67,24 +67,24 @@ const ye = /* @__PURE__ */ G({
67
67
  },
68
68
  emits: ["finish"],
69
69
  setup(S, { expose: B, emit: P }) {
70
- const e = S, M = P, s = d(!1), v = d({}), i = d(null), a = d([]), b = d();
71
- let f = null, u = null;
70
+ const e = S, M = P, i = d(!1), v = d({}), u = d(null), a = d([]), b = d();
71
+ let f = null, c = null;
72
72
  const { b: K } = X("ap-table-modal"), I = Q("ap-table-modal"), { t: C } = Y(), O = async (t = [], o = {}) => {
73
- switch (a.value = [...t], s.value = !0, v.value = o?.extraParams, b.value = o.apTableDataSources || e.apTableProps?.dataSource, o.refreshMode || "reset") {
73
+ switch (a.value = [...t], i.value = !0, v.value = o?.extraParams, b.value = o.apTableDataSources || e.apTableProps?.dataSource, o.refreshMode || "reset") {
74
74
  case "reset":
75
- i.value?.reset();
75
+ u.value?.reset();
76
76
  break;
77
77
  case "submit":
78
- i.value?.submit();
78
+ u.value?.submit();
79
79
  break;
80
80
  case "none":
81
81
  break;
82
82
  }
83
83
  return new Promise((n, l) => {
84
- f = n, u = l;
84
+ f = n, c = (s) => l("Ignored Reject: " + s);
85
85
  });
86
86
  }, x = () => {
87
- s.value = !1, f = null, u?.(y.ModalCancel), u = null;
87
+ i.value = !1, f = null, c?.(y.ModalCancel), c = null;
88
88
  }, _ = async (t) => {
89
89
  t = J({
90
90
  ...t,
@@ -97,7 +97,7 @@ const ye = /* @__PURE__ */ G({
97
97
  };
98
98
  }, N = async () => {
99
99
  if (a.value.length > e.maxCount) {
100
- u?.(y.ExceedMaxCount);
100
+ c?.(y.ExceedMaxCount);
101
101
  return;
102
102
  }
103
103
  if (e.getRowKey) {
@@ -109,10 +109,10 @@ const ye = /* @__PURE__ */ G({
109
109
  return;
110
110
  M("finish", o, t), f?.({ keys: o, rows: t });
111
111
  } else {
112
- u?.(y.NotFineGetRowKey);
112
+ c?.(y.NotFineGetRowKey);
113
113
  return;
114
114
  }
115
- s.value = !1;
115
+ i.value = !1;
116
116
  }, D = H(() => {
117
117
  if (!e.getRowKey) return;
118
118
  const t = e.getRowKey;
@@ -130,12 +130,12 @@ const ye = /* @__PURE__ */ G({
130
130
  );
131
131
  return;
132
132
  }
133
- const l = i.value?.dataSource;
133
+ const l = u.value?.dataSource;
134
134
  if (o) {
135
- const c = r(l).filter((p) => !a.value.some((E) => t(E) === t(p)));
136
- a.value = a.value.concat(c);
135
+ const s = r(l).filter((p) => !a.value.some((E) => t(E) === t(p)));
136
+ a.value = a.value.concat(s);
137
137
  } else
138
- a.value = a.value?.filter((c) => !l.some((p) => t(p) === t(c)));
138
+ a.value = a.value?.filter((s) => !l.some((p) => t(p) === t(s)));
139
139
  },
140
140
  onSelect(o, n) {
141
141
  if (n) {
@@ -150,7 +150,7 @@ const ye = /* @__PURE__ */ G({
150
150
  e.rowSelection?.type === "radio" ? a.value = [o] : a.value.push(o);
151
151
  } else {
152
152
  const l = a.value.findIndex(
153
- (c) => t(o) === t(c)
153
+ (s) => t(o) === t(s)
154
154
  );
155
155
  a.value.splice(l, 1);
156
156
  }
@@ -171,7 +171,7 @@ const ye = /* @__PURE__ */ G({
171
171
  {
172
172
  default: e.renderModalTitleSuffix ?? void 0
173
173
  }
174
- ) : e.title, A = () => i.value, F = () => {
174
+ ) : e.title, A = () => u.value, F = () => {
175
175
  a.value = [];
176
176
  }, $ = (t) => {
177
177
  const o = e.getRowKey;
@@ -185,10 +185,10 @@ const ye = /* @__PURE__ */ G({
185
185
  open: O,
186
186
  close: x,
187
187
  getApTableInstance: A
188
- }), (t, o) => (g(), w(r(j), m(
188
+ }), (t, o) => (g(), w(r(V), m(
189
189
  {
190
- open: s.value,
191
- "onUpdate:open": o[0] || (o[0] = (n) => s.value = n)
190
+ open: i.value,
191
+ "onUpdate:open": o[0] || (o[0] = (n) => i.value = n)
192
192
  },
193
193
  r(T)(e, [
194
194
  "api",
@@ -213,7 +213,7 @@ const ye = /* @__PURE__ */ G({
213
213
  }
214
214
  ), {
215
215
  default: k(() => [
216
- e.renderHeader ? (g(), w(V(e.renderHeader), { key: 0 })) : q("", !0),
216
+ e.renderHeader ? (g(), w(q(e.renderHeader), { key: 0 })) : j("", !0),
217
217
  h(ee, m(e.tableLayoutConfig || {}, {
218
218
  "selected-list": a.value,
219
219
  onClear: F,
@@ -222,7 +222,7 @@ const ye = /* @__PURE__ */ G({
222
222
  default: k(() => [
223
223
  h(r(z), m({
224
224
  ref_key: "apTableRef",
225
- ref: i,
225
+ ref: u,
226
226
  scroll: { y: 450 },
227
227
  style: { padding: "0px" },
228
228
  columns: t.columns,
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genApTitleStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApViewStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -138,5 +138,5 @@ const o = (t) => {
138
138
  ]);
139
139
  export {
140
140
  r as default,
141
- o as genProCardStyle
141
+ o as genApViewStyle
142
142
  };
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type BatchInputGroupToken = {
3
3
  batchInputGroupTriggerColorDisabled: string;
4
4
  };
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { isFunction as g, merge as A, cloneDeep as F } from "lodash-unified";
2
- import { ref as w } from "vue";
3
- import { useKeepAliveFlag as R } from "./useKeepAliveFlag.mjs";
2
+ import { ref as V } from "vue";
3
+ import { useKeepAliveFlag as w } from "./useKeepAliveFlag.mjs";
4
4
  function O(l) {
5
- const r = w(null), {
5
+ const r = V(null), {
6
6
  isShowRowSelection: u = !0,
7
7
  clearSelectionOnRequest: d = !0,
8
8
  transformSearchFormValues: o,
@@ -18,7 +18,7 @@ function O(l) {
18
18
  r.value?.submitWith(e);
19
19
  }, p = () => {
20
20
  r.value?.reset();
21
- }, { isDeactivated: h } = R({
21
+ }, { isDeactivated: h } = w({
22
22
  afterActivated() {
23
23
  (g(s) ? s() : s) && c();
24
24
  },
@@ -47,8 +47,9 @@ function O(l) {
47
47
  fixed: "left",
48
48
  columnWidth: 38
49
49
  } : void 0,
50
- ref(e) {
51
- r.value = e;
50
+ /** Jackie 推荐方法 */
51
+ onVnodeBeforeMount(e) {
52
+ r.value = e.component?.exposed;
52
53
  },
53
54
  // 新UI规范,需要都添加分割线
54
55
  card: !0
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type CheckCardToken = {
3
3
  /** 禁用背景色 */
4
4
  checkCardDisabledBg: string;
@@ -11,5 +11,5 @@ export type CheckCardToken = {
11
11
  /** 指示器位置偏移 */
12
12
  checkCardIndicatorOffset: number;
13
13
  };
14
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
14
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
15
15
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  type EditableTableToken = {
4
4
  editableTableHeaderBg: string;
5
5
  };
6
6
  export declare const genEditableTableStyle: GenStyleFunc<EditableTableToken>;
7
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
7
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
8
8
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genFullScreenStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export type MaskToken = {
4
4
  /**
5
5
  * 遮罩打开/关闭时的动画时长
@@ -12,5 +12,5 @@ export type MaskToken = {
12
12
  };
13
13
  export declare function genFadeKeyFrames(): string[];
14
14
  export declare const genMaskStyle: GenStyleFunc<MaskToken>;
15
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
15
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
16
16
  export default _default;