@aplus-frontend/ui 0.5.36 → 0.6.0-beta.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 (289) hide show
  1. package/es/index.mjs +74 -72
  2. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  3. package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
  4. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  5. package/es/src/ap-form/interface.d.ts +31 -1
  6. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  7. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  8. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  11. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  13. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  15. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  16. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  20. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  24. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  25. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  26. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  27. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  28. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  31. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  32. package/es/src/ap-form/search-form/index.vue.mjs +127 -127
  33. package/es/src/ap-grid/editable/form-item.vue.mjs +62 -56
  34. package/es/src/ap-grid/editable/index.vue.mjs +82 -76
  35. package/es/src/ap-grid/index.vue.mjs +97 -93
  36. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  37. package/es/src/ap-list/index.vue.mjs +145 -138
  38. package/es/src/ap-list/interface.d.ts +4 -0
  39. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  40. package/es/src/ap-table/constants.d.ts +161 -161
  41. package/es/src/ap-table/context.d.ts +5 -0
  42. package/es/src/ap-table/context.mjs +13 -5
  43. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +28 -30
  44. package/es/src/ap-table/utils.d.ts +147 -147
  45. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  46. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  47. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  48. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  49. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  50. package/es/src/business/ap-size-input/index.d.ts +3 -3
  51. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  52. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  53. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  54. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  55. package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
  56. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  57. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  58. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
  59. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  60. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  61. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  62. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  63. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  64. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  65. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  66. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  67. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  68. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  69. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  70. package/es/src/business/ap-view/index.d.ts +27 -0
  71. package/es/src/business/ap-view/index.mjs +8 -0
  72. package/es/src/business/ap-view/interface.d.ts +54 -0
  73. package/es/src/business/ap-view/interface.mjs +1 -0
  74. package/es/src/business/ap-view/style/css.d.ts +0 -0
  75. package/es/src/business/ap-view/style/css.js +1 -0
  76. package/es/src/business/ap-view/style/index.d.ts +0 -0
  77. package/es/src/business/ap-view/style/index.js +1 -0
  78. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  79. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  80. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  81. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  82. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  83. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  84. package/es/src/business/index.d.ts +1 -0
  85. package/es/src/business/index.mjs +25 -23
  86. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  87. package/es/src/config-provider/config-provider-props.mjs +4 -0
  88. package/es/src/config-provider/config-provider.d.ts +25 -1
  89. package/es/src/config-provider/config-provider.mjs +21 -20
  90. package/es/src/config-provider/css-var.d.ts +14 -0
  91. package/es/src/config-provider/css-var.mjs +40 -12
  92. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  93. package/es/src/config-provider/index.d.ts +89 -3
  94. package/es/src/full-screen/interface.d.ts +1 -1
  95. package/es/src/index.mjs +61 -59
  96. package/es/src/locale/lang/en.mjs +22 -1
  97. package/es/src/locale/lang/zh-cn.mjs +22 -1
  98. package/es/src/path-map.mjs +2 -1
  99. package/es/src/utils/config-provider-preset.d.ts +4 -4
  100. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  101. package/lib/index.js +1 -1
  102. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  103. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  104. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  105. package/lib/src/ap-form/interface.d.ts +31 -1
  106. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  107. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  108. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  109. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  110. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  111. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  113. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  114. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  115. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  116. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  117. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  118. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  119. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  120. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  121. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  122. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  123. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  124. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  125. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  126. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  127. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  128. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  129. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  130. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  131. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  132. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  133. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  134. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  135. package/lib/src/ap-grid/index.vue.js +1 -1
  136. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  137. package/lib/src/ap-list/index.vue.js +1 -1
  138. package/lib/src/ap-list/interface.d.ts +4 -0
  139. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  140. package/lib/src/ap-table/constants.d.ts +161 -161
  141. package/lib/src/ap-table/context.d.ts +5 -0
  142. package/lib/src/ap-table/context.js +1 -1
  143. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  144. package/lib/src/ap-table/utils.d.ts +147 -147
  145. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  146. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  147. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  148. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  149. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  150. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  151. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  152. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  153. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  154. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  155. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  156. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  157. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  158. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  159. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  160. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  161. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  162. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  163. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  164. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  165. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  166. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  167. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  168. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  169. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  170. package/lib/src/business/ap-view/index.d.ts +27 -0
  171. package/lib/src/business/ap-view/index.js +1 -0
  172. package/lib/src/business/ap-view/interface.d.ts +54 -0
  173. package/lib/src/business/ap-view/interface.js +1 -0
  174. package/lib/src/business/ap-view/style/css.cjs +1 -0
  175. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  176. package/lib/src/business/ap-view/style/index.cjs +1 -0
  177. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  178. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  179. package/lib/src/business/ap-view/utils/enum.js +1 -0
  180. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  181. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  182. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  183. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  184. package/lib/src/business/index.d.ts +1 -0
  185. package/lib/src/business/index.js +1 -1
  186. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  187. package/lib/src/config-provider/config-provider-props.js +1 -1
  188. package/lib/src/config-provider/config-provider.d.ts +25 -1
  189. package/lib/src/config-provider/config-provider.js +1 -1
  190. package/lib/src/config-provider/css-var.d.ts +14 -0
  191. package/lib/src/config-provider/css-var.js +1 -1
  192. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  193. package/lib/src/config-provider/index.d.ts +89 -3
  194. package/lib/src/full-screen/interface.d.ts +1 -1
  195. package/lib/src/index.js +1 -1
  196. package/lib/src/locale/lang/en.js +1 -1
  197. package/lib/src/locale/lang/zh-cn.js +1 -1
  198. package/lib/src/path-map.js +1 -1
  199. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  200. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  201. package/package.json +7 -7
  202. package/theme/ap-action/item-dropdown.css +28 -0
  203. package/theme/ap-action/item-dropdown.less +1 -1
  204. package/theme/ap-action/item.css +35 -1
  205. package/theme/ap-action/item.less +1 -2
  206. package/theme/ap-appendix/ap-appendix.css +28 -0
  207. package/theme/ap-attachment/ap-attachment.css +28 -0
  208. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  209. package/theme/ap-button/ap-button.css +28 -0
  210. package/theme/ap-card/ap-card.css +28 -0
  211. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  212. package/theme/ap-download/ap-download.css +28 -0
  213. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  214. package/theme/ap-field/checkbox.css +28 -0
  215. package/theme/ap-field/index.css +28 -0
  216. package/theme/ap-field/number.css +28 -0
  217. package/theme/ap-field/radio.css +28 -0
  218. package/theme/ap-field/text-area.css +28 -0
  219. package/theme/ap-form/ap-form-item-group.css +28 -0
  220. package/theme/ap-form/ap-form-item.css +28 -0
  221. package/theme/ap-form/drawer-form.css +28 -0
  222. package/theme/ap-form/index.css +169 -0
  223. package/theme/ap-form/item-text-group.css +28 -0
  224. package/theme/ap-form/item-text.css +28 -0
  225. package/theme/ap-form/modal-form.css +28 -0
  226. package/theme/ap-form/search-form-sorter.css +120 -0
  227. package/theme/ap-form/search-form-sorter.less +71 -0
  228. package/theme/ap-form/search-form.css +169 -0
  229. package/theme/ap-form/search-form.less +56 -0
  230. package/theme/ap-grid/editable.css +28 -0
  231. package/theme/ap-grid/index.css +176 -1
  232. package/theme/ap-group-search/ap-extension-select.css +28 -0
  233. package/theme/ap-group-search/ap-group-search.css +28 -0
  234. package/theme/ap-group-search/ap-popover-select.css +28 -0
  235. package/theme/ap-image/ap-image.css +28 -0
  236. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  237. package/theme/ap-label/ap-label.css +28 -0
  238. package/theme/ap-ladder/ap-ladder.css +28 -0
  239. package/theme/ap-layout/ap-info-layout.css +28 -0
  240. package/theme/ap-list/index.css +66 -4
  241. package/theme/ap-list/index.less +41 -3
  242. package/theme/ap-product-info/ap-product-info.css +28 -0
  243. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  244. package/theme/ap-size-input/ap-size-input.css +28 -0
  245. package/theme/ap-status/ap-status.css +28 -0
  246. package/theme/ap-summary/index.css +28 -0
  247. package/theme/ap-table/ap-table-index.css +28 -0
  248. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  249. package/theme/ap-table/ap-table.css +190 -13
  250. package/theme/ap-table/ap-table.less +0 -1
  251. package/theme/ap-table/setting/index.css +42 -0
  252. package/theme/ap-table/setting/modal.css +36 -0
  253. package/theme/ap-table/setting/modal.less +1 -0
  254. package/theme/ap-table/setting/select-group.css +28 -0
  255. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  256. package/theme/ap-table/setting/sortable-item.css +28 -0
  257. package/theme/ap-table/setting/sorter.css +34 -0
  258. package/theme/ap-table/setting/sorter.less +1 -2
  259. package/theme/ap-table-modal/index.css +190 -13
  260. package/theme/ap-tag/ap-tag-group.css +28 -0
  261. package/theme/ap-tag/ap-tag.css +28 -0
  262. package/theme/ap-title/ap-title.css +28 -0
  263. package/theme/ap-upload/index.css +28 -0
  264. package/theme/ap-upload/multiple-file.css +28 -0
  265. package/theme/ap-upload/picture.css +28 -0
  266. package/theme/ap-upload/single-file.css +28 -0
  267. package/theme/ap-upload/upload.css +28 -0
  268. package/theme/ap-upload-single/index.css +28 -0
  269. package/theme/ap-view/ap-view.css +149 -0
  270. package/theme/ap-view/ap-view.less +128 -0
  271. package/theme/batch-input-group/index.css +28 -0
  272. package/theme/batch-input-group/popover-input.css +28 -0
  273. package/theme/check-card/index.css +49 -1
  274. package/theme/check-card/index.less +3 -4
  275. package/theme/editable-table/index.css +176 -1
  276. package/theme/full-screen/index.css +28 -0
  277. package/theme/index.css +378 -19
  278. package/theme/index.less +1 -0
  279. package/theme/mask/index.css +28 -0
  280. package/theme/mixins/config.less +1 -0
  281. package/theme/mixins/mixins.css +28 -0
  282. package/theme/mixins/mixins.less +35 -0
  283. package/theme/scroll-bar/index.css +28 -0
  284. package/theme/scroll-view/index.css +28 -0
  285. package/theme/splitter/index.css +28 -0
  286. package/theme/text/group.css +28 -0
  287. package/theme/text/index.css +36 -1
  288. package/theme/text/index.less +1 -1
  289. package/theme/work-order-modal/index.css +28 -0
@@ -1,10 +1,10 @@
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, ComputedRef } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
- import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
4
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
5
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
7
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
+ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
@@ -30,10 +30,6 @@ declare function __VLS_template(): {
30
30
  readonly layout?: string | undefined;
31
31
  readonly disabled?: boolean | undefined;
32
32
  readonly prefixCls?: string | undefined;
33
- readonly name?: string | undefined;
34
- readonly validateMessages?: ValidateMessages | undefined;
35
- readonly requiredMark?: "" | RequiredMark | undefined;
36
- readonly colon?: boolean | undefined;
37
33
  readonly labelCol?: (Partial< ExtractPropTypes<{
38
34
  span: (StringConstructor | NumberConstructor)[];
39
35
  order: (StringConstructor | NumberConstructor)[];
@@ -100,13 +96,17 @@ declare function __VLS_template(): {
100
96
  prefixCls: StringConstructor;
101
97
  flex: (StringConstructor | NumberConstructor)[];
102
98
  }>> & HTMLAttributes) | undefined;
99
+ readonly colon?: boolean | undefined;
103
100
  readonly labelAlign?: FormLabelAlign | undefined;
101
+ readonly name?: string | undefined;
104
102
  readonly rules?: {
105
103
  [k: string]: RuleObject | RuleObject[];
106
104
  } | undefined;
107
105
  readonly validateTrigger?: string | string[] | undefined;
108
106
  readonly labelWrap?: boolean | undefined;
107
+ readonly requiredMark?: "" | RequiredMark | undefined;
109
108
  readonly hideRequiredMark?: boolean | undefined;
109
+ readonly validateMessages?: ValidateMessages | undefined;
110
110
  readonly validateOnRuleChange?: boolean | undefined;
111
111
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
112
112
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
@@ -840,11 +840,7 @@ declare function __VLS_template(): {
840
840
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
841
841
  declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
842
842
  apForm: ComputedRef<ApFormExpose | undefined>;
843
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
844
- "update:collapse": (...args: any[]) => void;
845
- }, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{
846
- "onUpdate:collapse"?: ((...args: any[]) => any) | undefined;
847
- }>, {
843
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{}>, {
848
844
  collapse: boolean;
849
845
  layout: string;
850
846
  colon: boolean;
@@ -852,11 +848,13 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
852
848
  validateTrigger: string | string[];
853
849
  hideRequiredMark: boolean;
854
850
  validateOnRuleChange: boolean;
855
- countPerRow: number;
851
+ countPerRow: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
856
852
  defaultCollapse: boolean;
857
853
  customReset: boolean;
858
854
  extraInAction: boolean;
859
855
  forceExpand: boolean;
856
+ maxRows: number;
857
+ sortable: boolean;
860
858
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
861
859
  apForm: ({
862
860
  $: ComponentInternalInstance;
@@ -867,10 +865,6 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
867
865
  readonly layout?: string | undefined;
868
866
  readonly disabled?: boolean | undefined;
869
867
  readonly prefixCls?: string | undefined;
870
- readonly name?: string | undefined;
871
- readonly validateMessages?: ValidateMessages | undefined;
872
- readonly requiredMark?: "" | RequiredMark | undefined;
873
- readonly colon?: boolean | undefined;
874
868
  readonly labelCol?: (Partial< ExtractPropTypes<{
875
869
  span: (StringConstructor | NumberConstructor)[];
876
870
  order: (StringConstructor | NumberConstructor)[];
@@ -937,13 +931,17 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
937
931
  prefixCls: StringConstructor;
938
932
  flex: (StringConstructor | NumberConstructor)[];
939
933
  }>> & HTMLAttributes) | undefined;
934
+ readonly colon?: boolean | undefined;
940
935
  readonly labelAlign?: FormLabelAlign | undefined;
936
+ readonly name?: string | undefined;
941
937
  readonly rules?: {
942
938
  [k: string]: RuleObject | RuleObject[];
943
939
  } | undefined;
944
940
  readonly validateTrigger?: string | string[] | undefined;
945
941
  readonly labelWrap?: boolean | undefined;
942
+ readonly requiredMark?: "" | RequiredMark | undefined;
946
943
  readonly hideRequiredMark?: boolean | undefined;
944
+ readonly validateMessages?: ValidateMessages | undefined;
947
945
  readonly validateOnRuleChange?: boolean | undefined;
948
946
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
949
947
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
@@ -1,24 +1,25 @@
1
- import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
2
- import { Col as B, Flex as $, Space as he, Button as v, Row as xe } from "@aplus-frontend/antdv";
1
+ import { isVNode as ee, defineComponent as te, useSlots as oe, ref as ae, shallowRef as j, computed as _, unref as n, watch as L, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as ne, withCtx as F, resolveDynamicComponent as A, createElementBlock as le, renderList as re } from "vue";
2
+ import { Col as R, Flex as B, Button as U, Row as se } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import "../../hooks/index.mjs";
6
- import { genRealChildren as L } from "../item-group/helper.mjs";
7
- import { DoubleRightOutlined as ye } from "@ant-design/icons-vue";
5
+ import { genRealChildren as V } from "../item-group/helper.mjs";
8
6
  import "../../config-provider/index.mjs";
9
- import { isArray as Ce, isBoolean as ge, omit as _e } from "lodash-unified";
10
- import { isDef as U } from "../../utils/index.mjs";
11
- import { execFunc as W, diffFormItem as Se } from "./utils.mjs";
12
- import { useControllableValue as Fe } from "../../hooks/useControllableValue.mjs";
13
- import { useNamespace as Be } from "../../config-provider/hooks/use-namespace.mjs";
14
- import { useGlobalConfig as Re } from "../../config-provider/hooks/use-global-config.mjs";
15
- import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
16
- import q from "../item/index.vue.mjs";
17
- import Ee from "../ap-form.vue2.mjs";
18
- function be(h) {
19
- return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !se(h);
7
+ import { isArray as ie, isBoolean as ce, omit as ue } from "lodash-unified";
8
+ import { isDef as M } from "../../utils/index.mjs";
9
+ import { execFunc as W, diffFormItem as pe } from "./utils.mjs";
10
+ import "./components/popover-filter.vue.mjs";
11
+ import { useCountPerRow as de } from "./hooks/use-count-per-row.mjs";
12
+ import "./components/popover-sorter/index.vue.mjs";
13
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
15
+ import D from "../item/index.vue.mjs";
16
+ import he from "./components/popover-filter.vue2.mjs";
17
+ import xe from "./components/popover-sorter/index.vue2.mjs";
18
+ import ye from "../ap-form.vue2.mjs";
19
+ function ge(f) {
20
+ return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !ee(f);
20
21
  }
21
- const r = 24, ze = /* @__PURE__ */ ie({
22
+ const s = 24, Le = /* @__PURE__ */ te({
22
23
  name: "ApFormSearchForm",
23
24
  __name: "index",
24
25
  props: {
@@ -100,149 +101,148 @@ const r = 24, ze = /* @__PURE__ */ ie({
100
101
  },
101
102
  submitLoading: {
102
103
  type: Boolean
104
+ },
105
+ maxRows: {
106
+ default: 2
107
+ },
108
+ sortable: {
109
+ type: Boolean,
110
+ default: !0
103
111
  }
104
112
  },
105
- emits: ["update:collapse"],
106
- setup(h, {
107
- expose: z,
108
- emit: H
113
+ setup(f, {
114
+ expose: q
109
115
  }) {
110
- var I;
111
- const u = ue(), n = h, G = H, {
112
- value: c,
113
- updateValue: J
114
- } = Fe(n, G, {
115
- valuePropName: "collapse",
116
- defaultValuePropName: "defaultCollapse"
117
- }), {
118
- b: K
119
- } = Be("ap-form-search-form"), Q = Re("uiMode"), {
120
- t: w
121
- } = Ae(), g = ce();
122
- function X() {
123
- J(!o(c));
116
+ var P;
117
+ const i = oe(), o = f, {
118
+ b: m
119
+ } = fe("ap-form-search-form"), {
120
+ t: N
121
+ } = me(), z = de(o), y = ae();
122
+ function k() {
123
+ var e, a;
124
+ (a = (e = y.value) == null ? void 0 : e.validateFields()) == null || a.then((l) => W(o.onSubmit, l));
124
125
  }
125
- function Y() {
126
- var e, t;
127
- (t = (e = g.value) == null ? void 0 : e.validateFields()) == null || t.then((s) => W(n.onSubmit, s));
126
+ function H() {
127
+ var e, a;
128
+ o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), W(o.onReset);
128
129
  }
129
- function Z() {
130
- var e, t;
131
- n.customReset || (t = (e = g.value) == null ? void 0 : e.resetFields) == null || t.call(e), W(n.onReset);
132
- }
133
- let N = [];
134
- const R = M(L(u.default())), d = M((I = u.extra) == null ? void 0 : I.call(u)), k = S(() => Math.floor(r / n.countPerRow));
135
- D(() => u.default(), (e) => {
136
- N = R.value, R.value = Se(N, L(e));
137
- }), D(() => {
130
+ const G = (e) => M(e) ? (ie(e) ? e : [e]).join("") : Date.now();
131
+ let I = [];
132
+ const c = j(V(i.default())), u = j((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / n(z)));
133
+ L(() => i.default(), (e) => {
134
+ I = c.value, c.value = pe(I, V(e));
135
+ }), L(() => {
138
136
  var e;
139
- return (e = u.extra) == null ? void 0 : e.call(u);
137
+ return (e = i.extra) == null ? void 0 : e.call(i);
140
138
  }, (e) => {
141
- d.value = e;
139
+ u.value = e;
142
140
  });
143
- const ee = (e) => U(e) ? (Ce(e) ? e : [e]).join("") : Date.now(), A = S(() => {
144
- const e = R.value, t = [], s = [], l = o(k);
145
- let i = 0;
146
- e.forEach((p) => {
147
- const f = p.props;
148
- if (ge(f.hidden) ? !!f.hidden : U(f.hidden))
149
- t.push(p);
141
+ const r = _(() => {
142
+ const e = c.value, a = [], l = [], g = [], h = n(E);
143
+ let v = 0, b = 0;
144
+ const Q = s * o.maxRows - h * (n(u) && !o.extraInAction ? 2 : 1);
145
+ e.forEach((S, Z) => {
146
+ const p = S.props;
147
+ if (ce(p.hidden) ? !!p.hidden : M(p.hidden))
148
+ a.push(S);
150
149
  else {
151
- const y = r - i % r, _ = f.span || l;
152
- y >= _ ? i += _ : i += _ + y, s.push(p);
150
+ let C = p.span || h;
151
+ const O = {
152
+ node: S,
153
+ span: C,
154
+ key: `ApFormSearchFormItem-${Z}-${G(p.name)}-${p._signal}`
155
+ }, $ = s - v % s;
156
+ $ < C && (C += $), v += C, v > Q ? l.push(O) : (b = v, g.push(O));
153
157
  }
154
158
  });
155
- const P = r - i % r;
156
- P < l && (i += P);
157
- const T = r - (i + l) % r, oe = i % r < l, ae = T < l ? r : T, O = r - l * (o(d) && !n.extraInAction ? 2 : 1), ne = !n.forceExpand && i > O;
158
- let V = 0, j = 0;
159
- const le = s.map((p, f) => {
160
- const x = p.props, y = x.span || l;
161
- if (V += y, !n.forceExpand && o(c) && V > O) {
162
- t.push(pe(p, {
163
- hidden: !0
164
- }));
165
- return;
166
- }
167
- return j += y, {
168
- node: p,
169
- span: x.span || l,
170
- key: `ApFormSearchFormItem-${f}-${ee(x.name)}-${x._signal}`
171
- };
172
- }).filter(Boolean), re = r - j - l;
159
+ const T = s - (b + h) % s, X = b % s < h, Y = T < h ? s : T;
173
160
  return {
174
- hideNode: a(F, null, [t]),
175
- nodes: le,
176
- defaultExtraSpan: ae,
177
- actualExtraSpan: re,
178
- showCollapse: ne,
179
- lastRowOnlyIncludeActionAndExtra: oe
161
+ hideNode: t(w, null, [a]),
162
+ nodes: g,
163
+ collapseNodes: l,
164
+ extraSpan: Y,
165
+ lastRowOnlyIncludeActionAndExtra: X
180
166
  };
181
- }), te = S(() => {
167
+ });
168
+ function J(e) {
169
+ c.value = [...e];
170
+ }
171
+ const K = _(() => {
182
172
  let e;
183
- const t = o(A), s = a(B, {
184
- span: o(k),
173
+ const a = t(R, {
174
+ span: n(E),
185
175
  key: "actionWrapper"
186
176
  }, {
187
- default: () => [a(q, null, {
188
- default: () => [a($, {
189
- justify: !o(c) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
177
+ default: () => [t(D, null, {
178
+ default: () => [t(B, {
179
+ wrap: "wrap",
180
+ justify: r.value.lastRowOnlyIncludeActionAndExtra && !(n(u) && o.extraInAction) ? "flex-end" : "space-between"
190
181
  }, {
191
- default: () => [a(he, null, {
192
- default: () => [a(v, {
182
+ default: () => [t(B, {
183
+ gap: 8,
184
+ wrap: "wrap"
185
+ }, {
186
+ default: () => [t("div", {
187
+ class: m("column-setting-trigger-wrapper")
188
+ }, [r.value.collapseNodes.length ? t(he, {
189
+ onSubmit: k,
190
+ config: r.value.collapseNodes,
191
+ submitLoading: o.submitLoading
192
+ }, null) : null, o.sortable && c.value.length ? t(xe, {
193
+ children: c.value,
194
+ onClickConfirm: J
195
+ }, null) : null]), t(U, {
193
196
  type: "primary",
194
- onClick: Y,
195
- loading: n.submitLoading,
196
- htmlType: "submit"
197
+ onClick: k,
198
+ loading: o.submitLoading,
199
+ htmlType: "submit",
200
+ class: m("action-btn")
197
201
  }, {
198
- default: () => [n.searchText || w("ap.apForm.search.search")]
199
- }), a(v, {
200
- onClick: Z
202
+ default: () => [o.searchText || N("ap.apForm.search.search")]
203
+ }), t(U, {
204
+ onClick: H,
205
+ type: "text",
206
+ class: [m("action-btn"), m("action-btn-reset")]
201
207
  }, {
202
- default: () => [n.resetText || w("ap.apForm.search.reset")]
203
- }), t.showCollapse ? a(v, {
204
- onClick: X,
205
- icon: a(ye, {
206
- style: Q.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
207
- rotate: o(c) ? 90 : -90
208
- }, null)
209
- }, null) : null]
210
- }), n.extraInAction ? o(d) : null]
208
+ default: () => [o.resetText || N("ap.apForm.search.reset")]
209
+ })]
210
+ }), o.extraInAction ? n(u) : null]
211
211
  })]
212
212
  })]
213
- }), l = !n.extraInAction && o(d) ? a(B, {
214
- span: o(c) ? t.actualExtraSpan : t.defaultExtraSpan,
213
+ }), l = !o.extraInAction && n(u) ? t(R, {
214
+ span: r.value.extraSpan,
215
215
  key: "extraNode"
216
216
  }, {
217
- default: () => [a(q, null, {
218
- default: () => [a($, {
219
- justify: !o(c) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
220
- }, be(e = o(d)) ? e : {
217
+ default: () => [t(D, null, {
218
+ default: () => [t(B, {
219
+ justify: r.value.extraSpan === s || r.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
220
+ }, ge(e = n(u)) ? e : {
221
221
  default: () => [e]
222
222
  })]
223
223
  })]
224
- }) : null, i = a(B, {
225
- span: t.defaultExtraSpan
224
+ }) : null, g = t(R, {
225
+ span: r.value.extraSpan
226
226
  }, null);
227
- return !o(c) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
227
+ return r.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [l || g, a]) : t(w, null, [a, l]);
228
228
  });
229
- return z({
230
- apForm: S(() => o(g))
231
- }), (e, t) => (m(), C(Ee, de({
229
+ return q({
230
+ apForm: _(() => n(y))
231
+ }), (e, a) => (d(), x(ye, ne({
232
232
  ref_key: "apForm",
233
- ref: g,
234
- class: o(K)()
235
- }, o(_e)(n, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
236
- default: E(() => [(m(), C(b(A.value.hideNode))), a(o(xe), {
233
+ ref: y,
234
+ class: n(m)()
235
+ }, n(ue)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
236
+ default: F(() => [(d(), x(A(r.value.hideNode))), t(n(se), {
237
237
  gutter: 16
238
238
  }, {
239
- default: E(() => [(m(!0), fe(F, null, me(A.value.nodes, (s) => (m(), C(o(B), {
240
- key: s.key,
241
- span: s.span
239
+ default: F(() => [(d(!0), le(w, null, re(r.value.nodes, (l) => (d(), x(n(R), {
240
+ key: l.key,
241
+ span: l.span
242
242
  }, {
243
- default: E(() => [(m(), C(b(s.node)))]),
243
+ default: F(() => [(d(), x(A(l.node)))]),
244
244
  _: 2
245
- }, 1032, ["span"]))), 128)), (m(), C(b(te.value)))]),
245
+ }, 1032, ["span"]))), 128)), (d(), x(A(K.value)))]),
246
246
  _: 1
247
247
  })]),
248
248
  _: 1
@@ -250,5 +250,5 @@ const r = 24, ze = /* @__PURE__ */ ie({
250
250
  }
251
251
  });
252
252
  export {
253
- ze as default
253
+ Le as default
254
254
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as f, watch as W, nextTick as G, createBlock as K, openBlock as U, mergeProps as C, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
- import { ApForm as y } from "../../ap-form/index.mjs";
1
+ import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as g, withCtx as y, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
+ import { ApForm as C } from "../../ap-form/index.mjs";
3
3
  import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { isDef as w } from "../../utils/index.mjs";
@@ -9,7 +9,7 @@ import { useInjectForm as te } from "../../ap-form/context.mjs";
9
9
  import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import ne from "../index.vue.mjs";
12
- const ge = /* @__PURE__ */ P({
12
+ const ye = /* @__PURE__ */ P({
13
13
  name: "EditableGrid",
14
14
  __name: "form-item",
15
15
  props: {
@@ -154,10 +154,10 @@ const ge = /* @__PURE__ */ P({
154
154
  default: () => ({})
155
155
  }
156
156
  },
157
- setup(x, {
158
- expose: b
157
+ setup(b, {
158
+ expose: x
159
159
  }) {
160
- const R = A(), l = x, {
160
+ const R = A(), l = b, {
161
161
  b: B
162
162
  } = ae("editable-grid");
163
163
  function S(e, o) {
@@ -166,108 +166,114 @@ const ge = /* @__PURE__ */ P({
166
166
  const {
167
167
  internalInstance: t,
168
168
  model: F
169
- } = te(), p = H(l.name), d = h(S(f(F), p.value) || []), N = y.useWatch(p);
170
- W(() => N.value, async (e) => {
169
+ } = te(), p = H(l.name), d = h(S(u(F), p.value) || []), N = C.useWatch(p);
170
+ K(() => N.value, async (e) => {
171
171
  var o;
172
- await G(), d.value = e, (o = l.onChange) == null || o.call(l, e);
172
+ await W(), d.value = e, (o = l.onChange) == null || o.call(l, e);
173
173
  }, {
174
174
  deep: !0
175
175
  });
176
- const c = h(), v = le("valueTypeMap"), D = oe(l, v);
177
- function L(e, o) {
178
- var r;
179
- const n = ((r = f(d)) == null ? void 0 : r.length) || 0;
176
+ const c = h(), v = le("valueTypeMap"), k = oe(l, v);
177
+ function D(e, o) {
178
+ var s;
179
+ const n = ((s = u(d)) == null ? void 0 : s.length) || 0;
180
180
  if (w(l.maxLength) && n >= l.maxLength)
181
181
  return;
182
182
  const a = {
183
183
  ...e || {}
184
184
  };
185
- t == null || t.setFieldValue(l.name, a, !0, (u, s) => {
186
- if (!u[s]) {
187
- u[s] = [a];
185
+ t == null || t.setFieldValue(l.name, a, !0, (r, f) => {
186
+ if (!r[f]) {
187
+ r[f] = [a];
188
188
  return;
189
189
  }
190
- I(o) ? u[s].push(a) : u[s].splice(o, 0, a);
190
+ I(o) ? r[f].push(a) : r[f].splice(o, 0, a);
191
191
  });
192
192
  }
193
- function V(e, o = "suffix") {
194
- var u;
195
- const n = ((u = f(d)) == null ? void 0 : u.length) || 0, a = m(e) ? e : e.length;
193
+ function L(e, o = "suffix") {
194
+ var r;
195
+ const n = ((r = u(d)) == null ? void 0 : r.length) || 0, a = m(e) ? e : e.length;
196
196
  if (w(l.maxLength) && n + a > l.maxLength)
197
197
  return;
198
- const r = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
199
- t == null || t.setFieldValue(l.name, r, !0, (s, i) => {
200
- if (!s[i]) {
201
- s[i] = [...r];
198
+ const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
199
+ t == null || t.setFieldValue(l.name, s, !0, (f, i) => {
200
+ if (!f[i]) {
201
+ f[i] = [...s];
202
202
  return;
203
203
  }
204
- o === "suffix" ? s[i].push(...r) : s[i].unshift(...r);
204
+ o === "suffix" ? f[i].push(...s) : f[i].unshift(...s);
205
205
  });
206
206
  }
207
- function T(e) {
207
+ function V(e) {
208
208
  const o = new Set(m(e) ? [e] : e);
209
209
  t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
210
- n[a] = n[a].filter((r, u) => !o.has(u));
210
+ n[a] = n[a].filter((s, r) => !o.has(r));
211
211
  });
212
212
  }
213
- function _() {
214
- return f(d);
213
+ function T() {
214
+ return u(d);
215
215
  }
216
- function E(e) {
216
+ function _(e) {
217
217
  var o;
218
- return (o = f(d)) == null ? void 0 : o[e];
218
+ return (o = u(d)) == null ? void 0 : o[e];
219
219
  }
220
- function k(e, o, n = !0) {
221
- t == null || t.setFieldValue(l.name, void 0, !0, (a, r) => {
222
- !a[r] || !a[r][e] || (a[r][e] = {
223
- ...n ? a[r][e] : {},
224
- ...o
225
- });
220
+ function j(e, o, n = !0) {
221
+ t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
222
+ if (!(!a[s] || !a[s][e])) {
223
+ if (!n) {
224
+ const r = Object.keys(a[s][e]);
225
+ for (const f of r)
226
+ f !== l.rowKey && delete a[s][e][f];
227
+ }
228
+ Object.assign(a[s][e], {
229
+ ...o
230
+ });
231
+ }
226
232
  });
227
233
  }
228
- function j(e) {
234
+ function E(e) {
229
235
  t == null || t.setFieldValue(l.name, e);
230
236
  }
231
- function z(e) {
237
+ function O(e) {
232
238
  var n;
233
239
  const o = e === "end" ? d.value.length - 1 : e;
234
240
  (n = c.value) == null || n.scrollToRow(o);
235
241
  }
236
- function O() {
242
+ function z() {
237
243
  var e;
238
244
  (e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
239
245
  }
240
- return b({
241
- add: L,
242
- remove: T,
243
- getRowData: E,
244
- getRowsData: _,
245
- setRowData: k,
246
- addMultiple: V,
247
- scrollTo: z,
248
- setTableData: j,
249
- clear: O
250
- }), (e, o) => (U(), K(f(y).FormItem, C(e.formItem, {
246
+ return x({
247
+ add: D,
248
+ remove: V,
249
+ getRowData: _,
250
+ getRowsData: T,
251
+ setRowData: j,
252
+ addMultiple: L,
253
+ scrollTo: O,
254
+ setTableData: E,
255
+ clear: z
256
+ }), (e, o) => (U(), G(u(C).FormItem, g(e.formItem, {
251
257
  name: e.name,
252
258
  label: e.label
253
259
  }), {
254
- default: g(() => [$(ne, C(f(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
260
+ default: y(() => [$(ne, g(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
255
261
  ref_key: "tableRef",
256
262
  ref: c,
257
- class: f(B)(),
258
- columns: f(D),
263
+ class: u(B)(),
264
+ columns: u(k),
259
265
  "data-source": d.value,
260
266
  "search-form": !1
261
267
  }), q({
262
268
  _: 2
263
269
  }, [J(R, (n, a) => ({
264
270
  name: a,
265
- fn: g((r) => [Q(e.$slots, a, X(Y(r || {})))])
271
+ fn: y((s) => [Q(e.$slots, a, X(Y(s || {})))])
266
272
  }))]), 1040, ["class", "columns", "data-source"])]),
267
273
  _: 3
268
274
  }, 16, ["name", "label"]));
269
275
  }
270
276
  });
271
277
  export {
272
- ge as default
278
+ ye as default
273
279
  };