@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.9

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 (406) hide show
  1. package/es/index.mjs +163 -156
  2. package/es/src/ap-action/group/index.vue.mjs +22 -18
  3. package/es/src/ap-action/index.mjs +7 -4
  4. package/es/src/ap-action/interface.mjs +1 -0
  5. package/es/src/ap-action/item/index.vue.mjs +2 -47
  6. package/es/src/ap-action/item/index.vue2.mjs +47 -2
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -11
  8. package/es/src/ap-action/item-modal/index.vue.mjs +9 -8
  9. package/es/src/ap-action/item-popconfirm/index.vue.mjs +10 -8
  10. package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
  11. package/es/src/ap-field/date/index.vue.mjs +19 -20
  12. package/es/src/ap-field/date-range/index.vue.mjs +9 -9
  13. package/es/src/ap-field/index.d.ts +12 -0
  14. package/es/src/ap-field/index.mjs +42 -0
  15. package/es/src/ap-field/interface.d.ts +3 -2
  16. package/es/src/ap-field/interface.mjs +1 -0
  17. package/es/src/ap-field/number/helper.mjs +2 -2
  18. package/es/src/ap-field/number/index.vue.mjs +30 -32
  19. package/es/src/ap-field/radio/index.vue.mjs +40 -34
  20. package/es/src/ap-field/select/index.vue.mjs +1 -1
  21. package/es/src/ap-field/switch/index.vue.mjs +6 -6
  22. package/es/src/ap-field/text/index.vue.d.ts +5 -5
  23. package/es/src/ap-field/text/index.vue.mjs +29 -29
  24. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  25. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
  26. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
  27. package/es/src/ap-form/ap-form-item.vue.d.ts +3 -0
  28. package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
  29. package/es/src/ap-form/ap-form-item.vue2.mjs +80 -2
  30. package/es/src/ap-form/index.d.ts +31 -1682
  31. package/es/src/ap-form/index.mjs +12 -7
  32. package/es/src/ap-form/interface.d.ts +3 -1
  33. package/es/src/ap-form/items/index.d.ts +3 -0
  34. package/es/src/ap-form/items/index.mjs +1 -0
  35. package/es/src/ap-form/items/interface.d.ts +12 -0
  36. package/es/src/ap-form/items/text/index.vue.d.ts +69 -0
  37. package/es/src/ap-form/items/text/index.vue.mjs +102 -0
  38. package/es/src/ap-form/items/text/index.vue2.mjs +4 -0
  39. package/es/src/ap-form/style/ap-form-item.css +4 -0
  40. package/es/src/base-button/button.vue.mjs +2 -58
  41. package/es/src/base-button/button.vue2.mjs +59 -2
  42. package/es/src/base-button/index.mjs +8 -8
  43. package/es/src/base-button/interface.mjs +1 -0
  44. package/es/src/base-button/modal-button.vue.mjs +12 -11
  45. package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
  46. package/es/src/basic/arrow.vue.mjs +2 -38
  47. package/es/src/basic/arrow.vue2.mjs +38 -2
  48. package/es/src/basic/help.vue.mjs +2 -96
  49. package/es/src/basic/help.vue2.mjs +96 -2
  50. package/es/src/basic/index.mjs +11 -7
  51. package/es/src/basic/interface.mjs +1 -0
  52. package/es/src/basic/title.vue.mjs +2 -32
  53. package/es/src/basic/title.vue2.mjs +33 -2
  54. package/es/src/config-provider/config-provider-props.d.ts +4 -0
  55. package/es/src/config-provider/config-provider-props.mjs +6 -2
  56. package/es/src/config-provider/config-provider.d.ts +9 -0
  57. package/es/src/config-provider/config-provider.mjs +20 -16
  58. package/es/src/config-provider/hooks/use-global-config.d.ts +4 -0
  59. package/es/src/config-provider/hooks/use-locale.mjs +1 -0
  60. package/es/src/config-provider/index.d.ts +19 -0
  61. package/es/src/config-provider/index.mjs +26 -13
  62. package/es/src/container/collapse/header.vue.mjs +2 -49
  63. package/es/src/container/collapse/header.vue2.mjs +49 -2
  64. package/es/src/container/collapse/index.vue.mjs +2 -85
  65. package/es/src/container/collapse/index.vue2.mjs +86 -2
  66. package/es/src/container/collapse/style/header.css +1 -1
  67. package/es/src/container/collapse/style/index.css +1 -1
  68. package/es/src/container/index.mjs +8 -5
  69. package/es/src/container/interface.mjs +1 -0
  70. package/es/src/container/scroll-container.vue.mjs +2 -60
  71. package/es/src/container/scroll-container.vue2.mjs +60 -2
  72. package/es/src/count-down/button.vue.mjs +2 -44
  73. package/es/src/count-down/button.vue2.mjs +44 -2
  74. package/es/src/count-down/index.mjs +8 -5
  75. package/es/src/count-down/input.vue.mjs +2 -44
  76. package/es/src/count-down/input.vue2.mjs +45 -2
  77. package/es/src/count-down/interface.mjs +1 -0
  78. package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
  79. package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
  80. package/es/src/cropper/cropper-image.vue.mjs +2 -129
  81. package/es/src/cropper/cropper-image.vue2.mjs +129 -2
  82. package/es/src/cropper/cropper-modal.vue.mjs +2 -270
  83. package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
  84. package/es/src/cropper/index.mjs +8 -5
  85. package/es/src/cropper/interface.mjs +1 -0
  86. package/es/src/cropper/style/avatar.css +1 -1
  87. package/es/src/cropper/style/modal.css +2 -2
  88. package/es/src/description/description.vue.mjs +2 -169
  89. package/es/src/description/description.vue2.mjs +169 -2
  90. package/es/src/description/index.mjs +8 -5
  91. package/es/src/description/interface.mjs +1 -0
  92. package/es/src/dropdown/dropdown.vue.mjs +2 -92
  93. package/es/src/dropdown/dropdown.vue2.mjs +92 -2
  94. package/es/src/dropdown/index.mjs +5 -3
  95. package/es/src/dropdown/interface.mjs +1 -0
  96. package/es/src/hooks/index.mjs +6 -0
  97. package/es/src/hooks/useMessage.mjs +1 -1
  98. package/es/src/icon/icon.vue.mjs +2 -66
  99. package/es/src/icon/icon.vue2.mjs +67 -2
  100. package/es/src/icon/index.mjs +8 -5
  101. package/es/src/icon/interface.mjs +1 -0
  102. package/es/src/icon/svg-icon.vue.mjs +2 -32
  103. package/es/src/icon/svg-icon.vue2.mjs +32 -2
  104. package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
  105. package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
  106. package/es/src/icon-picker/index.mjs +7 -5
  107. package/es/src/icon-picker/interface.mjs +1 -0
  108. package/es/src/index.mjs +163 -155
  109. package/es/src/locale/index.mjs +7 -0
  110. package/es/src/locale/interface.mjs +1 -0
  111. package/es/src/modal/basic.vue.mjs +2 -195
  112. package/es/src/modal/basic.vue2.mjs +199 -2
  113. package/es/src/modal/components/modal-close.vue.mjs +2 -72
  114. package/es/src/modal/components/modal-close.vue2.mjs +72 -2
  115. package/es/src/modal/components/modal-footer.vue.mjs +2 -43
  116. package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
  117. package/es/src/modal/components/modal-header.vue.mjs +1 -18
  118. package/es/src/modal/components/modal-header.vue2.mjs +18 -1
  119. package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
  120. package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
  121. package/es/src/modal/components/modal.mjs +6 -6
  122. package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
  123. package/es/src/modal/hooks/use-modal.mjs +8 -8
  124. package/es/src/modal/index.mjs +10 -7
  125. package/es/src/modal/interface.mjs +1 -0
  126. package/es/src/modal/style/index.css +1 -1
  127. package/es/src/pro-form/component-map.mjs +56 -41
  128. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
  129. package/es/src/pro-form/components/form-action.vue.mjs +2 -105
  130. package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
  131. package/es/src/pro-form/components/form-item.vue.mjs +2 -352
  132. package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
  133. package/es/src/pro-form/components/interface.mjs +1 -0
  134. package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
  135. package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
  136. package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
  137. package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
  138. package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
  139. package/es/src/pro-form/hooks/use-form.mjs +4 -4
  140. package/es/src/pro-form/index.d.ts +1 -0
  141. package/es/src/pro-form/index.mjs +34 -34
  142. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  143. package/es/src/pro-form/pro-form.vue.mjs +39 -37
  144. package/es/src/pro-form/types/form-item.mjs +1 -0
  145. package/es/src/pro-form/types/form.d.ts +8 -8
  146. package/es/src/pro-table/component-map.mjs +29 -37
  147. package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
  148. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
  149. package/es/src/pro-table/components/editable/index.mjs +7 -6
  150. package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
  151. package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
  152. package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
  153. package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
  154. package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
  155. package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
  156. package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
  157. package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
  158. package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
  159. package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
  160. package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
  161. package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
  162. package/es/src/pro-table/components/table-action.vue.mjs +2 -2
  163. package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
  164. package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
  165. package/es/src/pro-table/components/table-header.vue.mjs +2 -86
  166. package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
  167. package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
  168. package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
  169. package/es/src/pro-table/components/table-title.vue.mjs +2 -41
  170. package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
  171. package/es/src/pro-table/hooks/use-columns.mjs +5 -5
  172. package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
  173. package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
  174. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
  175. package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
  176. package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
  177. package/es/src/pro-table/index.mjs +12 -0
  178. package/es/src/pro-table/interface.d.ts +1 -1
  179. package/es/src/pro-table/interface.mjs +1 -0
  180. package/es/src/pro-table/pro-table.vue.d.ts +3 -0
  181. package/es/src/pro-table/pro-table.vue.mjs +69 -70
  182. package/es/src/pro-table/types/pagination.mjs +1 -0
  183. package/es/src/pro-table/types/table-action.mjs +1 -0
  184. package/es/src/pro-table/types/table.mjs +1 -0
  185. package/es/src/prompt/dialog.vue.mjs +2 -61
  186. package/es/src/prompt/dialog.vue2.mjs +58 -2
  187. package/es/src/prompt/index.mjs +9 -8
  188. package/es/src/prompt/utils.d.ts +3 -3
  189. package/es/src/scroll-bar/bar-item.mjs +4 -4
  190. package/es/src/scroll-bar/index.mjs +5 -3
  191. package/es/src/scroll-bar/interface.mjs +1 -0
  192. package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
  193. package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
  194. package/es/src/strength-meter/index.mjs +5 -3
  195. package/es/src/strength-meter/interface.mjs +1 -0
  196. package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
  197. package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
  198. package/es/src/theme/ap-form/ap-form-item.css +4 -0
  199. package/es/src/theme/collapse-container/header.css +1 -1
  200. package/es/src/theme/collapse-container/index.css +1 -1
  201. package/es/src/theme/cropper/avatar.css +1 -1
  202. package/es/src/theme/cropper/modal.css +2 -2
  203. package/es/src/theme/modal/index.css +1 -1
  204. package/es/src/transition/index.mjs +21 -24
  205. package/es/src/type.d.ts +1 -0
  206. package/es/src/utils/index.d.ts +1 -0
  207. package/es/src/utils/index.mjs +21 -8
  208. package/es/src/utils/tree.mjs +103 -13
  209. package/es/src/utils/uuid.mjs +15 -9
  210. package/lib/index.js +1 -1
  211. package/lib/src/ap-action/group/index.vue.js +1 -1
  212. package/lib/src/ap-action/index.js +1 -1
  213. package/lib/src/ap-action/interface.js +1 -0
  214. package/lib/src/ap-action/item/index.vue.js +1 -1
  215. package/lib/src/ap-action/item/index.vue2.js +1 -1
  216. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  217. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  218. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  219. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  220. package/lib/src/ap-field/date/index.vue.js +1 -1
  221. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  222. package/lib/src/ap-field/index.d.ts +12 -0
  223. package/lib/src/ap-field/index.js +1 -0
  224. package/lib/src/ap-field/interface.d.ts +3 -2
  225. package/lib/src/ap-field/interface.js +1 -0
  226. package/lib/src/ap-field/number/helper.js +1 -1
  227. package/lib/src/ap-field/number/index.vue.js +1 -1
  228. package/lib/src/ap-field/radio/index.vue.js +1 -1
  229. package/lib/src/ap-field/select/index.vue.js +1 -1
  230. package/lib/src/ap-field/switch/index.vue.js +1 -1
  231. package/lib/src/ap-field/text/index.vue.d.ts +5 -5
  232. package/lib/src/ap-field/text/index.vue.js +1 -1
  233. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  234. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  235. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  236. package/lib/src/ap-form/ap-form-item.vue.d.ts +3 -0
  237. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  238. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  239. package/lib/src/ap-form/index.d.ts +31 -1682
  240. package/lib/src/ap-form/index.js +1 -1
  241. package/lib/src/ap-form/interface.d.ts +3 -1
  242. package/lib/src/ap-form/items/index.d.ts +3 -0
  243. package/lib/src/ap-form/items/index.js +1 -0
  244. package/lib/src/ap-form/items/interface.d.ts +12 -0
  245. package/lib/src/ap-form/items/text/index.vue.d.ts +69 -0
  246. package/lib/src/ap-form/items/text/index.vue.js +1 -0
  247. package/lib/src/ap-form/items/text/index.vue2.js +1 -0
  248. package/lib/src/ap-form/style/ap-form-item.css +4 -0
  249. package/lib/src/base-button/button.vue.js +1 -1
  250. package/lib/src/base-button/button.vue2.js +1 -1
  251. package/lib/src/base-button/index.js +1 -1
  252. package/lib/src/base-button/interface.js +1 -0
  253. package/lib/src/base-button/modal-button.vue.js +1 -1
  254. package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
  255. package/lib/src/basic/arrow.vue.js +1 -1
  256. package/lib/src/basic/arrow.vue2.js +1 -1
  257. package/lib/src/basic/help.vue.js +1 -1
  258. package/lib/src/basic/help.vue2.js +1 -1
  259. package/lib/src/basic/index.js +1 -1
  260. package/lib/src/basic/interface.js +1 -0
  261. package/lib/src/basic/title.vue.js +1 -1
  262. package/lib/src/basic/title.vue2.js +1 -1
  263. package/lib/src/config-provider/config-provider-props.d.ts +4 -0
  264. package/lib/src/config-provider/config-provider-props.js +1 -1
  265. package/lib/src/config-provider/config-provider.d.ts +9 -0
  266. package/lib/src/config-provider/config-provider.js +1 -1
  267. package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -0
  268. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  269. package/lib/src/config-provider/index.d.ts +19 -0
  270. package/lib/src/config-provider/index.js +1 -1
  271. package/lib/src/container/collapse/header.vue.js +1 -1
  272. package/lib/src/container/collapse/header.vue2.js +1 -1
  273. package/lib/src/container/collapse/index.vue.js +1 -1
  274. package/lib/src/container/collapse/index.vue2.js +1 -1
  275. package/lib/src/container/collapse/style/header.css +1 -1
  276. package/lib/src/container/collapse/style/index.css +1 -1
  277. package/lib/src/container/index.js +1 -1
  278. package/lib/src/container/interface.js +1 -0
  279. package/lib/src/container/scroll-container.vue.js +1 -1
  280. package/lib/src/container/scroll-container.vue2.js +1 -1
  281. package/lib/src/count-down/button.vue.js +1 -1
  282. package/lib/src/count-down/button.vue2.js +1 -1
  283. package/lib/src/count-down/index.js +1 -1
  284. package/lib/src/count-down/input.vue.js +1 -1
  285. package/lib/src/count-down/input.vue2.js +1 -1
  286. package/lib/src/count-down/interface.js +1 -0
  287. package/lib/src/cropper/cropper-avatar.vue.js +1 -1
  288. package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
  289. package/lib/src/cropper/cropper-image.vue.js +1 -1
  290. package/lib/src/cropper/cropper-image.vue2.js +1 -1
  291. package/lib/src/cropper/cropper-modal.vue.js +1 -1
  292. package/lib/src/cropper/cropper-modal.vue2.js +1 -1
  293. package/lib/src/cropper/index.js +1 -1
  294. package/lib/src/cropper/interface.js +1 -0
  295. package/lib/src/cropper/style/avatar.css +1 -1
  296. package/lib/src/cropper/style/modal.css +2 -2
  297. package/lib/src/description/description.vue.js +1 -1
  298. package/lib/src/description/description.vue2.js +1 -1
  299. package/lib/src/description/index.js +1 -1
  300. package/lib/src/description/interface.js +1 -0
  301. package/lib/src/dropdown/dropdown.vue.js +1 -1
  302. package/lib/src/dropdown/dropdown.vue2.js +1 -1
  303. package/lib/src/dropdown/index.js +1 -1
  304. package/lib/src/dropdown/interface.js +1 -0
  305. package/lib/src/hooks/index.js +1 -0
  306. package/lib/src/icon/icon.vue.js +1 -1
  307. package/lib/src/icon/icon.vue2.js +1 -1
  308. package/lib/src/icon/index.js +1 -1
  309. package/lib/src/icon/interface.js +1 -0
  310. package/lib/src/icon/svg-icon.vue.js +1 -1
  311. package/lib/src/icon/svg-icon.vue2.js +1 -1
  312. package/lib/src/icon-picker/icon-picker.vue.js +1 -1
  313. package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
  314. package/lib/src/icon-picker/index.js +1 -1
  315. package/lib/src/icon-picker/interface.js +1 -0
  316. package/lib/src/index.js +1 -1
  317. package/lib/src/locale/index.js +1 -0
  318. package/lib/src/locale/interface.js +1 -0
  319. package/lib/src/modal/basic.vue.js +1 -1
  320. package/lib/src/modal/basic.vue2.js +1 -1
  321. package/lib/src/modal/components/modal-close.vue.js +1 -1
  322. package/lib/src/modal/components/modal-close.vue2.js +1 -1
  323. package/lib/src/modal/components/modal-footer.vue.js +1 -1
  324. package/lib/src/modal/components/modal-footer.vue2.js +1 -1
  325. package/lib/src/modal/components/modal-header.vue.js +1 -1
  326. package/lib/src/modal/components/modal-header.vue2.js +1 -1
  327. package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
  328. package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
  329. package/lib/src/modal/index.js +1 -1
  330. package/lib/src/modal/interface.js +1 -0
  331. package/lib/src/modal/style/index.css +1 -1
  332. package/lib/src/pro-form/component-map.js +1 -1
  333. package/lib/src/pro-form/components/form-action.vue.js +1 -1
  334. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  335. package/lib/src/pro-form/components/form-item.vue.js +1 -1
  336. package/lib/src/pro-form/components/form-item.vue2.js +1 -1
  337. package/lib/src/pro-form/components/interface.js +1 -0
  338. package/lib/src/pro-form/hooks/use-break-point.js +1 -1
  339. package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
  340. package/lib/src/pro-form/hooks/use-component-register.js +1 -0
  341. package/lib/src/pro-form/index.d.ts +1 -0
  342. package/lib/src/pro-form/index.js +1 -1
  343. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  344. package/lib/src/pro-form/pro-form.vue.js +1 -1
  345. package/lib/src/pro-form/types/form-item.js +1 -0
  346. package/lib/src/pro-form/types/form.d.ts +8 -8
  347. package/lib/src/pro-table/component-map.js +1 -1
  348. package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
  349. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  350. package/lib/src/pro-table/components/editable/index.js +1 -1
  351. package/lib/src/pro-table/components/header-cell.vue.js +1 -1
  352. package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
  353. package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
  354. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  355. package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
  356. package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
  357. package/lib/src/pro-table/components/settings/index.vue.js +1 -1
  358. package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
  359. package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
  360. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  361. package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
  362. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  363. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  364. package/lib/src/pro-table/components/table-footer.vue.js +1 -1
  365. package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
  366. package/lib/src/pro-table/components/table-header.vue.js +1 -1
  367. package/lib/src/pro-table/components/table-header.vue2.js +1 -1
  368. package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
  369. package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
  370. package/lib/src/pro-table/components/table-title.vue.js +1 -1
  371. package/lib/src/pro-table/components/table-title.vue2.js +1 -1
  372. package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
  373. package/lib/src/pro-table/hooks/use-table-header.js +1 -1
  374. package/lib/src/pro-table/index.js +1 -0
  375. package/lib/src/pro-table/interface.d.ts +1 -1
  376. package/lib/src/pro-table/interface.js +1 -0
  377. package/lib/src/pro-table/pro-table.vue.d.ts +3 -0
  378. package/lib/src/pro-table/pro-table.vue.js +1 -1
  379. package/lib/src/pro-table/types/pagination.js +1 -0
  380. package/lib/src/pro-table/types/table-action.js +1 -0
  381. package/lib/src/pro-table/types/table.js +1 -0
  382. package/lib/src/prompt/dialog.vue.js +1 -1
  383. package/lib/src/prompt/dialog.vue2.js +1 -1
  384. package/lib/src/prompt/index.js +1 -1
  385. package/lib/src/prompt/utils.d.ts +3 -3
  386. package/lib/src/scroll-bar/index.js +1 -1
  387. package/lib/src/scroll-bar/interface.js +1 -0
  388. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  389. package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
  390. package/lib/src/strength-meter/index.js +1 -1
  391. package/lib/src/strength-meter/interface.js +1 -0
  392. package/lib/src/strength-meter/strength-meter.vue.js +1 -1
  393. package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
  394. package/lib/src/theme/ap-form/ap-form-item.css +4 -0
  395. package/lib/src/theme/collapse-container/header.css +1 -1
  396. package/lib/src/theme/collapse-container/index.css +1 -1
  397. package/lib/src/theme/cropper/avatar.css +1 -1
  398. package/lib/src/theme/cropper/modal.css +2 -2
  399. package/lib/src/theme/modal/index.css +1 -1
  400. package/lib/src/transition/index.js +1 -1
  401. package/lib/src/type.d.ts +1 -0
  402. package/lib/src/utils/index.d.ts +1 -0
  403. package/lib/src/utils/index.js +1 -1
  404. package/lib/src/utils/tree.js +1 -1
  405. package/lib/src/utils/uuid.js +1 -1
  406. package/package.json +1 -1
@@ -1,4 +1,98 @@
1
- import f from "./help.vue.mjs";
1
+ import { defineComponent as d, computed as i, createVNode as o, unref as l } from "vue";
2
+ import { Tooltip as a } from "ant-design-vue";
3
+ import { InfoCircleOutlined as y } from "@ant-design/icons-vue";
4
+ import { getPopupContainer as S } from "../utils/index.mjs";
5
+ import { isType as g, isArray as x } from "@fruits-chain/utils";
6
+ import { getSlot as h } from "../utils/slot.mjs";
7
+ import "../config-provider/index.mjs";
8
+ import "./style/help.css";
9
+ import { useNamespace as v } from "../config-provider/hooks/use-namespace.mjs";
10
+ const w = {
11
+ /**
12
+ * Help text max-width
13
+ * @default: 600px
14
+ */
15
+ maxWidth: {
16
+ type: String,
17
+ default: "600px"
18
+ },
19
+ /**
20
+ * Whether to display the serial number
21
+ * @default: false
22
+ */
23
+ showIndex: {
24
+ type: Boolean
25
+ },
26
+ /**
27
+ * Help text font color
28
+ * @default: #ffffff
29
+ */
30
+ color: {
31
+ type: String,
32
+ default: "#ffffff"
33
+ },
34
+ /**
35
+ * Help text font size
36
+ * @default: 14px
37
+ */
38
+ fontSize: {
39
+ type: String,
40
+ default: "14px"
41
+ },
42
+ /**
43
+ * Help text list
44
+ */
45
+ placement: {
46
+ type: String,
47
+ default: "right"
48
+ },
49
+ /**
50
+ * Help text list
51
+ */
52
+ text: {
53
+ type: [Array, String, Object]
54
+ }
55
+ }, j = /* @__PURE__ */ d({
56
+ name: "ApBasicHelp",
57
+ components: {
58
+ Tooltip: a
59
+ },
60
+ props: w,
61
+ setup(t, {
62
+ slots: p
63
+ }) {
64
+ const {
65
+ b: f,
66
+ be: r
67
+ } = v("basic-help"), m = i(() => ({
68
+ color: t.color,
69
+ fontSize: t.fontSize
70
+ })), c = i(() => ({
71
+ maxWidth: t.maxWidth
72
+ }));
73
+ function u() {
74
+ const e = t.text;
75
+ return g("String")(e) ? e : x(e) ? e.map((n, s) => o("p", {
76
+ key: n,
77
+ class: r("content", "row")
78
+ }, [t.showIndex ? `${s + 1}. ` : "", n])) : e;
79
+ }
80
+ return () => o(a, {
81
+ overlayClassName: `${r("wrap")}`,
82
+ title: o("div", {
83
+ style: l(m)
84
+ }, [u()]),
85
+ autoAdjustOverflow: !0,
86
+ overlayStyle: l(c),
87
+ placement: t.placement,
88
+ getPopupContainer: () => S()
89
+ }, {
90
+ default: () => [o("span", {
91
+ class: f()
92
+ }, [h(p) || o(y, null, null)])]
93
+ });
94
+ }
95
+ });
2
96
  export {
3
- f as default
97
+ j as default
4
98
  };
@@ -1,10 +1,14 @@
1
- import i from "./help.vue.mjs";
2
- import m from "./title.vue.mjs";
3
- import r from "./arrow.vue.mjs";
1
+ import "./help.vue.mjs";
2
+ import "./title.vue.mjs";
3
+ import "./arrow.vue.mjs";
4
4
  import { withInstall as o } from "@aplus-frontend/utils";
5
- const f = o(i), n = o(m), p = o(r);
5
+ import "./interface.mjs";
6
+ import i from "./help.vue2.mjs";
7
+ import m from "./title.vue2.mjs";
8
+ import r from "./arrow.vue2.mjs";
9
+ const l = o(i), e = o(m), B = o(r);
6
10
  export {
7
- p as BasicArrow,
8
- f as BasicHelp,
9
- n as BasicTitle
11
+ B as BasicArrow,
12
+ l as BasicHelp,
13
+ e as BasicTitle
10
14
  };
@@ -0,0 +1 @@
1
+
@@ -1,34 +1,4 @@
1
- import { defineComponent as r, useSlots as m, computed as c, openBlock as o, createElementBlock as i, normalizeClass as a, renderSlot as u, createBlock as f, unref as d, createCommentVNode as h } from "vue";
2
- import B from "./help.vue.mjs";
3
- import "../config-provider/index.mjs";
4
- import "./style/title.css";
5
- import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
6
- const b = /* @__PURE__ */ r({
7
- name: "ApBasicTitle",
8
- __name: "title",
9
- props: {
10
- helpMessage: { default: "" },
11
- span: { type: Boolean },
12
- normal: { type: Boolean }
13
- },
14
- setup(l) {
15
- const t = l, { b: e } = _("basic-title"), n = m(), p = c(() => [
16
- e(),
17
- { [`${e("show-span")}`]: t.span && n.default },
18
- { [`${e("normal")}`]: t.normal }
19
- ]);
20
- return (s, g) => (o(), i("span", {
21
- class: a(p.value)
22
- }, [
23
- u(s.$slots, "default"),
24
- s.helpMessage ? (o(), f(B, {
25
- key: 0,
26
- class: a(d(e)("help")),
27
- text: s.helpMessage
28
- }, null, 8, ["class", "text"])) : h("", !0)
29
- ], 2));
30
- }
31
- });
1
+ import f from "./title.vue2.mjs";
32
2
  export {
33
- b as default
3
+ f as default
34
4
  };
@@ -1,4 +1,35 @@
1
- import f from "./title.vue.mjs";
1
+ import { defineComponent as r, useSlots as m, computed as c, openBlock as o, createElementBlock as i, normalizeClass as a, renderSlot as u, createBlock as f, unref as d, createCommentVNode as h } from "vue";
2
+ import "./help.vue.mjs";
3
+ import "../config-provider/index.mjs";
4
+ import "./style/title.css";
5
+ import { useNamespace as B } from "../config-provider/hooks/use-namespace.mjs";
6
+ import _ from "./help.vue2.mjs";
7
+ const N = /* @__PURE__ */ r({
8
+ name: "ApBasicTitle",
9
+ __name: "title",
10
+ props: {
11
+ helpMessage: { default: "" },
12
+ span: { type: Boolean },
13
+ normal: { type: Boolean }
14
+ },
15
+ setup(l) {
16
+ const t = l, { b: e } = B("basic-title"), n = m(), p = c(() => [
17
+ e(),
18
+ { [`${e("show-span")}`]: t.span && n.default },
19
+ { [`${e("normal")}`]: t.normal }
20
+ ]);
21
+ return (s, g) => (o(), i("span", {
22
+ class: a(p.value)
23
+ }, [
24
+ u(s.$slots, "default"),
25
+ s.helpMessage ? (o(), f(_, {
26
+ key: 0,
27
+ class: a(d(e)("help")),
28
+ text: s.helpMessage
29
+ }, null, 8, ["class", "text"])) : h("", !0)
30
+ ], 2));
31
+ }
32
+ });
2
33
  export {
3
- f as default
34
+ N as default
4
35
  };
@@ -144,5 +144,9 @@ export declare const configProviderProps: () => {
144
144
  native: boolean;
145
145
  };
146
146
  };
147
+ uiMode: {
148
+ type: PropType<"aplus" | "admin">;
149
+ default: string;
150
+ };
147
151
  };
148
152
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -1,6 +1,6 @@
1
1
  import { definePropType as e } from "@aplus-frontend/utils";
2
2
  import { configProviderProps as t } from "ant-design-vue/es/config-provider/context";
3
- const p = () => ({
3
+ const r = () => ({
4
4
  /**
5
5
  * @description aplus-ui的locale
6
6
  */
@@ -22,8 +22,12 @@ const p = () => ({
22
22
  type: Object,
23
23
  default: () => ({ native: !1 })
24
24
  },
25
+ uiMode: {
26
+ type: String,
27
+ default: "aplus"
28
+ },
25
29
  ...t()
26
30
  });
27
31
  export {
28
- p as configProviderProps
32
+ r as configProviderProps
29
33
  };
@@ -142,6 +142,10 @@ export declare const ConfigProvider: DefineComponent<{
142
142
  native: boolean;
143
143
  };
144
144
  };
145
+ uiMode: {
146
+ type: PropType<"aplus" | "admin">;
147
+ default: string;
148
+ };
145
149
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
146
150
  iconPrefixCls: StringConstructor;
147
151
  getTargetContainer: {
@@ -275,6 +279,10 @@ export declare const ConfigProvider: DefineComponent<{
275
279
  native: boolean;
276
280
  };
277
281
  };
282
+ uiMode: {
283
+ type: PropType<"aplus" | "admin">;
284
+ default: string;
285
+ };
278
286
  }>>, {
279
287
  theme: ThemeConfig;
280
288
  direction: "ltr" | "rtl";
@@ -310,5 +318,6 @@ export declare const ConfigProvider: DefineComponent<{
310
318
  namespace: string;
311
319
  api: ApiType;
312
320
  scrollbar: ScrollbarGlobalConfig;
321
+ uiMode: "aplus" | "admin";
313
322
  }, {}>;
314
323
  export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
@@ -1,35 +1,39 @@
1
- import { defineComponent as l, createVNode as d, renderSlot as m, isVNode as a } from "vue";
2
- import { ConfigProvider as u } from "ant-design-vue";
3
- import { provideGlobalConfig as c } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as g } from "./config-provider-props.mjs";
5
- import { tableDefaultConfig as s } from "./constants.mjs";
6
- function v(o) {
7
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !a(o);
1
+ import { isVNode as m, defineComponent as a, createVNode as u, renderSlot as c } from "vue";
2
+ import { ConfigProvider as g } from "ant-design-vue";
3
+ import { provideGlobalConfig as s } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as v } from "./config-provider-props.mjs";
5
+ import { tableDefaultConfig as C } from "./constants.mjs";
6
+ function b(o) {
7
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !m(o);
8
8
  }
9
- const y = /* @__PURE__ */ l({
9
+ const O = /* @__PURE__ */ a({
10
10
  name: "AplusConfigProvider",
11
- props: g(),
11
+ props: v(),
12
12
  setup({
13
13
  namespace: o,
14
14
  aplusLocale: t,
15
15
  api: i,
16
16
  table: n,
17
- ...f
17
+ scrollbar: f,
18
+ uiMode: p,
19
+ ...l
18
20
  }, {
19
- slots: p
21
+ slots: d
20
22
  }) {
21
- const r = c({
23
+ const r = s({
22
24
  namespace: o,
23
25
  aplusLocale: t,
24
26
  api: i,
25
27
  table: {
26
- ...s,
28
+ ...C,
27
29
  ...n || {}
28
- }
30
+ },
31
+ scrollbar: f,
32
+ uiMode: p
29
33
  });
30
34
  return () => {
31
35
  let e;
32
- return d(u, f, v(e = m(p, "default", {
36
+ return u(g, l, b(e = c(d, "default", {
33
37
  config: r == null ? void 0 : r.value
34
38
  })) ? e : {
35
39
  default: () => [e]
@@ -38,5 +42,5 @@ const y = /* @__PURE__ */ l({
38
42
  }
39
43
  });
40
44
  export {
41
- y as ConfigProvider
45
+ O as ConfigProvider
42
46
  };
@@ -147,4 +147,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
147
147
  native: boolean;
148
148
  };
149
149
  };
150
+ uiMode: {
151
+ type: PropType<"aplus" | "admin">;
152
+ default: string;
153
+ };
150
154
  }>>>> | undefined;
@@ -1,5 +1,6 @@
1
1
  import { unref as o, computed as c, isRef as l, ref as s, inject as a } from "vue";
2
2
  import { get as m } from "lodash-unified";
3
+ import "../../locale/index.mjs";
3
4
  import u from "../../locale/lang/zh-cn.mjs";
4
5
  const f = (e) => (t, r) => i(t, r, o(e)), i = (e, t, r) => m(r, e, e).replace(
5
6
  /\{(\w+)\}/g,
@@ -149,6 +149,10 @@ export declare const APConfigProvider: {
149
149
  native: boolean;
150
150
  };
151
151
  };
152
+ uiMode: {
153
+ type: PropType<"aplus" | "admin">;
154
+ default: string;
155
+ };
152
156
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
153
157
  iconPrefixCls: StringConstructor;
154
158
  getTargetContainer: {
@@ -282,6 +286,10 @@ export declare const APConfigProvider: {
282
286
  native: boolean;
283
287
  };
284
288
  };
289
+ uiMode: {
290
+ type: PropType<"aplus" | "admin">;
291
+ default: string;
292
+ };
285
293
  }>>, {
286
294
  theme: ThemeConfig;
287
295
  direction: "ltr" | "rtl";
@@ -317,6 +325,7 @@ export declare const APConfigProvider: {
317
325
  namespace: string;
318
326
  api: ApiType;
319
327
  scrollbar: ScrollbarGlobalConfig;
328
+ uiMode: "aplus" | "admin";
320
329
  }, true, {}, {}, {
321
330
  P: {};
322
331
  B: {};
@@ -457,6 +466,10 @@ export declare const APConfigProvider: {
457
466
  native: boolean;
458
467
  };
459
468
  };
469
+ uiMode: {
470
+ type: PropType<"aplus" | "admin">;
471
+ default: string;
472
+ };
460
473
  }>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
461
474
  theme: ThemeConfig;
462
475
  direction: "ltr" | "rtl";
@@ -492,6 +505,7 @@ export declare const APConfigProvider: {
492
505
  namespace: string;
493
506
  api: ApiType;
494
507
  scrollbar: ScrollbarGlobalConfig;
508
+ uiMode: "aplus" | "admin";
495
509
  }>;
496
510
  __isFragment?: undefined;
497
511
  __isTeleport?: undefined;
@@ -629,6 +643,10 @@ export declare const APConfigProvider: {
629
643
  native: boolean;
630
644
  };
631
645
  };
646
+ uiMode: {
647
+ type: PropType<"aplus" | "admin">;
648
+ default: string;
649
+ };
632
650
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
633
651
  theme: ThemeConfig;
634
652
  direction: "ltr" | "rtl";
@@ -664,6 +682,7 @@ export declare const APConfigProvider: {
664
682
  namespace: string;
665
683
  api: ApiType;
666
684
  scrollbar: ScrollbarGlobalConfig;
685
+ uiMode: "aplus" | "admin";
667
686
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
668
687
  $props: {
669
688
  onClick?: (() => void) | undefined;
@@ -1,15 +1,28 @@
1
- import { withInstall as o } from "@aplus-frontend/utils";
2
- import { ConfigProvider as r } from "./config-provider.mjs";
3
- import "ant-design-vue/es/config-provider/context";
4
- import { keysOf as a, provideGlobalConfig as s, useGlobalConfig as d } from "./hooks/use-global-config.mjs";
5
- import "vue";
6
- import "lodash-unified";
7
- const p = o(r);
1
+ import { withInstall as e } from "@aplus-frontend/utils";
2
+ import { ConfigProvider as o } from "./config-provider.mjs";
3
+ import { configProviderProps as l } from "./config-provider-props.mjs";
4
+ import { configProviderContextKey as s, tableDefaultConfig as p } from "./constants.mjs";
5
+ import { keysOf as c, provideGlobalConfig as d, useGlobalConfig as x } from "./hooks/use-global-config.mjs";
6
+ import { buildLocaleContext as C, buildTranslator as g, localeContextKey as v, translate as P, useLocale as b } from "./hooks/use-locale.mjs";
7
+ import { defaultNamespace as G, namespaceContextKey as K, useGetDerivedNamespace as N, useNamespace as D } from "./hooks/use-namespace.mjs";
8
+ const a = e(o);
8
9
  export {
9
- p as APConfigProvider,
10
- r as ConfigProvider,
11
- p as default,
12
- a as keysOf,
13
- s as provideGlobalConfig,
14
- d as useGlobalConfig
10
+ a as APConfigProvider,
11
+ o as ConfigProvider,
12
+ C as buildLocaleContext,
13
+ g as buildTranslator,
14
+ s as configProviderContextKey,
15
+ l as configProviderProps,
16
+ a as default,
17
+ G as defaultNamespace,
18
+ c as keysOf,
19
+ v as localeContextKey,
20
+ K as namespaceContextKey,
21
+ d as provideGlobalConfig,
22
+ p as tableDefaultConfig,
23
+ P as translate,
24
+ N as useGetDerivedNamespace,
25
+ x as useGlobalConfig,
26
+ b as useLocale,
27
+ D as useNamespace
15
28
  };
@@ -1,51 +1,4 @@
1
- import { defineComponent as c, createVNode as n } from "vue";
2
- import "../../config-provider/index.mjs";
3
- import { BasicTitle as l, BasicArrow as p } from "../../basic/index.mjs";
4
- import "./style/header.css";
5
- import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
6
- const s = {
7
- title: String,
8
- show: Boolean,
9
- canExpand: Boolean,
10
- helpMessage: {
11
- type: [Array, String],
12
- default: ""
13
- }
14
- }, g = /* @__PURE__ */ c({
15
- name: "ApCollapseHeader",
16
- inheritAttrs: !1,
17
- props: s,
18
- emits: ["expand"],
19
- setup(e, {
20
- slots: a,
21
- attrs: o,
22
- emit: t
23
- }) {
24
- const {
25
- e: r
26
- } = d("collapse-container-header");
27
- return () => n("div", {
28
- class: [r("header"), o.class]
29
- }, [n(l, {
30
- helpMessage: e.helpMessage,
31
- normal: !0
32
- }, {
33
- default: () => {
34
- var i;
35
- return [((i = a.title) == null ? void 0 : i.call(a)) || e.title];
36
- }
37
- }), n("div", {
38
- class: r("action")
39
- }, [a.action ? a.action({
40
- expand: e.show,
41
- onClick: () => t("expand")
42
- }) : e.canExpand && n(p, {
43
- up: !0,
44
- expand: e.show,
45
- onClick: () => t("expand")
46
- }, null)])]);
47
- }
48
- });
1
+ import f from "./header.vue2.mjs";
49
2
  export {
50
- g as default
3
+ f as default
51
4
  };
@@ -1,4 +1,51 @@
1
- import f from "./header.vue.mjs";
1
+ import { defineComponent as c, createVNode as n } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import { BasicTitle as l, BasicArrow as p } from "../../basic/index.mjs";
4
+ import "./style/header.css";
5
+ import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
6
+ const s = {
7
+ title: String,
8
+ show: Boolean,
9
+ canExpand: Boolean,
10
+ helpMessage: {
11
+ type: [Array, String],
12
+ default: ""
13
+ }
14
+ }, g = /* @__PURE__ */ c({
15
+ name: "ApCollapseHeader",
16
+ inheritAttrs: !1,
17
+ props: s,
18
+ emits: ["expand"],
19
+ setup(e, {
20
+ slots: a,
21
+ attrs: o,
22
+ emit: t
23
+ }) {
24
+ const {
25
+ e: r
26
+ } = d("collapse-container-header");
27
+ return () => n("div", {
28
+ class: [r("header"), o.class]
29
+ }, [n(l, {
30
+ helpMessage: e.helpMessage,
31
+ normal: !0
32
+ }, {
33
+ default: () => {
34
+ var i;
35
+ return [((i = a.title) == null ? void 0 : i.call(a)) || e.title];
36
+ }
37
+ }), n("div", {
38
+ class: r("action")
39
+ }, [a.action ? a.action({
40
+ expand: e.show,
41
+ onClick: () => t("expand")
42
+ }) : e.canExpand && n(p, {
43
+ up: !0,
44
+ expand: e.show,
45
+ onClick: () => t("expand")
46
+ }, null)])]);
47
+ }
48
+ });
2
49
  export {
3
- f as default
50
+ g as default
4
51
  };
@@ -1,87 +1,4 @@
1
- import { defineComponent as p, ref as f, createVNode as t, unref as d, mergeProps as u, withDirectives as c, vShow as s } from "vue";
2
- import "../../transition/index.mjs";
3
- import { useTimeoutFn as g } from "@vueuse/core";
4
- import { triggerWindowResize as v } from "@aplus-frontend/utils";
5
- import { Skeleton as w } from "ant-design-vue";
6
- import { isNil as y } from "lodash-unified";
7
- import "../../config-provider/index.mjs";
8
- import h from "./header.vue.mjs";
9
- import "./style/index.css";
10
- import _ from "../../transition/collapse-transition.vue.mjs";
11
- import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
12
- const z = {
13
- title: {
14
- type: String,
15
- default: ""
16
- },
17
- loading: {
18
- type: Boolean
19
- },
20
- /**
21
- * Can it be expanded
22
- */
23
- canExpand: {
24
- type: Boolean,
25
- default: !0
26
- },
27
- /**
28
- * Warm reminder on the right side of the title
29
- */
30
- helpMessage: {
31
- type: [Array, String],
32
- default: ""
33
- },
34
- /**
35
- * Whether to trigger window.resize when expanding and contracting,
36
- * Can adapt to tables and forms, when the form shrinks, the form triggers resize to adapt to the height
37
- */
38
- triggerWindowResize: {
39
- type: Boolean
40
- },
41
- /**
42
- * Delayed loading time
43
- */
44
- lazyTime: {
45
- type: Number,
46
- default: 0
47
- }
48
- }, $ = /* @__PURE__ */ p({
49
- name: "ApCollapseContainer",
50
- props: z,
51
- setup(i, {
52
- expose: l,
53
- slots: e
54
- }) {
55
- const {
56
- b: m,
57
- e: n
58
- } = x("collapse-container"), r = f(!0), a = (o) => {
59
- r.value = y(o) ? !r.value : o, i.triggerWindowResize && g(v, 200);
60
- };
61
- return l({
62
- handleExpand: a
63
- }), () => t("div", {
64
- class: d(m())
65
- }, [t(h, u(i, {
66
- onExpand: a,
67
- show: r.value
68
- }), {
69
- title: e.title,
70
- action: e.action
71
- }), t("div", {
72
- class: n("content-wrapper")
73
- }, [t(_, null, {
74
- default: () => {
75
- var o;
76
- return [i.loading ? t(w, {
77
- active: i.loading
78
- }, null) : c(t("div", null, [(o = e.default) == null ? void 0 : o.call(e)]), [[s, r.value]])];
79
- }
80
- })]), e.footer && t("div", {
81
- class: n("footer")
82
- }, [e.footer()])]);
83
- }
84
- });
1
+ import f from "./index.vue2.mjs";
85
2
  export {
86
- $ as default
3
+ f as default
87
4
  };