@aplus-frontend/ui 7.12.5 → 7.13.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 (244) hide show
  1. package/es/src/ag-grid/components/loading/index.vue.d.ts +3 -0
  2. package/es/src/ag-grid/components/loading/index.vue.mjs +4 -0
  3. package/es/src/ag-grid/components/loading/index.vue2.mjs +18 -0
  4. package/es/src/ag-grid/context.mjs +1 -1
  5. package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  6. package/es/src/ag-grid/editable/form-item.vue.mjs +30 -27
  7. package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
  8. package/es/src/ag-grid/editable/index.vue.mjs +10 -8
  9. package/es/src/ag-grid/editable/interface.d.ts +2 -1
  10. package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
  11. package/es/src/ag-grid/index.vue.d.ts +2 -4
  12. package/es/src/ag-grid/index.vue.mjs +209 -202
  13. package/es/src/ag-grid/interface.d.ts +4 -0
  14. package/es/src/ag-grid/style/index.mjs +8 -5
  15. package/es/src/ap-drawer/interface.d.ts +13 -2
  16. package/es/src/ap-drawer/utils/createDrawer.mjs +37 -32
  17. package/es/src/ap-field/select/index.vue.d.ts +1 -2
  18. package/es/src/ap-field/select/index.vue.mjs +126 -88
  19. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  20. package/es/src/ap-field/style/index.mjs +8 -6
  21. package/es/src/ap-field/style/select.d.ts +2 -0
  22. package/es/src/ap-field/style/select.mjs +43 -0
  23. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  24. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  25. package/es/src/ap-form/context.mjs +1 -1
  26. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  27. package/es/src/ap-form/item-group/helper.mjs +2 -2
  28. package/es/src/ap-form/items/number/index.vue.d.ts +4 -5
  29. package/es/src/ap-form/items/select/index.vue.d.ts +12 -16
  30. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  31. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  33. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  34. package/es/src/ap-form/provider/context.mjs +1 -1
  35. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  36. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  37. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  38. package/es/src/ap-grid/index.vue.d.ts +2 -4
  39. package/es/src/ap-grid/utils/table.mjs +2 -2
  40. package/es/src/ap-list/index.vue.d.ts +2 -4
  41. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  42. package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
  43. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  44. package/es/src/ap-table/ap-table.vue2.mjs +15 -16
  45. package/es/src/ap-table/components/setting/context.d.ts +17 -0
  46. package/es/src/ap-table/components/setting/context.mjs +18 -0
  47. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  48. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +217 -88
  49. package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
  50. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +49 -51
  51. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +844 -0
  52. package/es/src/ap-table/components/setting/template/edit-form.vue.mjs +4 -0
  53. package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +74 -0
  54. package/es/src/ap-table/components/setting/template/index.vue.d.ts +11 -0
  55. package/es/src/ap-table/components/setting/template/index.vue.mjs +4 -0
  56. package/es/src/ap-table/components/setting/template/index.vue2.mjs +51 -0
  57. package/es/src/ap-table/components/setting/template/item.vue.d.ts +13 -0
  58. package/es/src/ap-table/components/setting/template/item.vue.mjs +4 -0
  59. package/es/src/ap-table/components/setting/template/item.vue2.mjs +77 -0
  60. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  61. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +26 -29
  62. package/es/src/ap-table/components/setting/utils.d.ts +1 -0
  63. package/es/src/ap-table/components/setting/utils.mjs +22 -15
  64. package/es/src/ap-table/constants.d.ts +13 -15
  65. package/es/src/ap-table/context.mjs +1 -1
  66. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -23
  67. package/es/src/ap-table/hooks/use-table-column-state.mjs +32 -120
  68. package/es/src/ap-table/hooks/use-table-template-storage.d.ts +49 -0
  69. package/es/src/ap-table/hooks/use-table-template-storage.mjs +150 -0
  70. package/es/src/ap-table/interface.d.ts +26 -3
  71. package/es/src/ap-table/style/index.d.ts +1 -0
  72. package/es/src/ap-table/style/index.mjs +2 -1
  73. package/es/src/ap-table/style/setting.d.ts +2 -0
  74. package/es/src/ap-table/style/setting.mjs +114 -19
  75. package/es/src/ap-table/utils.mjs +1 -1
  76. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
  77. package/es/src/business/ag-grid-modal/style/index.mjs +7 -7
  78. package/es/src/business/ap-attachment/ApAttachment.mjs +96 -89
  79. package/es/src/business/ap-attachment/style/index.mjs +33 -16
  80. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +24 -22
  81. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +1 -1
  82. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +35 -31
  83. package/es/src/business/ap-batch-action-group/index.d.ts +6 -6
  84. package/es/src/business/ap-batch-action-group/interface.d.ts +1 -1
  85. package/es/src/business/ap-download/hooks/index.mjs +1 -1
  86. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  87. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
  88. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  89. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  90. package/es/src/business/ap-keep-alive/hook.mjs +1 -1
  91. package/es/src/business/ap-keep-alive/utils.mjs +1 -1
  92. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  93. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  94. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  95. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  96. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +19 -19
  97. package/es/src/business/ap-upload/components/Picture.vue2.mjs +34 -34
  98. package/es/src/business/ap-upload/style/single-file.mjs +2 -2
  99. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +2 -2
  100. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  101. package/es/src/business/ap-value-select-card/style/index.mjs +3 -2
  102. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
  103. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  104. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +21 -21
  105. package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
  106. package/es/src/business/ap-view/style/index.mjs +2 -2
  107. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  108. package/es/src/check-card/context.mjs +1 -1
  109. package/es/src/config-provider/constants.mjs +1 -1
  110. package/es/src/config-provider/hooks/use-locale.mjs +1 -1
  111. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  112. package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
  113. package/es/src/config-provider/hooks/use-token.mjs +1 -1
  114. package/es/src/design-token/index.mjs +5 -5
  115. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  116. package/es/src/editable-table/index.vue.d.ts +2 -4
  117. package/es/src/editable-table/utils.mjs +1 -1
  118. package/es/src/locale/lang/en.mjs +15 -4
  119. package/es/src/locale/lang/zh-cn.mjs +18 -7
  120. package/es/src/scroll-view/index.vue.d.ts +5 -5
  121. package/es/src/tests/wrapper.d.ts +4 -4
  122. package/es/src/text/context.mjs +1 -1
  123. package/es/src/time-ago/useTimeAgo.mjs +26 -27
  124. package/es/src/utils/data-range-persets.d.ts +13 -1
  125. package/es/src/utils/data-range-persets.mjs +80 -60
  126. package/es/src/utils/index.d.ts +1 -0
  127. package/es/src/utils/index.mjs +56 -48
  128. package/es/src/utils/retry.d.ts +12 -0
  129. package/es/src/utils/retry.mjs +27 -0
  130. package/es/src/utils/slot.mjs +1 -1
  131. package/es/src/version.d.ts +1 -1
  132. package/es/src/version.mjs +1 -1
  133. package/lib/src/ag-grid/components/loading/index.vue.d.ts +3 -0
  134. package/lib/src/ag-grid/components/loading/index.vue.js +1 -0
  135. package/lib/src/ag-grid/components/loading/index.vue2.js +1 -0
  136. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  137. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  138. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  139. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  140. package/lib/src/ag-grid/editable/interface.d.ts +2 -1
  141. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
  142. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  143. package/lib/src/ag-grid/index.vue.js +1 -1
  144. package/lib/src/ag-grid/interface.d.ts +4 -0
  145. package/lib/src/ag-grid/style/index.js +1 -1
  146. package/lib/src/ap-drawer/interface.d.ts +13 -2
  147. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  148. package/lib/src/ap-field/select/index.vue.d.ts +1 -2
  149. package/lib/src/ap-field/select/index.vue.js +1 -1
  150. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  151. package/lib/src/ap-field/style/index.js +1 -1
  152. package/lib/src/ap-field/style/select.d.ts +2 -0
  153. package/lib/src/ap-field/style/select.js +1 -0
  154. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  155. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  156. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  157. package/lib/src/ap-form/items/number/index.vue.d.ts +4 -5
  158. package/lib/src/ap-form/items/select/index.vue.d.ts +12 -16
  159. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  160. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  161. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  162. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  163. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  164. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  165. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  166. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  167. package/lib/src/ap-grid/utils/table.js +1 -1
  168. package/lib/src/ap-list/index.vue.d.ts +2 -4
  169. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  170. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  171. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  172. package/lib/src/ap-table/components/setting/context.d.ts +17 -0
  173. package/lib/src/ap-table/components/setting/context.js +1 -0
  174. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  175. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  176. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  177. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +844 -0
  178. package/lib/src/ap-table/components/setting/template/edit-form.vue.js +1 -0
  179. package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -0
  180. package/lib/src/ap-table/components/setting/template/index.vue.d.ts +11 -0
  181. package/lib/src/ap-table/components/setting/template/index.vue.js +1 -0
  182. package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -0
  183. package/lib/src/ap-table/components/setting/template/item.vue.d.ts +13 -0
  184. package/lib/src/ap-table/components/setting/template/item.vue.js +1 -0
  185. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -0
  186. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  187. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  188. package/lib/src/ap-table/components/setting/utils.d.ts +1 -0
  189. package/lib/src/ap-table/components/setting/utils.js +1 -1
  190. package/lib/src/ap-table/constants.d.ts +13 -15
  191. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -23
  192. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  193. package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +49 -0
  194. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -0
  195. package/lib/src/ap-table/interface.d.ts +26 -3
  196. package/lib/src/ap-table/style/index.d.ts +1 -0
  197. package/lib/src/ap-table/style/index.js +1 -1
  198. package/lib/src/ap-table/style/setting.d.ts +2 -0
  199. package/lib/src/ap-table/style/setting.js +1 -1
  200. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  201. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  202. package/lib/src/business/ap-attachment/style/index.js +1 -1
  203. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  204. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +1 -1
  205. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  206. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -6
  207. package/lib/src/business/ap-batch-action-group/interface.d.ts +1 -1
  208. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  209. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  210. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  211. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  212. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  213. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  214. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  215. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  216. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  217. package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
  218. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  219. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  220. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  221. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  222. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
  223. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  224. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  225. package/lib/src/business/ap-view/style/index.js +1 -1
  226. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  227. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  228. package/lib/src/design-token/index.js +1 -1
  229. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  230. package/lib/src/editable-table/index.vue.d.ts +2 -4
  231. package/lib/src/locale/lang/en.js +1 -1
  232. package/lib/src/locale/lang/zh-cn.js +1 -1
  233. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  234. package/lib/src/tests/wrapper.d.ts +4 -4
  235. package/lib/src/time-ago/useTimeAgo.js +1 -1
  236. package/lib/src/utils/data-range-persets.d.ts +13 -1
  237. package/lib/src/utils/data-range-persets.js +1 -1
  238. package/lib/src/utils/index.d.ts +1 -0
  239. package/lib/src/utils/index.js +1 -1
  240. package/lib/src/utils/retry.d.ts +12 -0
  241. package/lib/src/utils/retry.js +1 -0
  242. package/lib/src/version.d.ts +1 -1
  243. package/lib/src/version.js +1 -1
  244. package/package.json +2 -2
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
3
3
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
- import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
7
6
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
+ import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
8
8
  import { Key } from '@aplus-frontend/antdv/es/_util/type';
9
9
  import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
10
10
  import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler, PopupRender } from '@aplus-frontend/antdv/es/menu/src/interface';
@@ -72,7 +72,7 @@ declare const ApBatchActionGroup: {
72
72
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
73
73
  variant: PropType<ButtonVariantType>;
74
74
  }>>, "type" | "onClick"> & {
75
- type?: ButtonProps["type"] | "borderLink";
75
+ type?: ( ButtonType | undefined) | "borderLink";
76
76
  borderLinkColor?: string;
77
77
  minWidth?: boolean | number | string;
78
78
  lazy?: boolean | number;
@@ -322,7 +322,7 @@ declare const ApBatchActionGroup: {
322
322
  type?: ButtonType | "borderLink" | undefined;
323
323
  content?: VNodeChild;
324
324
  }) | undefined;
325
- menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
325
+ menuList?: ("divider" | ApBatchActionGroupMenuProps<any>)[] | undefined;
326
326
  }> & Readonly<{}>, {
327
327
  columns: ComputedRef<TableColumnsType<any>> | undefined;
328
328
  dataSource: ComputedRef<any[]> | undefined;
@@ -394,7 +394,7 @@ declare const ApBatchActionGroup: {
394
394
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
395
395
  variant: PropType<ButtonVariantType>;
396
396
  }>>, "type" | "onClick"> & {
397
- type?: ButtonProps["type"] | "borderLink";
397
+ type?: ( ButtonType | undefined) | "borderLink";
398
398
  borderLinkColor?: string;
399
399
  minWidth?: boolean | number | string;
400
400
  lazy?: boolean | number;
@@ -644,7 +644,7 @@ declare const ApBatchActionGroup: {
644
644
  type?: ButtonType | "borderLink" | undefined;
645
645
  content?: VNodeChild;
646
646
  }) | undefined;
647
- menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
647
+ menuList?: ("divider" | ApBatchActionGroupMenuProps<any>)[] | undefined;
648
648
  }> & Readonly<{}>, {
649
649
  columns: ComputedRef<TableColumnsType<any>> | undefined;
650
650
  dataSource: ComputedRef<any[]> | undefined;
@@ -963,7 +963,7 @@ declare const ApBatchActionGroup: {
963
963
  type?: ButtonType | "borderLink" | undefined;
964
964
  content?: VNodeChild;
965
965
  }) | undefined;
966
- menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
966
+ menuList?: ("divider" | ApBatchActionGroupMenuProps<any>)[] | undefined;
967
967
  }> & Readonly<{}>, {
968
968
  columns: ComputedRef<TableColumnsType<any>> | undefined;
969
969
  dataSource: ComputedRef<any[]> | undefined;
@@ -43,7 +43,7 @@ export type ApBatchActionGroupProps<RecordType = any> = {
43
43
  /**
44
44
  * 下拉列表配置
45
45
  */
46
- menuList?: ApBatchActionGroupMenuProps<RecordType>[];
46
+ menuList?: (ApBatchActionGroupMenuProps<RecordType> | 'divider')[];
47
47
  };
48
48
  export type ApBatchActionGroupExpose<RecordType = any> = {
49
49
  columns?: ColumnType<any>[];
@@ -1,5 +1,5 @@
1
1
  import { client as a } from "@aplus-frontend/oss";
2
- const s = /* @__PURE__ */ new Map(), n = Symbol("ossInstance");
2
+ const s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ Symbol("ossInstance");
3
3
  async function c(t, r) {
4
4
  if (!t)
5
5
  throw new Error("请传入getOssAccess");
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  span: number;
11
11
  row: number;
12
12
  col: number;
13
- showHeight?: (number | string) | undefined;
13
+ showHeight?: number | string | undefined;
14
14
  height: number | string;
15
15
  module: string;
16
16
  };
@@ -225,9 +225,7 @@ const Ee = ["data-span", "data-index", "data-row", "data-col", "data-height", "d
225
225
  },
226
226
  getGridItems: () => JSON.parse(JSON.stringify(S.value)),
227
227
  refreshGrid: () => {
228
- (async () => {
229
- await J();
230
- })();
228
+ (async () => await J())();
231
229
  }
232
230
  }), (e, a) => (R(), ge(D(ye), { spinning: G.value }, {
233
231
  default: me(() => [
@@ -172,7 +172,7 @@ declare const ApDraggableGrid: {
172
172
  span: number;
173
173
  row: number;
174
174
  col: number;
175
- showHeight?: (number | string) | undefined;
175
+ showHeight?: number | string | undefined;
176
176
  height: number | string;
177
177
  module: string;
178
178
  };
@@ -1,5 +1,5 @@
1
1
  import { ApExpandAlertProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
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
5
  readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
@@ -24,9 +24,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
24
24
  }): any;
25
25
  };
26
26
  emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
27
- }>) => VNode<RendererNode, RendererElement, {
28
- [key: string]: any;
29
- }> & {
27
+ }>) => VNode & {
30
28
  __ctx?: Awaited<typeof __VLS_setup>;
31
29
  };
32
30
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { provide as p, nextTick as r, inject as v } from "vue";
2
- const i = Symbol("ApKeepAliveProvideKey"), g = (t, s) => {
2
+ const i = /* @__PURE__ */ Symbol("ApKeepAliveProvideKey"), g = (t, s) => {
3
3
  p(i, {
4
4
  getter: async (e) => {
5
5
  await r();
@@ -4,7 +4,7 @@ const o = (r) => {
4
4
  if (typeof e == "string") return;
5
5
  const n = Array.isArray(e) ? e : null;
6
6
  if (n)
7
- return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != Symbol.for("v-cmt") : !1);
7
+ return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != /* @__PURE__ */ Symbol.for("v-cmt") : !1);
8
8
  }, l = (r) => {
9
9
  if (r) {
10
10
  if (r.length > 1)
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem } from './interface';
2
- import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
2
+ import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
3
3
  export * from './interface';
4
4
  declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
5
5
  attrs: any;
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
38
38
  (event: "afterEnter", el: Element): void;
39
39
  (event: "afterLeave", el: Element): void;
40
40
  };
41
- }>) => VNode<RendererNode, RendererElement, {
42
- [key: string]: any;
43
- }> & {
41
+ }>) => VNode & {
44
42
  __ctx?: Awaited<typeof __VLS_setup>;
45
43
  }) & ( Plugin & (new (...args: any[]) => {
46
44
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem, ApSelectLayoutProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends ApSelectItem>(__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
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
19
19
  (event: "afterEnter", el: Element): void;
20
20
  (event: "afterLeave", el: Element): void;
21
21
  };
22
- }>) => VNode<RendererNode, RendererElement, {
23
- [key: string]: any;
24
- }> & {
22
+ }>) => VNode & {
25
23
  __ctx?: Awaited<typeof __VLS_setup>;
26
24
  };
27
25
  export default _default;
@@ -4,9 +4,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
7
- import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
8
7
  import { ApFormSearchFormPopoverSorterItem } from '../..';
9
8
  import { MaskType } from '@aplus-frontend/antdv/es/_util/hooks/useMergedMask';
9
+ import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
10
10
  /**
11
11
  *
12
12
  */
@@ -44,8 +44,14 @@ declare const ApTableModal: {
44
44
  };
45
45
  y: undefined;
46
46
  };
47
- getPaging: () => InternalPagingType;
48
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
47
+ getPaging: () => Partial<{
48
+ current: number;
49
+ pageSize: number;
50
+ }>;
51
+ setPaging: (nextPaging: Partial<{
52
+ current: number;
53
+ pageSize: number;
54
+ }>, refreshImmediately?: boolean) => void;
49
55
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
50
56
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
51
57
  resetSearchFormSorterItems: () => void;
@@ -150,8 +156,14 @@ declare const ApTableModal: {
150
156
  };
151
157
  y: undefined;
152
158
  };
153
- getPaging: () => InternalPagingType;
154
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
159
+ getPaging: () => Partial<{
160
+ current: number;
161
+ pageSize: number;
162
+ }>;
163
+ setPaging: (nextPaging: Partial<{
164
+ current: number;
165
+ pageSize: number;
166
+ }>, refreshImmediately?: boolean) => void;
155
167
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
156
168
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
157
169
  resetSearchFormSorterItems: () => void;
@@ -1,6 +1,6 @@
1
1
  import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
4
  import { AcceptConfig, UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
5
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, inject as s, ref as te, watch as se, nextTick as ae, createElementBlock as N, openBlock as y, normalizeClass as ne, unref as a, createVNode as k, withCtx as U, createElementVNode as D, createTextVNode as re, toDisplayString as L, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
1
+ import { defineComponent as oe, inject as s, ref as te, watch as se, nextTick as ae, createElementBlock as U, openBlock as y, normalizeClass as ne, unref as a, createVNode as k, withCtx as N, createElementVNode as M, createTextVNode as re, toDisplayString as L, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
2
2
  import { UploadOutlined as pe } from "@ant-design/icons-vue";
3
3
  import { message as p, Upload as de, Button as me } from "@aplus-frontend/antdv";
4
4
  import { IconApAdLineDownload as fe } from "@aplus-frontend/icon";
@@ -10,33 +10,33 @@ import { fileMatchesAccept as ve, getAcceptText as xe } from "../utils/accept.mj
10
10
  import { getPath as ye, getName as ke, getReturnData as z } from "../utils/returnData.mjs";
11
11
  import { useGlobalConfig as be } from "../../../config-provider/hooks/use-global-config.mjs";
12
12
  import { useLocale as Ce } from "../../../config-provider/hooks/use-locale.mjs";
13
- import { useNamespace as Ne } from "../../../config-provider/hooks/use-namespace.mjs";
14
- const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 }, qe = /* @__PURE__ */ oe({
13
+ import { useNamespace as Ue } from "../../../config-provider/hooks/use-namespace.mjs";
14
+ const Ne = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 }, qe = /* @__PURE__ */ oe({
15
15
  __name: "MultipleFile",
16
16
  setup(Fe, { expose: B }) {
17
17
  const E = be(
18
18
  "downloadCenterTriggerConfig"
19
- ), { t: i } = Ce(), { b: O } = Ne("ap-upload-multiple-file"), V = he("ap-upload"), { put: q } = we(), j = s("dirName"), $ = s("baseDirName"), b = s("accept") || "*", _ = s("maxSize") ?? 500, G = s("title") || i("ap.apUpload.uploadFile"), f = s("subTitle"), l = s("maxCount") ?? 10, d = s("uploadingCount"), F = s("beforeUpload"), A = s("customRequest"), g = s("getOssAccess"), W = s("maxSizeErrorMsg"), H = s("maxCountErrorMsg"), J = s("acceptErrorMsg"), P = s("onRemove"), C = s("showUploadErrorMsg"), T = s("bucket"), K = s("showDownload") ?? !0, w = s("showPreview") ?? !0, r = s("value"), c = [], h = s("needName"), m = te(null);
19
+ ), { t: i } = Ce(), { b: O } = Ue("ap-upload-multiple-file"), V = he("ap-upload"), { put: q } = we(), j = s("dirName"), $ = s("baseDirName"), b = s("accept") || "*", _ = s("maxSize") ?? 500, G = s("title") || i("ap.apUpload.uploadFile"), f = s("subTitle"), l = s("maxCount") ?? 10, d = s("uploadingCount"), F = s("beforeUpload"), A = s("customRequest"), g = s("getOssAccess"), W = s("maxSizeErrorMsg"), H = s("maxCountErrorMsg"), J = s("acceptErrorMsg"), I = s("onRemove"), C = s("showUploadErrorMsg"), P = s("bucket"), K = s("showDownload") ?? !0, w = s("showPreview") ?? !0, r = s("value"), c = [], h = s("needName"), m = te(null);
20
20
  se(
21
21
  () => r?.value,
22
22
  function(e) {
23
- !m?.value?.fileList?.length && e && I(e);
23
+ !m?.value?.fileList?.length && e && T(e);
24
24
  },
25
25
  { immediate: !0 }
26
26
  );
27
- function I(e) {
27
+ function T(e) {
28
28
  if (!e) {
29
29
  u = [], m.value.fileList = [], r.value = void 0, c.splice(0, c.length);
30
30
  return;
31
31
  }
32
32
  ae(() => {
33
33
  const o = e.map((t) => {
34
- const n = ye(h, t), M = ke(h, t), x = new File(
34
+ const n = ye(h, t), D = ke(h, t), x = new File(
35
35
  [t],
36
- M,
36
+ D,
37
37
  {}
38
38
  );
39
- return x.response = n, x.uid = n, x.status = "done", x;
39
+ return x.response = n, x.uid = crypto.randomUUID(), x.status = "done", x;
40
40
  });
41
41
  if (l && o.length > l) {
42
42
  p.warning(
@@ -54,7 +54,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 },
54
54
  }), m.value.fileList = o, r.value = e;
55
55
  });
56
56
  }
57
- B({ setValue: I });
57
+ B({ setValue: T });
58
58
  let u = [], R;
59
59
  function v(e) {
60
60
  setTimeout(() => {
@@ -121,7 +121,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 },
121
121
  return;
122
122
  }
123
123
  try {
124
- const o = await (T ? g(T) : g()), t = await S(async () => o);
124
+ const o = await (P ? g(P) : g()), t = await S(async () => o);
125
125
  e.file.oss = t, q({
126
126
  file: e.file,
127
127
  dirName: j,
@@ -159,7 +159,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 },
159
159
  }
160
160
  }
161
161
  function Y(e) {
162
- if (P && P?.(e), e.response) {
162
+ if (I && I?.(e), e.response) {
163
163
  if (Array.isArray(r.value)) {
164
164
  const t = c.findIndex((n) => n.uid === e.uid);
165
165
  t >= 0 && (r?.value.splice(t, 1), c.splice(t, 1)), r.value.length === 0 && (r.value = void 0);
@@ -195,7 +195,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 },
195
195
  fileName: e.name
196
196
  });
197
197
  };
198
- return (e, o) => (y(), N("div", {
198
+ return (e, o) => (y(), U("div", {
199
199
  class: ne({
200
200
  [a(O)()]: !0,
201
201
  [a(V) ?? ""]: !0
@@ -223,24 +223,24 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 },
223
223
  onRemove: Y,
224
224
  onDownload: Z
225
225
  }, {
226
- downloadIcon: U(() => [
226
+ downloadIcon: N(() => [
227
227
  k(a(fe), { class: "anticon anticon-vertical-align-bottom" })
228
228
  ]),
229
- default: U(() => [
230
- D("div", Ue, [
229
+ default: N(() => [
230
+ M("div", Ne, [
231
231
  k(a(me), { class: "file-btn" }, {
232
- default: U(() => [
232
+ default: N(() => [
233
233
  k(a(pe)),
234
234
  re(" " + L(a(G)), 1)
235
235
  ]),
236
236
  _: 1
237
237
  }),
238
- D("div", {
238
+ M("div", {
239
239
  class: "sub-title",
240
240
  onClick: o[0] || (o[0] = ie(() => {
241
241
  }, ["stop"]))
242
242
  }, [
243
- typeof a(f) == "string" ? (y(), N("div", Ee, L(a(f) || `${a(i)("ap.apUpload.supportExtension")}:${a(xe)(a(b))}`), 1)) : a(f) ? (y(), N("div", _e, [
243
+ typeof a(f) == "string" ? (y(), U("div", Ee, L(a(f) || `${a(i)("ap.apUpload.supportExtension")}:${a(xe)(a(b))}`), 1)) : a(f) ? (y(), U("div", _e, [
244
244
  (y(), ce(ue(a(f))))
245
245
  ])) : le("", !0)
246
246
  ])
@@ -1,31 +1,31 @@
1
- import { defineComponent as se, inject as i, ref as D, watch as oe, nextTick as ne, createElementBlock as h, openBlock as v, normalizeClass as ie, unref as n, createElementVNode as m, renderSlot as ce, createCommentVNode as V, Fragment as re, renderList as ue, withDirectives as le, createVNode as b, vShow as pe, toDisplayString as E } from "vue";
1
+ import { defineComponent as se, inject as i, ref as V, watch as oe, nextTick as ne, createElementBlock as h, openBlock as v, normalizeClass as ie, unref as n, createElementVNode as m, renderSlot as ce, createCommentVNode as $, Fragment as re, renderList as ue, withDirectives as le, createVNode as b, vShow as pe, toDisplayString as E } from "vue";
2
2
  import { CloseOutlined as de, PlusOutlined as me } from "@ant-design/icons-vue";
3
3
  import { message as f, Progress as fe } from "@aplus-frontend/antdv";
4
4
  import { omit as ge } from "lodash-unified";
5
5
  import "../../../config-provider/index.mjs";
6
- import { useOss as he, getOssInstance as T } from "../hooks/useOss.mjs";
6
+ import { useOss as he, getOssInstance as L } from "../hooks/useOss.mjs";
7
7
  import ve from "../style/index.mjs";
8
8
  import { fileMatchesAccept as xe, getAcceptText as ye } from "../utils/accept.mjs";
9
- import { getPath as we, getName as _e, getReturnData as L } from "../utils/returnData.mjs";
10
- import { useLocale as ke } from "../../../config-provider/hooks/use-locale.mjs";
11
- import { useNamespace as Ue } from "../../../config-provider/hooks/use-namespace.mjs";
12
- const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture-item-box" }, Ne = ["src"], Se = { class: "picture-item-shadow" }, Re = ["onClick"], Me = {
9
+ import { getPath as we, getName as _e, getReturnData as O } from "../utils/returnData.mjs";
10
+ import { useLocale as Ue } from "../../../config-provider/hooks/use-locale.mjs";
11
+ import { useNamespace as ke } from "../../../config-provider/hooks/use-namespace.mjs";
12
+ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture-item-box" }, Ne = ["src"], Se = { class: "picture-item-shadow" }, Re = ["onClick"], ze = {
13
13
  key: 0,
14
14
  class: "picture-item-uploading"
15
- }, ze = { class: "picture-title" }, Ae = { key: 0 }, Pe = { key: 1 }, Je = /* @__PURE__ */ se({
15
+ }, Ae = { class: "picture-title" }, Me = { key: 0 }, Pe = { key: 1 }, Je = /* @__PURE__ */ se({
16
16
  __name: "Picture",
17
- setup($e, { expose: O }) {
18
- const { t: l } = ke(), { b: B } = Ue("ap-upload-picture"), q = ve("ap-upload"), { put: j } = he(), G = i("dirName"), H = i("baseDirName"), k = i("accept") || "image/*", U = i("maxSize") ?? 5, N = i("title"), p = i("maxCount") ?? 10, x = i("uploadingCount"), S = i("beforeUpload"), R = i("customRequest"), y = i("getOssAccess"), J = i("maxSizeErrorMsg"), K = i("maxCountErrorMsg"), Q = i("acceptErrorMsg"), w = D(null), r = i("value"), _ = i("needName"), M = i("onRemove"), C = i("showUploadErrorMsg"), z = i("bucket");
19
- let o = D([]);
17
+ setup(Ie, { expose: T }) {
18
+ const { t: l } = Ue(), { b: B } = ke("ap-upload-picture"), q = ve("ap-upload"), { put: j } = he(), G = i("dirName"), H = i("baseDirName"), U = i("accept") || "image/*", k = i("maxSize") ?? 5, N = i("title"), p = i("maxCount") ?? 10, x = i("uploadingCount"), S = i("beforeUpload"), R = i("customRequest"), y = i("getOssAccess"), J = i("maxSizeErrorMsg"), K = i("maxCountErrorMsg"), Q = i("acceptErrorMsg"), w = V(null), r = i("value"), _ = i("needName"), z = i("onRemove"), C = i("showUploadErrorMsg"), A = i("bucket");
19
+ let o = V([]);
20
20
  const g = [];
21
21
  oe(
22
22
  () => r?.value,
23
23
  async function(t) {
24
- !o?.value?.length && t && A(t);
24
+ !o?.value?.length && t && M(t);
25
25
  },
26
26
  { immediate: !0 }
27
27
  );
28
- function A(t) {
28
+ function M(t) {
29
29
  if (!t) {
30
30
  r.value = void 0, g.splice(0, g.length), o.value = [];
31
31
  return;
@@ -33,18 +33,18 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
33
33
  ne(async () => {
34
34
  const s = [];
35
35
  for (let e of t) {
36
- const a = we(_, e), c = _e(_, e), u = a?.match(/^([^:]+):(.*)$/), d = u?.[1], ee = u?.[2] ?? a, I = await T(
36
+ const a = we(_, e), c = _e(_, e), u = a?.match(/^([^:]+):(.*)$/), d = u?.[1], ee = u?.[2] ?? a, D = await L(
37
37
  () => d ? y?.(d) : y?.()
38
- ), te = await I.getSignatureUrl(ee), ae = {
38
+ ), te = await D.getSignatureUrl(ee), ae = {
39
39
  ...typeof e == "string" ? {} : e,
40
40
  ...new File([e], c, {}),
41
- uid: `${(/* @__PURE__ */ new Date()).getTime()}-${Math.random()}`,
41
+ uid: crypto.randomUUID(),
42
42
  thumbUrl: te,
43
43
  status: "success",
44
44
  percent: 100,
45
45
  path: a
46
46
  };
47
- s.push(ae), I.destroy();
47
+ s.push(ae), D.destroy();
48
48
  }
49
49
  if (p && s.length > p) {
50
50
  f.warning(
@@ -62,7 +62,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
62
62
  }), r.value = t;
63
63
  });
64
64
  }
65
- O({ setValue: A });
65
+ T({ setValue: M });
66
66
  function W() {
67
67
  w.value?.click();
68
68
  }
@@ -84,11 +84,11 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
84
84
  K || l("ap.apUpload.maxUploadPicture", { maxCount: p })
85
85
  );
86
86
  }), !1;
87
- if (t.size > U * 1024 * 1024)
87
+ if (t.size > k * 1024 * 1024)
88
88
  return f.warning(
89
- J || l("ap.apUpload.maxUploadFileSize", { maxSize: U })
89
+ J || l("ap.apUpload.maxUploadFileSize", { maxSize: k })
90
90
  ), !1;
91
- if (!/image\/\w+/.test(t.type) || !xe(t, k))
91
+ if (!/image\/\w+/.test(t.type) || !xe(t, U))
92
92
  return f.warning(
93
93
  Q || l("ap.apUpload.pictureFormatNotSupported")
94
94
  ), !1;
@@ -126,7 +126,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
126
126
  const a = o.value.find((c) => c.uid === t.uid);
127
127
  a && (a.status = "success", a.path = e), r.value = [
128
128
  ...r.value || [],
129
- L(_, e, s.name)
129
+ O(_, e, s.name)
130
130
  ], g.push({
131
131
  uid: t.uid,
132
132
  path: e
@@ -137,7 +137,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
137
137
  return;
138
138
  }
139
139
  try {
140
- const e = await (z ? y(z) : y()), a = await T(async () => e);
140
+ const e = await (A ? y(A) : y()), a = await L(async () => e);
141
141
  t.oss = a, o.value.push(t), j({
142
142
  file: s,
143
143
  dirName: G,
@@ -146,7 +146,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
146
146
  const u = o.value.find((d) => d.uid === t.uid);
147
147
  u && (u.status = "success", u.path = c), r.value = [
148
148
  ...r.value || [],
149
- L(_, c, s.name)
149
+ O(_, c, s.name)
150
150
  ], g.push({
151
151
  uid: t.uid,
152
152
  path: c
@@ -174,8 +174,8 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
174
174
  a > -1 && o.value.splice(a, 1), x.value--;
175
175
  }
176
176
  }
177
- function $(t) {
178
- if (M && M?.(t), t.path && r) {
177
+ function I(t) {
178
+ if (z && z?.(t), t.path && r) {
179
179
  if (Array.isArray(r.value)) {
180
180
  const e = g.findIndex(
181
181
  (a) => a.uid === t.uid
@@ -204,7 +204,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
204
204
  ref: w,
205
205
  style: { display: "none" },
206
206
  type: "file",
207
- accept: n(k),
207
+ accept: n(U),
208
208
  onChange: X
209
209
  }, null, 40, Ce),
210
210
  m("div", be, [
@@ -215,7 +215,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
215
215
  pauseUpload: e?.oss?.pauseUpload
216
216
  }
217
217
  })),
218
- remove: $
218
+ remove: I
219
219
  }, () => [
220
220
  (v(!0), h(re, null, ue(n(o), (e) => (v(), h("div", {
221
221
  key: e.uid,
@@ -229,11 +229,11 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
229
229
  le(m("div", Se, [
230
230
  m("div", {
231
231
  class: "picture-item-close",
232
- onClick: (a) => $(e)
232
+ onClick: (a) => I(e)
233
233
  }, [
234
234
  b(n(de))
235
235
  ], 8, Re),
236
- e.status === "uploading" ? (v(), h("div", Me, [
236
+ e.status === "uploading" ? (v(), h("div", ze, [
237
237
  b(n(fe), {
238
238
  percent: e.percent,
239
239
  "stroke-color": "#ffffff",
@@ -241,7 +241,7 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
241
241
  size: 4,
242
242
  "show-info": !1
243
243
  }, null, 8, ["percent"])
244
- ])) : V("", !0)
244
+ ])) : $("", !0)
245
245
  ], 512), [
246
246
  [pe, e.status === "uploading"]
247
247
  ])
@@ -255,12 +255,12 @@ const Ce = ["accept"], be = { class: "picture-context" }, Ee = { class: "picture
255
255
  }, [
256
256
  b(n(me)),
257
257
  m("div", null, E(n(l)("ap.apUpload.update")), 1)
258
- ])) : V("", !0)
258
+ ])) : $("", !0)
259
259
  ]),
260
- m("div", ze, [
261
- n(N) ? (v(), h("div", Ae, E(n(N)), 1)) : (v(), h("div", Pe, E(`${n(l)("ap.apUpload.supportExtension")}:${n(ye)(n(k))},${n(l)(
260
+ m("div", Ae, [
261
+ n(N) ? (v(), h("div", Me, E(n(N)), 1)) : (v(), h("div", Pe, E(`${n(l)("ap.apUpload.supportExtension")}:${n(ye)(n(U))},${n(l)(
262
262
  "ap.apUpload.maxUploadPictureSize",
263
- { maxSize: n(U) }
263
+ { maxSize: n(k) }
264
264
  )}`), 1))
265
265
  ])
266
266
  ], 2));
@@ -87,8 +87,8 @@ const l = (i) => {
87
87
  [`${e}-un`]: {
88
88
  cursor: "pointer",
89
89
  "&:hover": {
90
- border: `${i.lineWidth} dashed ${i.colorPrimary}`,
91
- background: i.calc(i.colorPrimary).colorMix(10)
90
+ border: `${i.lineWidth} dashed ${i.colorLink}`,
91
+ background: i.calc(i.colorLink).colorMix(10)
92
92
  }
93
93
  }
94
94
  };
@@ -9,8 +9,8 @@ const a = (e) => {
9
9
  border: `${e.lineWidth} dashed var(--ap-border-color-base)`,
10
10
  height: e.apUploadSingleContainerHeight,
11
11
  "&:not(.ant-upload-disabled):hover": {
12
- background: e.calc(e.colorPrimary).colorMix(10),
13
- borderColor: e.colorPrimary
12
+ background: e.calc(e.colorLink).colorMix(10),
13
+ borderColor: e.colorLink
14
14
  },
15
15
  ".ant-upload-btn": {
16
16
  padding: 0
@@ -1,5 +1,5 @@
1
1
  import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any> = 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
5
  readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
@@ -45,9 +45,7 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
45
45
  (e: "remove", key: string | number): void;
46
46
  (e: "highlight", keys: (string | number)[]): void;
47
47
  };
48
- }>) => VNode<RendererNode, RendererElement, {
49
- [key: string]: any;
50
- }> & {
48
+ }>) => VNode & {
51
49
  __ctx?: Awaited<typeof __VLS_setup>;
52
50
  };
53
51
  export default _default;
@@ -74,9 +74,10 @@ const l = (r) => {
74
74
  border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`
75
75
  },
76
76
  "&.select": {
77
- backgroundColor: r.calc(r.colorPrimary).colorMix(5, "#fff"),
77
+ backgroundColor: r.calc(r.colorPrimary).colorMix(3, "#fff"),
78
78
  borderColor: r.colorPrimary,
79
- cursor: "pointer"
79
+ cursor: "pointer",
80
+ color: r.textColor2
80
81
  }
81
82
  },
82
83
  "&.choose": {
@@ -1,13 +1,12 @@
1
1
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
4
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
10
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
11
10
  import { SizeType } from '@aplus-frontend/antdv/es/button';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { OnCleanup } from '@vue/reactivity';
@@ -110,7 +109,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
110
109
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
111
110
  readonly initialValues?: Recordable | undefined;
112
111
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
113
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
112
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
114
113
  readonly syncToUrlPriority?: boolean | undefined;
115
114
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
116
115
  $attrs: {
@@ -243,7 +242,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
243
242
  };
244
243
  lg: {
245
244
  type: PropType<string | number | ColSize>;
246
- default: string | number | ColSize;
245
+ default: string | number | ** @type { [typeof __VLS_components.Popover, typeof __VLS_components.Popover, ] } */).ColSize;
247
246
  };
248
247
  xl: {
249
248
  type: PropType<string | number | ColSize>;