@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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../ap-table/style/index.js"),l=require("../../style/index.js"),r=require("../../utils/cssinjs/index.js"),a={agGridSearchFormWrapperMarginBlockEnd:10,agGridCellPaddingBlockMedium:9,agGridCellPaddingBlockMini:6,agGridLineClamp:2,agGridEllipsisTooltipMaxWidth:300,agGridEllipsisTooltipPadding:"6px 8px"},d=e=>{const{componentCls:i}=e;return{[i]:{...l.resetScrollbar(e),"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",[`${i}-grid-wrapper`]:{minHeight:0,flex:1,position:"relative"}},"&-auto-height":{".ag-center-cols-viewport":{minHeight:"unset !important"}},"&-wrapper":{padding:e.space,paddingBlockEnd:e.spaceLG,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBottom:0}},[`${i}__search-wrapper`]:{padding:e.space,paddingBlockEnd:0,backgroundColor:"#fff",borderRadius:e.borderRadius,marginBlockEnd:e.agGridSearchFormWrapperMarginBlockEnd},[`${i}__table-wrapper`]:{flex:1,minHeight:0,maxHeight:"100%",width:"100%",display:"flex",flexDirection:"column"},[`${i}__table-wrapper-card`]:{padding:e.space,paddingBlockEnd:e.spaceLG,borderRadius:e.borderRadius,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBlockEnd:0}},[`${i}-pagination`]:{marginBlock:e.space,display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:e.space,".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:e.lineHeight,display:"flex",alignItems:"center"}},[`${i}__table-loading-wrapper`]:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"hsla(0,0%,100%,.5)"},[`${i}-table-header`]:{"&__title":{...l.multiRows(e),fontWeight:700,"&--single":{flex:"unset"}}},...t.genSettingTriggerBtnStyle(e),[`${i}__cell--left`]:{textAlign:"left"},[`${i}__cell--center`]:{textAlign:"center"},[`${i}__cell--right`]:{textAlign:"right"},[`${i}__cell--multiline`]:{".ag-cell-value":{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e.agGridLineClamp,wordBreak:"break-all"}},"&-size-mini":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMini,width:"100%",display:"flex",alignItems:"center","& > div":{width:"100%"}}},"&-size-medium":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMedium,display:"flex",alignItems:"center","& > div":{width:"100%"}}},[`${i}__tooltip`]:{fontSize:e.fontSize,maxWidth:e.agGridEllipsisTooltipMaxWidth,wordBreak:"break-all",backgroundColor:"#fff",padding:e.agGridEllipsisTooltipPadding,borderRadius:e.borderRadius,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)"},".ag-unselectable":{userSelect:"text",WebkitUserSelect:"text"},".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]":{cursor:"not-allowed"}}}},n=r.genComponentStyleHook("AgGrid",e=>[d(e)],a,{skipUnit:["agGridLineClamp"]});exports.default=n;exports.defaultToken=a;exports.genAgGridStyle=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../../ap-table/style/index.js"),a=require("../../style/index.js"),r=require("../../utils/cssinjs/index.js"),l={agGridSearchFormWrapperMarginBlockEnd:10,agGridCellPaddingBlockMedium:9,agGridCellPaddingBlockMini:6,agGridLineClamp:2,agGridEllipsisTooltipMaxWidth:300,agGridEllipsisTooltipPadding:"6px 8px"},t=e=>{const{componentCls:i}=e;return{[i]:{...a.resetScrollbar(e),"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",[`${i}-grid-wrapper`]:{minHeight:0,flex:1,position:"relative"}},"&-auto-height":{".ag-center-cols-viewport":{minHeight:"unset !important"}},"&-wrapper":{padding:e.space,paddingBlockEnd:e.spaceLG,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBottom:0}},[`${i}__search-wrapper`]:{padding:e.space,paddingBlockEnd:0,backgroundColor:"#fff",borderRadius:e.borderRadius,marginBlockEnd:e.agGridSearchFormWrapperMarginBlockEnd},[`${i}__table-wrapper`]:{flex:1,minHeight:0,maxHeight:"100%",width:"100%",display:"flex",flexDirection:"column"},[`${i}__table-wrapper-card`]:{padding:e.space,paddingBlockEnd:e.spaceLG,borderRadius:e.borderRadius,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBlockEnd:0}},[`${i}-pagination`]:{marginBlock:e.space,display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:e.space,".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:e.lineHeight,display:"flex",alignItems:"center"}},[`${i}__table-loading-wrapper`]:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"hsla(0,0%,100%,.5)"},[`${i}-table-header`]:{"&__title":{...a.multiRows(e),fontWeight:700,"&--single":{flex:"unset"}}},...d.genSettingTriggerBtnStyle(e),[`${i}__cell--left`]:{textAlign:"left"},[`${i}__cell--center`]:{textAlign:"center"},[`${i}__cell--right`]:{textAlign:"right"},[`${i}__cell--multiline`]:{".ag-cell-value":{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e.agGridLineClamp,wordBreak:"break-all"}},"&-size-mini":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMini,width:"100%",display:"flex",alignItems:"center","& > div":{width:"100%"}}},"&-size-medium":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMedium,display:"flex",alignItems:"center","& > div":{width:"100%"}}},[`${i}__tooltip`]:{fontSize:e.fontSize,maxWidth:e.agGridEllipsisTooltipMaxWidth,wordBreak:"break-all",backgroundColor:"#fff",padding:e.agGridEllipsisTooltipPadding,borderRadius:e.borderRadius,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)"},".ag-unselectable":{userSelect:"text",WebkitUserSelect:"text"},".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]":{cursor:"not-allowed"},".ag-overlay":{pointerEvents:"auto"}}}},n=r.genComponentStyleHook("AgGrid",e=>[t(e)],l,{skipUnit:["agGridLineClamp"]});exports.default=n;exports.defaultToken=l;exports.genAgGridStyle=t;
@@ -1,11 +1,22 @@
1
1
  import { DrawerProps } from '@aplus-frontend/antdv';
2
- import { AppContext } from 'vue';
2
+ import { AppContext, VNodeChild } from 'vue';
3
3
  export type CreateDrawerFuncProps<ContentRecord = any> = Omit<DrawerProps, 'visible' | 'onUpdate:visible' | 'afterVisibleChange' | 'onAfterVisibleOChange' | 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onClose' | 'getContainer' | 'extra' | 'footer'> & Partial<{
4
4
  onClose: (params: ContentRecord) => any | Promise<any>;
5
5
  getContainer: HTMLElement;
6
6
  content: any;
7
7
  destroyOnClose: boolean;
8
- extra: (params: ContentRecord, close: () => void) => any;
8
+ extra: (params: ContentRecord, close: () => void, node: {
9
+ /**
10
+ * 原始的操作区域内容
11
+ */
12
+ originNode: VNodeChild;
13
+ /**
14
+ * 操作区域按钮
15
+ */
16
+ extra: {
17
+ cancelBtn: VNodeChild;
18
+ };
19
+ }) => any;
9
20
  footer: (params: ContentRecord, close: () => void) => any;
10
21
  /**
11
22
  * 抽屉的上下文,一般用于获取全局注册组件、vuex 等内容
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),v=require("@aplus-frontend/antdv"),x=require("lodash-unified"),b=require("../../ap-modal/utils/util.js"),u=require("../../config-provider/config-provider.js");require("../components/ApDrawerClose.vue.js");const q=require("../components/ApDrawerClose.vue2.js"),w=r=>{let t,s;const{destroyOnClose:i=!0}=r;function p(){t&&t(!1),setTimeout(()=>{o.render(null,n),n.parentElement?.removeChild(n)},500)}function h(){t&&t(!0)}function a(){t&&t(!1)}function C(e){s&&s(e)}const f=o.defineComponent({data(){return{open:i,props:r}},created(){t=e=>{this.open=e},s=e=>{this.props={...this.props,...e}}},methods:{async handleClose(){if(this.props?.onClose){const e=this.props?.content?.component?.exposed??void 0;await this.props?.onClose(e)}i?p():a()}},render(){const e=x.omit(this.props,["onClose","extra","footer","visible","onUpdate:visible","afterVisibleChange","onAfterVisibleOChange","open","onUpdate:open","getContainer"]),d=this.props?.content?.component?.exposed??void 0,c=()=>i?p():a();return o.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[o.createVNode(v.Drawer,o.mergeProps({open:this.open,onClose:this.handleClose,closeIcon:this.props?.closeIcon??null,extra:this.props?.extra?this.props?.extra?.(d,c):o.createVNode(q.default,{onClose:this.handleClose},null),footer:this.props?.footer?.(d,c)},e),{default:()=>[this.props?.content]})]})}}),g=r.getContainer||document.body,n=document.createElement("div");g.appendChild(n);const l=o.h(f),m=b.getModalGlobalAppContext();return l.appContext=r.appContext||m||l.appContext,o.render(l,n),{destroy:p,update:C,open:h,close:a}};exports.createDrawer=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("@aplus-frontend/antdv"),q=require("lodash-unified"),w=require("../../ap-modal/utils/util.js"),h=require("../../config-provider/config-provider.js");require("../components/ApDrawerClose.vue.js");const y=require("../components/ApDrawerClose.vue2.js"),P=r=>{let t,s;const{destroyOnClose:i=!0}=r;function a(){t&&t(!1),setTimeout(()=>{e.render(null,n),n.parentElement?.removeChild(n)},500)}function C(){t&&t(!0)}function p(){t&&t(!1)}function f(o){s&&s(o)}const g=e.defineComponent({data(){return{open:i,props:r}},created(){t=o=>{this.open=o},s=o=>{this.props={...this.props,...o}}},methods:{async handleClose(){if(this.props?.onClose){const o=this.props?.content?.component?.exposed??void 0;await this.props?.onClose(o)}i?a():p()}},render(){const o=q.omit(this.props,["onClose","extra","footer","visible","onUpdate:visible","afterVisibleChange","onAfterVisibleOChange","open","onUpdate:open","getContainer"]),d=this.props?.content?.component?.exposed??void 0,u=()=>i?a():p(),c=e.createVNode(y.default,{onClose:this.handleClose},null),v=e.createVNode(e.Fragment,null,[c]);return e.createVNode(h.ConfigProvider,h.globalConfigCached.value,{default:()=>[e.createVNode(b.Drawer,e.mergeProps({open:this.open,onClose:this.handleClose,closeIcon:this.props?.closeIcon??null,extra:this.props?.extra?this.props?.extra?.(d,u,{originNode:v,extra:{cancelBtn:c}}):c,footer:this.props?.footer?.(d,u)},o),{default:()=>[this.props?.content]})]})}}),m=r.getContainer||document.body,n=document.createElement("div");m.appendChild(n);const l=e.h(g),x=w.getModalGlobalAppContext();return l.appContext=r.appContext||x||l.appContext,e.render(l,n),{destroy:a,update:f,open:C,close:p}};exports.createDrawer=P;
@@ -14,13 +14,12 @@ type ApFieldSelectSlots = {
14
14
  itemIcon: any;
15
15
  removeIcon: any;
16
16
  clearIcon: any;
17
- dropdownRender: any;
18
- option: any;
19
17
  placeholder: any;
20
18
  tagRender: any;
21
19
  maxTagPlaceholder: any;
22
20
  optionLabel: any;
23
21
  default: any;
22
+ dropdownRender: any;
24
23
  };
25
24
  declare function __VLS_template(): {
26
25
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@aplus-frontend/antdv"),u=require("lodash-unified");require("../../hooks/index.js");const T=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),P=require("../../hooks/useControllableValue.js"),k={key:0},M=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean,default:void 0},prefix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean,default:void 0},onDeselect:{},onActive:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean,default:void 0},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(g,{expose:C,emit:B}){let r=0;const t=g,_=u.debounce(o=>{if(!u.isFunction(t.request))return;r+=1;const l=r;c([]),a.value=!0,t.request(o).then(n=>{r===l&&(c(n),a.value=!1)})},t.searchDelay),w=(o,l)=>{const n=t.fieldNames?.label||"label";return typeof l?.[n]=="string"&&l[n].toLowerCase().indexOf(o.toLowerCase())>-1},{options:i,updateOptions:c}=d.useSelectOptions(t),m=e.shallowRef(),a=e.ref(t?.loading||!1),L=B,b=e.computed(()=>{if(t.multiple)return t.tokenSeparators?"tags":"multiple"});async function f(o=!0){if(!u.isFunction(t.request))return;a.value=!0,r+=1;const l=r;try{o&&c([]);const n=await t.request(void 0,t.params);if(l!==r)return;c(n)}finally{a.value=!1}}function F(o){t.onFocus?.(o),t.refetchOnFocus&&r>0&&!a.value&&f(!0)}e.onMounted(()=>{t.lazy||f()}),e.watch(()=>t.params,()=>{f()},{deep:!0});const{value:p,updateValue:v}=P.useControllableValue(t,L),A=T.useDefaultPlaceholder("Select",t),O=e.computed(()=>{const o=e.unref(p);if(!o)return t.emptyText;const l=t.fieldNames?.label||"label",n=t.fieldNames?.value||"value";return u.isArray(o)?o.map(s=>e.unref(i).find(I=>I[n]===s)?.[l]).filter(Boolean).join("、")||t.emptyText:e.unref(i).find(s=>s[n]===o)?.[l]||t.emptyText}),V=e.computed(()=>{const o=!!t?.showSearch,l=t.searchMode;let n={};return o&&(n=l==="request"?{defaultActiveFirstOption:!1,onSearch:_,notFoundContent:a.value?void 0:null,filterOption:!1,suffixIcon:null}:{filterOption:u.isNil(t?.filterOption)?w:t?.filterOption}),{...u.omit(t,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:e.unref(A),...n}}),y=e.computed(()=>i.value.map(o=>o[t.fieldNames?.value||"value"]).filter(o=>o!==d.SELECT_ALL_VALUE_KEY)),x=e.computed(()=>{if(!t.multiple||!t.addAll)return e.unref(p);if(i.value.some(o=>o[t.fieldNames?.value||"value"]===d.SELECT_ALL_VALUE_KEY)){const o=e.unref(y),l=e.unref(p)||[];if(o.length&&o.every(n=>l?.includes(n)))return[d.SELECT_ALL_VALUE_KEY]}return e.unref(p)});function E(o){return t.multiple&&o.includes(d.SELECT_ALL_VALUE_KEY)?v(e.unref(y)):v(o)}function N(){m.value?.focus()}function q(){m.value?.blur()}return C({focus:N,blur:q,request:f}),(o,l)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(O.value),1)):(e.openBlock(),e.createBlock(e.unref(S.Select),e.mergeProps({key:1,ref_key:"selectRef",ref:m,"allow-clear":""},V.value,{mode:b.value,value:x.value,options:e.unref(i),loading:a.value,"onUpdate:value":E,onFocus:F}),e.createSlots({_:2},[e.renderList(o.$slots,(n,h)=>({name:h,fn:e.withCtx(s=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(s||{})))])})),a.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(S.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv"),u=require("lodash-unified");require("../../config-provider/index.js");require("../../hooks/index.js");const z=require("../hooks/use-default-placeholder.js"),K=require("../style/index.js"),c=require("./use-select-options.js"),R=require("../../config-provider/hooks/use-namespace.js"),Y=require("../../config-provider/hooks/use-locale.js"),$=require("../../hooks/useControllableValue.js"),j={key:0},H=["onClick"],W=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean,default:void 0},prefix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean,default:void 0},onDeselect:{},onActive:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean,default:void 0},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(b,{expose:B,emit:L}){let r=0;const o=b,{b:d}=R.useNamespace("field-select"),_=K.default("field"),C=e.ref(!1),{t:F}=Y.useLocale(),N=u.debounce(t=>{if(!u.isFunction(o.request))return;r+=1;const n=r;p([]),a.value=!0,o.request(t).then(l=>{r===n&&(p(l),a.value=!1)})},o.searchDelay),V=(t,n)=>{const l=o.fieldNames?.label||"label";return typeof n?.[l]=="string"&&n[l].toLowerCase().indexOf(t.toLowerCase())>-1},{options:s,updateOptions:p}=c.useSelectOptions(o),h=e.shallowRef(),a=e.ref(o?.loading||!1),O=L,q=e.computed(()=>{if(o.multiple)return o.tokenSeparators?"tags":"multiple"});async function f(t=!0){if(!u.isFunction(o.request))return;a.value=!0,r+=1;const n=r;try{t&&p([]);const l=await o.request(void 0,o.params);if(n!==r)return;p(l)}finally{a.value=!1}}function x(t){o.onFocus?.(t),o.refetchOnFocus&&r>0&&!a.value&&f(!0)}e.onMounted(()=>{o.lazy||f()}),e.watch(()=>o.params,()=>{f()},{deep:!0});const{value:m,updateValue:v}=$.useControllableValue(o,O),A=z.useDefaultPlaceholder("Select",o),E=e.computed(()=>{const t=e.unref(m);if(!t)return o.emptyText;const n=o.fieldNames?.label||"label",l=o.fieldNames?.value||"value";return u.isArray(t)?t.map(i=>e.unref(s).find(U=>U[l]===i)?.[n]).filter(Boolean).join("、")||o.emptyText:e.unref(s).find(i=>i[l]===t)?.[n]||o.emptyText}),k=e.computed(()=>{const t=!!o?.showSearch,n=o.searchMode;let l={};return t&&(l=n==="request"?{defaultActiveFirstOption:!1,onSearch:N,notFoundContent:a.value?void 0:null,filterOption:!1,suffixIcon:null}:{filterOption:u.isNil(o?.filterOption)?V:o?.filterOption}),{...u.omit(o,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:e.unref(A),...l}}),S=e.computed(()=>s.value.map(t=>t[o.fieldNames?.value||"value"]).filter(t=>t!==c.SELECT_ALL_VALUE_KEY)),I=e.computed(()=>{if(!o.multiple||!o.addAll)return e.unref(m);if(s.value.some(t=>t[o.fieldNames?.value||"value"]===c.SELECT_ALL_VALUE_KEY)){const t=e.unref(S),n=e.unref(m)||[];if(t.length&&t.every(l=>n?.includes(l)))return[c.SELECT_ALL_VALUE_KEY]}return e.unref(m)});function T(t){return o.multiple&&t.includes(c.SELECT_ALL_VALUE_KEY)?v(e.unref(S)):v(t)}function M(){h.value?.focus()}function P(){h.value?.blur()}function w(t,n){const l=o.fieldNames?.[n]??n;return t[l]}function D(t){const n=w(t,"value");v(o.multiple?[n]:n)}return B({focus:M,blur:P,request:f}),(t,n)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",j,e.toDisplayString(E.value),1)):(e.openBlock(),e.createBlock(e.unref(g.Select),e.mergeProps({key:1,ref_key:"selectRef",ref:h,"allow-clear":""},k.value,{mode:q.value,value:I.value,options:e.unref(s),loading:a.value,"menu-item-selected-icon":e.h("span"),"popup-class-name":`${e.unref(d)("popup")} ${e.unref(_)}`,open:C.value,"onUpdate:value":T,onFocus:x,onDropdownVisibleChange:n[0]||(n[0]=l=>C.value=l)}),e.createSlots({option:e.withCtx(l=>[e.createVNode(e.unref(g.Flex),{justify:"space-between",align:"center",class:e.normalizeClass(e.unref(d)("popup-option-wrapper")),gap:8},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d)("popup-option-label"))},e.toDisplayString(w(l,"label")),3),t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(d)("popup-option-action")),onClick:e.withModifiers(()=>D(l),["stop"])},e.toDisplayString(e.unref(F)("ap.field.chooseOnly")),11,H)):e.createCommentVNode("",!0)]),_:2},1032,["class"])]),_:2},[e.renderList(t.$slots,(l,y)=>({name:y,fn:e.withCtx(i=>[e.renderSlot(t.$slots,y,e.normalizeProps(e.guardReactiveProps(i||{})))])})),a.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(g.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading","menu-item-selected-icon","popup-class-name","open"]))}});exports.default=W;
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
6
6
  options: Ref<{
7
7
  [x: string]: any;
8
8
  label?: any;
9
- value?: (string | number | null) | undefined;
9
+ value?: string | number | null | undefined;
10
10
  children?: Omit<DefaultOptionType, "children">[] | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  }[], DefaultOptionType[] | {
13
13
  [x: string]: any;
14
14
  label?: any;
15
- value?: (string | number | null) | undefined;
15
+ value?: string | number | null | undefined;
16
16
  children?: Omit<DefaultOptionType, "children">[] | undefined;
17
17
  disabled?: boolean | undefined;
18
18
  }[]>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../utils/cssinjs/index.js"),t=require("./checkbox.js"),o=require("./number.js"),u=require("./radio.js"),n=require("./textarea.js"),i=r.genComponentStyleHook("ApField",e=>[t.genCheckboxStyle(e),o.genNumberStyle(e),u.genRadioStyle(e),n.genTextareaStyle(e)]);exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/cssinjs/index.js"),r=require("./checkbox.js"),u=require("./number.js"),l=require("./radio.js"),n=require("./select.js"),o=require("./textarea.js"),c=t.genComponentStyleHook("ApField",e=>[r.genCheckboxStyle(e),u.genNumberStyle(e),l.genRadioStyle(e),o.genTextareaStyle(e),n.genSelectStyle(e)]);exports.default=c;
@@ -0,0 +1,2 @@
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ export declare const genSelectStyle: GenStyleFunc;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../style/index.js"),n=o=>{const{componentCls:i}=o,e=`${i}-select-popup`;return{[`${e}`]:{[`${e}-option-wrapper`]:{height:"22px"},[`${e}-option-label`]:{...t.singleRow(o),color:"inherit"},[`${e}-option-action`]:{display:"none",color:o.colorPrimary,paddingInline:o.spaceSM,paddingBlock:o.spaceXXS,"&:hover":{background:o.colorPrimary,color:"#fff",borderRadius:"2px"}},"div.ant-select-item":{paddingInline:o.space,paddingBlock:o.spaceXS,fontWeight:"normal !important",marginBottom:o.spaceXS,"&:hover":{[`${e}-option-action`]:{display:"inline"}},"&.ant-select-item-option-selected:not(.ant-select-item-option-disabled)":{color:o.colorPrimary}}}}};exports.genSelectStyle=n;
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
8
8
  disabled?: boolean | undefined;
9
9
  checkable?: boolean | undefined;
10
10
  disableCheckbox?: boolean | undefined;
11
- children?: any[] | undefined;
11
+ children?: /*elided*/ any[] | undefined;
12
12
  } | {
13
13
  [x: string]: any;
14
14
  value?: RawValueType | undefined;
15
15
  title?: any;
16
16
  label?: any;
17
17
  key?: Key | undefined;
18
- children?: any[] | undefined;
18
+ children?: /*elided*/ any[] | undefined;
19
19
  disabled?: boolean | undefined;
20
20
  checkable?: boolean | undefined;
21
21
  disableCheckbox?: boolean | undefined;
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
24
24
  disabled?: boolean | undefined;
25
25
  checkable?: boolean | undefined;
26
26
  disableCheckbox?: boolean | undefined;
27
- children?: any[] | undefined;
27
+ children?: /*elided*/ any[] | undefined;
28
28
  } | {
29
29
  [x: string]: any;
30
30
  value?: RawValueType | undefined;
31
31
  title?: any;
32
32
  label?: any;
33
33
  key?: Key | undefined;
34
- children?: any[] | undefined;
34
+ children?: /*elided*/ any[] | undefined;
35
35
  disabled?: boolean | undefined;
36
36
  checkable?: boolean | undefined;
37
37
  disableCheckbox?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } 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 { Recordable } from '../type';
3
3
  import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
4
4
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
8
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
9
9
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
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
  declare function __VLS_template(): {
@@ -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: {
@@ -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,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;