@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.20

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 (579) hide show
  1. package/es/index.mjs +305 -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-descriptions/ap-descriptions.vue.mjs +9 -8
  5. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  6. package/es/src/ap-field/date/helper.mjs +12 -12
  7. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  9. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  10. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  11. package/es/src/ap-field/number/index.vue.d.ts +3 -5
  12. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  13. package/es/src/ap-field/rate/index.vue.d.ts +3 -5
  14. package/es/src/ap-field/select/index.vue.d.ts +4 -7
  15. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  16. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  17. package/es/src/ap-field/text/password.vue.mjs +15 -17
  18. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  19. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  20. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  21. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  22. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  24. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  25. package/es/src/ap-form/interface.d.ts +13 -5
  26. package/es/src/ap-form/item/index.vue.d.ts +6 -11
  27. package/es/src/ap-form/item/index.vue.mjs +43 -39
  28. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  29. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  30. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  31. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  33. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  34. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  35. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  36. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  37. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  38. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  39. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  40. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  41. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  42. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  43. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
  44. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +33 -13
  45. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  46. package/es/src/ap-form/search-form/index.vue.mjs +99 -97
  47. package/es/src/ap-form/set/index.vue.mjs +7 -6
  48. package/es/src/ap-grid/constants.d.ts +3 -3
  49. package/es/src/ap-grid/constants.mjs +9 -9
  50. package/es/src/ap-grid/editable/form-item.vue.mjs +97 -83
  51. package/es/src/ap-grid/editable/index.vue.mjs +100 -86
  52. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  53. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  54. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  55. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  56. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  57. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  58. package/es/src/ap-grid/index.vue.mjs +291 -224
  59. package/es/src/ap-grid/interface.d.ts +31 -2
  60. package/es/src/ap-grid/utils/table.mjs +31 -31
  61. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  62. package/es/src/ap-list/index.vue.d.ts +2 -9
  63. package/es/src/ap-list/index.vue.mjs +116 -106
  64. package/es/src/ap-list/interface.d.ts +20 -0
  65. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  66. package/es/src/ap-table/ap-table.vue2.mjs +78 -70
  67. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  68. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  69. package/es/src/ap-table/constants.d.ts +52 -52
  70. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
  71. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +152 -124
  72. package/es/src/ap-table/interface.d.ts +14 -1
  73. package/es/src/ap-table/utils.d.ts +35 -35
  74. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  75. package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
  76. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  77. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  78. package/es/src/business/ap-copy/constans.d.ts +24 -0
  79. package/es/src/business/ap-copy/constans.mjs +25 -0
  80. package/es/src/business/ap-copy/index.d.ts +102 -0
  81. package/es/src/business/ap-copy/index.mjs +7 -0
  82. package/es/src/business/ap-copy/interface.d.ts +8 -0
  83. package/es/src/business/ap-copy/interface.mjs +1 -0
  84. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  85. package/es/src/business/ap-copy/style/css.js +1 -0
  86. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  87. package/es/src/business/ap-copy/style/index.js +1 -0
  88. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  89. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +94 -73
  90. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  91. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
  92. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  93. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  94. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  95. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  96. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  97. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  98. package/es/src/business/ap-keep-alive/index.d.ts +107 -0
  99. package/es/src/business/ap-keep-alive/index.mjs +13 -0
  100. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  101. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  102. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  103. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  108. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  109. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  110. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  111. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  112. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  113. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  114. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  115. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  116. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  118. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  119. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  120. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  121. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  122. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  123. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  124. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  125. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  126. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  127. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  128. package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
  129. package/es/src/business/ap-keep-alive/utils.mjs +41 -0
  130. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  131. package/es/src/business/ap-label/constans.mjs +1 -1
  132. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  133. package/es/src/business/ap-label/index.d.ts +3 -3
  134. package/es/src/business/ap-label/interface.d.ts +2 -3
  135. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  136. package/es/src/business/ap-ladder/index.d.ts +3 -3
  137. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  138. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  139. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  140. package/es/src/business/ap-product-info/constans.mjs +4 -0
  141. package/es/src/business/ap-product-info/index.d.ts +15 -0
  142. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  143. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
  144. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  145. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
  146. package/es/src/business/ap-radio-group/index.d.ts +60 -0
  147. package/es/src/business/ap-radio-group/index.mjs +8 -0
  148. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  149. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  150. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  151. package/es/src/business/ap-radio-group/style/css.js +1 -0
  152. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  153. package/es/src/business/ap-radio-group/style/index.js +1 -0
  154. package/es/src/business/ap-status/interface.d.ts +1 -1
  155. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  156. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  157. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  158. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  159. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  160. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  161. package/es/src/business/ap-view/ap-view.vue.d.ts +5 -1
  162. package/es/src/business/ap-view/ap-view.vue2.mjs +162 -129
  163. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  164. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
  165. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  166. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  167. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  168. package/es/src/business/ap-view/index.d.ts +15 -3
  169. package/es/src/business/ap-view/interface.d.ts +11 -0
  170. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  171. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  172. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  173. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  174. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  175. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  176. package/es/src/business/index.d.ts +3 -0
  177. package/es/src/business/index.mjs +36 -30
  178. package/es/src/check-card/group.vue.d.ts +1 -1
  179. package/es/src/components.d.ts +1 -0
  180. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  181. package/es/src/config-provider/config-provider-props.mjs +0 -4
  182. package/es/src/config-provider/config-provider.d.ts +0 -138
  183. package/es/src/config-provider/config-provider.mjs +21 -26
  184. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  185. package/es/src/config-provider/index.d.ts +0 -652
  186. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  187. package/es/src/editable-table/form-item.vue.mjs +86 -78
  188. package/es/src/editable-table/index.vue.d.ts +2 -16
  189. package/es/src/editable-table/index.vue.mjs +91 -83
  190. package/es/src/editable-table/interface.d.ts +7 -0
  191. package/es/src/full-screen/interface.d.ts +5 -6
  192. package/es/src/index.mjs +132 -119
  193. package/es/src/locale/lang/en.mjs +4 -0
  194. package/es/src/locale/lang/zh-cn.mjs +4 -0
  195. package/es/src/mask/index.vue.mjs +21 -20
  196. package/es/src/path-map.mjs +3 -1
  197. package/es/src/resize-observer/interface.d.ts +2 -3
  198. package/es/src/scroll-bar/interface.d.ts +7 -7
  199. package/es/src/scroll-view/interface.d.ts +2 -3
  200. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  201. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  202. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  203. package/es/src/tests/utils.d.ts +8 -0
  204. package/es/src/text/group.vue.mjs +7 -6
  205. package/es/src/text/index.vue.mjs +20 -19
  206. package/es/src/version.d.ts +2 -0
  207. package/es/src/version.mjs +4 -0
  208. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  209. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  210. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  211. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  212. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  213. package/es/test/setup.d.ts +5 -0
  214. package/lib/index.js +1 -1
  215. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  216. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  217. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  218. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  219. package/lib/src/ap-field/date/helper.js +1 -1
  220. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  221. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  222. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  223. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  224. package/lib/src/ap-field/number/index.vue.d.ts +3 -5
  225. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  226. package/lib/src/ap-field/rate/index.vue.d.ts +3 -5
  227. package/lib/src/ap-field/select/index.vue.d.ts +4 -7
  228. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  229. package/lib/src/ap-field/text/index.vue2.js +1 -1
  230. package/lib/src/ap-field/text/password.vue.js +1 -1
  231. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  232. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  233. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  234. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  235. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  236. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  237. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  238. package/lib/src/ap-form/interface.d.ts +13 -5
  239. package/lib/src/ap-form/item/index.vue.d.ts +6 -11
  240. package/lib/src/ap-form/item/index.vue.js +1 -1
  241. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  242. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  243. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  244. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  245. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  246. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  247. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  248. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  249. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  250. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  251. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  252. package/lib/src/ap-form/provider/index.vue.js +1 -1
  253. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  254. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  255. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  256. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  257. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  258. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  259. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  260. package/lib/src/ap-form/set/index.vue.js +1 -1
  261. package/lib/src/ap-grid/constants.d.ts +3 -3
  262. package/lib/src/ap-grid/constants.js +1 -1
  263. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  264. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  265. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  266. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  267. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  268. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  269. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  270. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  271. package/lib/src/ap-grid/index.vue.js +1 -1
  272. package/lib/src/ap-grid/interface.d.ts +31 -2
  273. package/lib/src/ap-grid/utils/table.js +1 -1
  274. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  275. package/lib/src/ap-list/index.vue.d.ts +2 -9
  276. package/lib/src/ap-list/index.vue.js +1 -1
  277. package/lib/src/ap-list/interface.d.ts +20 -0
  278. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  279. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  280. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  281. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  282. package/lib/src/ap-table/constants.d.ts +52 -52
  283. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
  284. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  285. package/lib/src/ap-table/interface.d.ts +14 -1
  286. package/lib/src/ap-table/utils.d.ts +35 -35
  287. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  288. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  289. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  290. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  291. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  292. package/lib/src/business/ap-copy/constans.js +1 -0
  293. package/lib/src/business/ap-copy/index.d.ts +102 -0
  294. package/lib/src/business/ap-copy/index.js +1 -0
  295. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  296. package/lib/src/business/ap-copy/interface.js +1 -0
  297. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  298. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  299. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  300. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  301. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  302. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  303. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  304. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  305. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  306. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  307. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  308. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  309. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  310. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  311. package/lib/src/business/ap-keep-alive/index.d.ts +107 -0
  312. package/lib/src/business/ap-keep-alive/index.js +1 -0
  313. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  314. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  315. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  316. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  317. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  318. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  319. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  320. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  321. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  322. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  323. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  324. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  325. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  326. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  327. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  328. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  329. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  330. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  331. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  332. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  333. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  334. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  335. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  336. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  337. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  338. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  339. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  340. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  341. package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
  342. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  343. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  344. package/lib/src/business/ap-label/constans.js +1 -1
  345. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  346. package/lib/src/business/ap-label/index.d.ts +3 -3
  347. package/lib/src/business/ap-label/interface.d.ts +2 -3
  348. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  349. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  350. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  351. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  352. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  353. package/lib/src/business/ap-product-info/constans.js +1 -1
  354. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  355. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  356. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
  357. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  358. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  359. package/lib/src/business/ap-radio-group/index.d.ts +60 -0
  360. package/lib/src/business/ap-radio-group/index.js +1 -0
  361. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  362. package/lib/src/business/ap-radio-group/interface.js +1 -0
  363. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  364. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  365. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  366. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  367. package/lib/src/business/ap-status/interface.d.ts +1 -1
  368. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  369. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  370. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  371. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  372. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  373. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  374. package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -1
  375. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  376. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  377. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  378. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  379. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  380. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  381. package/lib/src/business/ap-view/index.d.ts +15 -3
  382. package/lib/src/business/ap-view/interface.d.ts +11 -0
  383. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  384. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  385. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  386. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  387. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  388. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  389. package/lib/src/business/index.d.ts +3 -0
  390. package/lib/src/business/index.js +1 -1
  391. package/lib/src/check-card/group.vue.d.ts +1 -1
  392. package/lib/src/components.d.ts +1 -0
  393. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  394. package/lib/src/config-provider/config-provider-props.js +1 -1
  395. package/lib/src/config-provider/config-provider.d.ts +0 -138
  396. package/lib/src/config-provider/config-provider.js +1 -1
  397. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  398. package/lib/src/config-provider/index.d.ts +0 -652
  399. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  400. package/lib/src/editable-table/form-item.vue.js +1 -1
  401. package/lib/src/editable-table/index.vue.d.ts +2 -16
  402. package/lib/src/editable-table/index.vue.js +1 -1
  403. package/lib/src/editable-table/interface.d.ts +7 -0
  404. package/lib/src/full-screen/interface.d.ts +5 -6
  405. package/lib/src/index.js +1 -1
  406. package/lib/src/locale/lang/en.js +1 -1
  407. package/lib/src/locale/lang/zh-cn.js +1 -1
  408. package/lib/src/mask/index.vue.js +1 -1
  409. package/lib/src/path-map.js +1 -1
  410. package/lib/src/resize-observer/interface.d.ts +2 -3
  411. package/lib/src/scroll-bar/interface.d.ts +7 -7
  412. package/lib/src/scroll-view/interface.d.ts +2 -3
  413. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  414. package/lib/src/splitter/Splitter.vue2.js +1 -1
  415. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  416. package/lib/src/tests/utils.d.ts +8 -0
  417. package/lib/src/text/group.vue.js +1 -1
  418. package/lib/src/text/index.vue.js +1 -1
  419. package/lib/src/version.d.ts +2 -0
  420. package/lib/src/version.js +1 -0
  421. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  422. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  423. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  424. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  425. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  426. package/lib/test/setup.d.ts +5 -0
  427. package/package.json +12 -11
  428. package/theme/antd-global-overwrite/admin/alert.css +6 -19
  429. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  430. package/theme/antd-global-overwrite/admin/button.css +13 -13
  431. package/theme/antd-global-overwrite/admin/button.less +24 -24
  432. package/theme/antd-global-overwrite/admin/field.css +39 -0
  433. package/theme/antd-global-overwrite/admin/field.less +39 -0
  434. package/theme/antd-global-overwrite/admin/index.css +89 -646
  435. package/theme/antd-global-overwrite/admin/index.less +2 -3
  436. package/theme/antd-global-overwrite/admin/message.css +2 -9
  437. package/theme/antd-global-overwrite/admin/message.less +2 -10
  438. package/theme/antd-global-overwrite/admin/modal.css +15 -48
  439. package/theme/antd-global-overwrite/admin/modal.less +13 -54
  440. package/theme/antd-global-overwrite/admin/table.css +11 -251
  441. package/theme/antd-global-overwrite/admin/table.less +4 -132
  442. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  443. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  444. package/theme/antd-global-overwrite/aplus/alert.css +9 -19
  445. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  446. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  447. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  448. package/theme/antd-global-overwrite/aplus/field.css +33 -0
  449. package/theme/antd-global-overwrite/aplus/field.less +32 -0
  450. package/theme/antd-global-overwrite/aplus/index.css +91 -690
  451. package/theme/antd-global-overwrite/aplus/index.less +1 -3
  452. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  453. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  454. package/theme/antd-global-overwrite/aplus/modal.css +15 -49
  455. package/theme/antd-global-overwrite/aplus/modal.less +14 -58
  456. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  457. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  458. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  459. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  460. package/theme/ap-action/item-dropdown.css +19 -1
  461. package/theme/ap-action/item.css +37 -8
  462. package/theme/ap-action/item.less +18 -6
  463. package/theme/ap-appendix/ap-appendix.css +27 -9
  464. package/theme/ap-appendix/ap-appendix.less +8 -8
  465. package/theme/ap-attachment/ap-attachment.css +21 -2
  466. package/theme/ap-attachment/ap-attachment.less +2 -2
  467. package/theme/ap-batch-action/ap-batch-action.css +22 -4
  468. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  469. package/theme/ap-button/ap-button.css +19 -1
  470. package/theme/ap-card/ap-card.css +20 -2
  471. package/theme/ap-card/ap-card.less +1 -1
  472. package/theme/ap-copy/ap-copy.css +96 -0
  473. package/theme/ap-copy/ap-copy.less +61 -0
  474. package/theme/ap-descriptions/ap-descriptions.css +25 -5
  475. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  476. package/theme/ap-download/ap-download.css +19 -1
  477. package/theme/ap-expand-alert/ap-expand-alert.css +21 -2
  478. package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
  479. package/theme/ap-field/checkbox.css +19 -1
  480. package/theme/ap-field/index.css +19 -1
  481. package/theme/ap-field/number.css +19 -1
  482. package/theme/ap-field/radio.css +19 -1
  483. package/theme/ap-field/text-area.css +19 -1
  484. package/theme/ap-form/ap-form-item-group.css +19 -1
  485. package/theme/ap-form/ap-form-item.css +30 -9
  486. package/theme/ap-form/ap-form-item.less +15 -9
  487. package/theme/ap-form/drawer-form.css +19 -1
  488. package/theme/ap-form/index.css +51 -18
  489. package/theme/ap-form/item-text-group.css +19 -1
  490. package/theme/ap-form/item-text.css +19 -1
  491. package/theme/ap-form/modal-form.css +19 -1
  492. package/theme/ap-form/search-form-sorter.css +28 -9
  493. package/theme/ap-form/search-form-sorter.less +5 -4
  494. package/theme/ap-form/search-form.css +51 -18
  495. package/theme/ap-form/search-form.less +12 -1
  496. package/theme/ap-grid/editable.css +19 -1
  497. package/theme/ap-grid/index.css +118 -31
  498. package/theme/ap-grid/index.less +34 -5
  499. package/theme/ap-group-search/ap-extension-select.css +19 -1
  500. package/theme/ap-group-search/ap-group-search.css +19 -1
  501. package/theme/ap-group-search/ap-popover-select.css +19 -1
  502. package/theme/ap-image/ap-image.css +19 -1
  503. package/theme/ap-input-radio/ap-input-radio.css +19 -1
  504. package/theme/ap-label/ap-label.css +19 -1
  505. package/theme/ap-ladder/ap-ladder.css +20 -1
  506. package/theme/ap-ladder/ap-ladder.less +1 -0
  507. package/theme/ap-layout/ap-info-layout.css +19 -1
  508. package/theme/ap-list/index.css +19 -1
  509. package/theme/ap-product-info/ap-product-info.css +39 -31
  510. package/theme/ap-product-info/ap-product-info.less +28 -42
  511. package/theme/ap-radio-group/ap-radio-group.css +65 -0
  512. package/theme/ap-radio-group/ap-radio-group.less +25 -0
  513. package/theme/ap-select-layout/ap-select-layout.css +19 -1
  514. package/theme/ap-size-input/ap-size-input.css +19 -1
  515. package/theme/ap-status/ap-status.css +20 -2
  516. package/theme/ap-status/ap-status.less +1 -1
  517. package/theme/ap-summary/index.css +19 -1
  518. package/theme/ap-table/ap-table-index.css +19 -1
  519. package/theme/ap-table/ap-table-paragraph-ellipsis.css +20 -2
  520. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  521. package/theme/ap-table/ap-table.css +127 -50
  522. package/theme/ap-table/ap-table.less +24 -11
  523. package/theme/ap-table/setting/index.css +35 -13
  524. package/theme/ap-table/setting/modal.css +26 -5
  525. package/theme/ap-table/setting/modal.less +6 -3
  526. package/theme/ap-table/setting/select-group.css +21 -2
  527. package/theme/ap-table/setting/select-group.less +2 -1
  528. package/theme/ap-table/setting/sortable-item-meta.css +21 -3
  529. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  530. package/theme/ap-table/setting/sortable-item.css +19 -1
  531. package/theme/ap-table/setting/sorter.css +24 -6
  532. package/theme/ap-table/setting/sorter.less +4 -4
  533. package/theme/ap-table-modal/index.css +142 -63
  534. package/theme/ap-table-modal/index.less +15 -13
  535. package/theme/ap-tag/ap-tag-group.css +21 -3
  536. package/theme/ap-tag/ap-tag-group.less +2 -3
  537. package/theme/ap-tag/ap-tag.css +23 -5
  538. package/theme/ap-tag/ap-tag.less +4 -4
  539. package/theme/ap-title/ap-title.css +24 -4
  540. package/theme/ap-title/ap-title.less +5 -3
  541. package/theme/ap-upload/index.css +24 -6
  542. package/theme/ap-upload/multiple-file.css +20 -2
  543. package/theme/ap-upload/multiple-file.less +1 -1
  544. package/theme/ap-upload/picture.css +21 -3
  545. package/theme/ap-upload/picture.less +2 -2
  546. package/theme/ap-upload/single-file.css +21 -3
  547. package/theme/ap-upload/single-file.less +2 -2
  548. package/theme/ap-upload/upload.css +19 -1
  549. package/theme/ap-upload-single/index.css +23 -5
  550. package/theme/ap-upload-single/index.less +4 -4
  551. package/theme/ap-view/ap-view.css +26 -8
  552. package/theme/ap-view/ap-view.less +7 -7
  553. package/theme/batch-input-group/index.css +22 -3
  554. package/theme/batch-input-group/popover-input.css +22 -3
  555. package/theme/batch-input-group/popover-input.less +3 -2
  556. package/theme/check-card/index.css +27 -9
  557. package/theme/check-card/index.less +5 -5
  558. package/theme/editable-table/index.css +69 -25
  559. package/theme/full-screen/index.css +19 -1
  560. package/theme/index.css +410 -163
  561. package/theme/index.less +3 -0
  562. package/theme/mask/index.css +19 -1
  563. package/theme/mixins/config.less +1 -1
  564. package/theme/mixins/mixins.css +19 -1
  565. package/theme/mixins/mixins.less +25 -0
  566. package/theme/scroll-bar/index.css +19 -1
  567. package/theme/scroll-view/index.css +19 -1
  568. package/theme/splitter/index.css +24 -6
  569. package/theme/splitter/index.less +1 -1
  570. package/theme/text/group.css +19 -1
  571. package/theme/text/index.css +24 -6
  572. package/theme/text/index.less +4 -4
  573. package/theme/ui-mode.css +58 -0
  574. package/theme/ui-mode.less +107 -0
  575. package/theme/work-order-modal/index.css +19 -1
  576. package/es/src/config-provider/css-var.d.ts +0 -139
  577. package/es/src/config-provider/css-var.mjs +0 -278
  578. package/lib/src/config-provider/css-var.d.ts +0 -139
  579. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,20 +1,8 @@
1
- import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
- import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
1
+ import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
3
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
- import { UnwrapRefSimple } from '@vue/reactivity';
5
3
  declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
7
- expose(exposed: ShallowUnwrapRef<{
8
- add: (defaultValue?: any, insertIndex?: number) => void;
9
- remove: (index: number | number[]) => void;
10
- getRowData: (index: number) => RecordType | UnwrapRefSimple<RecordType>;
11
- getRowsData: () => RecordType[] | UnwrapRefSimple<RecordType>[];
12
- setRowData: (index: number, payload: any, merge?: boolean) => void;
13
- addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
14
- scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
15
- setTableData: (nextTableData: RecordType[]) => void;
16
- clear: () => void;
17
- }>): void;
5
+ expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
18
6
  attrs: any;
19
7
  slots: Readonly<{
20
8
  default: any;
@@ -1,16 +1,16 @@
1
- import { defineComponent as O, ref as c, unref as s, useSlots as K, toRef as G, watch as H, nextTick as U, createBlock as W, openBlock as $, mergeProps as h, withCtx as x, createVNode as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
- import { Table as I } from "@aplus-frontend/antdv";
3
- import { ApForm as g } from "../ap-form/index.mjs";
4
- import { isArray as M, isUndefined as ee, isNumber as m, cloneDeep as oe, omit as w } from "lodash-unified";
1
+ import { defineComponent as G, ref as c, unref as s, useSlots as H, toRef as U, watch as W, nextTick as $, createBlock as q, openBlock as J, mergeProps as h, withCtx as w, createVNode as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as I, guardReactiveProps as M } from "vue";
2
+ import { Table as ee } from "@aplus-frontend/antdv";
3
+ import { ApForm as x } from "../ap-form/index.mjs";
4
+ import { isArray as g, isUndefined as oe, isNumber as m, cloneDeep as te, omit as y } from "lodash-unified";
5
5
  import "../config-provider/index.mjs";
6
- import { useInjectForm as te } from "../ap-form/context.mjs";
6
+ import { useInjectForm as ae } from "../ap-form/context.mjs";
7
7
  import { isDef as b } from "../utils/index.mjs";
8
- import ae from "./hooks/use-get-columns.mjs";
9
- import { scrollToRowIndex as le } from "./utils.mjs";
10
- import { useNamespace as ne } from "../config-provider/hooks/use-namespace.mjs";
11
- import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
12
- const we = /* @__PURE__ */ O({
13
- name: "EditableTableInner",
8
+ import le from "./hooks/use-get-columns.mjs";
9
+ import { scrollToRowIndex as ue } from "./utils.mjs";
10
+ import { useNamespace as fe } from "../config-provider/hooks/use-namespace.mjs";
11
+ import { useGlobalConfig as ne } from "../config-provider/hooks/use-global-config.mjs";
12
+ const ye = /* @__PURE__ */ G({
13
+ name: "EditableTableFormItem",
14
14
  __name: "form-item",
15
15
  props: {
16
16
  dropdownPrefixCls: {},
@@ -109,119 +109,127 @@ const we = /* @__PURE__ */ O({
109
109
  default: () => ({})
110
110
  }
111
111
  },
112
- setup(y, {
113
- expose: C
112
+ setup(C, {
113
+ expose: R
114
114
  }) {
115
- const l = y;
116
- function R(e, t) {
117
- return M(t) ? t.reduce((n, o) => n == null ? void 0 : n[o], e) : e == null ? void 0 : e[t];
115
+ const l = C;
116
+ function B(e, a) {
117
+ return g(a) ? a.reduce((u, t) => u == null ? void 0 : u[t], e) : e == null ? void 0 : e[a];
118
118
  }
119
119
  const {
120
- internalInstance: a,
121
- model: B
122
- } = te(), d = c(R(s(B), l.name) || []), F = K(), T = G(l, "name"), D = g.useWatch(T);
123
- H(() => D.value, async (e) => {
124
- var t;
125
- await U(), d.value = e, (t = l.onChange) == null || t.call(l, e);
120
+ internalInstance: o,
121
+ model: F
122
+ } = ae(), d = c(B(s(F), l.name) || []), T = H(), D = U(l, "name"), V = x.useWatch(D);
123
+ W(() => V.value, async (e) => {
124
+ var a;
125
+ await $(), d.value = e, (a = l.onChange) == null || a.call(l, e);
126
126
  }, {
127
127
  deep: !0
128
128
  });
129
129
  const {
130
130
  b: L
131
- } = ne("editable-table"), p = c(), V = ue("valueTypeMap"), N = ae(l, V);
132
- function S(e, t) {
133
- var u;
134
- const n = ((u = s(d)) == null ? void 0 : u.length) || 0;
135
- if (b(l.maxLength) && n >= l.maxLength)
131
+ } = fe("editable-table"), p = c(), S = ne("valueTypeMap"), v = le(l, S);
132
+ function N(e, a) {
133
+ var f;
134
+ const u = ((f = s(d)) == null ? void 0 : f.length) || 0;
135
+ if (b(l.maxLength) && u >= l.maxLength)
136
136
  return;
137
- const o = {
137
+ const t = {
138
138
  ...e || {}
139
139
  };
140
- a == null || a.setFieldValue(l.name, o, !0, (r, f) => {
141
- if (!r[f]) {
142
- r[f] = [o];
140
+ o == null || o.setFieldValue(l.name, t, !0, (n, r) => {
141
+ if (!n[r]) {
142
+ n[r] = [t];
143
143
  return;
144
144
  }
145
- ee(t) ? r[f].push(o) : r[f].splice(t, 0, o);
145
+ oe(a) ? n[r].push(t) : n[r].splice(a, 0, t);
146
146
  });
147
147
  }
148
- function k(e, t = "suffix") {
149
- var r;
150
- const n = ((r = s(d)) == null ? void 0 : r.length) || 0, o = m(e) ? e : e.length;
151
- if (b(l.maxLength) && n + o > l.maxLength)
148
+ function E(e, a = "suffix") {
149
+ var n;
150
+ const u = ((n = s(d)) == null ? void 0 : n.length) || 0, t = m(e) ? e : e.length;
151
+ if (b(l.maxLength) && u + t > l.maxLength)
152
152
  return;
153
- const u = m(e) ? new Array(e).fill(0).map(() => ({})) : oe(e);
154
- a == null || a.setFieldValue(l.name, u, !0, (f, i) => {
155
- if (!f[i]) {
156
- f[i] = [...u];
153
+ const f = m(e) ? new Array(e).fill(0).map(() => ({})) : te(e);
154
+ o == null || o.setFieldValue(l.name, f, !0, (r, i) => {
155
+ if (!r[i]) {
156
+ r[i] = [...f];
157
157
  return;
158
158
  }
159
- t === "suffix" ? f[i].push(...u) : f[i].unshift(...u);
159
+ a === "suffix" ? r[i].push(...f) : r[i].unshift(...f);
160
160
  });
161
161
  }
162
- function v(e) {
163
- const t = new Set(m(e) ? [e] : e);
164
- a == null || a.setFieldValue(l.name, void 0, !0, (n, o) => {
165
- n[o] = n[o].filter((u, r) => !t.has(r));
162
+ function _(e) {
163
+ const a = new Set(m(e) ? [e] : e);
164
+ o == null || o.setFieldValue(l.name, void 0, !0, (u, t) => {
165
+ u[t] = u[t].filter((f, n) => !a.has(n));
166
166
  });
167
167
  }
168
- function E() {
168
+ function k(e) {
169
+ var u;
170
+ const a = new Set(g(e) ? e : [e]);
171
+ a.size !== 0 && ((u = o == null ? void 0 : o.setFieldValue) == null || u.call(o, l.name, void 0, !0, (t, f) => {
172
+ t[f] = t[f].filter((n) => !a.has(n[l.rowKey]));
173
+ }));
174
+ }
175
+ function j() {
169
176
  return s(d);
170
177
  }
171
- function _(e) {
172
- var t;
173
- return (t = s(d)) == null ? void 0 : t[e];
178
+ function z(e) {
179
+ var a;
180
+ return (a = s(d)) == null ? void 0 : a[e];
174
181
  }
175
- function j(e, t, n = !0) {
176
- a == null || a.setFieldValue(l.name, void 0, !0, (o, u) => {
177
- !o[u] || !o[u][e] || (o[u][e] = {
178
- ...n ? o[u][e] : {},
179
- ...t
182
+ function K(e, a, u = !0) {
183
+ o == null || o.setFieldValue(l.name, void 0, !0, (t, f) => {
184
+ !t[f] || !t[f][e] || (t[f][e] = {
185
+ ...u ? t[f][e] : {},
186
+ ...a
180
187
  });
181
188
  });
182
189
  }
183
190
  function P(e) {
184
- a == null || a.setFieldValue(l.name, e);
191
+ o == null || o.setFieldValue(l.name, e);
185
192
  }
186
- function z(e, t) {
187
- var o;
188
- const n = e === "end" ? d.value.length - 1 : e;
189
- le(n, (o = p.value) == null ? void 0 : o.$el, t);
193
+ function A(e, a) {
194
+ var t;
195
+ const u = e === "end" ? d.value.length - 1 : e;
196
+ ue(u, (t = p.value) == null ? void 0 : t.$el, a);
190
197
  }
191
- function A() {
198
+ function O() {
192
199
  var e;
193
- (e = a == null ? void 0 : a.setFieldValue) == null || e.call(a, l.name, []);
200
+ (e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
194
201
  }
195
- return C({
196
- add: S,
197
- remove: v,
198
- getRowData: _,
199
- getRowsData: E,
200
- setRowData: j,
201
- addMultiple: k,
202
- scrollTo: z,
202
+ return R({
203
+ add: N,
204
+ remove: _,
205
+ getRowData: z,
206
+ getRowsData: j,
207
+ setRowData: K,
208
+ addMultiple: E,
209
+ scrollTo: A,
203
210
  setTableData: P,
204
- clear: A
205
- }), (e, t) => ($(), W(s(g).FormItem, h(e.formItem, {
211
+ clear: O,
212
+ removeByKey: k
213
+ }), (e, a) => (J(), q(s(x).FormItem, h(e.formItem, {
206
214
  name: e.name,
207
215
  label: e.label
208
216
  }), {
209
- default: x(() => [q(s(I), h(s(w)(l, ["name", "maxLength", "onChange"]), {
217
+ default: w(() => [Q(s(ee), h(s(y)(l, ["name", "maxLength", "onChange"]), {
210
218
  ref_key: "tableRef",
211
219
  ref: p,
212
220
  class: s(L)(),
213
- columns: s(N),
221
+ columns: s(v),
214
222
  "data-source": d.value
215
- }), J({
223
+ }), X({
216
224
  _: 2
217
- }, [Q(s(w)(F, ["headerCell"]), (n, o) => ({
218
- name: o,
219
- fn: x((u) => [X(e.$slots, o, Y(Z(u || {})))])
225
+ }, [Y(s(y)(T, ["headerCell"]), (u, t) => ({
226
+ name: t,
227
+ fn: w((f) => [Z(e.$slots, t, I(M(f || {})))])
220
228
  }))]), 1040, ["class", "columns", "data-source"])]),
221
229
  _: 3
222
230
  }, 16, ["name", "label"]));
223
231
  }
224
232
  });
225
233
  export {
226
- we as default
234
+ ye as default
227
235
  };
@@ -1,25 +1,11 @@
1
- import { EditableTableProps, EditableColumnType } from './interface';
2
- import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
1
+ import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
3
2
  import { Recordable } from '../type';
4
- import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
4
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9
7
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType> & Partial<{}>> & PublicProps;
10
- expose(exposed: ShallowUnwrapRef<{
11
- resetFields: () => void;
12
- validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
13
- add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
14
- remove: (index: number | number[]) => void;
15
- getRowData: (index: number) => RecordType;
16
- getRowsData: () => RecordType[];
17
- setRowData: (index: number, payload: any, merge?: boolean) => void;
18
- addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
19
- scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
20
- clear: () => void;
21
- setTableData: (nextTableData: RecordType[]) => void;
22
- }>): void;
8
+ expose(exposed: ShallowUnwrapRef<EditableTableExpose>): void;
23
9
  attrs: any;
24
10
  slots: Readonly<{
25
11
  default: any;
@@ -1,16 +1,16 @@
1
- import { defineComponent as $, useSlots as q, ref as w, watch as y, unref as s, createBlock as J, openBlock as Q, withCtx as h, createVNode as C, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
- import { Table as ae } from "@aplus-frontend/antdv";
1
+ import { defineComponent as q, useSlots as J, ref as y, watch as C, unref as r, createBlock as Q, openBlock as X, withCtx as h, createVNode as b, mergeProps as Y, createSlots as Z, renderList as M, renderSlot as ee, normalizeProps as te, guardReactiveProps as ae } from "vue";
2
+ import { Table as ne } from "@aplus-frontend/antdv";
3
3
  import { ApForm as x } from "../ap-form/index.mjs";
4
- import { isEqual as ne, isArray as b, isUndefined as oe, isNumber as g, cloneDeep as le, omit as R } from "lodash-unified";
4
+ import { isEqual as oe, isArray as v, isUndefined as le, isNumber as g, cloneDeep as ue, omit as R } from "lodash-unified";
5
5
  import "../config-provider/index.mjs";
6
6
  import "../hooks/index.mjs";
7
7
  import { isDef as F } from "../utils/index.mjs";
8
- import { scrollToRowIndex as ue } from "./utils.mjs";
9
- import se from "./hooks/use-get-columns.mjs";
10
- import { useNamespace as re } from "../config-provider/hooks/use-namespace.mjs";
11
- import { useControllableValue as ie } from "../hooks/useControllableValue.mjs";
8
+ import { scrollToRowIndex as se } from "./utils.mjs";
9
+ import re from "./hooks/use-get-columns.mjs";
10
+ import { useNamespace as ie } from "../config-provider/hooks/use-namespace.mjs";
11
+ import { useControllableValue as fe } from "../hooks/useControllableValue.mjs";
12
12
  import { useGlobalConfig as de } from "../config-provider/hooks/use-global-config.mjs";
13
- const Re = /* @__PURE__ */ $({
13
+ const Fe = /* @__PURE__ */ q({
14
14
  name: "EditableTable",
15
15
  __name: "index",
16
16
  props: {
@@ -113,137 +113,145 @@ const Re = /* @__PURE__ */ $({
113
113
  expose: V,
114
114
  emit: T
115
115
  }) {
116
- const n = B, {
117
- b: L
118
- } = re("editable-table"), _ = q(), D = T, v = w(), {
116
+ const o = B, {
117
+ b: D
118
+ } = ie("editable-table"), L = J(), S = T, w = y(), {
119
119
  value: m,
120
- updateValue: E
121
- } = ie(n, D), i = w(), N = de("valueTypeMap"), c = x.useWatch(n.name, i);
122
- y(() => c.value, (e) => {
120
+ updateValue: _
121
+ } = fe(o, S), i = y(), E = de("valueTypeMap"), c = x.useWatch(o.name, i);
122
+ C(() => c.value, (e) => {
123
123
  var t;
124
- E(e), (t = n.onChange) == null || t.call(n, e);
124
+ _(e), (t = o.onChange) == null || t.call(o, e);
125
125
  }, {
126
126
  deep: !0,
127
127
  flush: "post"
128
- }), y(m, (e) => {
128
+ }), C(m, (e) => {
129
129
  var t;
130
- e !== s(c) && (ne(e, s(c)) || (t = i.value) == null || t.setFieldValue(n.name, e));
130
+ e !== r(c) && (oe(e, r(c)) || (t = i.value) == null || t.setFieldValue(o.name, e));
131
131
  }, {
132
132
  deep: !0
133
133
  });
134
- const S = se(n, N);
134
+ const N = re(o, E);
135
135
  function k() {
136
136
  var e;
137
137
  (e = i.value) == null || e.resetFields();
138
138
  }
139
139
  function A(e) {
140
- return e ? (b(e) ? e : [e]).map((o) => b(o) ? [n.name, ...o] : [n.name, o]) : void 0;
140
+ return e ? (v(e) ? e : [e]).map((a) => v(a) ? [o.name, ...a] : [o.name, a]) : void 0;
141
141
  }
142
- async function I(e, t) {
143
- var a;
144
- const o = await ((a = i.value) == null ? void 0 : a.validateFields(A(e), t));
145
- return o == null ? void 0 : o[n.name];
142
+ async function z(e, t) {
143
+ var n;
144
+ const a = await ((n = i.value) == null ? void 0 : n.validateFields(A(e), t));
145
+ return a == null ? void 0 : a[o.name];
146
146
  }
147
- function P(e, t) {
148
- var l, u, r;
149
- const o = ((l = s(m)) == null ? void 0 : l.length) || 0;
150
- if (F(n.maxLength) && o >= n.maxLength)
147
+ function I(e, t) {
148
+ var l, u, s;
149
+ const a = ((l = r(m)) == null ? void 0 : l.length) || 0;
150
+ if (F(o.maxLength) && a >= o.maxLength)
151
151
  return;
152
- const a = {
152
+ const n = {
153
153
  ...e || {}
154
154
  };
155
- (r = (u = i.value) == null ? void 0 : u.setFieldValue) == null || r.call(u, n.name, a, !0, (d, f) => {
156
- if (!d[f]) {
157
- d[f] = [a];
155
+ (s = (u = i.value) == null ? void 0 : u.setFieldValue) == null || s.call(u, o.name, n, !0, (f, d) => {
156
+ if (!f[d]) {
157
+ f[d] = [n];
158
158
  return;
159
159
  }
160
- oe(t) ? d[f].push(a) : d[f].splice(t, 0, a);
160
+ le(t) ? f[d].push(n) : f[d].splice(t, 0, n);
161
161
  });
162
162
  }
163
- function j(e, t = "suffix") {
164
- var u, r, d;
165
- const o = ((u = s(m)) == null ? void 0 : u.length) || 0, a = g(e) ? e : e.length;
166
- if (F(n.maxLength) && o + a > n.maxLength)
163
+ function K(e, t = "suffix") {
164
+ var u, s, f;
165
+ const a = ((u = r(m)) == null ? void 0 : u.length) || 0, n = g(e) ? e : e.length;
166
+ if (F(o.maxLength) && a + n > o.maxLength)
167
167
  return;
168
- const l = g(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
169
- (d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, n.name, l, !0, (f, p) => {
170
- if (!f[p]) {
171
- f[p] = [...l];
168
+ const l = g(e) ? new Array(e).fill(0).map(() => ({})) : ue(e);
169
+ (f = (s = i.value) == null ? void 0 : s.setFieldValue) == null || f.call(s, o.name, l, !0, (d, p) => {
170
+ if (!d[p]) {
171
+ d[p] = [...l];
172
172
  return;
173
173
  }
174
- t === "suffix" ? f[p].push(...l) : f[p].unshift(...l);
174
+ t === "suffix" ? d[p].push(...l) : d[p].unshift(...l);
175
175
  });
176
176
  }
177
- function z(e) {
178
- var o, a;
177
+ function P(e) {
178
+ var a, n;
179
179
  const t = new Set(g(e) ? [e] : e);
180
- (a = (o = i.value) == null ? void 0 : o.setFieldValue) == null || a.call(o, n.name, void 0, !0, (l, u) => {
181
- l[u] = l[u].filter((r, d) => !t.has(d));
180
+ (n = (a = i.value) == null ? void 0 : a.setFieldValue) == null || n.call(a, o.name, void 0, !0, (l, u) => {
181
+ l[u] = l[u].filter((s, f) => !t.has(f));
182
182
  });
183
183
  }
184
+ function j(e) {
185
+ var a, n;
186
+ const t = new Set(v(e) ? e : [e]);
187
+ t.size !== 0 && ((n = (a = i.value) == null ? void 0 : a.setFieldValue) == null || n.call(a, o.name, void 0, !0, (l, u) => {
188
+ l[u] = l[u].filter((s) => !t.has(s[o.rowKey]));
189
+ }));
190
+ }
184
191
  function O() {
185
- return s(m);
192
+ return r(m);
186
193
  }
187
- function K(e) {
194
+ function U(e) {
188
195
  var t;
189
- (t = i.value) == null || t.setFieldValue(n.name, e);
196
+ (t = i.value) == null || t.setFieldValue(o.name, e);
190
197
  }
191
- function U(e) {
198
+ function G(e) {
192
199
  var t;
193
- return (t = s(m)) == null ? void 0 : t[e];
200
+ return (t = r(m)) == null ? void 0 : t[e];
194
201
  }
195
- function G(e, t, o = !0) {
196
- var a, l;
197
- (l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, n.name, void 0, !0, (u, r) => {
198
- !u[r] || !u[r][e] || (u[r][e] = {
199
- ...o ? u[r][e] : {},
202
+ function H(e, t, a = !0) {
203
+ var n, l;
204
+ (l = (n = i.value) == null ? void 0 : n.setFieldValue) == null || l.call(n, o.name, void 0, !0, (u, s) => {
205
+ !u[s] || !u[s][e] || (u[s][e] = {
206
+ ...a ? u[s][e] : {},
200
207
  ...t
201
208
  });
202
209
  });
203
210
  }
204
- function H(e, t) {
205
- var a;
206
- const o = e === "end" ? m.value.length - 1 : e;
207
- ue(o, (a = v.value) == null ? void 0 : a.$el, t);
211
+ function W(e, t) {
212
+ var n;
213
+ const a = e === "end" ? m.value.length - 1 : e;
214
+ se(a, (n = w.value) == null ? void 0 : n.$el, t);
208
215
  }
209
- function W() {
216
+ function $() {
210
217
  var e, t;
211
- (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, n.name, []);
218
+ (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
212
219
  }
213
220
  return V({
214
221
  resetFields: k,
215
- validateFields: I,
216
- add: P,
217
- remove: z,
218
- getRowData: U,
222
+ validateFields: z,
223
+ add: I,
224
+ remove: P,
225
+ getRowData: G,
219
226
  getRowsData: O,
220
- setRowData: G,
221
- addMultiple: j,
222
- scrollTo: H,
223
- clear: W,
224
- setTableData: K
225
- }), (e, t) => (Q(), J(s(x), {
227
+ setRowData: H,
228
+ addMultiple: K,
229
+ scrollTo: W,
230
+ clear: $,
231
+ setTableData: U,
232
+ removeByKey: j
233
+ }), (e, t) => (X(), Q(r(x), {
226
234
  ref_key: "formRef",
227
235
  ref: i,
228
236
  "initial-values": {
229
- [n.name]: s(m)
237
+ [o.name]: r(m)
230
238
  }
231
239
  }, {
232
- default: h(() => [C(s(x).FormItem, {
240
+ default: h(() => [b(r(x).FormItem, {
233
241
  name: e.name,
234
242
  "no-style": ""
235
243
  }, {
236
- default: h(() => [C(s(ae), X(s(R)(n, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
244
+ default: h(() => [b(r(ne), Y(r(R)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
237
245
  ref_key: "tableRef",
238
- ref: v,
239
- class: s(L)(),
240
- columns: s(S),
241
- "data-source": s(m)
242
- }), Y({
246
+ ref: w,
247
+ class: r(D)(),
248
+ columns: r(N),
249
+ "data-source": r(m)
250
+ }), Z({
243
251
  _: 2
244
- }, [Z(s(R)(_, ["headerCell"]), (o, a) => ({
245
- name: a,
246
- fn: h((l) => [M(e.$slots, a, ee(te(l || {})))])
252
+ }, [M(r(R)(L, ["headerCell"]), (a, n) => ({
253
+ name: n,
254
+ fn: h((l) => [ee(e.$slots, n, te(ae(l || {})))])
247
255
  }))]), 1040, ["class", "columns", "data-source"])]),
248
256
  _: 3
249
257
  }, 8, ["name"])]),
@@ -252,5 +260,5 @@ const Re = /* @__PURE__ */ $({
252
260
  }
253
261
  });
254
262
  export {
255
- Re as default
263
+ Fe as default
256
264
  };
@@ -7,6 +7,7 @@ import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
7
7
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../type';
9
9
  import { ApFormItemProps } from '../ap-form';
10
+ import { Key } from '@aplus-frontend/antdv/es/_util/type';
10
11
  export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
11
12
  children?: EditableColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
12
13
  /**
@@ -138,6 +139,12 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
138
139
  * @returns
139
140
  */
140
141
  remove: (index: number | number[]) => void;
142
+ /**
143
+ * 通过key删除数据
144
+ * @param key
145
+ * @returns
146
+ */
147
+ removeByKey: (key: Key | Key[]) => void;
141
148
  /**
142
149
  * 清空所有数据
143
150
  * @returns
@@ -1,5 +1,4 @@
1
- import { ComputedRef } from 'vue';
2
- import { PortalProps } from '../portal';
1
+ import { PortalProps } from '../portal/interface';
3
2
  export type FullScreenMode = 'browser' | 'window';
4
3
  export type FullScreenProps = {
5
4
  /**
@@ -15,19 +14,19 @@ export type FullScreenExpose = {
15
14
  /**
16
15
  * 全屏的目标元素
17
16
  */
18
- target: ComputedRef<HTMLElement>;
17
+ target: HTMLElement;
19
18
  /**
20
19
  * 目标元素内用于渲染全局组件的容器
21
20
  */
22
- portalRoot: ComputedRef<HTMLDivElement>;
21
+ portalRoot: HTMLDivElement;
23
22
  /**
24
23
  * 当前是否全屏
25
24
  */
26
- full: ComputedRef<boolean>;
25
+ full: boolean;
27
26
  /**
28
27
  * 当前的全屏模式
29
28
  */
30
- mode: ComputedRef<FullScreenMode>;
29
+ mode: FullScreenMode;
31
30
  /**
32
31
  * 进入全屏
33
32
  * @param mode 全屏模式 窗口全屏/浏览器全屏