@aplus-frontend/ui 6.26.2 → 6.26.3

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 (434) hide show
  1. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
  3. package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
  4. package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
  5. package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
  6. package/es/src/ag-grid/index.vue.mjs +251 -268
  7. package/es/src/ag-grid/interface.d.ts +4 -0
  8. package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
  9. package/es/src/ag-grid/renderer/date-range.mjs +11 -12
  10. package/es/src/ag-grid/renderer/date.mjs +12 -13
  11. package/es/src/ag-grid/renderer/radio.mjs +9 -10
  12. package/es/src/ag-grid/renderer/select.mjs +10 -17
  13. package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
  14. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
  16. package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
  17. package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
  18. package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
  19. package/es/src/ap-button/utils/index.mjs +27 -28
  20. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
  21. package/es/src/ap-descriptions/formatter/index.mjs +60 -61
  22. package/es/src/ap-descriptions/helper.mjs +6 -6
  23. package/es/src/ap-download/ap-download.vue.mjs +42 -46
  24. package/es/src/ap-download/hooks/index.mjs +13 -13
  25. package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
  26. package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
  27. package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
  28. package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
  29. package/es/src/ap-field/date/index.vue.mjs +66 -68
  30. package/es/src/ap-field/date-range/index.vue.mjs +99 -107
  31. package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
  32. package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
  33. package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
  34. package/es/src/ap-field/hooks/use-options.mjs +11 -11
  35. package/es/src/ap-field/number/helper.mjs +17 -17
  36. package/es/src/ap-field/number/index.vue.mjs +2 -4
  37. package/es/src/ap-field/radio/index.vue.mjs +38 -42
  38. package/es/src/ap-field/radio/read.vue2.mjs +12 -13
  39. package/es/src/ap-field/rate/index.vue.mjs +23 -25
  40. package/es/src/ap-field/segmented/index.vue.mjs +38 -39
  41. package/es/src/ap-field/select/index.vue.mjs +90 -107
  42. package/es/src/ap-field/select/read.vue2.mjs +13 -20
  43. package/es/src/ap-field/select/use-select-options.mjs +24 -25
  44. package/es/src/ap-field/slider/index.vue.mjs +28 -30
  45. package/es/src/ap-field/switch/index.vue.mjs +38 -39
  46. package/es/src/ap-field/text/index.vue2.mjs +43 -52
  47. package/es/src/ap-field/text/password.vue.mjs +20 -22
  48. package/es/src/ap-field/text-area/index.vue.mjs +25 -31
  49. package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
  50. package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
  51. package/es/src/ap-field/tree-select/use-request.mjs +40 -41
  52. package/es/src/ap-form/ap-form.vue2.mjs +127 -142
  53. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
  55. package/es/src/ap-form/hooks/use-watch.mjs +25 -26
  56. package/es/src/ap-form/item/index.vue.mjs +76 -81
  57. package/es/src/ap-form/item-group/index.vue.mjs +20 -20
  58. package/es/src/ap-form/items/date/index.vue.mjs +18 -21
  59. package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
  60. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  61. package/es/src/ap-form/items/number/index.vue.mjs +2 -4
  62. package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
  63. package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
  64. package/es/src/ap-form/items/select/index.vue.mjs +30 -36
  65. package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
  66. package/es/src/ap-form/items/text/password.vue.mjs +12 -14
  67. package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
  68. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
  70. package/es/src/ap-form/list/index.vue.mjs +26 -26
  71. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
  72. package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
  73. package/es/src/ap-form/provider/index.vue.mjs +24 -24
  74. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
  75. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
  76. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
  77. package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
  78. package/es/src/ap-form/search-form/index.vue.mjs +96 -103
  79. package/es/src/ap-form/search-form/utils.mjs +17 -17
  80. package/es/src/ap-form/set/index.vue.mjs +16 -20
  81. package/es/src/ap-form/utils/get.mjs +11 -11
  82. package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
  83. package/es/src/ap-grid/editable/index.vue.mjs +102 -116
  84. package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
  85. package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
  86. package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
  87. package/es/src/ap-grid/index.vue.mjs +309 -334
  88. package/es/src/ap-grid/utils/col.mjs +78 -81
  89. package/es/src/ap-grid/utils/editable.mjs +17 -18
  90. package/es/src/ap-grid/utils/renderer.mjs +7 -11
  91. package/es/src/ap-grid/utils/table.mjs +45 -46
  92. package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
  93. package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
  94. package/es/src/ap-list/index.vue.mjs +120 -131
  95. package/es/src/ap-modal/utils/createModal.mjs +60 -67
  96. package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
  97. package/es/src/ap-modal/utils/methods.mjs +17 -22
  98. package/es/src/ap-modal/utils/util.mjs +1 -1
  99. package/es/src/ap-pro-card/components/card/index.vue2.mjs +113 -127
  100. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
  101. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
  102. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  103. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  104. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  105. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  106. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  107. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  108. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  109. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  110. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  111. package/es/src/ap-table/constants.d.ts +6 -6
  112. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  113. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  114. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  115. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  116. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  117. package/es/src/ap-table/utils.mjs +123 -130
  118. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  119. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  120. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  121. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  122. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  123. package/es/src/ap-upload/utils/accept.mjs +37 -38
  124. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  125. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  126. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  127. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  128. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  129. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  130. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  131. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  132. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  133. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  134. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  135. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  136. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  137. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  138. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  139. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  140. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  141. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  142. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  143. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  144. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  145. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  146. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  147. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  149. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  150. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  152. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  153. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  154. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  155. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  156. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  157. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  158. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  159. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  160. package/es/src/business/ap-summary/utils.mjs +23 -29
  161. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  162. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  163. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  164. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  165. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  166. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  167. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  168. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  169. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  170. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  171. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  172. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  173. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  174. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  175. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  176. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  178. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  179. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  180. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  181. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  182. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  183. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  184. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  185. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  186. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  187. package/es/src/check-card/index.vue2.mjs +51 -56
  188. package/es/src/config-provider/config-provider.mjs +12 -12
  189. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  190. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  191. package/es/src/editable-table/form-item.vue.mjs +82 -88
  192. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  193. package/es/src/editable-table/index.vue.mjs +100 -113
  194. package/es/src/editable-table/utils.mjs +88 -95
  195. package/es/src/hooks/useControllableValue.mjs +18 -18
  196. package/es/src/hooks/useResize.mjs +16 -16
  197. package/es/src/mask/index.vue.mjs +11 -11
  198. package/es/src/resize-observer/index.vue.mjs +20 -22
  199. package/es/src/scroll-bar/index.vue.mjs +2 -8
  200. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  201. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  202. package/es/src/scroll-view/index.vue.mjs +40 -42
  203. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  204. package/es/src/splitter/hooks/useItems.mjs +14 -15
  205. package/es/src/splitter/hooks/useResize.mjs +31 -34
  206. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  207. package/es/src/text/index.vue.mjs +24 -24
  208. package/es/src/utils/config-provider-preset.mjs +17 -21
  209. package/es/src/utils/copy.mjs +9 -9
  210. package/es/src/utils/index.mjs +43 -43
  211. package/es/src/version.d.ts +1 -1
  212. package/es/src/version.mjs +1 -1
  213. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  214. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  215. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  216. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  217. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  218. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  221. package/lib/src/ag-grid/index.vue.js +1 -1
  222. package/lib/src/ag-grid/interface.d.ts +4 -0
  223. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  224. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  225. package/lib/src/ag-grid/renderer/date.js +1 -1
  226. package/lib/src/ag-grid/renderer/radio.js +1 -1
  227. package/lib/src/ag-grid/renderer/select.js +1 -1
  228. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  229. package/lib/src/ap-action/item/index.vue2.js +1 -1
  230. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  231. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  232. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  233. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  234. package/lib/src/ap-button/utils/index.js +1 -1
  235. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  236. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  237. package/lib/src/ap-descriptions/helper.js +1 -1
  238. package/lib/src/ap-download/ap-download.vue.js +1 -1
  239. package/lib/src/ap-download/hooks/index.js +1 -1
  240. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  241. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  242. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  243. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  244. package/lib/src/ap-field/date/index.vue.js +1 -1
  245. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  246. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  247. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  248. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  249. package/lib/src/ap-field/hooks/use-options.js +1 -1
  250. package/lib/src/ap-field/number/helper.js +1 -1
  251. package/lib/src/ap-field/number/index.vue.js +1 -1
  252. package/lib/src/ap-field/radio/index.vue.js +1 -1
  253. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  254. package/lib/src/ap-field/rate/index.vue.js +1 -1
  255. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  256. package/lib/src/ap-field/select/index.vue.js +1 -1
  257. package/lib/src/ap-field/select/read.vue2.js +1 -1
  258. package/lib/src/ap-field/select/use-select-options.js +1 -1
  259. package/lib/src/ap-field/slider/index.vue.js +1 -1
  260. package/lib/src/ap-field/switch/index.vue.js +1 -1
  261. package/lib/src/ap-field/text/index.vue2.js +1 -1
  262. package/lib/src/ap-field/text/password.vue.js +1 -1
  263. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  264. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  265. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  266. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  267. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  268. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  269. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  270. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  271. package/lib/src/ap-form/item/index.vue.js +1 -1
  272. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  273. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  274. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  276. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  278. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  279. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  281. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  282. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  283. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  284. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  285. package/lib/src/ap-form/list/index.vue.js +1 -1
  286. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  287. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  288. package/lib/src/ap-form/provider/index.vue.js +1 -1
  289. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  290. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  291. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  292. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  293. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  294. package/lib/src/ap-form/search-form/utils.js +1 -1
  295. package/lib/src/ap-form/set/index.vue.js +1 -1
  296. package/lib/src/ap-form/utils/get.js +1 -1
  297. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  298. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  299. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  300. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  302. package/lib/src/ap-grid/index.vue.js +1 -1
  303. package/lib/src/ap-grid/utils/col.js +1 -1
  304. package/lib/src/ap-grid/utils/editable.js +1 -1
  305. package/lib/src/ap-grid/utils/renderer.js +1 -1
  306. package/lib/src/ap-grid/utils/table.js +1 -1
  307. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  308. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  309. package/lib/src/ap-list/index.vue.js +1 -1
  310. package/lib/src/ap-modal/utils/createModal.js +1 -1
  311. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  312. package/lib/src/ap-modal/utils/methods.js +1 -1
  313. package/lib/src/ap-modal/utils/util.js +1 -1
  314. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  315. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  316. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  317. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  318. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  319. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  320. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  321. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/utils.js +1 -1
  326. package/lib/src/ap-table/constants.d.ts +6 -6
  327. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  328. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  329. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  330. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  332. package/lib/src/ap-table/utils.js +1 -1
  333. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  334. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  335. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  336. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  337. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  338. package/lib/src/ap-upload/utils/accept.js +1 -1
  339. package/lib/src/ap-upload/utils/returnData.js +1 -1
  340. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  341. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  342. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  343. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  344. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  345. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  346. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  347. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  349. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  350. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  352. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  353. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  354. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  355. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  356. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  357. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  358. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  359. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  360. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  370. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  371. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  372. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  373. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  374. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  375. package/lib/src/business/ap-summary/utils.js +1 -1
  376. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  377. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  378. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  379. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  380. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  381. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  382. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  383. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  384. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  385. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  386. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  387. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  388. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  389. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  390. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  391. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  392. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  393. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  394. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  395. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  396. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  397. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  398. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  399. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  400. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  401. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  402. package/lib/src/check-card/index.vue2.js +1 -1
  403. package/lib/src/config-provider/config-provider.js +1 -1
  404. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  405. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  406. package/lib/src/editable-table/form-item.vue.js +1 -1
  407. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  408. package/lib/src/editable-table/index.vue.js +1 -1
  409. package/lib/src/editable-table/utils.js +1 -1
  410. package/lib/src/hooks/useControllableValue.js +1 -1
  411. package/lib/src/hooks/useResize.js +1 -1
  412. package/lib/src/mask/index.vue.js +1 -1
  413. package/lib/src/resize-observer/index.vue.js +1 -1
  414. package/lib/src/scroll-bar/index.vue.js +1 -1
  415. package/lib/src/scroll-bar/internal.vue.js +1 -1
  416. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  417. package/lib/src/scroll-view/index.vue.js +1 -1
  418. package/lib/src/splitter/Splitter.vue2.js +1 -1
  419. package/lib/src/splitter/hooks/useItems.js +1 -1
  420. package/lib/src/splitter/hooks/useResize.js +1 -1
  421. package/lib/src/splitter/hooks/useSizes.js +1 -1
  422. package/lib/src/text/index.vue.js +1 -1
  423. package/lib/src/utils/config-provider-preset.js +1 -1
  424. package/lib/src/utils/copy.js +1 -1
  425. package/lib/src/utils/index.js +1 -1
  426. package/lib/src/version.d.ts +1 -1
  427. package/lib/src/version.js +1 -1
  428. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  429. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  430. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  431. package/package.json +5 -5
  432. package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
  433. package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
  434. package/theme/index.css +2 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as E, createElementBlock as g, openBlock as s, normalizeClass as t, unref as e, createElementVNode as p, createVNode as c, createCommentVNode as r, createBlock as u, resolveDynamicComponent as I, withCtx as d } from "vue";
2
- import { Space as O, Tooltip as m } from "@aplus-frontend/antdv";
3
- import { HolderOutlined as D, VerticalAlignTopOutlined as k, VerticalAlignMiddleOutlined as z, DeleteOutlined as A } from "@ant-design/icons-vue";
1
+ import { defineComponent as B, createElementBlock as v, openBlock as n, normalizeClass as t, unref as e, createElementVNode as f, createVNode as s, createCommentVNode as c, createBlock as r, resolveDynamicComponent as E, withCtx as u } from "vue";
2
+ import { Space as I, Tooltip as p } from "@aplus-frontend/antdv";
3
+ import { HolderOutlined as O, VerticalAlignTopOutlined as g, VerticalAlignMiddleOutlined as D, DeleteOutlined as z } from "@ant-design/icons-vue";
4
4
  import "../../../../config-provider/index.mjs";
5
- import { useInjectSorterMethods as M } from "../sorter/context.mjs";
6
- import S from "../images/icon_carst_down.svg.mjs";
7
- import U from "../images/icon_fill_right.svg.mjs";
8
- import { getLabelRenderNode as j } from "../utils.mjs";
9
- import { useNamespace as H } from "../../../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as q } from "../../../../config-provider/hooks/use-locale.mjs";
11
- const G = ["src"], le = /* @__PURE__ */ E({
5
+ import { useInjectSorterMethods as A } from "../sorter/context.mjs";
6
+ import M from "../images/icon_carst_down.svg.mjs";
7
+ import S from "../images/icon_fill_right.svg.mjs";
8
+ import { getLabelRenderNode as U } from "../utils.mjs";
9
+ import { useNamespace as j } from "../../../../config-provider/hooks/use-namespace.mjs";
10
+ import { useLocale as H } from "../../../../config-provider/hooks/use-locale.mjs";
11
+ const q = ["src"], ee = /* @__PURE__ */ B({
12
12
  __name: "item",
13
13
  props: {
14
14
  value: {},
@@ -17,123 +17,118 @@ const G = ["src"], le = /* @__PURE__ */ E({
17
17
  open: { type: Boolean }
18
18
  },
19
19
  emits: ["update:open", "update:value"],
20
- setup(b, { emit: x }) {
21
- const o = b, C = x, { b: a, be: h, is: T } = H("sortable-item-meta"), { fixedToLeft: w, fixedToRight: V, unFixed: y } = M(), { t: f } = q();
22
- function v(l) {
23
- var i;
24
- const n = o.value;
25
- return n.fixed = l, (i = n.children) == null || i.forEach((B) => B.fixed = l), n;
20
+ setup(k, { emit: b }) {
21
+ const o = k, x = b, { b: a, be: m, is: C } = j("sortable-item-meta"), { fixedToLeft: T, fixedToRight: w, unFixed: V } = A(), { t: d } = H();
22
+ function h(l) {
23
+ const i = o.value;
24
+ return i.fixed = l, i.children?.forEach((N) => N.fixed = l), i;
25
+ }
26
+ function y() {
27
+ const l = h("left");
28
+ T(l);
26
29
  }
27
30
  function _() {
28
- const l = v("left");
31
+ const l = h("right");
29
32
  w(l);
30
33
  }
31
34
  function R() {
32
- const l = v("right");
35
+ const l = h(void 0);
33
36
  V(l);
34
37
  }
35
38
  function F() {
36
- const l = v(void 0);
37
- y(l);
39
+ x("update:open", !o.open);
38
40
  }
39
41
  function L() {
40
- C("update:open", !o.open);
41
- }
42
- function N() {
43
- var n;
44
42
  const l = o.value;
45
- l.show = !1, (n = l.children) == null || n.forEach((i) => i.show = !1);
43
+ l.show = !1, l.children?.forEach((i) => i.show = !1);
46
44
  }
47
- return (l, n) => {
48
- var i;
49
- return s(), g("div", {
50
- class: t(e(a)())
45
+ return (l, i) => (n(), v("div", {
46
+ class: t(e(a)())
47
+ }, [
48
+ f("span", {
49
+ class: t(e(a)("left"))
51
50
  }, [
52
- p("span", {
53
- class: t(e(a)("left"))
51
+ s(e(O), {
52
+ class: t(e(m)("left", "holder")),
53
+ style: { "font-size": "16px", color: "#abb7cc" }
54
+ }, null, 8, ["class"]),
55
+ f("span", {
56
+ class: t(e(m)("left", "indicator")),
57
+ onClick: F
54
58
  }, [
55
- c(e(D), {
56
- class: t(e(h)("left", "holder")),
57
- style: { "font-size": "16px", color: "#abb7cc" }
58
- }, null, 8, ["class"]),
59
- p("span", {
60
- class: t(e(h)("left", "indicator")),
61
- onClick: L
62
- }, [
63
- (i = l.value.children) != null && i.length ? (s(), g("img", {
64
- key: 0,
65
- src: o.open ? e(U) : e(S)
66
- }, null, 8, G)) : r("", !0)
67
- ], 2),
68
- p("span", {
69
- class: t([e(h)("left", "label-wrapper"), e(T)("level2", o.level === 2)])
70
- }, [
71
- (s(), u(I(e(j)(l.value.label))))
72
- ], 2)
59
+ l.value.children?.length ? (n(), v("img", {
60
+ key: 0,
61
+ src: o.open ? e(S) : e(M)
62
+ }, null, 8, q)) : c("", !0)
73
63
  ], 2),
74
- p("span", {
75
- class: t(e(a)("right"))
64
+ f("span", {
65
+ class: t([e(m)("left", "label-wrapper"), e(C)("level2", o.level === 2)])
76
66
  }, [
77
- c(e(O), null, {
78
- default: d(() => [
79
- o.level !== 2 && l.value.fixed !== "left" ? (s(), u(e(m), {
80
- key: 0,
81
- title: e(f)("ap.apTable.setting.fixToLeft")
82
- }, {
83
- default: d(() => [
84
- c(e(k), {
85
- rotate: 270,
86
- class: t(e(a)("action-icon")),
87
- onClick: _
88
- }, null, 8, ["class"])
89
- ]),
90
- _: 1
91
- }, 8, ["title"])) : r("", !0),
92
- o.level !== 2 && l.value.fixed ? (s(), u(e(m), {
93
- key: 1,
94
- title: e(f)("ap.apTable.setting.unFixed")
95
- }, {
96
- default: d(() => [
97
- c(e(z), {
98
- class: t(e(a)("action-icon")),
99
- onClick: F
100
- }, null, 8, ["class"])
101
- ]),
102
- _: 1
103
- }, 8, ["title"])) : r("", !0),
104
- o.level !== 2 && l.value.fixed !== "right" ? (s(), u(e(m), {
105
- key: 2,
106
- title: e(f)("ap.apTable.setting.fixToRight")
107
- }, {
108
- default: d(() => [
109
- c(e(k), {
110
- rotate: 90,
111
- class: t(e(a)("action-icon")),
112
- onClick: R
113
- }, null, 8, ["class"])
114
- ]),
115
- _: 1
116
- }, 8, ["title"])) : r("", !0),
117
- l.value.disabled ? r("", !0) : (s(), u(e(m), {
118
- key: 3,
119
- title: e(f)("ap.apTable.setting.delete")
120
- }, {
121
- default: d(() => [
122
- c(e(A), {
123
- class: t(e(a)("action-icon")),
124
- onClick: N
125
- }, null, 8, ["class"])
126
- ]),
127
- _: 1
128
- }, 8, ["title"]))
129
- ]),
130
- _: 1
131
- })
67
+ (n(), r(E(e(U)(l.value.label))))
132
68
  ], 2)
133
- ], 2);
134
- };
69
+ ], 2),
70
+ f("span", {
71
+ class: t(e(a)("right"))
72
+ }, [
73
+ s(e(I), null, {
74
+ default: u(() => [
75
+ o.level !== 2 && l.value.fixed !== "left" ? (n(), r(e(p), {
76
+ key: 0,
77
+ title: e(d)("ap.apTable.setting.fixToLeft")
78
+ }, {
79
+ default: u(() => [
80
+ s(e(g), {
81
+ rotate: 270,
82
+ class: t(e(a)("action-icon")),
83
+ onClick: y
84
+ }, null, 8, ["class"])
85
+ ]),
86
+ _: 1
87
+ }, 8, ["title"])) : c("", !0),
88
+ o.level !== 2 && l.value.fixed ? (n(), r(e(p), {
89
+ key: 1,
90
+ title: e(d)("ap.apTable.setting.unFixed")
91
+ }, {
92
+ default: u(() => [
93
+ s(e(D), {
94
+ class: t(e(a)("action-icon")),
95
+ onClick: R
96
+ }, null, 8, ["class"])
97
+ ]),
98
+ _: 1
99
+ }, 8, ["title"])) : c("", !0),
100
+ o.level !== 2 && l.value.fixed !== "right" ? (n(), r(e(p), {
101
+ key: 2,
102
+ title: e(d)("ap.apTable.setting.fixToRight")
103
+ }, {
104
+ default: u(() => [
105
+ s(e(g), {
106
+ rotate: 90,
107
+ class: t(e(a)("action-icon")),
108
+ onClick: _
109
+ }, null, 8, ["class"])
110
+ ]),
111
+ _: 1
112
+ }, 8, ["title"])) : c("", !0),
113
+ l.value.disabled ? c("", !0) : (n(), r(e(p), {
114
+ key: 3,
115
+ title: e(d)("ap.apTable.setting.delete")
116
+ }, {
117
+ default: u(() => [
118
+ s(e(z), {
119
+ class: t(e(a)("action-icon")),
120
+ onClick: L
121
+ }, null, 8, ["class"])
122
+ ]),
123
+ _: 1
124
+ }, 8, ["title"]))
125
+ ]),
126
+ _: 1
127
+ })
128
+ ], 2)
129
+ ], 2));
135
130
  }
136
131
  });
137
132
  export {
138
- le as default
133
+ ee as default
139
134
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, createElementBlock as y, openBlock as c, normalizeClass as d, createVNode as m, createElementVNode as v, withCtx as g, toDisplayString as k, createTextVNode as q, createCommentVNode as p, createBlock as b } from "vue";
1
+ import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, createElementBlock as y, openBlock as r, normalizeClass as c, createVNode as m, createElementVNode as v, withCtx as g, toDisplayString as k, createTextVNode as q, createCommentVNode as p, createBlock as b } from "vue";
2
2
  import { Flex as G, Button as H, Divider as J } from "@aplus-frontend/antdv";
3
3
  import N from "vuedraggable";
4
4
  import "../sortable/index.vue.mjs";
@@ -15,7 +15,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
15
15
  },
16
16
  emits: ["update:value"],
17
17
  setup(V, { emit: B }) {
18
- const i = L([]), s = L([]), u = L([]), { b: r } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
18
+ const l = L([]), i = L([]), s = L([]), { b: u } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
19
19
  K({
20
20
  fixedToLeft: I,
21
21
  fixedToRight: M,
@@ -29,46 +29,45 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
29
29
  t[0].splice(o, 1);
30
30
  else {
31
31
  const a = t[1].findIndex(
32
- (l) => l.key === e.key
32
+ (f) => f.key === e.key
33
33
  );
34
34
  t[1].splice(a, 1);
35
35
  }
36
36
  }
37
37
  function _(e, t) {
38
- const o = [...n(i.value)], a = [...n(u.value)], l = [...n(s.value)], w = {
38
+ const o = [...n(l.value)], a = [...n(s.value)], f = [...n(i.value)], w = {
39
39
  left: {
40
40
  target: o,
41
- search: [l, a]
41
+ search: [f, a]
42
42
  },
43
43
  right: {
44
44
  target: a,
45
- search: [l, o]
45
+ search: [f, o]
46
46
  },
47
47
  normal: {
48
- target: l,
48
+ target: f,
49
49
  search: [o, a]
50
50
  }
51
51
  }[t];
52
52
  return t === "right" ? w.target.unshift(e) : w.target.push(e), F(
53
53
  e,
54
54
  w.search
55
- ), [...o, ...l, ...a];
55
+ ), [...o, ...f, ...a];
56
56
  }
57
57
  function I(e) {
58
58
  const t = _(e, "left");
59
- f(t);
59
+ d(t);
60
60
  }
61
61
  function M(e) {
62
62
  const t = _(e, "right");
63
- f(t);
63
+ d(t);
64
64
  }
65
65
  function U(e) {
66
66
  const t = _(e, "normal");
67
- f(t);
67
+ d(t);
68
68
  }
69
69
  function C(e) {
70
- var t;
71
- return (t = e.children) != null && t.length ? e.children.some((o) => o.show) : e.show;
70
+ return e.children?.length ? e.children.some((t) => t.show) : e.show;
72
71
  }
73
72
  function T(e, t) {
74
73
  e.value ? e.value.push(t) : e.value = [t];
@@ -76,45 +75,44 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
76
75
  const z = O(() => {
77
76
  let e = 0;
78
77
  function t(o) {
79
- var a;
80
- for (const l of o)
81
- (a = l.children) != null && a.length ? t(l.children) : l.show && (e += 1);
78
+ for (const a of o)
79
+ a.children?.length ? t(a.children) : a.show && (e += 1);
82
80
  }
83
81
  return t(x.value), e;
84
82
  });
85
83
  function D(e) {
86
- f([...e, ...n(s), ...n(u)]);
84
+ d([...e, ...n(i), ...n(s)]);
87
85
  }
88
86
  function E(e) {
89
- f([...n(i), ...e, ...n(u)]);
87
+ d([...n(l), ...e, ...n(s)]);
90
88
  }
91
89
  function j(e) {
92
- f([...n(i), ...n(s), ...e]);
90
+ d([...n(l), ...n(i), ...e]);
93
91
  }
94
- function f(e) {
92
+ function d(e) {
95
93
  S("update:value", e);
96
94
  }
97
95
  return $(
98
96
  () => x.value,
99
97
  (e) => {
100
98
  if (e) {
101
- i.value = [], s.value = [], u.value = [];
99
+ l.value = [], i.value = [], s.value = [];
102
100
  for (const t of e)
103
- t.fixed === "left" ? T(i, t) : t.fixed === "right" ? T(u, t) : T(s, t);
101
+ t.fixed === "left" ? T(l, t) : t.fixed === "right" ? T(s, t) : T(i, t);
104
102
  }
105
103
  },
106
104
  { immediate: !0 }
107
- ), (e, t) => (c(), y("div", {
108
- class: d(n(r)())
105
+ ), (e, t) => (r(), y("div", {
106
+ class: c(n(u)())
109
107
  }, [
110
108
  m(n(G), {
111
- class: d(n(r)("header")),
109
+ class: c(n(u)("header")),
112
110
  align: "center",
113
111
  justify: "space-between"
114
112
  }, {
115
113
  default: g(() => [
116
114
  v("span", {
117
- class: d(n(r)("header-title"))
115
+ class: c(n(u)("header-title"))
118
116
  }, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
119
117
  m(n(H), {
120
118
  type: "link",
@@ -132,19 +130,19 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
132
130
  }, 8, ["class"]),
133
131
  m(n(J), { style: { margin: "0px" } }),
134
132
  v("div", {
135
- class: d(n(r)("content"))
133
+ class: c(n(u)("content"))
136
134
  }, [
137
- i.value.length ? (c(), y("div", W, [
135
+ l.value.length ? (r(), y("div", W, [
138
136
  v("span", {
139
- class: d(n(r)("section-title"))
137
+ class: c(n(u)("section-title"))
140
138
  }, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
141
139
  m(n(N), {
142
- "model-value": i.value,
140
+ "model-value": l.value,
143
141
  "item-key": "key",
144
142
  "onUpdate:modelValue": D
145
143
  }, {
146
144
  item: g(({ element: o }) => [
147
- C(o) ? (c(), b(R, {
145
+ C(o) ? (r(), b(R, {
148
146
  key: 0,
149
147
  value: o
150
148
  }, null, 8, ["value"])) : p("", !0)
@@ -152,17 +150,17 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
152
150
  _: 1
153
151
  }, 8, ["model-value"])
154
152
  ])) : p("", !0),
155
- s.value.length ? (c(), y("div", X, [
153
+ i.value.length ? (r(), y("div", X, [
156
154
  v("span", {
157
- class: d(n(r)("section-title"))
155
+ class: c(n(u)("section-title"))
158
156
  }, k(n(h)("ap.apTable.setting.unFixed")), 3),
159
157
  m(n(N), {
160
- "model-value": s.value,
158
+ "model-value": i.value,
161
159
  "item-key": "key",
162
160
  "onUpdate:modelValue": E
163
161
  }, {
164
162
  item: g(({ element: o }) => [
165
- C(o) ? (c(), b(R, {
163
+ C(o) ? (r(), b(R, {
166
164
  key: 0,
167
165
  value: o
168
166
  }, null, 8, ["value"])) : p("", !0)
@@ -170,17 +168,17 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
170
168
  _: 1
171
169
  }, 8, ["model-value"])
172
170
  ])) : p("", !0),
173
- u.value.length ? (c(), y("div", Y, [
171
+ s.value.length ? (r(), y("div", Y, [
174
172
  v("span", {
175
- class: d(n(r)("section-title"))
173
+ class: c(n(u)("section-title"))
176
174
  }, k(n(h)("ap.apTable.setting.fixToRight")), 3),
177
175
  m(n(N), {
178
- "model-value": u.value,
176
+ "model-value": s.value,
179
177
  "item-key": "key",
180
178
  "onUpdate:modelValue": j
181
179
  }, {
182
180
  item: g(({ element: o }) => [
183
- C(o) ? (c(), b(R, {
181
+ C(o) ? (r(), b(R, {
184
182
  key: 0,
185
183
  value: o
186
184
  }, null, 8, ["value"])) : p("", !0)
@@ -1,72 +1,66 @@
1
- import { defineComponent as x, computed as w, unref as o, createElementBlock as i, openBlock as c, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
2
- import { Row as N, Col as k, Checkbox as P } from "@aplus-frontend/antdv";
1
+ import { defineComponent as w, computed as v, unref as r, createElementBlock as u, openBlock as o, createVNode as c, withCtx as a, Fragment as f, renderList as b, createBlock as d, mergeProps as x, resolveDynamicComponent as B } from "vue";
2
+ import { Row as V, Col as m, Checkbox as I } from "@aplus-frontend/antdv";
3
3
  import "../select-group/index.vue.mjs";
4
- import { useInjectApTable as U } from "../../../context.mjs";
5
- import { getLabelNode as j } from "../utils.mjs";
6
- import A from "../select-group/index.vue2.mjs";
7
- const q = /* @__PURE__ */ x({
4
+ import { useInjectApTable as L } from "../../../context.mjs";
5
+ import { getLabelNode as N } from "../utils.mjs";
6
+ import P from "../select-group/index.vue2.mjs";
7
+ const F = /* @__PURE__ */ w({
8
8
  __name: "index",
9
9
  props: {
10
10
  value: {}
11
11
  },
12
- setup(_) {
13
- const a = _, { columnsBackup: g, renderConfig: y } = U(), C = w(() => [...o(g) || []].sort((e, n) => {
14
- var t, l, p, h;
15
- return (t = e.children) != null && t.length && !((l = n.children) != null && l.length) ? 1 : !((p = e.children) != null && p.length) && ((h = n.children) != null && h.length) ? -1 : 0;
16
- }));
17
- function f(r) {
18
- return a.value.find((e) => e.key === r.key);
12
+ setup(p) {
13
+ const i = p, { columnsBackup: h, renderConfig: k } = L(), g = v(() => [...r(h) || []].sort((e, t) => e.children?.length && !t.children?.length ? 1 : !e.children?.length && t.children?.length ? -1 : 0));
14
+ function s(n) {
15
+ return i.value.find((e) => e.key === n.key);
19
16
  }
20
- function v(r) {
21
- const e = f(r);
17
+ function C(n) {
18
+ const e = s(n);
22
19
  return {
23
- checked: e == null ? void 0 : e.show,
24
- disabled: e == null ? void 0 : e.disabled
20
+ checked: e?.show,
21
+ disabled: e?.disabled
25
22
  };
26
23
  }
27
- function b(r, e) {
28
- const n = a.value, t = n == null ? void 0 : n.find((l) => l.key === r);
29
- t && (t.show = e);
24
+ function _(n, e) {
25
+ const l = i.value?.find((y) => y.key === n);
26
+ l && (l.show = e);
30
27
  }
31
- return (r, e) => (c(), i("div", null, [
32
- s(o(N), {
28
+ return (n, e) => (o(), u("div", null, [
29
+ c(r(V), {
33
30
  gutter: [24, 12],
34
31
  align: "middle"
35
32
  }, {
36
- default: d(() => [
37
- (c(!0), i(m, null, B(C.value, (n) => {
38
- var t;
39
- return c(), i(m, {
40
- key: n.key
41
- }, [
42
- (t = n.children) != null && t.length ? (c(), u(o(k), {
43
- key: 1,
44
- span: 24
45
- }, {
46
- default: d(() => [
47
- s(A, {
48
- value: f(n)
49
- }, null, 8, ["value"])
50
- ]),
51
- _: 2
52
- }, 1024)) : (c(), u(o(k), {
53
- key: 0,
54
- span: 8
55
- }, {
56
- default: d(() => [
57
- s(o(P), I({ ref_for: !0 }, v(n), {
58
- "onUpdate:checked": (l) => b(n.key, l)
59
- }), {
60
- default: d(() => [
61
- (c(), u(L(o(j)(n, o(y)))))
62
- ]),
63
- _: 2
64
- }, 1040, ["onUpdate:checked"])
65
- ]),
66
- _: 2
67
- }, 1024))
68
- ], 64);
69
- }), 128))
33
+ default: a(() => [
34
+ (o(!0), u(f, null, b(g.value, (t) => (o(), u(f, {
35
+ key: t.key
36
+ }, [
37
+ t.children?.length ? (o(), d(r(m), {
38
+ key: 1,
39
+ span: 24
40
+ }, {
41
+ default: a(() => [
42
+ c(P, {
43
+ value: s(t)
44
+ }, null, 8, ["value"])
45
+ ]),
46
+ _: 2
47
+ }, 1024)) : (o(), d(r(m), {
48
+ key: 0,
49
+ span: 8
50
+ }, {
51
+ default: a(() => [
52
+ c(r(I), x({ ref_for: !0 }, C(t), {
53
+ "onUpdate:checked": (l) => _(t.key, l)
54
+ }), {
55
+ default: a(() => [
56
+ (o(), d(B(r(N)(t, r(k)))))
57
+ ]),
58
+ _: 2
59
+ }, 1040, ["onUpdate:checked"])
60
+ ]),
61
+ _: 2
62
+ }, 1024))
63
+ ], 64))), 128))
70
64
  ]),
71
65
  _: 1
72
66
  })
@@ -74,5 +68,5 @@ const q = /* @__PURE__ */ x({
74
68
  }
75
69
  });
76
70
  export {
77
- q as default
71
+ F as default
78
72
  };