@aplus-frontend/ui 0.6.0-beta.12 → 0.6.0-beta.14

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 (248) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  13. package/es/src/ap-field/date/index.vue.mjs +4 -4
  14. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  15. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  16. package/es/src/ap-field/index.mjs +36 -36
  17. package/es/src/ap-field/number/index.vue.mjs +8 -8
  18. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  19. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  20. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  21. package/es/src/ap-field/select/index.vue.mjs +2 -2
  22. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  23. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  24. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  25. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  26. package/es/src/ap-field/text/password.vue.mjs +2 -2
  27. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
  29. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  30. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  31. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  32. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  33. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  34. package/es/src/ap-form/interface.d.ts +3 -3
  35. package/es/src/ap-form/item/index.vue.mjs +38 -34
  36. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  37. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  41. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  42. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  43. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  44. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  45. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  46. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  47. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  48. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  49. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  50. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  51. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  52. package/es/src/ap-form/render/item.vue.mjs +2 -2
  53. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +7 -7
  54. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
  55. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
  56. package/es/src/ap-form/search-form/index.vue.d.ts +9 -6
  57. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  58. package/es/src/ap-form/set/index.vue.mjs +1 -1
  59. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  60. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  61. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  62. package/es/src/ap-grid/editable/index.vue.mjs +15 -12
  63. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  64. package/es/src/ap-grid/index.vue.d.ts +2 -4
  65. package/es/src/ap-grid/index.vue.mjs +110 -95
  66. package/es/src/ap-grid/interface.d.ts +10 -0
  67. package/es/src/ap-grid/utils/table.mjs +15 -14
  68. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  69. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  70. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  71. package/es/src/ap-list/index.vue.d.ts +2 -4
  72. package/es/src/ap-list/index.vue.mjs +1 -1
  73. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  74. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  75. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  76. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  77. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  78. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  79. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  80. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  81. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  82. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  83. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  84. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  85. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  86. package/es/src/ap-table/constants.d.ts +23 -23
  87. package/es/src/ap-table/constants.mjs +45 -45
  88. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  89. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  90. package/es/src/ap-table/utils.d.ts +23 -23
  91. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  92. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  93. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  94. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  95. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  96. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  97. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  98. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  99. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  100. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  101. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  102. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
  103. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  104. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  105. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  106. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  107. package/es/src/business/ap-copy/ApCopy.mjs +43 -43
  108. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  109. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  110. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  111. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +5 -5
  112. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  113. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  114. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  115. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  116. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  117. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  118. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  119. package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
  120. package/es/src/business/ap-product-info/ApProductInfo.mjs +23 -24
  121. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  122. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
  123. package/es/src/business/ap-radio-group/index.d.ts +5 -0
  124. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  125. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  126. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  127. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  128. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  129. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  130. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  131. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  132. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  133. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  134. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  135. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  136. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  137. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  138. package/es/src/business/ap-view/ap-view.vue2.mjs +96 -84
  139. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  140. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
  141. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  142. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
  143. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  144. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  145. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  146. package/es/src/business/ap-view/index.d.ts +12 -3
  147. package/es/src/business/ap-view/interface.d.ts +7 -0
  148. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  149. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  150. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  151. package/es/src/business/hooks/usePageListApGrid.mjs +17 -20
  152. package/es/src/check-card/index.vue2.mjs +3 -3
  153. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  154. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  155. package/es/src/editable-table/form-item.vue.mjs +2 -2
  156. package/es/src/editable-table/index.vue.d.ts +2 -4
  157. package/es/src/editable-table/index.vue.mjs +2 -2
  158. package/es/src/full-screen/index.vue.mjs +3 -3
  159. package/es/src/hooks/useFullScreen.mjs +5 -5
  160. package/es/src/mask/index.vue.mjs +10 -10
  161. package/es/src/portal/index.vue.mjs +2 -2
  162. package/es/src/scroll-bar/index.vue.mjs +3 -3
  163. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  164. package/es/src/scroll-view/index.vue.d.ts +5 -5
  165. package/es/src/scroll-view/index.vue.mjs +9 -9
  166. package/es/src/splitter/Panel.vue2.mjs +4 -4
  167. package/es/src/splitter/SplitBar.vue2.mjs +7 -7
  168. package/es/src/splitter/Splitter.vue2.mjs +5 -5
  169. package/es/src/tests/wrapper.d.ts +4 -4
  170. package/es/src/text/group.vue.mjs +2 -2
  171. package/es/src/text/index.vue.mjs +4 -4
  172. package/es/src/version.d.ts +1 -1
  173. package/es/src/version.mjs +1 -1
  174. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  175. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  176. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  177. package/es/test/setup.d.ts +5 -0
  178. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  179. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  180. package/lib/src/ap-field/index.js +1 -1
  181. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  182. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  183. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  184. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  185. package/lib/src/ap-form/interface.d.ts +3 -3
  186. package/lib/src/ap-form/item/index.vue.js +1 -1
  187. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  188. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  189. package/lib/src/ap-form/search-form/index.vue.d.ts +9 -6
  190. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  191. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  192. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  193. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  194. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  195. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  196. package/lib/src/ap-grid/index.vue.js +1 -1
  197. package/lib/src/ap-grid/interface.d.ts +10 -0
  198. package/lib/src/ap-grid/utils/table.js +1 -1
  199. package/lib/src/ap-list/index.vue.d.ts +2 -4
  200. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  201. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  202. package/lib/src/ap-table/constants.d.ts +23 -23
  203. package/lib/src/ap-table/constants.js +1 -1
  204. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  205. package/lib/src/ap-table/utils.d.ts +23 -23
  206. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  207. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  208. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  209. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  210. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  211. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  212. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  213. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  214. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  215. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  216. package/lib/src/business/ap-radio-group/index.d.ts +5 -0
  217. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  218. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  219. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  220. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  221. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  222. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  223. package/lib/src/business/ap-view/index.d.ts +12 -3
  224. package/lib/src/business/ap-view/interface.d.ts +7 -0
  225. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  226. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  227. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  228. package/lib/src/editable-table/index.vue.d.ts +2 -4
  229. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  230. package/lib/src/tests/wrapper.d.ts +4 -4
  231. package/lib/src/version.d.ts +1 -1
  232. package/lib/src/version.js +1 -1
  233. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  234. package/lib/test/setup.d.ts +5 -0
  235. package/package.json +6 -5
  236. package/theme/ap-action/item.css +12 -1
  237. package/theme/ap-action/item.less +13 -1
  238. package/theme/ap-copy/ap-copy.css +2 -0
  239. package/theme/ap-copy/ap-copy.less +2 -0
  240. package/theme/ap-grid/index.css +12 -1
  241. package/theme/ap-radio-group/ap-radio-group.css +2 -1
  242. package/theme/ap-radio-group/ap-radio-group.less +3 -1
  243. package/theme/ap-table/ap-table.css +12 -1
  244. package/theme/ap-table-modal/index.css +12 -1
  245. package/theme/editable-table/index.css +12 -1
  246. package/theme/index.css +25 -3
  247. package/theme/ui-mode.css +9 -1
  248. package/theme/ui-mode.less +17 -1
@@ -1,6 +1,6 @@
1
1
  import { ApFormModalFormProps } from '../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
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { Recordable } from '../../type';
5
5
  import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
@@ -8,7 +8,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
9
9
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
118
117
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
119
118
  readonly initialValues?: Recordable | undefined;
120
119
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
121
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
120
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
122
121
  readonly syncToUrlPriority?: boolean | undefined;
123
122
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
124
123
  $attrs: {
@@ -1248,7 +1247,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1248
1247
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1249
1248
  readonly initialValues?: Recordable | undefined;
1250
1249
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1251
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1250
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1252
1251
  readonly syncToUrlPriority?: boolean | undefined;
1253
1252
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1254
1253
  $attrs: {
@@ -1,4 +1,4 @@
1
- import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, openBlock as g, createElementBlock as W, Fragment as H, withCtx as F, renderSlot as P, createTextVNode as J, toDisplayString as Q, createElementVNode as X, normalizeStyle as Y, normalizeClass as Z, createBlock as w, resolveDynamicComponent as N, createCommentVNode as ee } from "vue";
1
+ import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, createElementBlock as W, openBlock as g, Fragment as H, createBlock as P, createCommentVNode as J, withCtx as F, createElementVNode as Q, normalizeClass as X, normalizeStyle as Y, renderSlot as w, resolveDynamicComponent as N, createTextVNode as Z, toDisplayString as ee } from "vue";
2
2
  import { Button as V, Flex as te, Space as le, Modal as oe } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
@@ -241,7 +241,7 @@ const Me = /* @__PURE__ */ L({
241
241
  "onUpdate:open": $,
242
242
  onCancel: k
243
243
  }), {
244
- title: F(() => [P(e.$slots, "title", {}, () => [J(Q(o.title), 1)])]),
244
+ title: F(() => [w(e.$slots, "title", {}, () => [Z(ee(o.title), 1)])]),
245
245
  default: F(() => [u(de, b({
246
246
  ref_key: "formRef",
247
247
  ref: a
@@ -250,17 +250,17 @@ const Me = /* @__PURE__ */ L({
250
250
  }), {
251
251
  default: F(() => {
252
252
  var l;
253
- return [X("div", {
253
+ return [Q("div", {
254
254
  style: Y((l = e.modalProps) == null ? void 0 : l.bodyStyle),
255
- class: Z(s(h)("content"))
256
- }, [P(e.$slots, "default")], 6), (g(), w(N(O.value)))];
255
+ class: X(s(h)("content"))
256
+ }, [w(e.$slots, "default")], 6), (g(), P(N(O.value)))];
257
257
  }),
258
258
  _: 3
259
259
  }, 16)]),
260
260
  _: 3
261
- }, 16, ["open", "width", "class"]), s(B) ? (g(), w(N(s(B)), {
261
+ }, 16, ["open", "width", "class"]), s(B) ? (g(), P(N(s(B)), {
262
262
  key: 0
263
- })) : ee("", !0)], 64));
263
+ })) : J("", !0)], 64));
264
264
  }
265
265
  });
266
266
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, useSlots as c, openBlock as B, createBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
1
+ import { defineComponent as m, useSlots as c, createBlock as B, openBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
2
2
  import { omit as g } from "lodash-unified";
3
3
  import { ApForm as p } from "../index.mjs";
4
4
  const S = /* @__PURE__ */ m({
@@ -48,7 +48,7 @@ const S = /* @__PURE__ */ m({
48
48
  },
49
49
  setup(d) {
50
50
  const i = d, u = c();
51
- return (a, h) => (B(), v(e(p).FormItem, o(l(i)), y({
51
+ return (a, h) => (v(), B(e(p).FormItem, o(l(i)), y({
52
52
  default: t(() => [
53
53
  x(e(p).ControlRender, null, {
54
54
  default: t((r) => [
@@ -1,5 +1,5 @@
1
- import { defineComponent as C, ref as d, openBlock as i, createBlock as c, unref as e, withCtx as o, createElementVNode as g, normalizeClass as s, createVNode as t, createElementBlock as F, Fragment as _, renderList as B, resolveDynamicComponent as x, createTextVNode as v, toDisplayString as y } from "vue";
2
- import { Popover as h, Row as L, Col as N, Divider as S, Flex as w, Button as u, Tooltip as D } from "@aplus-frontend/antdv";
1
+ import { defineComponent as C, ref as d, createBlock as c, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as s, createElementVNode as g, createElementBlock as F, Fragment as _, renderList as B, resolveDynamicComponent as x, createTextVNode as v, toDisplayString as y } from "vue";
2
+ import { Popover as h, Tooltip as L, Button as u, Row as N, Col as S, Divider as w, Flex as D } from "@aplus-frontend/antdv";
3
3
  import { IconApFilterOutlined as P } from "@aplus-frontend/icon";
4
4
  import "../../../config-provider/index.mjs";
5
5
  import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
@@ -32,9 +32,9 @@ const U = /* @__PURE__ */ C({
32
32
  class: s([e(a)("popover-content")]),
33
33
  style: { paddingBottom: "4px", width: "825px" }
34
34
  }, [
35
- t(e(L), { gutter: 8 }, {
35
+ t(e(N), { gutter: 8 }, {
36
36
  default: o(() => [
37
- (i(!0), F(_, null, B(r.config, (n) => (i(), c(e(N), {
37
+ (i(!0), F(_, null, B(r.config, (n) => (i(), c(e(S), {
38
38
  key: n.key,
39
39
  span: 8
40
40
  }, {
@@ -47,11 +47,11 @@ const U = /* @__PURE__ */ C({
47
47
  _: 1
48
48
  })
49
49
  ], 2),
50
- t(e(S), { style: { margin: "0" } }),
50
+ t(e(w), { style: { margin: "0" } }),
51
51
  g("div", {
52
52
  class: s(e(a)("popover-footer"))
53
53
  }, [
54
- t(e(w), { justify: "end" }, {
54
+ t(e(D), { justify: "end" }, {
55
55
  default: o(() => [
56
56
  t(e(u), {
57
57
  onClick: p[0] || (p[0] = (n) => l.value = !1)
@@ -78,7 +78,7 @@ const U = /* @__PURE__ */ C({
78
78
  ], 2)
79
79
  ]),
80
80
  default: o(() => [
81
- t(e(D), {
81
+ t(e(L), {
82
82
  title: e(m)("ap.apForm.search.moreFilter"),
83
83
  placement: "top"
84
84
  }, {
@@ -1,5 +1,5 @@
1
- import { defineComponent as S, ref as C, watch as k, unref as e, openBlock as D, createBlock as P, withCtx as a, createElementVNode as s, normalizeClass as o, toDisplayString as m, createVNode as r, createTextVNode as b } from "vue";
2
- import { Popover as V, Flex as _, Divider as j, Button as h, Tooltip as z } from "@aplus-frontend/antdv";
1
+ import { defineComponent as S, ref as C, watch as k, unref as e, createBlock as D, openBlock as P, withCtx as a, createVNode as o, normalizeClass as r, createElementVNode as s, toDisplayString as m, createTextVNode as b } from "vue";
2
+ import { Popover as V, Tooltip as j, Button as h, Flex as _, Divider as z } from "@aplus-frontend/antdv";
3
3
  import { IconApLayoutOutlined as A } from "@aplus-frontend/icon";
4
4
  import "../../../../config-provider/index.mjs";
5
5
  import I from "vuedraggable";
@@ -43,7 +43,7 @@ const W = /* @__PURE__ */ S({
43
43
  (t) => {
44
44
  t && (c.value = [...v]);
45
45
  }
46
- ), (t, u) => (D(), P(e(V), {
46
+ ), (t, u) => (P(), D(e(V), {
47
47
  open: p.value,
48
48
  "onUpdate:open": u[1] || (u[1] = (d) => p.value = d),
49
49
  "overlay-class-name": e(f)("popover"),
@@ -55,22 +55,22 @@ const W = /* @__PURE__ */ S({
55
55
  }, {
56
56
  content: a(() => [
57
57
  s("div", {
58
- class: o(e(n)("header"))
58
+ class: r(e(n)("header"))
59
59
  }, [
60
60
  s("span", {
61
- class: o(e(n)("header-title"))
61
+ class: r(e(n)("header-title"))
62
62
  }, m(e(i)("ap.apForm.search.sorterTitle")), 3),
63
- r(e(_), { justify: "space-between" }, {
63
+ o(e(_), { justify: "space-between" }, {
64
64
  default: a(() => [
65
65
  s("span", {
66
- class: o(e(n)("header-desc"))
66
+ class: r(e(n)("header-desc"))
67
67
  }, m(e(i)("ap.apForm.search.sorterDesc")), 3),
68
68
  s("div", {
69
- class: o(e(n)("header-action-wrapper")),
69
+ class: r(e(n)("header-action-wrapper")),
70
70
  onClick: N
71
71
  }, [
72
72
  s("span", {
73
- class: o(e(n)("header-reset-btn"))
73
+ class: r(e(n)("header-reset-btn"))
74
74
  }, m(e(i)("ap.apForm.search.sorterReset")), 3)
75
75
  ], 2)
76
76
  ]),
@@ -78,26 +78,26 @@ const W = /* @__PURE__ */ S({
78
78
  })
79
79
  ], 2),
80
80
  s("div", {
81
- class: o([e(f)("popover-content"), e(n)("content")])
81
+ class: r([e(f)("popover-content"), e(n)("content")])
82
82
  }, [
83
- r(e(I), {
83
+ o(e(I), {
84
84
  list: c.value,
85
- class: o(e(n)("sorter-wrapper")),
85
+ class: r(e(n)("sorter-wrapper")),
86
86
  "item-key": T
87
87
  }, {
88
88
  item: a(({ element: d }) => [
89
- r($, { item: d }, null, 8, ["item"])
89
+ o($, { item: d }, null, 8, ["item"])
90
90
  ]),
91
91
  _: 1
92
92
  }, 8, ["list", "class"])
93
93
  ], 2),
94
- r(e(j), { style: { margin: "0" } }),
94
+ o(e(z), { style: { margin: "0" } }),
95
95
  s("div", {
96
- class: o(e(f)("popover-footer"))
96
+ class: r(e(f)("popover-footer"))
97
97
  }, [
98
- r(e(_), { justify: "end" }, {
98
+ o(e(_), { justify: "end" }, {
99
99
  default: a(() => [
100
- r(e(h), {
100
+ o(e(h), {
101
101
  onClick: u[0] || (u[0] = (d) => p.value = !1)
102
102
  }, {
103
103
  default: a(() => [
@@ -105,8 +105,8 @@ const W = /* @__PURE__ */ S({
105
105
  ]),
106
106
  _: 1
107
107
  }),
108
- r(e(h), {
109
- class: o(e(f)("popover-footer-confirm-btn")),
108
+ o(e(h), {
109
+ class: r(e(f)("popover-footer-confirm-btn")),
110
110
  type: "primary",
111
111
  onClick: B
112
112
  }, {
@@ -121,16 +121,16 @@ const W = /* @__PURE__ */ S({
121
121
  ], 2)
122
122
  ]),
123
123
  default: a(() => [
124
- r(e(z), {
124
+ o(e(j), {
125
125
  title: e(i)("ap.apForm.search.sorterTitle"),
126
126
  placement: "top"
127
127
  }, {
128
128
  default: a(() => [
129
- r(e(h), {
130
- class: o([e(y)("trigger-btn"), { [e(y)("trigger-btn-active")]: p.value }])
129
+ o(e(h), {
130
+ class: r([e(y)("trigger-btn"), { [e(y)("trigger-btn-active")]: p.value }])
131
131
  }, {
132
132
  icon: a(() => [
133
- r(e(A), { size: 14 })
133
+ o(e(A), { size: 14 })
134
134
  ]),
135
135
  _: 1
136
136
  }, 8, ["class"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, computed as n, openBlock as a, createElementBlock as d, normalizeClass as r, unref as t, createElementVNode as l, createVNode as u, toDisplayString as f } from "vue";
1
+ import { defineComponent as c, computed as n, createElementBlock as a, openBlock as d, normalizeClass as r, unref as t, createElementVNode as l, createVNode as u, toDisplayString as f } from "vue";
2
2
  import { HolderOutlined as h } from "@ant-design/icons-vue";
3
3
  import "../../../../config-provider/index.mjs";
4
4
  import { isBoolean as _ } from "lodash-unified";
@@ -18,7 +18,7 @@ const x = ["title"], C = /* @__PURE__ */ c({
18
18
  const e = s.item.props;
19
19
  return _(e.hidden) ? !!e.hidden : v(e.hidden);
20
20
  }), { b: o } = b("search-form-sorter");
21
- return (e, B) => (a(), d("div", {
21
+ return (e, B) => (d(), a("div", {
22
22
  class: r([t(o)("sorter-item"), { [t(o)("sorter-item--hidden")]: p.value }])
23
23
  }, [
24
24
  l("div", null, [
@@ -2,13 +2,12 @@ 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
4
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
5
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
6
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
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';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
116
115
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
117
116
  readonly initialValues?: Recordable | undefined;
118
117
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
119
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
118
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
120
119
  readonly syncToUrlPriority?: boolean | undefined;
121
120
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
122
121
  $attrs: {
@@ -384,7 +383,9 @@ declare function __VLS_template(): {
384
383
  default: string | number | ColSize;
385
384
  };
386
385
  xxl: {
387
- type: PropType<string | number | ColSize>;
386
+ type: PropType<string | number | **
387
+ * extra区域展开占据的span数(占据剩余所有空间)
388
+ */).ColSize>;
388
389
  default: string | number | ColSize;
389
390
  };
390
391
  prefixCls: StringConstructor;
@@ -951,7 +952,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
951
952
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
952
953
  readonly initialValues?: Recordable | undefined;
953
954
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
954
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
955
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
955
956
  readonly syncToUrlPriority?: boolean | undefined;
956
957
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
957
958
  $attrs: {
@@ -1219,7 +1220,9 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1219
1220
  default: string | number | ColSize;
1220
1221
  };
1221
1222
  xxl: {
1222
- type: PropType<string | number | ColSize>;
1223
+ type: PropType<string | number | **
1224
+ * extra区域展开占据的span数(占据剩余所有空间)
1225
+ */).ColSize>;
1223
1226
  default: string | number | ColSize;
1224
1227
  };
1225
1228
  prefixCls: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w, openBlock as d, createBlock as x, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
1
+ import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
2
2
  import { Col as R, Flex as N, Button as M, Row as ie } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, openBlock as m, createElementBlock as _, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
1
+ import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as m, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
2
2
  import { useInjectForm as v } from "../context.mjs";
3
3
  import { isFunction as w, cloneDeep as x } from "lodash-unified";
4
4
  import { isPromise as B } from "@fruits-chain/utils";
@@ -1,15 +1,13 @@
1
1
  import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
2
2
  import { Recordable } from '../../type';
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,4 +1,4 @@
1
- import { defineComponent as A, useSlots as H, toRef as W, ref as h, unref as r, watch as G, nextTick as U, openBlock as $, createBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
1
+ import { defineComponent as P, useSlots as A, toRef as W, ref as h, unref as r, watch as G, nextTick as U, createBlock as $, openBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
2
2
  import { ApForm as C } from "../../ap-form/index.mjs";
3
3
  import { isArray as w, isUndefined as M, isNumber as m, cloneDeep as ee, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -7,9 +7,9 @@ import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
7
7
  import "../index.vue2.mjs";
8
8
  import { useInjectForm as ae } from "../../ap-form/context.mjs";
9
9
  import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as fe } from "../../config-provider/hooks/use-global-config.mjs";
11
- import ne from "../index.vue.mjs";
12
- const Ce = /* @__PURE__ */ A({
10
+ import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import fe from "../index.vue.mjs";
12
+ const Ce = /* @__PURE__ */ P({
13
13
  name: "EditableGrid",
14
14
  __name: "form-item",
15
15
  props: {
@@ -145,6 +145,9 @@ const Ce = /* @__PURE__ */ A({
145
145
  },
146
146
  expandable: {},
147
147
  value: {},
148
+ rowHighlightable: {
149
+ type: [Boolean, Function]
150
+ },
148
151
  columns: {},
149
152
  defaultValue: {},
150
153
  "onUpdate:value": {},
@@ -160,11 +163,11 @@ const Ce = /* @__PURE__ */ A({
160
163
  setup(x, {
161
164
  expose: R
162
165
  }) {
163
- const B = H(), l = x, {
166
+ const B = A(), l = x, {
164
167
  b: S
165
168
  } = le("editable-grid");
166
169
  function F(e, t) {
167
- return w(t) ? t.reduce((f, a) => f == null ? void 0 : f[a], e) : e == null ? void 0 : e[t];
170
+ return w(t) ? t.reduce((n, a) => n == null ? void 0 : n[a], e) : e == null ? void 0 : e[t];
168
171
  }
169
172
  const {
170
173
  internalInstance: o,
@@ -176,11 +179,11 @@ const Ce = /* @__PURE__ */ A({
176
179
  }, {
177
180
  deep: !0
178
181
  });
179
- const c = h(), D = fe("valueTypeMap"), V = te(l, D);
182
+ const c = h(), D = ne("valueTypeMap"), V = te(l, D);
180
183
  function L(e, t) {
181
- var n;
182
- const f = ((n = r(d)) == null ? void 0 : n.length) || 0;
183
- if (b(l.maxLength) && f >= l.maxLength)
184
+ var f;
185
+ const n = ((f = r(d)) == null ? void 0 : f.length) || 0;
186
+ if (b(l.maxLength) && n >= l.maxLength)
184
187
  return;
185
188
  const a = {
186
189
  ...e || {}
@@ -195,29 +198,29 @@ const Ce = /* @__PURE__ */ A({
195
198
  }
196
199
  function T(e, t = "suffix") {
197
200
  var s;
198
- const f = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
199
- if (b(l.maxLength) && f + a > l.maxLength)
201
+ const n = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
202
+ if (b(l.maxLength) && n + a > l.maxLength)
200
203
  return;
201
- const n = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
202
- o == null || o.setFieldValue(l.name, n, !0, (u, i) => {
204
+ const f = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
205
+ o == null || o.setFieldValue(l.name, f, !0, (u, i) => {
203
206
  if (!u[i]) {
204
- u[i] = [...n];
207
+ u[i] = [...f];
205
208
  return;
206
209
  }
207
- t === "suffix" ? u[i].push(...n) : u[i].unshift(...n);
210
+ t === "suffix" ? u[i].push(...f) : u[i].unshift(...f);
208
211
  });
209
212
  }
210
213
  function k(e) {
211
214
  const t = new Set(m(e) ? [e] : e);
212
- o == null || o.setFieldValue(l.name, void 0, !0, (f, a) => {
213
- f[a] = f[a].filter((n, s) => !t.has(s));
215
+ o == null || o.setFieldValue(l.name, void 0, !0, (n, a) => {
216
+ n[a] = n[a].filter((f, s) => !t.has(s));
214
217
  });
215
218
  }
216
219
  function _(e) {
217
- var f;
220
+ var n;
218
221
  const t = new Set(w(e) ? e : [e]);
219
- t.size !== 0 && ((f = o == null ? void 0 : o.setFieldValue) == null || f.call(o, l.name, void 0, !0, (a, n) => {
220
- a[n] = a[n].filter((s) => !t.has(s[l.rowKey]));
222
+ t.size !== 0 && ((n = o == null ? void 0 : o.setFieldValue) == null || n.call(o, l.name, void 0, !0, (a, f) => {
223
+ a[f] = a[f].filter((s) => !t.has(s[l.rowKey]));
221
224
  }));
222
225
  }
223
226
  function j() {
@@ -227,15 +230,15 @@ const Ce = /* @__PURE__ */ A({
227
230
  var t;
228
231
  return (t = r(d)) == null ? void 0 : t[e];
229
232
  }
230
- function O(e, t, f = !0) {
231
- o == null || o.setFieldValue(l.name, void 0, !0, (a, n) => {
232
- if (!(!a[n] || !a[n][e])) {
233
- if (!f) {
234
- const s = Object.keys(a[n][e]);
233
+ function O(e, t, n = !0) {
234
+ o == null || o.setFieldValue(l.name, void 0, !0, (a, f) => {
235
+ if (!(!a[f] || !a[f][e])) {
236
+ if (!n) {
237
+ const s = Object.keys(a[f][e]);
235
238
  for (const u of s)
236
- u !== l.rowKey && delete a[n][e][u];
239
+ u !== l.rowKey && delete a[f][e][u];
237
240
  }
238
- Object.assign(a[n][e], {
241
+ Object.assign(a[f][e], {
239
242
  ...t
240
243
  });
241
244
  }
@@ -245,11 +248,11 @@ const Ce = /* @__PURE__ */ A({
245
248
  o == null || o.setFieldValue(l.name, e);
246
249
  }
247
250
  function K(e) {
248
- var f;
251
+ var n;
249
252
  const t = e === "end" ? d.value.length - 1 : e;
250
- (f = c.value) == null || f.scrollToRow(t);
253
+ (n = c.value) == null || n.scrollToRow(t);
251
254
  }
252
- function P() {
255
+ function H() {
253
256
  var e;
254
257
  (e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
255
258
  }
@@ -262,13 +265,13 @@ const Ce = /* @__PURE__ */ A({
262
265
  addMultiple: T,
263
266
  scrollTo: K,
264
267
  setTableData: z,
265
- clear: P,
268
+ clear: H,
266
269
  removeByKey: _
267
- }), (e, t) => ($(), q(r(C).FormItem, y(e.formItem, {
270
+ }), (e, t) => (q(), $(r(C).FormItem, y(e.formItem, {
268
271
  name: e.name,
269
272
  label: e.label
270
273
  }), {
271
- default: g(() => [J(ne, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
274
+ default: g(() => [J(fe, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
272
275
  ref_key: "tableRef",
273
276
  ref: c,
274
277
  class: r(S)(),
@@ -277,9 +280,9 @@ const Ce = /* @__PURE__ */ A({
277
280
  "search-form": !1
278
281
  }), Q({
279
282
  _: 2
280
- }, [X(B, (f, a) => ({
283
+ }, [X(B, (n, a) => ({
281
284
  name: a,
282
- fn: g((n) => [Y(e.$slots, a, Z(I(n || {})))])
285
+ fn: g((f) => [Y(e.$slots, a, Z(I(f || {})))])
283
286
  }))]), 1040, ["class", "columns", "data-source"])]),
284
287
  _: 3
285
288
  }, 16, ["name", "label"]));
@@ -1,6 +1,6 @@
1
1
  import { EditableGridExpose, EditableGridProps } from './interface';
2
2
  import { Recordable } from '../../type';
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,4 +1,4 @@
1
- import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, openBlock as J, createBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
1
+ import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, createBlock as J, openBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
2
  import { ApForm as y } from "../../ap-form/index.mjs";
3
3
  import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -146,6 +146,9 @@ const Re = /* @__PURE__ */ $({
146
146
  },
147
147
  expandable: {},
148
148
  value: {},
149
+ rowHighlightable: {
150
+ type: [Boolean, Function]
151
+ },
149
152
  columns: {},
150
153
  defaultValue: {},
151
154
  "onUpdate:value": {},
@@ -158,12 +161,12 @@ const Re = /* @__PURE__ */ $({
158
161
  },
159
162
  emits: ["update:value"],
160
163
  setup(B, {
161
- expose: S,
162
- emit: F
164
+ expose: F,
165
+ emit: S
163
166
  }) {
164
167
  const N = q(), o = B, {
165
168
  b: V
166
- } = re("editable-grid"), _ = F, w = v(), {
169
+ } = re("editable-grid"), _ = S, w = v(), {
167
170
  value: m,
168
171
  updateValue: L
169
172
  } = ue(o, _), i = v(), k = ie("valueTypeMap"), c = y.useWatch(o.name, i);
@@ -236,14 +239,14 @@ const Re = /* @__PURE__ */ $({
236
239
  s[n] = s[n].filter((r) => !t.has(r[o.rowKey]));
237
240
  }));
238
241
  }
239
- function I() {
242
+ function H() {
240
243
  return u(m);
241
244
  }
242
- function P(e) {
245
+ function I(e) {
243
246
  var t;
244
247
  (t = i.value) == null || t.setFieldValue(o.name, e);
245
248
  }
246
- function H(e) {
249
+ function P(e) {
247
250
  var t;
248
251
  return (t = u(m)) == null ? void 0 : t[e];
249
252
  }
@@ -271,20 +274,20 @@ const Re = /* @__PURE__ */ $({
271
274
  var e, t;
272
275
  (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
273
276
  }
274
- return S({
277
+ return F({
275
278
  resetFields: E,
276
279
  validateFields: j,
277
280
  add: O,
278
281
  remove: A,
279
- getRowData: H,
280
- getRowsData: I,
282
+ getRowData: P,
283
+ getRowsData: H,
281
284
  setRowData: W,
282
285
  addMultiple: z,
283
286
  scrollTo: G,
284
287
  clear: U,
285
- setTableData: P,
288
+ setTableData: I,
286
289
  removeByKey: K
287
- }), (e, t) => (J(), Q(u(y), {
290
+ }), (e, t) => (Q(), J(u(y), {
288
291
  ref_key: "formRef",
289
292
  ref: i,
290
293
  "initial-values": {