@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,9 +1,9 @@
1
1
  import { ROW_KEY as a } from "./constants.mjs";
2
2
  import { isFunction as p } from "lodash-unified";
3
- function m(t, e, r) {
3
+ function m(e, t, r) {
4
4
  let n = null;
5
5
  return { request: async (s) => {
6
- const i = t;
6
+ const i = e;
7
7
  if (!i)
8
8
  return r?.(0), {
9
9
  data: [],
@@ -12,42 +12,42 @@ function m(t, e, r) {
12
12
  n && (s = Object.assign(s, n));
13
13
  const { records: l, total: u } = await i(Object.assign({}, s));
14
14
  return r?.(l.length || 0), {
15
- data: l.map((c) => h(c, e)),
15
+ data: l.map((c) => h(c, t)),
16
16
  total: u
17
17
  };
18
18
  }, setExtraParams: (s) => {
19
19
  n = s || null;
20
20
  } };
21
21
  }
22
- function h(t, e) {
23
- return p(e) ? {
24
- ...t,
25
- [a]: e(t)
26
- } : t;
22
+ function h(e, t) {
23
+ return p(t) ? {
24
+ ...e,
25
+ [a]: t(e)
26
+ } : e;
27
27
  }
28
- function g(t) {
29
- return Reflect.deleteProperty(t, a), t;
28
+ function g(e) {
29
+ return Reflect.deleteProperty(e, a), e;
30
30
  }
31
- function y(t) {
32
- const { renderSelectedItem: e, rightTitle: r, rightBottom: n, ...o } = t || {};
31
+ function j(e) {
32
+ const { renderSelectedItem: t, rightTitle: r, rightBottom: n, ...o } = e || {};
33
33
  return {
34
- props: { ...o, layoutType: t && "two-column" },
34
+ props: { ...o, layoutType: e && "two-column" },
35
35
  slots: {
36
- renderSelectedItem: e,
36
+ renderSelectedItem: t,
37
37
  rightTitle: r,
38
38
  rightBottom: n
39
39
  }
40
40
  };
41
41
  }
42
- class P {
42
+ class y {
43
43
  constructor() {
44
44
  this.p = null, this.operateFn = null;
45
45
  }
46
46
  buildPromise() {
47
- return this.operateFn && this.operateFn.reject("reuse"), this.p = new Promise((e, r) => {
47
+ return this.operateFn && this.operateFn.reject("Ignored Reject: reuse"), this.p = new Promise((t, r) => {
48
48
  this.operateFn = {
49
49
  reject: r,
50
- resolve: e
50
+ resolve: t
51
51
  };
52
52
  }), this.p;
53
53
  }
@@ -55,18 +55,18 @@ class P {
55
55
  this.p = null, this.operateFn = null;
56
56
  }
57
57
  /** 兑现回调 */
58
- resolve(e) {
59
- this.operateFn && (this.operateFn.resolve(e), this.clear());
58
+ resolve(t) {
59
+ this.operateFn && (this.operateFn.resolve(t), this.clear());
60
60
  }
61
61
  /** 拒绝回调 */
62
- reject(e) {
63
- this.operateFn && (this.operateFn.reject(e), this.clear());
62
+ reject(t) {
63
+ this.operateFn && (this.operateFn.reject("Ignored Reject: " + t), this.clear());
64
64
  }
65
65
  }
66
66
  export {
67
- P as AsyncCallback,
67
+ y as AsyncCallback,
68
68
  h as addRowKeyField,
69
69
  g as delRowKeyField,
70
70
  m as genRequest,
71
- y as getModalLayoutConfig
71
+ j as getModalLayoutConfig
72
72
  };
@@ -1,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../../design-token/interface';
2
2
  import { AppendixToken } from './token';
3
- import { Ref } from 'vue';
4
- export declare const genProCardStyle: GenStyleFunc<AppendixToken>;
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
3
+ import { ComputedRef } from 'vue';
4
+ export declare const genApAppendixStyle: GenStyleFunc<AppendixToken>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -93,5 +93,5 @@ const r = (o) => {
93
93
  );
94
94
  export {
95
95
  l as default,
96
- r as genProCardStyle
96
+ r as genApAppendixStyle
97
97
  };
@@ -1,108 +1,112 @@
1
- import { defineComponent as U, ref as F, useSlots as W, computed as n, cloneVNode as _, toRaw as v, unref as j, createVNode as t, createTextVNode as K } from "vue";
1
+ import { defineComponent as W, ref as x, useSlots as _, computed as n, cloneVNode as j, toRaw as h, unref as K, createVNode as t, createTextVNode as R } from "vue";
2
2
  import { Tooltip as B, Popover as G } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { ApAttachmentProps as H } from "./constans.mjs";
5
- import { getHexWithOpacity as R, getFileInfo as b } from "../../ap-download/utils/getFileInfo.mjs";
6
- import { useOssInit as q } from "../../ap-download/hooks/index.mjs";
7
- import { debounce as D, isArray as E } from "lodash-unified";
8
- import { LoadingOutlined as h } from "@ant-design/icons-vue";
9
- import { warning as J } from "../../utils/warning.mjs";
10
- import Q from "./style/index.mjs";
11
- import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
12
- import { useGlobalConfig as g } from "../../config-provider/hooks/use-global-config.mjs";
13
- import { useLocale as Y } from "../../config-provider/hooks/use-locale.mjs";
14
- const me = /* @__PURE__ */ U({
5
+ import { getHexWithOpacity as q, getFileInfo as O } from "../../ap-download/utils/getFileInfo.mjs";
6
+ import { useOssInit as D } from "../../ap-download/hooks/index.mjs";
7
+ import { debounce as E, isArray as J } from "lodash-unified";
8
+ import { LoadingOutlined as g } from "@ant-design/icons-vue";
9
+ import { warning as Q } from "../../utils/warning.mjs";
10
+ import X from "./style/index.mjs";
11
+ import { useNamespace as Y } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import { useGlobalConfig as p } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
14
+ const de = /* @__PURE__ */ W({
15
15
  name: "ApAttachment",
16
16
  props: H(),
17
- setup(e) {
17
+ setup(e, {
18
+ emit: C
19
+ }) {
18
20
  const {
19
- b: x,
20
- e: l
21
- } = X("ap-attachment"), p = Q("ap-attachment"), O = g("uiMode"), L = g("apUpload"), N = g("downloadCenterTriggerConfig"), {
22
- lang: T,
23
- t: r
24
- } = Y(), c = F(!1), s = F(""), m = W(), P = n(() => T.value === "zh-cn" ? "zh_CN" : "en_US"), i = n(() => e.needName ?? L?.value?.needName), d = n(() => e.attachmentList.length === 1), y = n(() => i.value ? e.attachmentList.length > 0 && i.value && i.value?.nameKey ? e.attachmentList[0][i.value.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), k = n(() => d.value ? y.value : r("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : O.value === "aplus" ? "#0070FF" : "#1890FF"), C = n(() => ({
21
+ b: T,
22
+ e: a
23
+ } = Y("ap-attachment"), L = X("ap-attachment"), k = p("uiMode"), N = p("apUpload"), w = p("downloadCenterTriggerConfig"), {
24
+ lang: P,
25
+ t: m
26
+ } = Z(), i = x(!1), c = x(""), d = _(), I = n(() => P.value === "zh-cn" ? "zh_CN" : "en_US"), s = n(() => e.needName ?? N?.value?.needName), f = n(() => e.attachmentList.length === 1), y = n(() => s.value ? e.attachmentList.length > 0 && s.value && s.value?.nameKey ? e.attachmentList[0][s.value.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), S = n(() => f.value ? y.value : m("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : k.value === "aplus" ? "#0070FF" : "#1890FF"), F = n(() => ({
25
27
  "--download-main-color": A.value,
26
- "--download-main-color-opacity": R(A.value, 0.6)
27
- })), I = n(() => e.getOssAccess || L.value?.getOssAccess), S = n(() => {
28
- const a = m.default ? m.default()[0] : null;
29
- return a ? _(a, {
28
+ "--download-main-color-opacity": q(A.value, 0.6)
29
+ })), V = n(() => e.getOssAccess || N.value?.getOssAccess), z = n(() => {
30
+ const l = d.default ? d.default()[0] : null;
31
+ return l ? j(l, {
30
32
  style: {
31
33
  "font-size": "16px"
32
34
  }
33
35
  }) : null;
34
- }), f = D(async (a, u) => {
36
+ }), v = E(async (l, u) => {
35
37
  if (!e.disabled) {
36
- c.value = !0, u && (s.value = u);
38
+ i.value = !0, u && (c.value = u);
37
39
  try {
38
- const o = E(v(a)) ? v(a) : [v(a)];
39
- if (N.value?.trigger) {
40
- const M = b(i.value, o).map((w) => ({
41
- objectName: w.path,
42
- fileName: w.fileName
40
+ const o = J(h(l)) ? h(l) : [h(l)];
41
+ if (w.value?.trigger) {
42
+ const r = O(s.value, o).map((b) => ({
43
+ objectName: b.path,
44
+ fileName: b.fileName
43
45
  }));
44
- N.value?.trigger(M);
45
- } else
46
- await (await q(I.value, j(P))).downloadFile(b(i.value, o));
46
+ w.value?.trigger(r), C("downloadCallback", r);
47
+ } else {
48
+ const r = await (await D(V.value, K(I))).downloadFile(O(e.needName, o));
49
+ C("downloadCallback", r);
50
+ }
47
51
  } catch (o) {
48
- J(!1, o);
52
+ Q(!1, o);
49
53
  } finally {
50
- c.value = !1, s.value = "";
54
+ i.value = !1, c.value = "";
51
55
  }
52
56
  }
53
- }, 500), V = (a) => a && a.length > 0 ? t("ul", {
54
- class: [l("file-list"), p.value],
55
- style: C.value
56
- }, [a.map((u, o) => t("li", {
57
+ }, 500), M = (l) => l && l.length > 0 ? t("ul", {
58
+ class: [a("file-list"), L.value],
59
+ style: F.value
60
+ }, [l.map((u, o) => t("li", {
57
61
  key: o,
58
- class: [l("file-item")],
59
- onClick: () => f(u, o + 1)
60
- }, [c.value && s.value === o + 1 ? t("span", {
61
- class: [l("spin")]
62
- }, [t(h, {
62
+ class: [a("file-item")],
63
+ onClick: () => v(u, o + 1)
64
+ }, [i.value && c.value === o + 1 ? t("span", {
65
+ class: [a("spin")]
66
+ }, [t(g, {
63
67
  spin: !0
64
68
  }, null)]) : null, u.fileName])), t("li", {
65
- class: [l("download-all")],
66
- onClick: () => f(e.attachmentList, "all")
67
- }, [c.value && s.value === "all" ? t("span", {
68
- class: [l("spin")]
69
- }, [t(h, {
69
+ class: [a("download-all")],
70
+ onClick: () => v(e.attachmentList, "all")
71
+ }, [i.value && c.value === "all" ? t("span", {
72
+ class: [a("spin")]
73
+ }, [t(g, {
70
74
  spin: !0
71
- }, null)]) : null, r("ap.apAttachment.downloadall")])]) : null;
75
+ }, null)]) : null, m("ap.apAttachment.downloadall")])]) : null;
72
76
  return () => e.attachmentList?.length > 0 && t("div", {
73
- class: [x(), p.value],
74
- style: [C.value]
77
+ class: [T(), L.value],
78
+ style: [F.value]
75
79
  }, [t(B, {
76
- title: k.value,
80
+ title: S.value,
77
81
  placement: e.textToolTipPlacement,
78
82
  color: e.toolTipBgColor
79
83
  }, {
80
84
  default: () => [t("div", {
81
- class: [l("content")],
82
- onClick: () => f(d.value ? e.attachmentList[0] : e.attachmentList, "global")
83
- }, [c.value && s.value === "global" ? t("div", {
84
- class: [l("spin")]
85
- }, [t(h, {
85
+ class: [a("content")],
86
+ onClick: () => v(f.value ? e.attachmentList[0] : e.attachmentList, "global")
87
+ }, [i.value && c.value === "global" ? t("div", {
88
+ class: [a("spin")]
89
+ }, [t(g, {
86
90
  spin: !0
87
- }, null)]) : null, m.default ? t("div", {
88
- class: [l("text-render")]
89
- }, [S.value, K(" ")]) : null, t("div", {
90
- class: [l("text-inner")],
91
+ }, null)]) : null, d.default ? t("div", {
92
+ class: [a("text-render")]
93
+ }, [z.value, R(" ")]) : null, t("div", {
94
+ class: [a("text-inner")],
91
95
  style: {
92
96
  "max-width": e.maxWidth ? e.maxWidth + "px" : "auto"
93
97
  }
94
98
  }, [y.value])])]
95
99
  }), t(G, {
96
- content: V(e.attachmentList),
100
+ content: M(e.attachmentList),
97
101
  placement: e.fileMorePopoverPlacement,
98
102
  color: "#fff"
99
103
  }, {
100
- default: () => [!d.value && t("div", {
101
- class: [l("more")]
102
- }, [r("ap.apAttachment.more")])]
104
+ default: () => [!f.value && t("div", {
105
+ class: [a("more")]
106
+ }, [m("ap.apAttachment.more")])]
103
107
  })]);
104
108
  }
105
109
  });
106
110
  export {
107
- me as default
111
+ de as default
108
112
  };
@@ -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 genApBatchActionStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -47,5 +47,5 @@ const n = (t) => {
47
47
  ]);
48
48
  export {
49
49
  l as default,
50
- n as genProCardStyle
50
+ n as genApBatchActionStyle
51
51
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as F, useSlots as O, computed as t, createBlock as u, createCommentVNode as j, openBlock as p, unref as n, mergeProps as f, createSlots as L, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as S, h as g, createVNode as i, renderList as k, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as I } from "vue";
2
- import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
1
+ import { defineComponent as O, useSlots as j, computed as t, createBlock as u, createCommentVNode as x, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as E, normalizeStyle as q, resolveDynamicComponent as k, h as L, createVNode as i, renderList as g, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as F } from "vue";
2
+ import { DropdownButton as H, Dropdown as J } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/index.mjs";
4
4
  import "./MenuItemGroup.vue.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { DownOutlined as J } from "@ant-design/icons-vue";
7
- import { usePermission as K } from "@aplus-frontend/hooks";
6
+ import { DownOutlined as K } from "@ant-design/icons-vue";
7
+ import { usePermission as M } from "@aplus-frontend/hooks";
8
8
  import { useInjectApTable as Q } from "../../ap-table/context.mjs";
9
- import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import U from "./style/index.mjs";
10
+ import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
12
12
  import B from "./MenuItemGroup.vue2.mjs";
13
13
  import Y from "../../ap-button/ap-button.vue.mjs";
14
- const me = /* @__PURE__ */ F({
14
+ const me = /* @__PURE__ */ O({
15
15
  __name: "ApBatchActionGroup",
16
16
  props: {
17
17
  selectedRows: {},
@@ -19,95 +19,89 @@ const me = /* @__PURE__ */ F({
19
19
  menuList: {}
20
20
  },
21
21
  setup(C, { expose: $ }) {
22
- const { b: h } = U("ap-batch-action-group"), { t: D } = W(), { columns: R, dataSource: T } = Q(), o = C, N = X("uiMode"), { hasPermission: z } = K(), w = O(), y = t(
23
- () => o?.buttonProps?.dropdownType || "default"
22
+ const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: R } = X(), { columns: T, dataSource: N } = Q(), e = C, { hasPermission: z } = M(), y = j(), w = t(
23
+ () => e?.buttonProps?.dropdownType || "default"
24
24
  ), a = t(
25
- () => o?.buttonProps?.type || "borderLink"
25
+ () => e?.buttonProps?.type || "borderLink"
26
26
  ), P = t(
27
- () => o?.buttonProps?.content || D("ap.apApBatchActionGroup.batchOperation")
28
- ), G = t(() => o?.selectedRows || []), c = t(
29
- () => o?.buttonProps?.disabled ?? (Array.isArray(o.selectedRows) ? G.value.length === 0 : !1)
30
- ), M = t(() => {
31
- const e = {
32
- aplus: "#0070FF",
33
- admin: "#34b77c"
34
- };
35
- return a.value === "borderLink" ? c.value ? void 0 : e[N.value] || e.aplus : void 0;
36
- }), l = t(() => o?.menuList?.filter((e) => {
37
- let m = e?.ifShow;
38
- return !e?.ifShow && e?.auth && (m = () => z(e.auth)), m?.() ?? !0;
27
+ () => e?.buttonProps?.content || R("ap.apApBatchActionGroup.batchOperation")
28
+ ), V = t(() => e?.selectedRows || []), c = t(
29
+ () => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? V.value.length === 0 : !1)
30
+ ), G = t(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), l = t(() => e?.menuList?.filter((o) => {
31
+ let m = o?.ifShow;
32
+ return !o?.ifShow && o?.auth && (m = () => z(o.auth)), m?.() ?? !0;
39
33
  }) || []);
40
34
  function _() {
41
- return o?.buttonProps ? {
42
- ...o.buttonProps,
35
+ return e?.buttonProps ? {
36
+ ...e.buttonProps,
43
37
  type: a.value === "borderLink" ? "default" : a.value
44
38
  } : {};
45
39
  }
46
40
  return $({
47
- columns: R,
48
- dataSource: T
49
- }), (e, m) => l.value.length && y.value === "dropdown" ? (p(), u(n(q), f({
41
+ columns: T,
42
+ dataSource: N
43
+ }), (o, m) => l.value.length && w.value === "dropdown" ? (p(), u(r(H), f({
50
44
  key: 0,
51
- class: [n(h)()]
45
+ class: [r(h)(), r(D)]
52
46
  }, {
53
- ...e.$attrs,
47
+ ...o.$attrs,
54
48
  ..._(),
55
49
  disabled: c.value
56
- }), L({
57
- overlay: r(() => [
50
+ }), S({
51
+ overlay: n(() => [
58
52
  i(B, f({
59
- ...o
53
+ ...e
60
54
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
61
55
  ]),
62
- default: r(() => [
63
- x("span", {
64
- style: E({
65
- color: M.value
56
+ default: n(() => [
57
+ E("span", {
58
+ style: q({
59
+ color: G.value
66
60
  })
67
61
  }, [
68
- (p(), u(S(g("span", [P.value]))))
62
+ (p(), u(k(L("span", [P.value]))))
69
63
  ], 4)
70
64
  ]),
71
65
  _: 2
72
66
  }, [
73
- k(w, (V, s) => ({
67
+ g(y, (I, s) => ({
74
68
  name: s,
75
- fn: r((d) => [
76
- A(e.$slots, s, b(v(d || {})))
69
+ fn: n((d) => [
70
+ A(o.$slots, s, b(v(d || {})))
77
71
  ])
78
72
  }))
79
- ]), 1040, ["class"])) : l.value.length && y.value === "default" ? (p(), u(n(H), {
73
+ ]), 1040, ["class"])) : l.value.length && w.value === "default" ? (p(), u(r(J), {
80
74
  key: 1,
81
- class: I([n(h)()]),
75
+ class: F([r(h)()]),
82
76
  disabled: c.value
83
- }, L({
84
- overlay: r(() => [
77
+ }, S({
78
+ overlay: n(() => [
85
79
  i(B, f({
86
- ...o
80
+ ...e
87
81
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
88
82
  ]),
89
- default: r(() => [
90
- i(n(Y), b(v({
91
- ...e.$attrs,
83
+ default: n(() => [
84
+ i(r(Y), b(v({
85
+ ...o.$attrs,
92
86
  ..._(),
93
87
  type: a.value
94
88
  })), {
95
- default: r(() => [
96
- (p(), u(S(g("span", [P.value])))),
97
- i(n(J))
89
+ default: n(() => [
90
+ (p(), u(k(L("span", [P.value])))),
91
+ i(r(K))
98
92
  ]),
99
93
  _: 1
100
94
  }, 16)
101
95
  ]),
102
96
  _: 2
103
97
  }, [
104
- k(w, (V, s) => ({
98
+ g(y, (I, s) => ({
105
99
  name: s,
106
- fn: r((d) => [
107
- A(e.$slots, s, b(v(d || {})))
100
+ fn: n((d) => [
101
+ A(o.$slots, s, b(v(d || {})))
108
102
  ])
109
103
  }))
110
- ]), 1032, ["class", "disabled"])) : j("", !0);
104
+ ]), 1032, ["class", "disabled"])) : x("", !0);
111
105
  }
112
106
  });
113
107
  export {
@@ -0,0 +1,3 @@
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
+ const r = (o) => {
3
+ const { componentCls: t } = o;
4
+ return {
5
+ [t]: {
6
+ "--ap-button-border-link-color": o.colorPrimary
7
+ }
8
+ };
9
+ }, c = n("ApBatchActionGroup", (o) => [
10
+ r(o)
11
+ ]);
12
+ export {
13
+ c as default
14
+ };
@@ -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 genApCardStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,22 +1,22 @@
1
1
  import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
- const e = (o) => {
3
- const { componentCls: t } = o;
2
+ const e = (t) => {
3
+ const { componentCls: o } = t;
4
4
  return {
5
- [t]: {
5
+ [o]: {
6
6
  width: "100%",
7
7
  background: "#fff",
8
- [`& + ${t}`]: {
8
+ [`& + ${o}`]: {
9
9
  marginTop: "10px"
10
10
  },
11
- [`${t}-title`]: {
11
+ [`${o}-title`]: {
12
12
  marginBottom: "12px"
13
13
  }
14
14
  }
15
15
  };
16
- }, p = n("ApCard", (o) => [
17
- e(o)
16
+ }, p = n("ApCard", (t) => [
17
+ e(t)
18
18
  ]);
19
19
  export {
20
20
  p as default,
21
- e as genProCardStyle
21
+ e as genApCardStyle
22
22
  };
@@ -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;
@@ -2,9 +2,10 @@ import { ApExpandAlertProps } from './interface';
2
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
5
6
  readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
6
7
  readonly onChoose?: ((args_0: T) => any) | undefined;
7
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
8
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
8
9
  expose(exposed: ShallowUnwrapRef<{
9
10
  setExpand: (state?: boolean) => void;
10
11
  }>): void;
@@ -22,7 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
22
23
  index: number;
23
24
  }): any;
24
25
  };
25
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
26
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
26
27
  }>) => VNode & {
27
28
  __ctx?: Awaited<typeof __VLS_setup>;
28
29
  };