@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,19 +1,19 @@
1
1
  import { ModalProps, ModalFuncProps } from '@aplus-frontend/antdv';
2
2
  import { ModalFunc, ModalStaticFunctions } from '@aplus-frontend/antdv/lib/modal/confirm';
3
- import { AppContext } from 'vue';
4
- export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
3
+ import { AppContext, VNodeChild } from 'vue';
4
+ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon' | 'footer'> & Partial<{
5
5
  /**
6
6
  * 点击取消回调
7
7
  * @param params content组件内使用defineExpose导出的对象
8
8
  * @returns
9
9
  */
10
- onCancel: (params: ContentRecord) => any | Promise<any>;
10
+ onCancel: (contentExposed: ContentRecord) => any | Promise<any>;
11
11
  /**
12
12
  * 点击确定回调
13
13
  * @param params content组件内使用defineExpose导出的对象
14
14
  * @returns
15
15
  */
16
- onOk: (params: ContentRecord) => any | Promise<any>;
16
+ onOk: (contentExposed: ContentRecord) => any | Promise<any>;
17
17
  /**
18
18
  * 指定弹框挂载的 HTML 节点
19
19
  */
@@ -34,8 +34,28 @@ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open'
34
34
  * 弹窗的上下文,一般用于获取全局注册组件、vuex 等内容
35
35
  */
36
36
  appContext: AppContext;
37
+ /**
38
+ * 底部内容,当不需要默认底部按钮时,可以设为 :footer="null"
39
+ */
40
+ footer: ((params: {
41
+ /**
42
+ * 原始的底部内容
43
+ */
44
+ originNode: VNodeChild;
45
+ /**
46
+ * 底部按钮
47
+ */
48
+ extra: {
49
+ okBtn: VNodeChild;
50
+ cancelBtn: VNodeChild;
51
+ };
52
+ /**
53
+ * content组件内使用defineExpose导出的对象
54
+ */
55
+ contentExposed: ContentRecord;
56
+ }) => VNodeChild) | VNodeChild;
37
57
  }>;
38
- export type CreateModalFuncReturn = {
58
+ export type CreateModalFuncReturn<ContentRecord = any> = {
39
59
  /**
40
60
  * 销毁弹框
41
61
  * @returns
@@ -46,7 +66,7 @@ export type CreateModalFuncReturn = {
46
66
  * @param newConfig
47
67
  * @returns
48
68
  */
49
- update: (newConfig: CreateModalFuncProps) => void;
69
+ update: (newConfig: CreateModalFuncProps<ContentRecord>) => void;
50
70
  /**
51
71
  * 打开弹框
52
72
  * @returns
@@ -58,7 +78,7 @@ export type CreateModalFuncReturn = {
58
78
  */
59
79
  close: () => void;
60
80
  };
61
- export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
81
+ export type CreateModalFunc = <ContentRecord = any>(props: CreateModalFuncProps<ContentRecord>) => CreateModalFuncReturn<ContentRecord>;
62
82
  export type ModalStreamNextFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (option?: {
63
83
  /**
64
84
  * 下一步弹框的id
@@ -121,18 +141,18 @@ export type ModalFuncStream<ModalType extends ModalStreamTypeKey = ModalStreamTy
121
141
  export type CreateModalStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<CreateModalFuncProps, 'destroyOnClose' | 'onOk' | 'onCancel'> & {
122
142
  /**
123
143
  * 点击确定回调
124
- * * @param params content组件内使用defineExpose导出的对象
144
+ * * @param contentExposed content组件内使用defineExpose导出的对象
125
145
  * @param next 下一步
126
146
  * @returns
127
147
  */
128
- onOk?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
148
+ onOk?: (contentExposed: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
129
149
  /**
130
150
  * 点击取消回调
131
- * * @param params content组件内使用defineExpose导出的对象
151
+ * * @param contentExposed content组件内使用defineExpose导出的对象
132
152
  * @param next 下一步
133
153
  * @returns
134
154
  */
135
- onCancel?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
155
+ onCancel?: (contentExposed: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
136
156
  };
137
157
  export type ModalStreamTypeKey = keyof ModalStreamType;
138
158
  export type CreateModalStreamProps<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = ModalType extends ModalStreamTypeKey ? {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),y=require("@aplus-frontend/antdv"),u=require("../../config-provider/config-provider.js"),O=require("lodash-unified"),q=require("@aplus-frontend/utils");require("../../config-provider/index.js");const f=require("./util.js"),P=require("../../utils/index.js"),N=require("../../config-provider/hooks/use-namespace.js"),k=s=>{let o,t;const{destroyOnClose:i=!0,wrapperOffset:r=!1}=s,{b:c}=N.useNamespace("ap-modal");function p(){o&&o(!1),setTimeout(()=>{n.render(null,a),a.parentElement?.removeChild(a)},500)}function C(){o&&o(!0)}function d(){o&&o(!1)}function h(e){t&&t(e)}const m=n.defineComponent({data(){return{open:i,props:s}},created(){o=e=>{this.open=e},t=e=>{this.props={...this.props,...e}}},methods:{async handleCancel(){if(this.props?.onCancel){const e=this.props?.content?.component?.exposed??void 0;await this.props?.onCancel(e)}i?p():d()},async handleOk(){try{if(t({confirmLoading:!0}),this.props?.onOk){const e=this.props?.content?.component?.exposed??void 0;await this.props.onOk(e)}t({confirmLoading:!1}),i?p():d()}catch{t({confirmLoading:!1})}}},render(){const e=O.omit(this.props,["onCancel","onOk","open","onUpdate:open","getContainer","icon"]);return n.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[n.createVNode(y.Modal,n.mergeProps({class:{[c()]:!0,[c("wrapper")]:r},centered:!0},e,{open:this.open,onCancel:this.handleCancel,onOk:this.handleOk}),{default:()=>[n.createVNode("div",{class:{[c("body-wrapper")]:r},style:r===!1?{}:{maxHeight:`calc(100vh - ${(r===!0?100:q.isNumeric(r)?Number(r):100)*2}px)`}},[this.props?.content])]})]})}}),g=f.getContainerDom(u.globalConfigCached?.value?.getPopupContainer),v=f.getContainerDom(s.getContainer),x=g||v||P.getTopWindow().document.body,a=document.createElement("div");x.appendChild(a);const l=n.h(m),b=f.getModalGlobalAppContext();return l.appContext=s.appContext||b||l.appContext,n.render(l,a),{destroy:p,update:h,open:C,close:d}};exports.createModal=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("@aplus-frontend/antdv"),u=require("../../config-provider/config-provider.js"),O=require("lodash-unified"),q=require("@aplus-frontend/utils");require("../../config-provider/index.js");const f=require("./util.js"),N=require("../../utils/index.js"),P=require("../../config-provider/hooks/use-namespace.js"),k=o=>{let t,r;const{destroyOnClose:i=!0,wrapperOffset:a=!1}=o,{b:c}=P.useNamespace("ap-modal");function d(){t&&t(!1),setTimeout(()=>{n.render(null,s),s.parentElement?.removeChild(s)},500)}function h(){t&&t(!0)}function p(){t&&t(!1)}function C(e){r&&r(e)}const m=n.defineComponent({data(){return{open:i,props:o}},created(){t=e=>{this.open=e},r=e=>{this.props={...this.props,...e}}},methods:{async handleCancel(){if(this.props?.onCancel){const e=this.props?.content?.component?.exposed??void 0;await this.props?.onCancel(e)}i?d():p()},async handleOk(){try{if(r({confirmLoading:!0}),this.props?.onOk){const e=this.props?.content?.component?.exposed??void 0;await this.props.onOk(e)}r({confirmLoading:!1}),i?d():p()}catch{r({confirmLoading:!1})}},handleFooter(e){return o?.footer!==void 0?typeof o.footer=="function"?o.footer({...e,contentExposed:this.props?.content?.component?.exposed??void 0}):o.footer:e?.originNode}},render(){const e=O.omit(this.props,["onCancel","onOk","open","onUpdate:open","getContainer","icon","footer"]);return n.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[n.createVNode(b.Modal,n.mergeProps({class:{[c()]:!0,[c("wrapper")]:a},centered:!0},e,{open:this.open,onCancel:this.handleCancel,onOk:this.handleOk,footer:this?.handleFooter}),{default:()=>[n.createVNode("div",{class:{[c("body-wrapper")]:a},style:a===!1?{}:{maxHeight:`calc(100vh - ${(a===!0?100:q.isNumeric(a)?Number(a):100)*2}px)`}},[this.props?.content])]})]})}}),g=f.getContainerDom(u.globalConfigCached?.value?.getPopupContainer),x=f.getContainerDom(o.getContainer),v=g||x||N.getTopWindow().document.body,s=document.createElement("div");v.appendChild(s);const l=n.h(m),y=f.getModalGlobalAppContext();return l.appContext=o.appContext||y||l.appContext,n.render(l,s),{destroy:d,update:C,open:h,close:p}};exports.createModal=k;
@@ -1,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { ProCardToken } from './token';
3
- import { Ref } from 'vue';
3
+ import { ComputedRef } from 'vue';
4
4
  export declare const genProCardDividerStyle: GenStyleFunc<ProCardToken>;
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,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { ProCardToken } from './token';
3
- import { Ref } from 'vue';
3
+ import { ComputedRef } from 'vue';
4
4
  export declare const genProCardStyle: GenStyleFunc<ProCardToken>;
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,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 genProCardOperationStyle: 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,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { ProCardToken } from './token';
3
- import { Ref } from 'vue';
3
+ import { ComputedRef } from 'vue';
4
4
  export declare const genProCardStatisticsStyle: GenStyleFunc<ProCardToken>;
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,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 genProCardTitleStyle: 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 declare const genTableEllipsisCellStyle: 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 declare const genTableIndexCellStyle: 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,9 +1,9 @@
1
1
  import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export type ApTableToken = {
4
4
  apTableHeaderBg: string;
5
5
  };
6
6
  export declare const genSettingTriggerBtnStyle: StyleMixin;
7
7
  export declare const genApTableStyle: GenStyleFunc<ApTableToken>;
8
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
8
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
9
9
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genTableSettingStyle: GenStyleFunc;
4
4
  export declare const genTableSettingSelectGroupStyle: GenStyleFunc;
5
5
  export declare const genTableSettingSortableItemMetaStyle: GenStyleFunc;
6
6
  export declare const genTableSettingSortableItemStyle: GenStyleFunc;
7
7
  export declare const genTableSettingSorterStyle: GenStyleFunc;
8
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
8
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
9
9
  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 genTagGroupStyle: 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 declare const genApTagStyle: 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,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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./constants.js"),h=require("lodash-unified");function p(e,t,r){let n=null;return{request:async s=>{const i=e;if(!i)return r?.(0),{data:[],total:0};n&&(s=Object.assign(s,n));const{records:l,total:c}=await i(Object.assign({},s));return r?.(l.length||0),{data:l.map(d=>u(d,t)),total:c}},setExtraParams:s=>{n=s||null}}}function u(e,t){return h.isFunction(t)?{...e,[a.ROW_KEY]:t(e)}:e}function f(e){return Reflect.deleteProperty(e,a.ROW_KEY),e}function F(e){const{renderSelectedItem:t,rightTitle:r,rightBottom:n,...o}=e||{};return{props:{...o,layoutType:e&&"two-column"},slots:{renderSelectedItem:t,rightTitle:r,rightBottom:n}}}class y{constructor(){this.p=null,this.operateFn=null}buildPromise(){return this.operateFn&&this.operateFn.reject("reuse"),this.p=new Promise((t,r)=>{this.operateFn={reject:r,resolve:t}}),this.p}clear(){this.p=null,this.operateFn=null}resolve(t){this.operateFn&&(this.operateFn.resolve(t),this.clear())}reject(t){this.operateFn&&(this.operateFn.reject(t),this.clear())}}exports.AsyncCallback=y;exports.addRowKeyField=u;exports.delRowKeyField=f;exports.genRequest=p;exports.getModalLayoutConfig=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./constants.js"),h=require("lodash-unified");function p(e,t,r){let n=null;return{request:async s=>{const i=e;if(!i)return r?.(0),{data:[],total:0};n&&(s=Object.assign(s,n));const{records:l,total:c}=await i(Object.assign({},s));return r?.(l.length||0),{data:l.map(d=>u(d,t)),total:c}},setExtraParams:s=>{n=s||null}}}function u(e,t){return h.isFunction(t)?{...e,[a.ROW_KEY]:t(e)}:e}function f(e){return Reflect.deleteProperty(e,a.ROW_KEY),e}function g(e){const{renderSelectedItem:t,rightTitle:r,rightBottom:n,...o}=e||{};return{props:{...o,layoutType:e&&"two-column"},slots:{renderSelectedItem:t,rightTitle:r,rightBottom:n}}}class F{constructor(){this.p=null,this.operateFn=null}buildPromise(){return this.operateFn&&this.operateFn.reject("Ignored Reject: reuse"),this.p=new Promise((t,r)=>{this.operateFn={reject:r,resolve:t}}),this.p}clear(){this.p=null,this.operateFn=null}resolve(t){this.operateFn&&(this.operateFn.resolve(t),this.clear())}reject(t){this.operateFn&&(this.operateFn.reject("Ignored Reject: "+t),this.clear())}}exports.AsyncCallback=F;exports.addRowKeyField=u;exports.delRowKeyField=f;exports.genRequest=p;exports.getModalLayoutConfig=g;
@@ -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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),r=require("./token.js"),o=e=>{const{componentCls:t}=e;return{[t]:{[`${t}__suffix`]:{width:"100%",display:"flex",alignItems:"center"},[`${t}__download-all`]:{marginLeft:"auto",padding:0,height:"min-content"},[`${t}__file-area`]:{marginTop:"12px","&--border":{border:`1px dashed ${e.borderColorBase}`,padding:"12px",borderRadius:"4px"},"&-content":{display:"grid",gap:"16px 80px",gridTemplateColumns:e.apAppendixColumn,"&-item":{overflow:"hidden",userSelect:"none","&-content":{display:"flex",alignItems:"center",width:"max-content",cursor:"pointer",maxWidth:"100%"},"&-icon":{marginRight:"8px",svg:{width:"16px",color:e.textColor4}},"&-file-name":{minWidth:0,overflow:"hidden",width:"max-content",display:"flex",alignItems:"center",".ant-typography":{fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor2,transition:"color 0.2s"}},"&-content:hover":{".ant-typography":{color:e.colorLink}},"&--loading":{"&-content":{cursor:"not-allowed"},".ant-typography":{color:e.textColor4},"&-content:hover":{".ant-typography":{color:e.textColor4}}}}}},[`${t}__empty`]:{".ant-empty":{margin:0,"&-description":{marginBottom:0}}}}}},i=n.genComponentStyleHook("ApAppendix",e=>[o(e)],r.defaultToken);exports.default=i;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),i=require("./token.js"),o=e=>{const{componentCls:t}=e;return{[t]:{[`${t}__suffix`]:{width:"100%",display:"flex",alignItems:"center"},[`${t}__download-all`]:{marginLeft:"auto",padding:0,height:"min-content"},[`${t}__file-area`]:{marginTop:"12px","&--border":{border:`1px dashed ${e.borderColorBase}`,padding:"12px",borderRadius:"4px"},"&-content":{display:"grid",gap:"16px 80px",gridTemplateColumns:e.apAppendixColumn,"&-item":{overflow:"hidden",userSelect:"none","&-content":{display:"flex",alignItems:"center",width:"max-content",cursor:"pointer",maxWidth:"100%"},"&-icon":{marginRight:"8px",svg:{width:"16px",color:e.textColor4}},"&-file-name":{minWidth:0,overflow:"hidden",width:"max-content",display:"flex",alignItems:"center",".ant-typography":{fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor2,transition:"color 0.2s"}},"&-content:hover":{".ant-typography":{color:e.colorLink}},"&--loading":{"&-content":{cursor:"not-allowed"},".ant-typography":{color:e.textColor4},"&-content:hover":{".ant-typography":{color:e.textColor4}}}}}},[`${t}__empty`]:{".ant-empty":{margin:0,"&-description":{marginBottom:0}}}}}},r=n.genComponentStyleHook("ApAppendix",e=>[o(e)],i.defaultToken);exports.default=r;exports.genApAppendixStyle=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),v=require("../../ap-download/utils/getFileInfo.js"),k=require("../../ap-download/hooks/index.js"),y=require("lodash-unified"),f=require("@ant-design/icons-vue"),G=require("../../utils/warning.js"),U=require("./style/index.js"),j=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-locale.js"),R=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t){const{b:A,e:a}=j.useNamespace("ap-attachment"),h=U.default("ap-attachment"),b=g.useGlobalConfig("uiMode"),N=g.useGlobalConfig("apUpload"),p=g.useGlobalConfig("downloadCenterTriggerConfig"),{lang:q,t:s}=z.useLocale(),c=e.ref(!1),i=e.ref(""),r=e.useSlots(),O=e.computed(()=>q.value==="zh-cn"?"zh_CN":"en_US"),o=e.computed(()=>t.needName??N?.value?.needName),d=e.computed(()=>t.attachmentList.length===1),L=e.computed(()=>o.value?t.attachmentList.length>0&&o.value&&o.value?.nameKey?t.attachmentList[0][o.value.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),x=e.computed(()=>d.value?L.value:s("ap.apAttachment.downloadall")),V=e.computed(()=>t.color?t.color:b.value==="aplus"?"#0070FF":"#1890FF"),C=e.computed(()=>({"--download-main-color":V.value,"--download-main-color-opacity":v.getHexWithOpacity(V.value,.6)})),T=e.computed(()=>t.getOssAccess||N.value?.getOssAccess),I=e.computed(()=>{const l=r.default?r.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),m=y.debounce(async(l,u)=>{if(!t.disabled){c.value=!0,u&&(i.value=u);try{const n=y.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if(p.value?.trigger){const S=v.getFileInfo(o.value,n).map(w=>({objectName:w.path,fileName:w.fileName}));p.value?.trigger(S)}else await(await k.useOssInit(T.value,e.unref(O))).downloadFile(v.getFileInfo(o.value,n))}catch(n){G.warning(!1,n)}finally{c.value=!1,i.value=""}}},500),P=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list"),h.value],style:C.value},[l.map((u,n)=>e.createVNode("li",{key:n,class:[a("file-item")],onClick:()=>m(u,n+1)},[c.value&&i.value===n+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,u.fileName])),e.createVNode("li",{class:[a("download-all")],onClick:()=>m(t.attachmentList,"all")},[c.value&&i.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,s("ap.apAttachment.downloadall")])]):null;return()=>t.attachmentList?.length>0&&e.createVNode("div",{class:[A(),h.value],style:[C.value]},[e.createVNode(F.Tooltip,{title:x.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>m(d.value?t.attachmentList[0]:t.attachmentList,"global")},[c.value&&i.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,r.default?e.createVNode("div",{class:[a("text-render")]},[I.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")],style:{"max-width":t.maxWidth?t.maxWidth+"px":"auto"}},[L.value])])]}),e.createVNode(F.Popover,{content:P(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!d.value&&e.createVNode("div",{class:[a("more")]},[s("ap.apAttachment.more")])]})])}});exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),G=require("../../ap-download/hooks/index.js"),A=require("lodash-unified"),g=require("@ant-design/icons-vue"),R=require("../../utils/warning.js"),U=require("./style/index.js"),j=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-locale.js"),W=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t,{emit:N}){const{b:q,e:a}=j.useNamespace("ap-attachment"),p=U.default("ap-attachment"),O=h.useGlobalConfig("uiMode"),C=h.useGlobalConfig("apUpload"),L=h.useGlobalConfig("downloadCenterTriggerConfig"),{lang:x,t:r}=z.useLocale(),o=e.ref(!1),c=e.ref(""),d=e.useSlots(),T=e.computed(()=>x.value==="zh-cn"?"zh_CN":"en_US"),i=e.computed(()=>t.needName??C?.value?.needName),m=e.computed(()=>t.attachmentList.length===1),w=e.computed(()=>i.value?t.attachmentList.length>0&&i.value&&i.value?.nameKey?t.attachmentList[0][i.value.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),I=e.computed(()=>m.value?w.value:r("ap.apAttachment.downloadall")),V=e.computed(()=>t.color?t.color:O.value==="aplus"?"#0070FF":"#1890FF"),b=e.computed(()=>({"--download-main-color":V.value,"--download-main-color-opacity":f.getHexWithOpacity(V.value,.6)})),k=e.computed(()=>t.getOssAccess||C.value?.getOssAccess),P=e.computed(()=>{const l=d.default?d.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),v=A.debounce(async(l,u)=>{if(!t.disabled){o.value=!0,u&&(c.value=u);try{const n=A.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if(L.value?.trigger){const s=f.getFileInfo(i.value,n).map(F=>({objectName:F.path,fileName:F.fileName}));L.value?.trigger(s),N("downloadCallback",s)}else{const s=await(await G.useOssInit(k.value,e.unref(T))).downloadFile(f.getFileInfo(t.needName,n));N("downloadCallback",s)}}catch(n){R.warning(!1,n)}finally{o.value=!1,c.value=""}}},500),M=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list"),p.value],style:b.value},[l.map((u,n)=>e.createVNode("li",{key:n,class:[a("file-item")],onClick:()=>v(u,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,u.fileName])),e.createVNode("li",{class:[a("download-all")],onClick:()=>v(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>t.attachmentList?.length>0&&e.createVNode("div",{class:[q(),p.value],style:[b.value]},[e.createVNode(y.Tooltip,{title:I.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>v(m.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[a("text-render")]},[P.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")],style:{"max-width":t.maxWidth?t.maxWidth+"px":"auto"}},[w.value])])]}),e.createVNode(y.Popover,{content:M(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!m.value&&e.createVNode("div",{class:[a("more")]},[r("ap.apAttachment.more")])]})])}});exports.default=W;
@@ -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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",[`${t}-header`]:{width:"100%",paddingBottom:"8px",marginBottom:"8px",borderBottom:`1px solid ${e.colorBg1}`},[`${t}-body`]:{width:"100%",display:"flex",alignItems:"center",".selected-desc":{display:"flex",alignItems:"center",marginRight:"16px",flexShrink:"0","&-conut":{display:"flex",alignItems:"center",fontSize:e.fontSize,color:e.textColor3,span:{color:e.colorPrimary,fontWeight:"bold",minWidth:"10px",textAlign:"center",display:"inline-block"}},"&-clean":{marginLeft:"8px","& > *":{padding:0}}}}}}},i=n.genComponentStyleHook("ApBatchAction",e=>[o(e)]);exports.default=i;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",[`${t}-header`]:{width:"100%",paddingBottom:"8px",marginBottom:"8px",borderBottom:`1px solid ${e.colorBg1}`},[`${t}-body`]:{width:"100%",display:"flex",alignItems:"center",".selected-desc":{display:"flex",alignItems:"center",marginRight:"16px",flexShrink:"0","&-conut":{display:"flex",alignItems:"center",fontSize:e.fontSize,color:e.textColor3,span:{color:e.colorPrimary,fontWeight:"bold",minWidth:"10px",textAlign:"center",display:"inline-block"}},"&-clean":{marginLeft:"8px","& > *":{padding:0}}}}}}},i=n.genComponentStyleHook("ApBatchAction",e=>[o(e)]);exports.default=i;exports.genApBatchActionStyle=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const q=require("@ant-design/icons-vue"),S=require("@aplus-frontend/hooks"),L=require("../../ap-table/context.js"),N=require("../../config-provider/hooks/use-namespace.js"),x=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-global-config.js"),f=require("./MenuItemGroup.vue2.js"),R=require("../../ap-button/ap-button.vue.js"),D=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(b,{expose:h}){const{b:c}=N.useNamespace("ap-batch-action-group"),{t:_}=x.useLocale(),{columns:w,dataSource:P}=L.useInjectApTable(),o=b,y=A.useGlobalConfig("uiMode"),{hasPermission:g}=S.usePermission(),p=e.useSlots(),i=e.computed(()=>o?.buttonProps?.dropdownType||"default"),n=e.computed(()=>o?.buttonProps?.type||"borderLink"),d=e.computed(()=>o?.buttonProps?.content||_("ap.apApBatchActionGroup.batchOperation")),C=e.computed(()=>o?.selectedRows||[]),s=e.computed(()=>o?.buttonProps?.disabled??(Array.isArray(o.selectedRows)?C.value.length===0:!1)),k=e.computed(()=>{const t={aplus:"#0070FF",admin:"#34b77c"};return n.value==="borderLink"?s.value?void 0:t[y.value]||t.aplus:void 0}),u=e.computed(()=>o?.menuList?.filter(t=>{let a=t?.ifShow;return!t?.ifShow&&t?.auth&&(a=()=>g(t.auth)),a?.()??!0})||[]);function m(){return o?.buttonProps?{...o.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return h({columns:w,dataSource:P}),(t,a)=>u.value.length&&i.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(v.DropdownButton),e.mergeProps({key:0,class:[e.unref(c)()]},{...t.$attrs,...m(),disabled:s.value}),e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...o},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:k.value})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value]))))],4)]),_:2},[e.renderList(p,(B,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(t.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class"])):u.value.length&&i.value==="default"?(e.openBlock(),e.createBlock(e.unref(v.Dropdown),{key:1,class:e.normalizeClass([e.unref(c)()]),disabled:s.value},e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...o},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(R.default),e.normalizeProps(e.guardReactiveProps({...t.$attrs,...m(),type:n.value})),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value])))),e.createVNode(e.unref(q.DownOutlined))]),_:1},16)]),_:2},[e.renderList(p,(B,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(t.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1032,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const C=require("@ant-design/icons-vue"),S=require("@aplus-frontend/hooks"),L=require("../../ap-table/context.js"),x=require("./style/index.js"),N=require("../../config-provider/hooks/use-namespace.js"),A=require("../../config-provider/hooks/use-locale.js"),f=require("./MenuItemGroup.vue2.js"),R=require("../../ap-button/ap-button.vue.js"),D=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(b,{expose:h}){const{b:c}=N.useNamespace("ap-batch-action-group"),_=x.default("ap-batch-action-group"),{t:w}=A.useLocale(),{columns:P,dataSource:y}=L.useInjectApTable(),t=b,{hasPermission:g}=S.usePermission(),p=e.useSlots(),i=e.computed(()=>t?.buttonProps?.dropdownType||"default"),n=e.computed(()=>t?.buttonProps?.type||"borderLink"),d=e.computed(()=>t?.buttonProps?.content||w("ap.apApBatchActionGroup.batchOperation")),k=e.computed(()=>t?.selectedRows||[]),s=e.computed(()=>t?.buttonProps?.disabled??(Array.isArray(t.selectedRows)?k.value.length===0:!1)),B=e.computed(()=>n.value==="borderLink"?s.value?void 0:"var(--ap-button-border-link-color)":void 0),u=e.computed(()=>t?.menuList?.filter(o=>{let a=o?.ifShow;return!o?.ifShow&&o?.auth&&(a=()=>g(o.auth)),a?.()??!0})||[]);function m(){return t?.buttonProps?{...t.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return h({columns:P,dataSource:y}),(o,a)=>u.value.length&&i.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(v.DropdownButton),e.mergeProps({key:0,class:[e.unref(c)(),e.unref(_)]},{...o.$attrs,...m(),disabled:s.value}),e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...t},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:B.value})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value]))))],4)]),_:2},[e.renderList(p,(q,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class"])):u.value.length&&i.value==="default"?(e.openBlock(),e.createBlock(e.unref(v.Dropdown),{key:1,class:e.normalizeClass([e.unref(c)()]),disabled:s.value},e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...t},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(R.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...m(),type:n.value})),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value])))),e.createVNode(e.unref(C.DownOutlined))]),_:1},16)]),_:2},[e.renderList(p,(q,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1032,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=D;
@@ -0,0 +1,3 @@
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o}=e;return{[o]:{"--ap-button-border-link-color":e.colorPrimary}}},r=t.genComponentStyleHook("ApBatchActionGroup",e=>[n(e)]);exports.default=r;
@@ -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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",background:"#fff",[`& + ${t}`]:{marginTop:"10px"},[`${t}-title`]:{marginBottom:"12px"}}}},r=n.genComponentStyleHook("ApCard",e=>[o(e)]);exports.default=r;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",background:"#fff",[`& + ${t}`]:{marginTop:"10px"},[`${t}-title`]:{marginBottom:"12px"}}}},r=n.genComponentStyleHook("ApCard",e=>[o(e)]);exports.default=r;exports.genApCardStyle=o;
@@ -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
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),$=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),T=require("./style/index.js"),q=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-namespace.js"),D=require("../../config-provider/hooks/use-global-config.js"),I=["onClick"],V=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(g,{expose:v,emit:x}){const f=x,r=g,{t:m}=q.useLocale(),B=e.computed(()=>{if(r.type!="card")return r.type}),n=e.ref(""),s=e.ref(null),S=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:n.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function w(){n.value==="1"?(n.value="",f("expand","expand")):(n.value="1",f("expand","collapse"))}const C=e.computed(()=>n.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),u=e.ref(!0),y=e.computed(()=>n.value!=="1");function c(t){t?n.value="":n.value="1"}e.watch(()=>r.data,()=>{n.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?u.value=!1:u.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{c(t)}):e.nextTick(()=>{c(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${p} .ant-alert-action`),a=document.querySelector(`#${p} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:l,m:E}=A.useNamespace("ap-expand-alert"),b=T.default("ap-expand-alert"),p=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,z=D.useGlobalConfig("uiMode","aplus");return v({setExpand:c}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(z))}`,e.unref(b)])},[e.createVNode(e.unref(h.Alert),{type:B.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(l)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(e.unref($.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>w())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("expandText"))},e.toDisplayString(C.value),3),e.createVNode(e.unref(N.DownOutlined),{class:e.normalizeClass(y.value?e.unref(l)("expandIcon"):e.unref(l)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...S.value,...t.contentStyle}),class:e.normalizeClass(e.unref(l)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(l)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:d},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("showItem")),onClick:H=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,I)])]),_:2},1032,["title"]),d!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","class"])],2))}});exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),T=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),q=require("./style/index.js"),A=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),I=require("../../config-provider/hooks/use-global-config.js"),V=["onClick"],H=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean},afterClose:{}},emits:["choose","expand","close"],setup(g,{expose:v,emit:C}){const u=C,r=g,{t:m}=A.useLocale(),B=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),S=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function w(){l.value==="1"?(l.value="",u("expand","expand")):(l.value="1",u("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),c=e.ref(!0),y=e.computed(()=>l.value!=="1");function p(t){t?l.value="":l.value="1"}function b(t){u("close",t)}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?c.value=!1:c.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{p(t)}):e.nextTick(()=>{p(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${d} .ant-alert-action`),a=document.querySelector(`#${d} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:n,m:E}=D.useNamespace("ap-expand-alert"),z=q.default("ap-expand-alert"),d=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,N=I.useGlobalConfig("uiMode","aplus");return v({setExpand:p}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:d,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(N))}`,e.unref(z)])},[e.createVNode(e.unref(h.Alert),{type:B.value,"show-icon":t.showIcon,closable:t.closable,class:e.normalizeClass([e.unref(n)("antAlert"),t.type=="card"?"card-alert":""]),"after-close":t.afterClose,onClose:b},{action:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(e.unref(T.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>w())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("expandText"))},e.toDisplayString(x.value),3),e.createVNode(e.unref($.DownOutlined),{class:e.normalizeClass(y.value?e.unref(n)("expandIcon"):e.unref(n)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...S.value,...t.contentStyle}),class:e.normalizeClass(e.unref(n)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(n)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:f},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("showItem")),onClick:L=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,V)])]),_:2},1032,["title"]),f!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","closable","class","after-close"])],2))}});exports.default=H;
@@ -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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[`${t}-toolbar`]:{display:"flex",alignItems:"center",padding:"0 24px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},n=r.genComponentStyleHook("ApImage",e=>[o(e)]);exports.default=n;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),t=e=>{const{componentCls:o}=e;return{[`${o}-toolbar`]:{display:"flex",alignItems:"center",padding:"0 24px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},l=n.genComponentStyleHook("ApImage",e=>[t(e)]);exports.default=l;exports.genApImageStyle=t;
@@ -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;