@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
@@ -1,4 +1,4 @@
1
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
1
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
3
3
  import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
4
4
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
@@ -7,7 +7,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 { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
119
118
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
120
119
  readonly initialValues?: Recordable | undefined;
121
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
122
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
121
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
123
122
  readonly syncToUrlPriority?: boolean | undefined;
124
123
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
125
124
  $attrs: {
@@ -1087,7 +1086,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1087
1086
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1088
1087
  readonly initialValues?: Recordable | undefined;
1089
1088
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1090
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1089
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1091
1090
  readonly syncToUrlPriority?: boolean | undefined;
1092
1091
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1093
1092
  $attrs: {
@@ -17,10 +17,10 @@ function i(r) {
17
17
  }
18
18
  function f(r) {
19
19
  const t = [], n = r.filter(
20
- (e) => e && i(e) && e.type !== Symbol.for("v-cmt")
20
+ (e) => e && i(e) && e.type !== /* @__PURE__ */ Symbol.for("v-cmt")
21
21
  );
22
22
  for (const e of n)
23
- if (e.type === Symbol.for("v-fgt")) {
23
+ if (e.type === /* @__PURE__ */ Symbol.for("v-fgt")) {
24
24
  const l = f(e.children);
25
25
  t.push(...l);
26
26
  } else if (u(e)) {
@@ -4,7 +4,6 @@ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, Component
4
4
  import { FieldMode, ApFieldNumberProps } from '../../..';
5
5
  import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
6
6
  import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
7
- import { InputNumberProps } from '@aplus-frontend/antdv';
8
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
8
  import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
10
9
  import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
@@ -44,10 +43,10 @@ declare function __VLS_template(): {
44
43
  readonly value?: ValueType | undefined;
45
44
  readonly disabled?: boolean | undefined;
46
45
  readonly placeholder?: string | undefined;
46
+ readonly id?: string | undefined;
47
47
  readonly prefixCls?: string | undefined;
48
48
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
49
49
  readonly name?: string | undefined;
50
- readonly id?: string | undefined;
51
50
  readonly readonly?: boolean | undefined;
52
51
  readonly autofocus?: boolean | undefined;
53
52
  readonly bordered?: boolean | undefined;
@@ -79,7 +78,7 @@ declare function __VLS_template(): {
79
78
  offset: ValueType;
80
79
  type: "up" | "down";
81
80
  }) => void) | undefined;
82
- readonly inputMode?: InputNumberProps["mode"];
81
+ readonly inputMode?: "input" | "spinner" | undefined;
83
82
  readonly emptyText?: string | undefined;
84
83
  readonly thousands?: boolean | undefined;
85
84
  readonly limitDecimalsRetain?: boolean | undefined;
@@ -565,10 +564,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
565
564
  readonly value?: ValueType | undefined;
566
565
  readonly disabled?: boolean | undefined;
567
566
  readonly placeholder?: string | undefined;
567
+ readonly id?: string | undefined;
568
568
  readonly prefixCls?: string | undefined;
569
569
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
570
570
  readonly name?: string | undefined;
571
- readonly id?: string | undefined;
572
571
  readonly readonly?: boolean | undefined;
573
572
  readonly autofocus?: boolean | undefined;
574
573
  readonly bordered?: boolean | undefined;
@@ -600,7 +599,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
600
599
  offset: ValueType;
601
600
  type: "up" | "down";
602
601
  }) => void) | undefined;
603
- readonly inputMode?: InputNumberProps["mode"];
602
+ readonly inputMode?: "input" | "spinner" | undefined;
604
603
  readonly emptyText?: string | undefined;
605
604
  readonly thousands?: boolean | undefined;
606
605
  readonly limitDecimalsRetain?: boolean | undefined;
@@ -67,12 +67,12 @@ declare function __VLS_template(): {
67
67
  readonly animation?: string | undefined;
68
68
  readonly children?: VueNode[] | undefined;
69
69
  readonly placeholder?: any;
70
+ readonly id?: string | undefined;
70
71
  readonly getPopupContainer?: RenderDOMFunc | undefined;
71
72
  readonly prefixCls?: string | undefined;
72
73
  readonly virtual?: boolean | undefined;
73
74
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
74
75
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
75
- readonly id?: string | undefined;
76
76
  readonly autofocus?: boolean | undefined;
77
77
  readonly loading?: boolean | undefined;
78
78
  readonly bordered?: boolean | undefined;
@@ -130,12 +130,12 @@ declare function __VLS_template(): {
130
130
  readonly emptyText?: string | undefined;
131
131
  readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
132
132
  readonly multiple?: boolean | undefined;
133
- readonly value?: SelectProps["value"];
133
+ readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
134
134
  readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
135
- readonly searchMode?: ("filter" | "request") | undefined;
135
+ readonly searchMode?: "filter" | "request" | undefined;
136
136
  readonly refetchOnFocus?: boolean | undefined;
137
137
  readonly lazy?: boolean | undefined;
138
- readonly addAll?: (boolean | number) | undefined;
138
+ readonly addAll?: boolean | number | undefined;
139
139
  readonly params?: Recordable | undefined;
140
140
  readonly searchDelay?: number | undefined;
141
141
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -661,26 +661,24 @@ declare function __VLS_template(): {
661
661
  itemIcon: any;
662
662
  removeIcon: any;
663
663
  clearIcon: any;
664
- dropdownRender: any;
665
- option: any;
666
664
  placeholder: any;
667
665
  tagRender: any;
668
666
  maxTagPlaceholder: any;
669
667
  optionLabel: any;
670
668
  default: any;
669
+ dropdownRender: any;
671
670
  }> & {
672
671
  notFoundContent: any;
673
672
  suffixIcon: any;
674
673
  itemIcon: any;
675
674
  removeIcon: any;
676
675
  clearIcon: any;
677
- dropdownRender: any;
678
- option: any;
679
676
  placeholder: any;
680
677
  tagRender: any;
681
678
  maxTagPlaceholder: any;
682
679
  optionLabel: any;
683
680
  default: any;
681
+ dropdownRender: any;
684
682
  };
685
683
  }) | null;
686
684
  };
@@ -725,12 +723,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
725
723
  readonly animation?: string | undefined;
726
724
  readonly children?: VueNode[] | undefined;
727
725
  readonly placeholder?: any;
726
+ readonly id?: string | undefined;
728
727
  readonly getPopupContainer?: RenderDOMFunc | undefined;
729
728
  readonly prefixCls?: string | undefined;
730
729
  readonly virtual?: boolean | undefined;
731
730
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
732
731
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
733
- readonly id?: string | undefined;
734
732
  readonly autofocus?: boolean | undefined;
735
733
  readonly loading?: boolean | undefined;
736
734
  readonly bordered?: boolean | undefined;
@@ -788,12 +786,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
788
786
  readonly emptyText?: string | undefined;
789
787
  readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
790
788
  readonly multiple?: boolean | undefined;
791
- readonly value?: SelectProps["value"];
789
+ readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
792
790
  readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
793
- readonly searchMode?: ("filter" | "request") | undefined;
791
+ readonly searchMode?: "filter" | "request" | undefined;
794
792
  readonly refetchOnFocus?: boolean | undefined;
795
793
  readonly lazy?: boolean | undefined;
796
- readonly addAll?: (boolean | number) | undefined;
794
+ readonly addAll?: boolean | number | undefined;
797
795
  readonly params?: Recordable | undefined;
798
796
  readonly searchDelay?: number | undefined;
799
797
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -1319,26 +1317,24 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1319
1317
  itemIcon: any;
1320
1318
  removeIcon: any;
1321
1319
  clearIcon: any;
1322
- dropdownRender: any;
1323
- option: any;
1324
1320
  placeholder: any;
1325
1321
  tagRender: any;
1326
1322
  maxTagPlaceholder: any;
1327
1323
  optionLabel: any;
1328
1324
  default: any;
1325
+ dropdownRender: any;
1329
1326
  }> & {
1330
1327
  notFoundContent: any;
1331
1328
  suffixIcon: any;
1332
1329
  itemIcon: any;
1333
1330
  removeIcon: any;
1334
1331
  clearIcon: any;
1335
- dropdownRender: any;
1336
- option: any;
1337
1332
  placeholder: any;
1338
1333
  tagRender: any;
1339
1334
  maxTagPlaceholder: any;
1340
1335
  optionLabel: any;
1341
1336
  default: any;
1337
+ dropdownRender: any;
1342
1338
  };
1343
1339
  }) | null;
1344
1340
  }, any>;
@@ -47,10 +47,10 @@ declare function __VLS_template(): {
47
47
  readonly value?: string | number | undefined;
48
48
  readonly disabled?: boolean | undefined;
49
49
  readonly placeholder?: string | number | undefined;
50
+ readonly id?: string | undefined;
50
51
  readonly prefixCls?: string | undefined;
51
52
  readonly name?: string | undefined;
52
53
  readonly focused?: boolean | undefined;
53
- readonly id?: string | undefined;
54
54
  readonly readonly?: boolean | undefined;
55
55
  readonly autofocus?: boolean | undefined;
56
56
  readonly autocomplete?: string | undefined;
@@ -204,10 +204,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
204
204
  readonly value?: string | number | undefined;
205
205
  readonly disabled?: boolean | undefined;
206
206
  readonly placeholder?: string | number | undefined;
207
+ readonly id?: string | undefined;
207
208
  readonly prefixCls?: string | undefined;
208
209
  readonly name?: string | undefined;
209
210
  readonly focused?: boolean | undefined;
210
- readonly id?: string | undefined;
211
211
  readonly readonly?: boolean | undefined;
212
212
  readonly autofocus?: boolean | undefined;
213
213
  readonly autocomplete?: string | undefined;
@@ -48,10 +48,10 @@ declare function __VLS_template(): {
48
48
  readonly value?: string | number | undefined;
49
49
  readonly disabled?: boolean | undefined;
50
50
  readonly placeholder?: string | number | undefined;
51
+ readonly id?: string | undefined;
51
52
  readonly prefixCls?: string | undefined;
52
53
  readonly name?: string | undefined;
53
54
  readonly focused?: boolean | undefined;
54
- readonly id?: string | undefined;
55
55
  readonly readonly?: boolean | undefined;
56
56
  readonly autofocus?: boolean | undefined;
57
57
  readonly autocomplete?: string | undefined;
@@ -211,10 +211,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
211
211
  readonly value?: string | number | undefined;
212
212
  readonly disabled?: boolean | undefined;
213
213
  readonly placeholder?: string | number | undefined;
214
+ readonly id?: string | undefined;
214
215
  readonly prefixCls?: string | undefined;
215
216
  readonly name?: string | undefined;
216
217
  readonly focused?: boolean | undefined;
217
- readonly id?: string | undefined;
218
218
  readonly readonly?: boolean | undefined;
219
219
  readonly autofocus?: boolean | undefined;
220
220
  readonly autocomplete?: string | undefined;
@@ -71,12 +71,12 @@ declare function __VLS_template(): {
71
71
  readonly animation?: string | undefined;
72
72
  readonly children?: VueNode[] | undefined;
73
73
  readonly placeholder?: any;
74
+ readonly id?: string | undefined;
74
75
  readonly getPopupContainer?: RenderDOMFunc | undefined;
75
76
  readonly prefixCls?: string | undefined;
76
77
  readonly virtual?: boolean | undefined;
77
78
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
78
79
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
79
- readonly id?: string | undefined;
80
80
  readonly autofocus?: boolean | undefined;
81
81
  readonly loading?: boolean | undefined;
82
82
  readonly bordered?: boolean | undefined;
@@ -875,12 +875,12 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
875
875
  readonly animation?: string | undefined;
876
876
  readonly children?: VueNode[] | undefined;
877
877
  readonly placeholder?: any;
878
+ readonly id?: string | undefined;
878
879
  readonly getPopupContainer?: RenderDOMFunc | undefined;
879
880
  readonly prefixCls?: string | undefined;
880
881
  readonly virtual?: boolean | undefined;
881
882
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
882
883
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
883
- readonly id?: string | undefined;
884
884
  readonly autofocus?: boolean | undefined;
885
885
  readonly loading?: boolean | undefined;
886
886
  readonly bordered?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
1
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
3
3
  import { Recordable } from '../../type';
4
4
  import { ApFormModalFormProps } from '../interface';
@@ -7,7 +7,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
10
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
11
10
  import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
@@ -121,7 +120,7 @@ declare function __VLS_template(): {
121
120
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
122
121
  readonly initialValues?: Recordable | undefined;
123
122
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
124
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
123
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
125
124
  readonly syncToUrlPriority?: boolean | undefined;
126
125
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
127
126
  $attrs: {
@@ -1324,7 +1323,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1324
1323
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1325
1324
  readonly initialValues?: Recordable | undefined;
1326
1325
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1327
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1326
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1328
1327
  readonly syncToUrlPriority?: boolean | undefined;
1329
1328
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1330
1329
  $attrs: {
@@ -1,5 +1,5 @@
1
1
  import { provide as e, inject as t } from "vue";
2
- const r = Symbol("InternalContextProps"), m = (o) => {
2
+ const r = /* @__PURE__ */ Symbol("InternalContextProps"), m = (o) => {
3
3
  e(r, o);
4
4
  }, n = {
5
5
  triggerFormChange: () => {
@@ -1,13 +1,12 @@
1
1
  import { ApFormExpose, ApFormSearchFormProps } from '../interface';
2
2
  import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } 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 { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
119
118
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
120
119
  readonly initialValues?: Recordable | undefined;
121
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
122
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
121
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
123
122
  readonly syncToUrlPriority?: boolean | undefined;
124
123
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
125
124
  $attrs: {
@@ -1107,7 +1106,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1107
1106
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1108
1107
  readonly initialValues?: Recordable | undefined;
1109
1108
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1110
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1109
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1111
1110
  readonly syncToUrlPriority?: boolean | undefined;
1112
1111
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1113
1112
  $attrs: {
@@ -1,15 +1,13 @@
1
1
  import { Recordable } from '../../type';
2
2
  import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable = 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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
6
6
  expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
7
7
  attrs: any;
8
8
  slots: Readonly<Record<string, any>> & Record<string, any>;
9
9
  emit: {};
10
- }>) => VNode<RendererNode, RendererElement, {
11
- [key: string]: any;
12
- }> & {
10
+ }>) => VNode & {
13
11
  __ctx?: Awaited<typeof __VLS_setup>;
14
12
  };
15
13
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { Recordable } from '../../type';
2
2
  import { EditableGridExpose, EditableGridProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable = 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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
9
9
  attrs: any;
10
10
  slots: Readonly<Record<string, any>> & Record<string, any>;
11
11
  emit: (event: "update:value", ...args: any[]) => void;
12
- }>) => VNode<RendererNode, RendererElement, {
13
- [key: string]: any;
14
- }> & {
12
+ }>) => VNode & {
15
13
  __ctx?: Awaited<typeof __VLS_setup>;
16
14
  };
17
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { VxeTableSlots } from 'vxe-table';
2
2
  import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  declare const _default: <RecordType>(__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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
6
6
  expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
@@ -35,9 +35,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
35
35
  }) => any;
36
36
  };
37
37
  emit: {};
38
- }>) => VNode<RendererNode, RendererElement, {
39
- [key: string]: any;
40
- }> & {
38
+ }>) => VNode & {
41
39
  __ctx?: Awaited<typeof __VLS_setup>;
42
40
  };
43
41
  export default _default;
@@ -74,7 +74,7 @@ function x(e) {
74
74
  return e === !0 ? "left" : e;
75
75
  }
76
76
  function F(e, i, t) {
77
- const n = e === !0 || !e.type ? "checkbox" : e.type, r = (t === "mini" ? 9 * 2 : 12 * 2) + 16, a = e === !0 ? r : e.columnWidth || r;
77
+ const n = e === !0 || !e.type ? "checkbox" : e.type, r = (t === "mini" ? 18 : 24) + 16, a = e === !0 ? r : e.columnWidth || r;
78
78
  let o = e === !0 ? void 0 : x(e.fixed);
79
79
  return o || (o === !1 ? o = void 0 : o = i.some(
80
80
  (u) => u.fixed === "left" || u.fixed === !0
@@ -102,7 +102,7 @@ function R(e, i) {
102
102
  if (!e)
103
103
  return "auto";
104
104
  const t = getComputedStyle(e);
105
- let n = i === "medium" ? 12 * 2 : 9 * 2;
105
+ let n = i === "medium" ? 24 : 18;
106
106
  const r = (Number.parseFloat(t.fontSize) || 14) * 1.6;
107
107
  return n += r, e.querySelector("span.anticon-question-circle") && (n += 20), n += h(e.querySelector(".vxe-cell--sort")) + h(e.querySelector(".vxe-cell--filter")), Math.ceil(n);
108
108
  }
@@ -1,6 +1,6 @@
1
1
  import { Recordable } from '../type';
2
2
  import { ApListExpose, ApListProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
5
  declare const _default: <RecordType extends Recordable>(__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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
@@ -35,9 +35,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
35
35
  }): any;
36
36
  };
37
37
  emit: {};
38
- }>) => VNode<RendererNode, RendererElement, {
39
- [key: string]: any;
40
- }> & {
38
+ }>) => VNode & {
41
39
  __ctx?: Awaited<typeof __VLS_setup>;
42
40
  };
43
41
  export default _default;
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
6
6
  update: (configUpdate: ConfigUpdate) => void;
7
7
  };
8
8
  declare const confirm: (config: ModalFuncProps) => {
9
- destroy: (this: any, ...args: any[]) => void;
9
+ destroy: (this: /*elided*/ any, ...args: any[]) => void;
10
10
  update: (configUpdate: ConfigUpdate) => void;
11
11
  };
12
12
  export default confirm;
@@ -161,7 +161,7 @@ const $e = /* @__PURE__ */ ee({
161
161
  transform: m.value ? "rotate(-90deg)" : "rotate(0deg)"
162
162
  }
163
163
  }, null)]), O = (e, l = []) => {
164
- if (e?.type === Symbol.for("v-fgt")) {
164
+ if (e?.type === /* @__PURE__ */ Symbol.for("v-fgt")) {
165
165
  const r = Array.isArray(e?.children) ? e?.children : [e?.children];
166
166
  if (r?.length)
167
167
  for (let o = 0; o < r.length; o++)
@@ -174,7 +174,7 @@ const $e = /* @__PURE__ */ ee({
174
174
  return E(!1), a(f, null, [e?.reduce((l, r) => {
175
175
  const o = O(r);
176
176
  return [...l, ...o];
177
- }, [])?.filter((l) => l.type !== Symbol.for("v-cmt"))?.map((l, r, o) => {
177
+ }, [])?.filter((l) => l.type !== /* @__PURE__ */ Symbol.for("v-cmt"))?.map((l, r, o) => {
178
178
  if (l && typeof l == "object" && "type" in l && l.type?.isProCard === !0) {
179
179
  E(!0);
180
180
  const c = l?.props?.colSpan || l?.props?.["col-span"] || {}, {
@@ -2,7 +2,7 @@ import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
2
2
  import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
4
  import { ApColumnType, ApTableProps } from './interface';
5
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
6
6
  declare const _default: <RecordType>(__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<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
8
8
  expose(exposed: ShallowUnwrapRef<{
@@ -98,9 +98,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
98
98
  }) => void;
99
99
  };
100
100
  emit: {};
101
- }>) => VNode<RendererNode, RendererElement, {
102
- [key: string]: any;
103
- }> & {
101
+ }>) => VNode & {
104
102
  __ctx?: Awaited<typeof __VLS_setup>;
105
103
  };
106
104
  export default _default;
@@ -148,7 +148,6 @@ const Qr = /* @__PURE__ */ je({
148
148
  default: !1
149
149
  },
150
150
  settings: {
151
- type: [Boolean, Object],
152
151
  default: void 0
153
152
  }
154
153
  },
@@ -194,10 +193,10 @@ const Qr = /* @__PURE__ */ je({
194
193
  }).filter(Boolean)), Ce = n(() => pe(o(s), (e) => {
195
194
  if (e.filters && !e.onFilter)
196
195
  return e.key || e?.dataIndex;
197
- }).filter(Boolean)), Te = n(() => g(r.dataSource) ? y.records : r.dataSource), Fe = n(() => fe(r.manual) ? r.manual : Ye(b.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), {
196
+ }).filter(Boolean)), Te = n(() => g(r.dataSource) ? y.records : r.dataSource), xe = n(() => fe(r.manual) ? r.manual : Ye(b.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), {
198
197
  rowSelection: T,
199
- selectedRows: F,
200
- ...x
198
+ selectedRows: x,
199
+ ...F
201
200
  } = nr({
202
201
  fixed: !0,
203
202
  ...r.rowSelection === !0 ? {} : r.rowSelection,
@@ -210,7 +209,7 @@ const Qr = /* @__PURE__ */ je({
210
209
  tableProps: q,
211
210
  refresh: M,
212
211
  data: y,
213
- setDataSource: xe,
212
+ setDataSource: Fe,
214
213
  getColumnSFConfig: G,
215
214
  sortedInfo: Be,
216
215
  filteredInfo: ke,
@@ -220,7 +219,7 @@ const Qr = /* @__PURE__ */ je({
220
219
  getLastParams: Pe
221
220
  } = lr({
222
221
  async request(e) {
223
- if (!T.value.preserveSelectedRowKeys && g(r.dataSource) && !P.value && x.clearAll(), P.value && (P.value = !1), !g(r.dataSource))
222
+ if (!T.value.preserveSelectedRowKeys && g(r.dataSource) && !P.value && F.clearAll(), P.value && (P.value = !1), !g(r.dataSource))
224
223
  return {
225
224
  data: r.dataSource || [],
226
225
  total: r.dataSource.length || 0
@@ -235,7 +234,7 @@ const Qr = /* @__PURE__ */ je({
235
234
  sortFields: Re,
236
235
  params: _e(r, "params"),
237
236
  defaultData: r.defaultData,
238
- manual: o(Fe),
237
+ manual: o(xe),
239
238
  formatParams: r.beforeSearchSubmit,
240
239
  pagination: r.pagination
241
240
  });
@@ -367,7 +366,7 @@ const Qr = /* @__PURE__ */ je({
367
366
  B(() => o(y).loading, (e) => {
368
367
  r.onLoadingChange?.(e);
369
368
  }), B(() => r.dataSource, (e) => {
370
- xe(e);
369
+ Fe(e);
371
370
  }, {
372
371
  immediate: !0
373
372
  });
@@ -402,8 +401,8 @@ const Qr = /* @__PURE__ */ je({
402
401
  getShownColumns: Oe,
403
402
  dataSource: n(() => o(y).records),
404
403
  rowSelection: {
405
- selectedRows: n(() => o(F)),
406
- ...x
404
+ selectedRows: n(() => o(x)),
405
+ ...F
407
406
  },
408
407
  scrollBar: {
409
408
  x: {
@@ -455,20 +454,20 @@ const Qr = /* @__PURE__ */ je({
455
454
  }, [L("div", {
456
455
  class: m(o(O)("header", "title"))
457
456
  }, [v(e.$slots, "title", z({
458
- selectedRows: o(F),
457
+ selectedRows: o(x),
459
458
  selectedRowKeys: o(T).selectedRowKeys,
460
459
  shownColumns: s.value
461
- }, x))], 2), b.title ? (f(), ue(o(Ge), {
460
+ }, F))], 2), b.title ? (f(), ue(o(Ge), {
462
461
  key: 0,
463
462
  type: "vertical"
464
463
  })) : le("", !0), p(vr, {
465
- config: e.settings === !0 ? {} : e.settings
464
+ config: e.settings
466
465
  }, null, 8, ["config"])], 2)) : v(e.$slots, "title", z({
467
466
  key: 1,
468
- selectedRows: o(F),
467
+ selectedRows: o(x),
469
468
  selectedRowKeys: o(T).selectedRowKeys,
470
469
  shownColumns: s.value
471
- }, x))], 2), p(o(Je), z({
470
+ }, F))], 2), p(o(Je), z({
472
471
  ref_key: "antdTableRef",
473
472
  ref: $,
474
473
  class: o(d)("table")
@@ -481,7 +480,7 @@ const Qr = /* @__PURE__ */ je({
481
480
  summary: w(() => [v(e.$slots, "summary", {
482
481
  columns: s.value,
483
482
  records: Q.value.dataSource,
484
- selectedRows: o(F)
483
+ selectedRows: o(x)
485
484
  })]),
486
485
  _: 2
487
486
  }, [o(j) ? {
@@ -0,0 +1,17 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ import { ApTableSettingType } from '../../interface';
3
+ type ApColumnSettingContextProps = {
4
+ /**
5
+ * 当前选中的模版
6
+ */
7
+ activeKey: Ref<string>;
8
+ /**
9
+ * 缓存设置
10
+ */
11
+ cacheConfig: Ref<ApTableSettingType>;
12
+ deleteTemplate: (key: string) => void;
13
+ };
14
+ export declare const ApColumnSettingContextKey: InjectionKey<ApColumnSettingContextProps>;
15
+ export declare function useProvideApColumnSetting(state: ApColumnSettingContextProps): void;
16
+ export declare function useInjectApColumnSetting(): ApColumnSettingContextProps;
17
+ export {};