@aplus-frontend/ui 0.6.0-beta.1 → 0.6.0-beta.11

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 (350) hide show
  1. package/es/index.mjs +294 -289
  2. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  3. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  4. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  5. package/es/src/ap-field/date/helper.mjs +12 -12
  6. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  9. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  10. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  11. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  12. package/es/src/ap-form/interface.d.ts +4 -0
  13. package/es/src/ap-form/item/index.vue.d.ts +1 -1
  14. package/es/src/ap-form/item/index.vue.mjs +7 -7
  15. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  16. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  17. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  18. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  19. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  20. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
  24. package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
  25. package/es/src/ap-form/search-form/index.vue.mjs +77 -76
  26. package/es/src/ap-grid/constants.d.ts +3 -3
  27. package/es/src/ap-grid/constants.mjs +9 -9
  28. package/es/src/ap-grid/editable/form-item.vue.mjs +94 -83
  29. package/es/src/ap-grid/editable/index.vue.mjs +89 -78
  30. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  31. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  32. package/es/src/ap-grid/index.vue.mjs +161 -139
  33. package/es/src/ap-grid/interface.d.ts +2 -2
  34. package/es/src/ap-grid/utils/table.mjs +32 -32
  35. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  36. package/es/src/ap-table/ap-table.vue2.mjs +209 -198
  37. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  38. package/es/src/ap-table/constants.d.ts +30 -30
  39. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
  40. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +147 -130
  41. package/es/src/ap-table/utils.d.ts +14 -14
  42. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  43. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
  44. package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
  45. package/es/src/ap-tag/interface.d.ts +4 -0
  46. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  47. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +93 -73
  48. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  49. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  50. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +109 -99
  51. package/es/src/business/ap-export-group/index.d.ts +3 -0
  52. package/es/src/business/ap-export-group/interface.d.ts +7 -2
  53. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  54. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  55. package/es/src/business/ap-label/constans.mjs +1 -1
  56. package/es/src/business/ap-label/index.d.ts +3 -3
  57. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  58. package/es/src/business/ap-ladder/index.d.ts +3 -3
  59. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
  60. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  61. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
  62. package/es/src/business/ap-radio-group/index.d.ts +55 -0
  63. package/es/src/business/ap-radio-group/index.mjs +8 -0
  64. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  65. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  66. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  67. package/es/src/business/ap-radio-group/style/css.js +1 -0
  68. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  69. package/es/src/business/ap-radio-group/style/index.js +1 -0
  70. package/es/src/business/ap-status/interface.d.ts +1 -1
  71. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  72. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
  73. package/es/src/business/ap-view/ap-view.vue2.mjs +128 -112
  74. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +64 -54
  75. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  76. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  77. package/es/src/business/ap-view/index.d.ts +3 -0
  78. package/es/src/business/ap-view/interface.d.ts +8 -0
  79. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  80. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  81. package/es/src/business/hooks/usePageListApGrid.d.ts +2 -0
  82. package/es/src/business/hooks/usePageListApGrid.mjs +70 -47
  83. package/es/src/business/index.d.ts +1 -0
  84. package/es/src/business/index.mjs +15 -13
  85. package/es/src/check-card/group.vue.d.ts +1 -1
  86. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  87. package/es/src/config-provider/config-provider-props.mjs +0 -4
  88. package/es/src/config-provider/config-provider.d.ts +0 -138
  89. package/es/src/config-provider/config-provider.mjs +21 -26
  90. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  91. package/es/src/config-provider/index.d.ts +0 -652
  92. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  93. package/es/src/editable-table/form-item.vue.mjs +84 -76
  94. package/es/src/editable-table/index.vue.d.ts +2 -16
  95. package/es/src/editable-table/index.vue.mjs +91 -83
  96. package/es/src/editable-table/interface.d.ts +7 -0
  97. package/es/src/index.mjs +166 -164
  98. package/es/src/locale/lang/en.mjs +1 -1
  99. package/es/src/locale/lang/zh-cn.mjs +1 -1
  100. package/es/src/path-map.mjs +2 -1
  101. package/es/src/version.d.ts +2 -0
  102. package/es/src/version.mjs +4 -0
  103. package/lib/index.js +1 -1
  104. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  105. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  106. package/lib/src/ap-button/ap-button.vue.js +1 -1
  107. package/lib/src/ap-field/date/helper.js +1 -1
  108. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  109. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  110. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  111. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  112. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  113. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  114. package/lib/src/ap-form/interface.d.ts +4 -0
  115. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  116. package/lib/src/ap-form/item/index.vue.js +1 -1
  117. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  118. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  119. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  120. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  121. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  122. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  123. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  124. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  125. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  126. package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
  127. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  128. package/lib/src/ap-grid/constants.d.ts +3 -3
  129. package/lib/src/ap-grid/constants.js +1 -1
  130. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  131. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  132. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  133. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  134. package/lib/src/ap-grid/index.vue.js +1 -1
  135. package/lib/src/ap-grid/interface.d.ts +2 -2
  136. package/lib/src/ap-grid/utils/table.js +1 -1
  137. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  138. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  139. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  140. package/lib/src/ap-table/constants.d.ts +30 -30
  141. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
  142. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  143. package/lib/src/ap-table/utils.d.ts +14 -14
  144. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  145. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
  146. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  147. package/lib/src/ap-tag/interface.d.ts +4 -0
  148. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  149. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  150. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  151. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  152. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  153. package/lib/src/business/ap-export-group/index.d.ts +3 -0
  154. package/lib/src/business/ap-export-group/interface.d.ts +7 -2
  155. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  156. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  157. package/lib/src/business/ap-label/constans.js +1 -1
  158. package/lib/src/business/ap-label/index.d.ts +3 -3
  159. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  160. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  161. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
  162. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  163. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  164. package/lib/src/business/ap-radio-group/index.d.ts +55 -0
  165. package/lib/src/business/ap-radio-group/index.js +1 -0
  166. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  167. package/lib/src/business/ap-radio-group/interface.js +1 -0
  168. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  169. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  170. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  171. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  172. package/lib/src/business/ap-status/interface.d.ts +1 -1
  173. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  174. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
  175. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  176. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  177. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  178. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  179. package/lib/src/business/ap-view/index.d.ts +3 -0
  180. package/lib/src/business/ap-view/interface.d.ts +8 -0
  181. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  182. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  183. package/lib/src/business/hooks/usePageListApGrid.d.ts +2 -0
  184. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  185. package/lib/src/business/index.d.ts +1 -0
  186. package/lib/src/business/index.js +1 -1
  187. package/lib/src/check-card/group.vue.d.ts +1 -1
  188. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  189. package/lib/src/config-provider/config-provider-props.js +1 -1
  190. package/lib/src/config-provider/config-provider.d.ts +0 -138
  191. package/lib/src/config-provider/config-provider.js +1 -1
  192. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  193. package/lib/src/config-provider/index.d.ts +0 -652
  194. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  195. package/lib/src/editable-table/form-item.vue.js +1 -1
  196. package/lib/src/editable-table/index.vue.d.ts +2 -16
  197. package/lib/src/editable-table/index.vue.js +1 -1
  198. package/lib/src/editable-table/interface.d.ts +7 -0
  199. package/lib/src/index.js +1 -1
  200. package/lib/src/locale/lang/en.js +1 -1
  201. package/lib/src/locale/lang/zh-cn.js +1 -1
  202. package/lib/src/path-map.js +1 -1
  203. package/lib/src/version.d.ts +2 -0
  204. package/lib/src/version.js +1 -0
  205. package/package.json +7 -5
  206. package/theme/antd-global-overwrite/admin/alert.css +6 -19
  207. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  208. package/theme/antd-global-overwrite/admin/button.css +13 -13
  209. package/theme/antd-global-overwrite/admin/button.less +24 -24
  210. package/theme/antd-global-overwrite/admin/field.css +27 -0
  211. package/theme/antd-global-overwrite/admin/field.less +23 -0
  212. package/theme/antd-global-overwrite/admin/index.css +82 -471
  213. package/theme/antd-global-overwrite/admin/index.less +2 -3
  214. package/theme/antd-global-overwrite/admin/message.css +2 -9
  215. package/theme/antd-global-overwrite/admin/message.less +2 -10
  216. package/theme/antd-global-overwrite/admin/modal.css +10 -49
  217. package/theme/antd-global-overwrite/admin/modal.less +10 -53
  218. package/theme/antd-global-overwrite/admin/table.css +21 -75
  219. package/theme/antd-global-overwrite/admin/table.less +4 -7
  220. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  221. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  222. package/theme/antd-global-overwrite/aplus/alert.css +9 -19
  223. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  224. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  225. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  226. package/theme/antd-global-overwrite/aplus/field.css +21 -0
  227. package/theme/antd-global-overwrite/aplus/field.less +16 -0
  228. package/theme/antd-global-overwrite/aplus/index.css +82 -522
  229. package/theme/antd-global-overwrite/aplus/index.less +1 -3
  230. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  231. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  232. package/theme/antd-global-overwrite/aplus/modal.css +10 -50
  233. package/theme/antd-global-overwrite/aplus/modal.less +11 -57
  234. package/theme/antd-global-overwrite/aplus/table.css +19 -67
  235. package/theme/antd-global-overwrite/aplus/table.less +4 -7
  236. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  237. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  238. package/theme/ap-action/item-dropdown.css +19 -1
  239. package/theme/ap-action/item.css +20 -2
  240. package/theme/ap-appendix/ap-appendix.css +25 -5
  241. package/theme/ap-appendix/ap-appendix.less +6 -4
  242. package/theme/ap-attachment/ap-attachment.css +25 -6
  243. package/theme/ap-attachment/ap-attachment.less +6 -6
  244. package/theme/ap-batch-action/ap-batch-action.css +25 -4
  245. package/theme/ap-batch-action/ap-batch-action.less +6 -3
  246. package/theme/ap-button/ap-button.css +19 -1
  247. package/theme/ap-card/ap-card.css +19 -1
  248. package/theme/ap-descriptions/ap-descriptions.css +24 -6
  249. package/theme/ap-descriptions/ap-descriptions.less +5 -5
  250. package/theme/ap-download/ap-download.css +26 -11
  251. package/theme/ap-download/ap-download.less +8 -11
  252. package/theme/ap-expand-alert/ap-expand-alert.css +21 -3
  253. package/theme/ap-expand-alert/ap-expand-alert.less +5 -5
  254. package/theme/ap-field/checkbox.css +19 -1
  255. package/theme/ap-field/index.css +19 -1
  256. package/theme/ap-field/number.css +19 -1
  257. package/theme/ap-field/radio.css +19 -1
  258. package/theme/ap-field/text-area.css +19 -1
  259. package/theme/ap-form/ap-form-item-group.css +19 -1
  260. package/theme/ap-form/ap-form-item.css +26 -5
  261. package/theme/ap-form/ap-form-item.less +11 -5
  262. package/theme/ap-form/drawer-form.css +19 -1
  263. package/theme/ap-form/index.css +43 -10
  264. package/theme/ap-form/item-text-group.css +19 -1
  265. package/theme/ap-form/item-text.css +19 -1
  266. package/theme/ap-form/modal-form.css +19 -1
  267. package/theme/ap-form/search-form-sorter.css +24 -5
  268. package/theme/ap-form/search-form-sorter.less +1 -0
  269. package/theme/ap-form/search-form.css +43 -10
  270. package/theme/ap-form/search-form.less +12 -1
  271. package/theme/ap-grid/editable.css +19 -1
  272. package/theme/ap-grid/editable.less +3 -2
  273. package/theme/ap-grid/index.css +78 -15
  274. package/theme/ap-grid/index.less +21 -6
  275. package/theme/ap-group-search/ap-extension-select.css +19 -1
  276. package/theme/ap-group-search/ap-group-search.css +19 -1
  277. package/theme/ap-group-search/ap-popover-select.css +19 -1
  278. package/theme/ap-image/ap-image.css +19 -1
  279. package/theme/ap-input-radio/ap-input-radio.css +19 -1
  280. package/theme/ap-label/ap-label.css +19 -1
  281. package/theme/ap-ladder/ap-ladder.css +23 -4
  282. package/theme/ap-ladder/ap-ladder.less +4 -3
  283. package/theme/ap-layout/ap-info-layout.css +19 -1
  284. package/theme/ap-list/index.css +19 -1
  285. package/theme/ap-product-info/ap-product-info.css +19 -1
  286. package/theme/ap-radio-group/ap-radio-group.css +64 -0
  287. package/theme/ap-radio-group/ap-radio-group.less +23 -0
  288. package/theme/ap-select-layout/ap-select-layout.css +27 -9
  289. package/theme/ap-select-layout/ap-select-layout.less +8 -8
  290. package/theme/ap-size-input/ap-size-input.css +19 -1
  291. package/theme/ap-status/ap-status.css +21 -4
  292. package/theme/ap-status/ap-status.less +2 -4
  293. package/theme/ap-summary/index.css +22 -4
  294. package/theme/ap-summary/index.less +3 -3
  295. package/theme/ap-table/ap-table-index.css +24 -6
  296. package/theme/ap-table/ap-table-index.less +5 -5
  297. package/theme/ap-table/ap-table-paragraph-ellipsis.css +19 -1
  298. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  299. package/theme/ap-table/ap-table.css +77 -29
  300. package/theme/ap-table/ap-table.less +7 -9
  301. package/theme/ap-table/setting/index.css +23 -6
  302. package/theme/ap-table/setting/modal.css +21 -4
  303. package/theme/ap-table/setting/modal.less +1 -2
  304. package/theme/ap-table/setting/select-group.css +21 -2
  305. package/theme/ap-table/setting/select-group.less +2 -1
  306. package/theme/ap-table/setting/sortable-item-meta.css +19 -1
  307. package/theme/ap-table/setting/sortable-item.css +19 -1
  308. package/theme/ap-table/setting/sorter.css +19 -2
  309. package/theme/ap-table-modal/index.css +77 -29
  310. package/theme/ap-tag/ap-tag-group.css +21 -3
  311. package/theme/ap-tag/ap-tag-group.less +4 -5
  312. package/theme/ap-tag/ap-tag.css +42 -15
  313. package/theme/ap-tag/ap-tag.less +37 -24
  314. package/theme/ap-title/ap-title.css +26 -6
  315. package/theme/ap-title/ap-title.less +7 -5
  316. package/theme/ap-upload/index.css +27 -9
  317. package/theme/ap-upload/multiple-file.css +21 -3
  318. package/theme/ap-upload/multiple-file.less +2 -2
  319. package/theme/ap-upload/picture.css +23 -5
  320. package/theme/ap-upload/picture.less +4 -4
  321. package/theme/ap-upload/single-file.css +21 -3
  322. package/theme/ap-upload/single-file.less +2 -2
  323. package/theme/ap-upload/upload.css +19 -1
  324. package/theme/ap-upload-single/index.css +19 -1
  325. package/theme/ap-view/ap-view.css +23 -1
  326. package/theme/ap-view/ap-view.less +4 -0
  327. package/theme/batch-input-group/index.css +20 -1
  328. package/theme/batch-input-group/popover-input.css +20 -1
  329. package/theme/batch-input-group/popover-input.less +1 -0
  330. package/theme/check-card/index.css +22 -4
  331. package/theme/editable-table/index.css +44 -11
  332. package/theme/full-screen/index.css +19 -1
  333. package/theme/index.css +331 -114
  334. package/theme/index.less +2 -0
  335. package/theme/mask/index.css +19 -1
  336. package/theme/mixins/config.less +1 -1
  337. package/theme/mixins/mixins.css +19 -1
  338. package/theme/mixins/mixins.less +25 -0
  339. package/theme/scroll-bar/index.css +19 -1
  340. package/theme/scroll-view/index.css +19 -1
  341. package/theme/splitter/index.css +21 -3
  342. package/theme/text/group.css +19 -1
  343. package/theme/text/index.css +20 -2
  344. package/theme/ui-mode.css +102 -0
  345. package/theme/ui-mode.less +103 -0
  346. package/theme/work-order-modal/index.css +19 -1
  347. package/es/src/config-provider/css-var.d.ts +0 -139
  348. package/es/src/config-provider/css-var.mjs +0 -278
  349. package/lib/src/config-provider/css-var.d.ts +0 -139
  350. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,18 +1,21 @@
1
- import { defineComponent as N, ref as L, computed as s, watch as O, createBlock as g, createCommentVNode as V, openBlock as p, unref as o, normalizeClass as q, withCtx as n, createVNode as b, mergeProps as z, createTextVNode as w, toDisplayString as h } from "vue";
1
+ import { defineComponent as O, ref as A, computed as s, watch as V, createElementBlock as $, openBlock as d, Fragment as q, createBlock as y, createCommentVNode as M, unref as a, mergeProps as B, withCtx as n, createTextVNode as x, toDisplayString as g, normalizeClass as z, createVNode as h } from "vue";
2
2
  import { DownOutlined as U } from "@ant-design/icons-vue";
3
- import { message as $, Dropdown as H, Button as J, Menu as Q, MenuItem as S } from "@aplus-frontend/antdv";
3
+ import { message as H, Dropdown as J, Menu as Q, MenuItem as G } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { ApExportGroupActionType as m } from "./interface.mjs";
5
+ import { ApExportGroupActionType as i } from "./interface.mjs";
6
6
  import { usePermission as W } from "@aplus-frontend/hooks";
7
7
  import { handleExportDownload as X } from "./handleExportDownload.mjs";
8
8
  import { useInjectApTable as Y } from "../../ap-table/context.mjs";
9
9
  import { convertExportField as Z } from "./convertExportField.mjs";
10
+ import "../../ap-button/index.mjs";
10
11
  import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
11
12
  import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as A } from "../../config-provider/hooks/use-global-config.mjs";
13
- const ve = /* @__PURE__ */ N({
13
+ import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import P from "../../ap-button/ap-button.vue.mjs";
15
+ const ge = /* @__PURE__ */ O({
14
16
  __name: "ApExportGroup",
15
17
  props: {
18
+ type: { default: "button" },
16
19
  selectedRowKeys: {},
17
20
  disabled: { type: Boolean },
18
21
  auth: {},
@@ -26,124 +29,131 @@ const ve = /* @__PURE__ */ N({
26
29
  successMessage: { type: [Boolean, String], default: !1 },
27
30
  exportField: { type: [Boolean, Object], default: void 0 }
28
31
  },
29
- setup(_) {
30
- const { hasPermission: B } = W(), e = _, { columns: u, dataSource: r } = Y(), { b: G } = ee("ap-export-group"), { t: i } = te(), P = A("uiMode"), E = A("exportField"), c = L(!1), v = L(!1), K = s(() => {
31
- const t = {
32
- aplus: "#0070FF",
33
- admin: "#34b77c"
34
- };
35
- return d.value ? "" : t[P.value] || t.aplus;
36
- }), d = s(
32
+ setup(K) {
33
+ const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t: r } = te(), C = ae("exportField"), u = A(!1), p = A(!1), m = s(
37
34
  () => {
38
35
  var t;
39
- return !!(e != null && e.disabled) || (r !== void 0 ? !((t = r == null ? void 0 : r.value) != null && t.length) : !1) || c.value;
36
+ return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) || u.value;
40
37
  }
41
38
  );
42
- O(
43
- () => d.value,
39
+ V(
40
+ () => m.value,
44
41
  () => {
45
- d.value && (v.value = !1);
42
+ m.value && (p.value = !1);
46
43
  },
47
44
  {
48
45
  immediate: !0
49
46
  }
50
47
  );
51
- const D = s(() => (e == null ? void 0 : e.successMessage) === !0 ? i("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), y = s(() => {
52
- const t = "exportFieldList", a = (e == null ? void 0 : e.exportField) ?? (E.value === "" ? !0 : E.value) ?? !1;
53
- return a === !0 ? {
48
+ const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ? r("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), b = s(() => {
49
+ const t = "exportFieldList", l = (e == null ? void 0 : e.exportField) ?? (C.value === "" ? !0 : C.value) ?? !1;
50
+ return l === !0 ? {
54
51
  key: t
55
- } : typeof a == "object" ? {
56
- ...a,
57
- key: a.key ?? t
58
- } : a;
59
- }), R = {
52
+ } : typeof l == "object" ? {
53
+ ...l,
54
+ key: l.key ?? t
55
+ } : l;
56
+ }), j = {
60
57
  textAlign: "center"
61
- }, F = s(() => (e == null ? void 0 : e.selectedRowKeys) || []), T = s(() => {
58
+ }, k = s(() => (e == null ? void 0 : e.selectedRowKeys) || []), L = s(() => {
62
59
  let t = e == null ? void 0 : e.ifShow;
63
- return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => B(e.auth)), (t == null ? void 0 : t()) ?? !0;
60
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => T(e.auth)), (t == null ? void 0 : t()) ?? !0;
64
61
  });
65
- async function j({ key: t }) {
66
- var M, k, C;
67
- const { getRequestParams: a, request: l } = e || {};
68
- let x = {};
69
- t === m.SELECT ? x = {
70
- [(e == null ? void 0 : e.idKey) || "ids"]: F.value
71
- } : t === m.ALL && (x = (a == null ? void 0 : a()) || {});
72
- const I = ((M = e == null ? void 0 : e.getInitialParams) == null ? void 0 : M.call(e)) || {};
62
+ async function I() {
63
+ k.value.length > 0 ? w({ key: i.SELECT }) : w({ key: i.ALL });
64
+ }
65
+ async function w({ key: t }) {
66
+ var F, S, _;
67
+ const { getRequestParams: l, request: o } = e || {};
68
+ let E = {};
69
+ t === i.SELECT ? E = {
70
+ [(e == null ? void 0 : e.idKey) || "ids"]: k.value
71
+ } : t === i.ALL && (E = (l == null ? void 0 : l()) || {});
72
+ const N = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
73
73
  try {
74
- c.value = !0;
75
- let f = Object.assign(
74
+ u.value = !0;
75
+ let v = Object.assign(
76
76
  {
77
- ...x,
78
- ...I
77
+ ...E,
78
+ ...N
79
79
  },
80
- y.value && (u != null && u.value) ? {
81
- [y.value.key]: Z(
82
- u.value,
83
- (k = y.value) == null ? void 0 : k.convertField
80
+ b.value && (c != null && c.value) ? {
81
+ [b.value.key]: Z(
82
+ c.value,
83
+ (S = b.value) == null ? void 0 : S.convertField
84
84
  )
85
85
  } : {}
86
86
  );
87
- f = ((C = e == null ? void 0 : e.beforeRequest) == null ? void 0 : C.call(e, f)) || f, await X(async () => await (l == null ? void 0 : l(f))), e != null && e.successMessage && $.success(D.value);
87
+ v = ((_ = e == null ? void 0 : e.beforeRequest) == null ? void 0 : _.call(e, v)) || v, await X(async () => await (o == null ? void 0 : o(v))), e != null && e.successMessage && H.success(R.value);
88
88
  } finally {
89
- c.value = !1;
89
+ u.value = !1;
90
90
  }
91
91
  }
92
- return (t, a) => T.value ? (p(), g(o(H), {
93
- key: 0,
94
- open: v.value,
95
- "onUpdate:open": a[0] || (a[0] = (l) => v.value = l),
96
- class: q([o(G)()]),
97
- "overlay-style": R,
98
- disabled: d.value
99
- }, {
100
- overlay: n(() => [
101
- b(o(Q), { onClick: j }, {
102
- default: n(() => {
103
- var l;
104
- return [
105
- (p(), g(o(S), {
106
- key: o(m).SELECT,
107
- disabled: ((l = F.value) == null ? void 0 : l.length) === 0
108
- }, {
109
- default: n(() => [
110
- w(h(o(i)("ap.apExportGroup.exportSelected")), 1)
111
- ]),
112
- _: 1
113
- }, 8, ["disabled"])),
114
- (p(), g(o(S), {
115
- key: o(m).ALL
116
- }, {
117
- default: n(() => [
118
- w(h(o(i)("ap.apExportGroup.exportAll")), 1)
119
- ]),
120
- _: 1
121
- }))
122
- ];
123
- }),
124
- _: 1
125
- })
126
- ]),
127
- default: n(() => [
128
- b(o(J), z({
129
- ...t.$attrs
130
- }, {
131
- style: {
132
- color: K.value
133
- },
134
- loading: c.value
135
- }), {
136
- default: n(() => [
137
- w(h((e == null ? void 0 : e.text) ?? o(i)("ap.apExportGroup.export")) + " ", 1),
138
- b(o(U))
139
- ]),
140
- _: 1
141
- }, 16, ["style", "loading"])
142
- ]),
143
- _: 1
144
- }, 8, ["open", "class", "disabled"])) : V("", !0);
92
+ return (t, l) => (d(), $(q, null, [
93
+ L.value && e.type === "button" ? (d(), y(a(P), B({ key: 0 }, {
94
+ ...t.$attrs
95
+ }, {
96
+ disabled: m.value,
97
+ loading: u.value,
98
+ "min-width": "",
99
+ onClick: I
100
+ }), {
101
+ default: n(() => [
102
+ x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")), 1)
103
+ ]),
104
+ _: 1
105
+ }, 16, ["disabled", "loading"])) : M("", !0),
106
+ L.value && e.type === "dropdown" ? (d(), y(a(J), {
107
+ key: 1,
108
+ open: p.value,
109
+ "onUpdate:open": l[0] || (l[0] = (o) => p.value = o),
110
+ class: z([a(D)()]),
111
+ "overlay-style": j,
112
+ disabled: m.value
113
+ }, {
114
+ overlay: n(() => [
115
+ h(a(Q), { onClick: w }, {
116
+ default: n(() => {
117
+ var o;
118
+ return [
119
+ (d(), y(a(G), {
120
+ key: a(i).SELECT,
121
+ disabled: ((o = k.value) == null ? void 0 : o.length) === 0
122
+ }, {
123
+ default: n(() => [
124
+ x(g(a(r)("ap.apExportGroup.exportSelected")), 1)
125
+ ]),
126
+ _: 1
127
+ }, 8, ["disabled"])),
128
+ (d(), y(a(G), {
129
+ key: a(i).ALL
130
+ }, {
131
+ default: n(() => [
132
+ x(g(a(r)("ap.apExportGroup.exportAll")), 1)
133
+ ]),
134
+ _: 1
135
+ }))
136
+ ];
137
+ }),
138
+ _: 1
139
+ })
140
+ ]),
141
+ default: n(() => [
142
+ h(a(P), B({
143
+ ...t.$attrs
144
+ }, { loading: u.value }), {
145
+ default: n(() => [
146
+ x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")) + " ", 1),
147
+ h(a(U))
148
+ ]),
149
+ _: 1
150
+ }, 16, ["loading"])
151
+ ]),
152
+ _: 1
153
+ }, 8, ["open", "class", "disabled"])) : M("", !0)
154
+ ], 64));
145
155
  }
146
156
  });
147
157
  export {
148
- ve as default
158
+ ge as default
149
159
  };
@@ -5,6 +5,7 @@ import { ApExportGroupProps } from './interface';
5
5
  export * from './interface';
6
6
  declare const ApExportGroup: {
7
7
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
8
+ type: "button" | "dropdown";
8
9
  exportField: boolean | {
9
10
  key?: string;
10
11
  convertField?: {
@@ -20,6 +21,7 @@ declare const ApExportGroup: {
20
21
  M: {};
21
22
  Defaults: {};
22
23
  }, Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
24
+ type: "button" | "dropdown";
23
25
  exportField: boolean | {
24
26
  key?: string;
25
27
  convertField?: {
@@ -32,6 +34,7 @@ declare const ApExportGroup: {
32
34
  __isTeleport?: never;
33
35
  __isSuspense?: never;
34
36
  } & ComponentOptionsBase<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
37
+ type: "button" | "dropdown";
35
38
  exportField: boolean | {
36
39
  key?: string;
37
40
  convertField?: {
@@ -1,5 +1,8 @@
1
- import { MenuProps } from '@aplus-frontend/antdv';
2
1
  export interface ApExportGroupProps {
2
+ /**
3
+ * 类型
4
+ */
5
+ type?: 'button' | 'dropdown';
3
6
  /**
4
7
  * 选中行的Key列表
5
8
  */
@@ -52,5 +55,7 @@ export declare enum ApExportGroupActionType {
52
55
  ALL = "ALL",
53
56
  SELECT = "SELECT"
54
57
  }
55
- export type ApExportGroupAntMenuInfo = Parameters<Exclude<MenuProps['onClick'], undefined>>[0];
58
+ export type ApExportGroupAntMenuInfo = {
59
+ key: string | number;
60
+ };
56
61
  export type ApExportGroupMixedParams<ParamsType> = Partial<ParamsType>;
@@ -1,9 +1,10 @@
1
- import { defineComponent as f, onMounted as g, createElementBlock as R, openBlock as V, normalizeClass as b, unref as t, createVNode as i, mergeProps as h } from "vue";
1
+ import { defineComponent as g, onMounted as R, createElementBlock as V, openBlock as h, normalizeClass as b, unref as t, createVNode as i, mergeProps as I } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { Form as I, InputNumber as B, RadioGroup as k } from "@aplus-frontend/antdv";
3
+ import { Form as B, InputNumber as k, RadioGroup as x } from "@aplus-frontend/antdv";
4
4
  import { omit as _ } from "lodash-unified";
5
- import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
6
- const G = /* @__PURE__ */ f({
5
+ import { useLocale as y } from "../../config-provider/hooks/use-locale.mjs";
6
+ import { useNamespace as F } from "../../config-provider/hooks/use-namespace.mjs";
7
+ const S = /* @__PURE__ */ g({
7
8
  name: "ApInputRadio",
8
9
  __name: "ApInputRadio",
9
10
  props: {
@@ -31,36 +32,37 @@ const G = /* @__PURE__ */ f({
31
32
  },
32
33
  emits: ["update:value", "InputRadioChange"],
33
34
  setup(p, { emit: s }) {
34
- const d = I.useInjectFormItemContext(), e = p, { b: m, e: c } = x("ap-input-radio"), u = s, n = (a) => {
35
- let o = { ...e.value, ...a };
36
- u("update:value", o), u("InputRadioChange", o), d.onFieldChange();
37
- }, C = (a) => {
38
- n({ inputVal: a });
39
- }, v = (a) => {
40
- const o = a.target.value;
35
+ const c = B.useInjectFormItemContext(), e = p, { t: d } = y(), { b: m, e: C } = F("ap-input-radio"), u = s, n = (o) => {
36
+ let a = { ...e.value, ...o };
37
+ u("update:value", a), u("InputRadioChange", a), c.onFieldChange();
38
+ }, f = (o) => {
39
+ n({ inputVal: o });
40
+ }, v = (o) => {
41
+ const a = o.target.value;
41
42
  if (e.setRadioValCallback) {
42
- let l = e.setRadioValCallback(o);
43
- n({ inputVal: l, radioVal: o });
43
+ let l = e.setRadioValCallback(a);
44
+ n({ inputVal: l, radioVal: a });
44
45
  } else
45
- n({ radioVal: o });
46
+ n({ radioVal: a });
46
47
  };
47
- return g(() => {
48
+ return R(() => {
48
49
  if (e.setRadioValCallback) {
49
- let a = e.setRadioValCallback(e.value.radioVal);
50
- n({ inputVal: a });
50
+ let o = e.setRadioValCallback(e.value.radioVal);
51
+ n({ inputVal: o });
51
52
  }
52
- }), (a, o) => {
53
+ }), (o, a) => {
53
54
  var l, r;
54
- return V(), R("div", {
55
+ return h(), V("div", {
55
56
  class: b([t(m)()])
56
57
  }, [
57
- i(t(B), h({
58
- class: t(c)("input-number")
58
+ i(t(k), I({
59
+ class: t(C)("input-number")
59
60
  }, t(_)(e, ["value", "options"]), {
60
61
  value: e.value ? (l = e.value) == null ? void 0 : l.inputVal : "",
61
- onChange: C
62
- }), null, 16, ["class", "value"]),
63
- i(t(k), {
62
+ placeholder: t(d)("ap.common.inputText"),
63
+ onChange: f
64
+ }), null, 16, ["class", "value", "placeholder"]),
65
+ i(t(x), {
64
66
  value: e.value ? (r = e.value) == null ? void 0 : r.radioVal : "",
65
67
  options: e.options,
66
68
  onChange: v
@@ -70,5 +72,5 @@ const G = /* @__PURE__ */ f({
70
72
  }
71
73
  });
72
74
  export {
73
- G as default
75
+ S as default
74
76
  };
@@ -127,8 +127,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
127
127
  placement: TooltipPlacement;
128
128
  show: boolean;
129
129
  dot: boolean;
130
- count: any;
131
130
  iconType: "ellipsis" | "success" | "warning" | "question";
131
+ count: any;
132
132
  showZero: boolean;
133
133
  overflowCount: number;
134
134
  numberStyle: CSSProperties;
@@ -36,7 +36,7 @@ const o = () => ({
36
36
  },
37
37
  iconSize: {
38
38
  type: Number,
39
- default: 16
39
+ default: 14
40
40
  },
41
41
  show: {
42
42
  type: Boolean,
@@ -70,8 +70,8 @@ declare const ApLabel: {
70
70
  placement: TooltipPlacement;
71
71
  show: boolean;
72
72
  dot: boolean;
73
- count: any;
74
73
  iconType: "ellipsis" | "success" | "warning" | "question";
74
+ count: any;
75
75
  showZero: boolean;
76
76
  overflowCount: number;
77
77
  numberStyle: CSSProperties;
@@ -152,8 +152,8 @@ declare const ApLabel: {
152
152
  placement: TooltipPlacement;
153
153
  show: boolean;
154
154
  dot: boolean;
155
- count: any;
156
155
  iconType: "ellipsis" | "success" | "warning" | "question";
156
+ count: any;
157
157
  showZero: boolean;
158
158
  overflowCount: number;
159
159
  numberStyle: CSSProperties;
@@ -231,8 +231,8 @@ declare const ApLabel: {
231
231
  placement: TooltipPlacement;
232
232
  show: boolean;
233
233
  dot: boolean;
234
- count: any;
235
234
  iconType: "ellipsis" | "success" | "warning" | "question";
235
+ count: any;
236
236
  showZero: boolean;
237
237
  overflowCount: number;
238
238
  numberStyle: CSSProperties;
@@ -69,13 +69,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
69
69
  }>> & Readonly<{}>, {
70
70
  layout: "horizontal" | "vertical";
71
71
  tooltip: boolean;
72
+ labelAlign: "left" | "right";
72
73
  major: string | number | VNode<RendererNode, RendererElement, {
73
74
  [key: string]: any;
74
75
  }> | (() => VNode);
75
76
  minor: string | number | VNode<RendererNode, RendererElement, {
76
77
  [key: string]: any;
77
78
  }> | (() => VNode);
78
- labelAlign: "left" | "right";
79
79
  labelValues: ApLadderLabelValue[];
80
80
  majorColor: string;
81
81
  minorColor: string;
@@ -38,13 +38,13 @@ declare const ApLadder: {
38
38
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
39
39
  layout: "horizontal" | "vertical";
40
40
  tooltip: boolean;
41
+ labelAlign: "left" | "right";
41
42
  major: string | number | VNode<RendererNode, RendererElement, {
42
43
  [key: string]: any;
43
44
  }> | (() => VNode);
44
45
  minor: string | number | VNode<RendererNode, RendererElement, {
45
46
  [key: string]: any;
46
47
  }> | (() => VNode);
47
- labelAlign: "left" | "right";
48
48
  labelValues: ApLadderLabelValue[];
49
49
  majorColor: string;
50
50
  minorColor: string;
@@ -91,13 +91,13 @@ declare const ApLadder: {
91
91
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
92
92
  layout: "horizontal" | "vertical";
93
93
  tooltip: boolean;
94
+ labelAlign: "left" | "right";
94
95
  major: string | number | VNode<RendererNode, RendererElement, {
95
96
  [key: string]: any;
96
97
  }> | (() => VNode);
97
98
  minor: string | number | VNode<RendererNode, RendererElement, {
98
99
  [key: string]: any;
99
100
  }> | (() => VNode);
100
- labelAlign: "left" | "right";
101
101
  labelValues: ApLadderLabelValue[];
102
102
  majorColor: string;
103
103
  minorColor: string;
@@ -141,13 +141,13 @@ declare const ApLadder: {
141
141
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
142
  layout: "horizontal" | "vertical";
143
143
  tooltip: boolean;
144
+ labelAlign: "left" | "right";
144
145
  major: string | number | VNode<RendererNode, RendererElement, {
145
146
  [key: string]: any;
146
147
  }> | (() => VNode);
147
148
  minor: string | number | VNode<RendererNode, RendererElement, {
148
149
  [key: string]: any;
149
150
  }> | (() => VNode);
150
- labelAlign: "left" | "right";
151
151
  labelValues: ApLadderLabelValue[];
152
152
  majorColor: string;
153
153
  minorColor: string;
@@ -0,0 +1,17 @@
1
+ import { RadioOptionType, RadioOptionStyleType } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ value: string | number;
5
+ options: RadioOptionType[];
6
+ optionStyle?: RadioOptionStyleType;
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
9
+ "update:value": (value: string | number) => any;
10
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
12
+ }>, {
13
+ value: string | number;
14
+ options: RadioOptionType[];
15
+ optionStyle: RadioOptionStyleType;
16
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./ap-radio-group.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as k, isVNode as S, h as a, createElementBlock as l, openBlock as r, normalizeClass as m, unref as o, createVNode as b, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
2
+ import { Flex as F } from "@aplus-frontend/antdv";
3
+ import "../../config-provider/index.mjs";
4
+ import "../../hooks/index.mjs";
5
+ import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
6
+ import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
7
+ const D = ["onClick"], J = /* @__PURE__ */ k({
8
+ __name: "ap-radio-group",
9
+ props: {
10
+ value: { default: "" },
11
+ options: { default: () => [] },
12
+ optionStyle: { default: () => ({
13
+ height: 28,
14
+ gap: 8
15
+ }) }
16
+ },
17
+ emits: ["update:value"],
18
+ setup(c, { emit: f }) {
19
+ const d = c, h = (e) => S(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), g = f, { b: y, e: i } = L("ap-radio-group"), { value: v, updateValue: C } = x(
20
+ d,
21
+ g,
22
+ {
23
+ defaultValue: ""
24
+ }
25
+ );
26
+ return (e, E) => {
27
+ var n;
28
+ return r(), l("div", {
29
+ class: m([o(y)()])
30
+ }, [
31
+ b(o(F), {
32
+ gap: (n = e.optionStyle) == null ? void 0 : n.gap,
33
+ wrap: "wrap"
34
+ }, {
35
+ default: V(() => [
36
+ (r(!0), l(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
37
+ var p, s, u;
38
+ return r(), l("div", {
39
+ key: t.value,
40
+ class: m([o(i)("item"), o(v) === t.value ? o(i)("item--active") : ""]),
41
+ style: B({
42
+ height: ((p = e.optionStyle) == null ? void 0 : p.height) + "px",
43
+ lineHeight: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
44
+ color: (u = e.optionStyle) == null ? void 0 : u.color
45
+ }),
46
+ onClick: (H) => o(C)(t.value)
47
+ }, [
48
+ (r(), N(z(h(t.label))))
49
+ ], 14, D);
50
+ }), 128))
51
+ ]),
52
+ _: 1
53
+ }, 8, ["gap"])
54
+ ], 2);
55
+ };
56
+ }
57
+ });
58
+ export {
59
+ J as default
60
+ };
@@ -0,0 +1,55 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
+ import { RadioOptionType, RadioOptionStyleType } from './interface';
3
+ export * from './interface';
4
+ declare const ApRadioGroup: {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
6
+ value: string | number;
7
+ options: RadioOptionType[];
8
+ optionStyle?: RadioOptionStyleType;
9
+ }> & Readonly<{
10
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
11
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ "update:value": (value: string | number) => any;
13
+ }, PublicProps, {
14
+ value: string | number;
15
+ options: RadioOptionType[];
16
+ optionStyle: RadioOptionStyleType;
17
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
18
+ P: {};
19
+ B: {};
20
+ D: {};
21
+ C: {};
22
+ M: {};
23
+ Defaults: {};
24
+ }, Readonly<{
25
+ value: string | number;
26
+ options: RadioOptionType[];
27
+ optionStyle?: RadioOptionStyleType;
28
+ }> & Readonly<{
29
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
30
+ }>, {}, {}, {}, {}, {
31
+ value: string | number;
32
+ options: RadioOptionType[];
33
+ optionStyle: RadioOptionStyleType;
34
+ }>;
35
+ __isFragment?: never;
36
+ __isTeleport?: never;
37
+ __isSuspense?: never;
38
+ } & ComponentOptionsBase<Readonly<{
39
+ value: string | number;
40
+ options: RadioOptionType[];
41
+ optionStyle?: RadioOptionStyleType;
42
+ }> & Readonly<{
43
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
44
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
45
+ "update:value": (value: string | number) => any;
46
+ }, string, {
47
+ value: string | number;
48
+ options: RadioOptionType[];
49
+ optionStyle: RadioOptionStyleType;
50
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
51
+ $props: {
52
+ onClick?: () => void;
53
+ };
54
+ }));
55
+ export { ApRadioGroup };
@@ -0,0 +1,8 @@
1
+ import { withInstall as o } from "@aplus-frontend/utils";
2
+ import "./ap-radio-group.vue.mjs";
3
+ import "./interface.mjs";
4
+ import r from "./ap-radio-group.vue2.mjs";
5
+ const a = o(r);
6
+ export {
7
+ a as ApRadioGroup
8
+ };