@aplus-frontend/ui 0.3.8 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/es/src/ap-action/item/index.vue.d.ts +2 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  3. package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
  4. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  5. package/es/src/ap-button/ap-action-button.vue.d.ts +4 -3
  6. package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
  7. package/es/src/ap-button/ap-button.vue.d.ts +4 -3
  8. package/es/src/ap-button/ap-button.vue.mjs +36 -36
  9. package/es/src/ap-button/interface.d.ts +4 -0
  10. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  11. package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  12. package/es/src/ap-download/ap-download.vue.d.ts +5 -3
  13. package/es/src/ap-field/date/index.vue.d.ts +2 -1
  14. package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
  15. package/es/src/ap-field/number/index.vue.d.ts +2 -1
  16. package/es/src/ap-field/rate/index.vue.d.ts +2 -1
  17. package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
  18. package/es/src/ap-field/select/index.vue.d.ts +2 -1
  19. package/es/src/ap-field/slider/index.vue.d.ts +2 -1
  20. package/es/src/ap-field/switch/index.vue.d.ts +2 -1
  21. package/es/src/ap-field/text/index.vue.d.ts +2 -1
  22. package/es/src/ap-field/text/password.vue.d.ts +2 -1
  23. package/es/src/ap-form/ap-form.vue.d.ts +6 -4
  24. package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
  25. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  26. package/es/src/ap-form/item/index.vue.d.ts +2 -1
  27. package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
  28. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  29. package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
  30. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  31. package/es/src/ap-form/items/number/index.vue.d.ts +2 -1
  32. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
  33. package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
  34. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
  35. package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
  36. package/es/src/ap-form/items/text/index.vue.d.ts +2 -1
  37. package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
  38. package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  39. package/es/src/ap-form/list/index.vue.d.ts +2 -1
  40. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
  41. package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
  42. package/es/src/ap-form/render/control.vue.d.ts +2 -1
  43. package/es/src/ap-form/render/item.vue.d.ts +2 -1
  44. package/es/src/ap-form/search-form/index.vue.d.ts +3 -2
  45. package/es/src/ap-form/set/index.vue.d.ts +2 -1
  46. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  47. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  48. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  49. package/es/src/ap-list/index.vue.d.ts +3 -5
  50. package/es/src/ap-list/index.vue.mjs +37 -39
  51. package/es/src/ap-list/interface.d.ts +3 -3
  52. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  53. package/es/src/ap-scroll-bar/index.d.ts +1 -1
  54. package/es/src/ap-table/ap-table.vue.d.ts +3 -5
  55. package/es/src/ap-table/ap-table.vue2.mjs +75 -78
  56. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  57. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  58. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  59. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  60. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  61. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  62. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  63. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  64. package/es/src/ap-table/constants.d.ts +1 -1
  65. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  66. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
  67. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
  68. package/es/src/ap-table/hooks/use-table-paging.d.ts +13 -3
  69. package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
  70. package/es/src/ap-table/interface.d.ts +4 -3
  71. package/es/src/ap-table/utils.d.ts +1 -0
  72. package/es/src/ap-table/utils.mjs +10 -5
  73. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  74. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  75. package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
  76. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  77. package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
  78. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  79. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  80. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  81. package/es/src/business/ap-appendix/index.d.ts +1 -1
  82. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  83. package/es/src/business/ap-batch-action/index.d.ts +1 -1
  84. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  85. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  86. package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
  87. package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
  88. package/es/src/business/ap-card/index.d.ts +1 -1
  89. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  90. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  91. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  92. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  93. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  94. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  95. package/es/src/business/ap-group-search/index.d.ts +3 -3
  96. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  97. package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
  98. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  99. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  100. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  101. package/es/src/business/ap-ladder/index.d.ts +1 -1
  102. package/es/src/business/ap-select-layout/index.d.ts +3 -4
  103. package/es/src/business/ap-select-layout/interface.d.ts +1 -0
  104. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  105. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -56
  106. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  107. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  108. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  109. package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  110. package/es/src/business/ap-title/index.d.ts +1 -1
  111. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  112. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  113. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  114. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  115. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  116. package/es/src/check-card/group.vue.d.ts +2 -1
  117. package/es/src/check-card/index.vue.d.ts +3 -2
  118. package/es/src/editable-table/form-item.vue.d.ts +3 -5
  119. package/es/src/editable-table/index.vue.d.ts +3 -5
  120. package/es/src/tests/wrapper.d.ts +4 -4
  121. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  122. package/lib/src/ap-action/item/index.vue.d.ts +2 -1
  123. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  124. package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
  125. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  126. package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
  127. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  128. package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
  129. package/lib/src/ap-button/ap-button.vue.js +1 -1
  130. package/lib/src/ap-button/interface.d.ts +4 -0
  131. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  132. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  133. package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
  134. package/lib/src/ap-field/date/index.vue.d.ts +2 -1
  135. package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
  136. package/lib/src/ap-field/number/index.vue.d.ts +2 -1
  137. package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
  138. package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
  139. package/lib/src/ap-field/select/index.vue.d.ts +2 -1
  140. package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
  141. package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
  142. package/lib/src/ap-field/text/index.vue.d.ts +2 -1
  143. package/lib/src/ap-field/text/password.vue.d.ts +2 -1
  144. package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
  145. package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
  146. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  147. package/lib/src/ap-form/item/index.vue.d.ts +2 -1
  148. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
  149. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  150. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
  151. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  152. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
  153. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
  154. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
  155. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
  156. package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
  157. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
  158. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
  159. package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  160. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  161. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
  162. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  163. package/lib/src/ap-form/render/control.vue.d.ts +2 -1
  164. package/lib/src/ap-form/render/item.vue.d.ts +2 -1
  165. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
  166. package/lib/src/ap-form/set/index.vue.d.ts +2 -1
  167. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  168. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  169. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  170. package/lib/src/ap-list/index.vue.d.ts +3 -5
  171. package/lib/src/ap-list/index.vue.js +1 -1
  172. package/lib/src/ap-list/interface.d.ts +3 -3
  173. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  174. package/lib/src/ap-scroll-bar/index.d.ts +1 -1
  175. package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
  176. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  177. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  178. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  179. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  180. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  181. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  182. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  183. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  184. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  185. package/lib/src/ap-table/constants.d.ts +1 -1
  186. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  187. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
  188. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
  189. package/lib/src/ap-table/hooks/use-table-paging.d.ts +13 -3
  190. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  191. package/lib/src/ap-table/interface.d.ts +4 -3
  192. package/lib/src/ap-table/utils.d.ts +1 -0
  193. package/lib/src/ap-table/utils.js +1 -1
  194. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  195. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  196. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
  197. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  198. package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
  199. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  200. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  201. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  202. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  203. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  204. package/lib/src/business/ap-batch-action/index.d.ts +1 -1
  205. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  206. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  207. package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
  208. package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
  209. package/lib/src/business/ap-card/index.d.ts +1 -1
  210. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  211. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  212. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  213. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  214. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  215. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  216. package/lib/src/business/ap-group-search/index.d.ts +3 -3
  217. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  218. package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
  219. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  220. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  221. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  222. package/lib/src/business/ap-ladder/index.d.ts +1 -1
  223. package/lib/src/business/ap-select-layout/index.d.ts +3 -4
  224. package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
  225. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  226. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  227. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  228. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  229. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  230. package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  231. package/lib/src/business/ap-title/index.d.ts +1 -1
  232. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  233. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  234. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  235. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  236. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  237. package/lib/src/check-card/group.vue.d.ts +2 -1
  238. package/lib/src/check-card/index.vue.d.ts +3 -2
  239. package/lib/src/editable-table/form-item.vue.d.ts +3 -5
  240. package/lib/src/editable-table/index.vue.d.ts +3 -5
  241. package/lib/src/tests/wrapper.d.ts +4 -4
  242. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  243. package/package.json +1 -1
  244. package/index.ts +0 -19
@@ -1,8 +1,8 @@
1
- import { defineComponent as O, ref as r, computed as U, onMounted as W, openBlock as f, createElementBlock as p, normalizeClass as o, unref as t, createVNode as d, Transition as z, withCtx as c, withDirectives as E, createElementVNode as s, toDisplayString as $, createTextVNode as x, Fragment as R, renderList as _, renderSlot as A, vShow as N, createCommentVNode as j } from "vue";
1
+ import { defineComponent as O, ref as r, computed as U, onMounted as W, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as d, Transition as z, withCtx as c, withDirectives as V, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as R, renderList as _, renderSlot as x, vShow as A, createCommentVNode as j } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
3
  import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { Tooltip as V, TypographyText as J } from "@aplus-frontend/antdv";
5
+ import { Tooltip as N, TypographyText as J } from "@aplus-frontend/antdv";
6
6
  import { debounce as K } from "lodash-unified";
7
7
  import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
@@ -12,37 +12,38 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
12
12
  title: {},
13
13
  request: {},
14
14
  onSearch: {},
15
- defaultFold: { type: Boolean, default: !1 }
15
+ defaultFold: { type: Boolean, default: !1 },
16
+ defaultValue: { default: "" }
16
17
  },
17
18
  emits: ["onSelect", "afterEnter", "afterLeave"],
18
19
  setup(w, { emit: B }) {
19
- const { b: m, be: h, bem: i } = P("ap-select-layout"), a = w, y = B, C = r(), v = r(a.defaultFold), g = r(!a.defaultFold), S = r(), T = r(), b = r(), k = r(""), L = () => {
20
- v.value = !v.value, S.value = !1, T.value = !1;
21
- }, F = (n) => {
22
- b.value = n, y("onSelect", n);
23
- }, q = K((n) => {
20
+ const { b: h, be: y, bem: u } = P("ap-select-layout"), o = w, C = B, g = r(), v = r(o.defaultFold), S = r(!o.defaultFold), T = r(), b = r(), k = r(), f = r(o.defaultValue), L = () => {
21
+ v.value = !v.value, T.value = !1, b.value = !1;
22
+ }, F = (l) => {
23
+ k.value = l, C("onSelect", l);
24
+ }, q = K((l) => {
24
25
  var e;
25
- k.value = (e = n.target) == null ? void 0 : e.value;
26
+ f.value = (e = l.target) == null ? void 0 : e.value;
26
27
  }, 500), D = U(() => {
27
- var n;
28
- return (n = C.value) == null ? void 0 : n.filter((e) => {
29
- var u, l;
30
- return a != null && a.onSearch ? (u = a.onSearch) == null ? void 0 : u.call(a, e, k.value) : (l = e == null ? void 0 : e.name) == null ? void 0 : l.includes(k.value);
28
+ var l;
29
+ return (l = g.value) == null ? void 0 : l.filter((e) => {
30
+ var i, n;
31
+ return o != null && o.onSearch ? (i = o.onSearch) == null ? void 0 : i.call(o, e, f.value) : (n = e == null ? void 0 : e.name) == null ? void 0 : n.includes(f.value);
31
32
  });
32
- }), I = (n) => {
33
- g.value = !0, y("afterEnter", n);
34
- }, M = (n) => {
35
- g.value = !1, y("afterLeave", n);
33
+ }), I = (l) => {
34
+ S.value = !0, C("afterEnter", l);
35
+ }, M = (l) => {
36
+ S.value = !1, C("afterLeave", l);
36
37
  };
37
38
  return W(() => {
38
- a.request().then((n) => {
39
+ o.request().then((l) => {
39
40
  var e;
40
- C.value = n, F((e = C.value) == null ? void 0 : e[0]);
41
+ g.value = l, F((e = g.value) == null ? void 0 : e[0]);
41
42
  });
42
- }), (n, e) => {
43
- var u;
44
- return f(), p("div", {
45
- class: o(t(m)())
43
+ }), (l, e) => {
44
+ var i;
45
+ return p(), m("div", {
46
+ class: a(t(h)())
46
47
  }, [
47
48
  d(z, {
48
49
  mode: "out-in",
@@ -50,22 +51,22 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
50
51
  onAfterLeave: M
51
52
  }, {
52
53
  default: c(() => [
53
- E(s("div", {
54
- class: o(t(m)("side"))
54
+ V(s("div", {
55
+ class: a(t(h)("side"))
55
56
  }, [
56
57
  s("div", {
57
- class: o(t(h)("side", "header"))
58
+ class: a(t(y)("side", "header"))
58
59
  }, [
59
- s("h3", null, $(a.title), 1),
60
+ s("h3", null, E(o.title), 1),
60
61
  s("div", {
61
- class: o(t(i)("side", "header", "imgWrap"))
62
+ class: a(t(u)("side", "header", "imgWrap"))
62
63
  }, [
63
- d(t(V), {
64
- open: S.value,
65
- "onUpdate:open": e[0] || (e[0] = (l) => S.value = l)
64
+ d(t(N), {
65
+ open: T.value,
66
+ "onUpdate:open": e[0] || (e[0] = (n) => T.value = n)
66
67
  }, {
67
68
  title: c(() => e[2] || (e[2] = [
68
- x("收起")
69
+ $("收起")
69
70
  ])),
70
71
  default: c(() => [
71
72
  d(t(G), { onClick: L })
@@ -75,57 +76,58 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
75
76
  ], 2)
76
77
  ], 2),
77
78
  s("div", {
78
- class: o(t(h)("side", "body"))
79
+ class: a(t(y)("side", "body"))
79
80
  }, [
80
81
  s("div", {
81
- class: o(t(i)("side", "body", "search"))
82
+ class: a(t(u)("side", "body", "search"))
82
83
  }, [
83
84
  d(t(Q), {
84
85
  placeholder: "请输入",
86
+ value: f.value,
85
87
  onChange: t(q)
86
- }, null, 8, ["onChange"])
88
+ }, null, 8, ["value", "onChange"])
87
89
  ], 2),
88
90
  s("div", {
89
- class: o(t(i)("side", "body", "scroll"))
91
+ class: a(t(u)("side", "body", "scroll"))
90
92
  }, [
91
- (f(!0), p(R, null, _(D.value, (l) => E((f(), p("div", {
92
- key: l.value,
93
- class: o(`${t(i)("side", "body", "scroll-item")} ${b.value === l ? "active" : ""}`),
94
- onClick: (Y) => F(l)
93
+ (p(!0), m(R, null, _(D.value, (n) => V((p(), m("div", {
94
+ key: n.value,
95
+ class: a(`${t(u)("side", "body", "scroll-item")} ${k.value === n ? "active" : ""}`),
96
+ onClick: (Y) => F(n)
95
97
  }, [
96
- A(n.$slots, "itemRender", { item: l }, () => [
98
+ x(l.$slots, "itemRender", { item: n }, () => [
97
99
  d(t(J), {
98
- ellipsis: { tooltip: l.name },
99
- content: `${l.name}`
100
+ ellipsis: { tooltip: n.name },
101
+ content: `${n.name}`
100
102
  }, null, 8, ["ellipsis", "content"])
101
103
  ])
102
104
  ], 10, X)), [
103
- [N, g.value]
105
+ [A, S.value]
104
106
  ])), 128))
105
107
  ], 2)
106
108
  ], 2)
107
109
  ], 2), [
108
- [N, !v.value]
110
+ [A, !v.value]
109
111
  ])
110
112
  ]),
111
113
  _: 3
112
114
  }),
113
115
  s("div", {
114
- class: o(t(m)("content"))
116
+ class: a(t(h)("content"))
115
117
  }, [
116
118
  s("div", {
117
- class: o(t(h)("content", "header"))
119
+ class: a(t(y)("content", "header"))
118
120
  }, [
119
- v.value ? (f(), p("div", {
121
+ v.value ? (p(), m("div", {
120
122
  key: 0,
121
- class: o(t(i)("content", "header", "imgWrap"))
123
+ class: a(t(u)("content", "header", "imgWrap"))
122
124
  }, [
123
- d(t(V), {
124
- open: T.value,
125
- "onUpdate:open": e[1] || (e[1] = (l) => T.value = l)
125
+ d(t(N), {
126
+ open: b.value,
127
+ "onUpdate:open": e[1] || (e[1] = (n) => b.value = n)
126
128
  }, {
127
129
  title: c(() => e[3] || (e[3] = [
128
- x("展开")
130
+ $("展开")
129
131
  ])),
130
132
  default: c(() => [
131
133
  d(t(H), { onClick: L })
@@ -134,10 +136,10 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
134
136
  }, 8, ["open"])
135
137
  ], 2)) : j("", !0),
136
138
  s("div", {
137
- class: o(t(i)("content", "header", "title"))
138
- }, $((u = b.value) == null ? void 0 : u.name), 3)
139
+ class: a(t(u)("content", "header", "title"))
140
+ }, E((i = k.value) == null ? void 0 : i.name), 3)
139
141
  ], 2),
140
- A(n.$slots, "default")
142
+ x(l.$slots, "default")
141
143
  ], 2)
142
144
  ], 2);
143
145
  };
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {
5
6
  maxCount: number;
@@ -7,7 +8,7 @@ declare function __VLS_template(): {
7
8
  }): any;
8
9
  };
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: HTMLDivElement;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
@@ -36,7 +37,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
36
37
  type: NumberConstructor;
37
38
  required: true;
38
39
  };
39
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
40
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
42
  export default _default;
42
43
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,28 +1,28 @@
1
1
  import { TableLayoutConfig } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = TableLayoutConfig & {
4
+ selectedList: any[];
5
+ };
3
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
4
8
  slots: {
5
9
  default?(_: {}): any;
6
10
  default?(_: {}): any;
7
11
  };
8
12
  refs: {};
9
- attrs: Partial<{}>;
13
+ rootEl: HTMLDivElement;
10
14
  };
11
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: DefineComponent<TableLayoutConfig & {
13
- selectedList: any[];
14
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
17
  clear: () => any;
16
18
  deleteItem: (record: any) => any;
17
- }, string, PublicProps, Readonly<TableLayoutConfig & {
18
- selectedList: any[];
19
- }> & Readonly<{
19
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
20
20
  onClear?: (() => any) | undefined;
21
21
  onDeleteItem?: ((record: any) => any) | undefined;
22
22
  }>, {
23
23
  leftTitle: string;
24
24
  selectedList: any[];
25
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
27
  export default _default;
28
28
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,7 +2,8 @@ import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { Recordable } from '../../type';
4
4
  import { TableColumnsType } from '@aplus-frontend/antdv';
5
- declare const _default: DefineComponent<ApTableModalProps<any>, {
5
+ type __VLS_Props = ApTableModalProps;
6
+ declare const _default: DefineComponent<__VLS_Props, {
6
7
  open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
7
8
  close: () => void;
8
9
  getApTableInstance: () => {
@@ -26,7 +27,7 @@ declare const _default: DefineComponent<ApTableModalProps<any>, {
26
27
  } | null;
27
28
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
29
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
29
- }, string, PublicProps, Readonly<ApTableModalProps<any>> & Readonly<{
30
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
30
31
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
31
32
  }>, {
32
33
  mask: boolean;
@@ -1,12 +1,13 @@
1
1
  import { ApTitleProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  prefix?(_: {}): any;
6
7
  suffix?(_: {}): any;
7
8
  };
8
9
  refs: {};
9
- attrs: Partial<{}>;
10
+ rootEl: HTMLDivElement;
10
11
  };
11
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
13
  declare const __VLS_component: DefineComponent<ApTitleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTitleProps> & Readonly<{}>, {
@@ -15,7 +16,7 @@ declare const __VLS_component: DefineComponent<ApTitleProps, {}, {}, {}, {}, Com
15
16
  trigger: "hover" | "focus" | "click" | "contextmenu";
16
17
  helpMessage: string;
17
18
  helpIconColor: string;
18
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
21
  export default _default;
21
22
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -8,7 +8,7 @@ declare const ApTitle: {
8
8
  trigger: "hover" | "focus" | "click" | "contextmenu";
9
9
  helpMessage: string;
10
10
  helpIconColor: string;
11
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
11
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
12
12
  P: {};
13
13
  B: {};
14
14
  D: {};
@@ -1,6 +1,8 @@
1
1
  import { ApUploadFile, ApUploadSingleProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = ApUploadSingleProps;
3
4
  declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
4
6
  slots: {
5
7
  default?(_: {
6
8
  file: ApUploadFile | undefined;
@@ -8,12 +10,12 @@ declare function __VLS_template(): {
8
10
  }): any;
9
11
  };
10
12
  refs: {};
11
- attrs: Partial<{}>;
13
+ rootEl: any;
12
14
  };
13
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: DefineComponent<ApUploadSingleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
17
  "update:fileList": (...args: any[]) => void;
16
- }, string, PublicProps, Readonly<ApUploadSingleProps> & Readonly<{
18
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
19
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
18
20
  }>, {
19
21
  accept: string;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
3
  export default _default;
@@ -13,5 +13,5 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
13
13
  allowClear: boolean;
14
14
  emptyText: string;
15
15
  hasAll: boolean;
16
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
17
  export default _default;
@@ -4,5 +4,5 @@ declare const _default: DefineComponent<BatchInputGroupPopoverInputProps, {}, {}
4
4
  "update:value": (...args: any[]) => void;
5
5
  }, string, PublicProps, Readonly<BatchInputGroupPopoverInputProps> & Readonly<{
6
6
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
8
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import { CheckCardGroupProps, CheckCardValueType } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {};
8
- attrs: Partial<{}>;
9
+ rootEl: any;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
12
  declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -6,9 +6,10 @@ type CheckCardSlots = {
6
6
  }): void;
7
7
  };
8
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
9
10
  slots: Readonly<CheckCardSlots> & CheckCardSlots;
10
11
  refs: {};
11
- attrs: Partial<{}>;
12
+ rootEl: HTMLDivElement;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
15
  declare const __VLS_component: DefineComponent<CheckCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -22,7 +23,7 @@ declare const __VLS_component: DefineComponent<CheckCardProps, {}, {}, {}, {}, C
22
23
  checked: boolean;
23
24
  stopPropagation: boolean | ((event: MouseEvent) => boolean);
24
25
  indicatorSize: number;
25
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
28
  export default _default;
28
29
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,9 +1,9 @@
1
1
  import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
2
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  import { UnwrapRefSimple } from '@vue/reactivity';
5
5
  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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & EditableTableFormItemProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  add: (defaultValue?: any, insertIndex?: number) => void;
9
9
  remove: (index: number | number[]) => void;
@@ -48,9 +48,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
48
48
  }) => void;
49
49
  };
50
50
  emit: {};
51
- }>) => VNode<RendererNode, RendererElement, {
52
- [key: string]: any;
53
- }> & {
51
+ }>) => VNode & {
54
52
  __ctx?: Awaited<typeof __VLS_setup>;
55
53
  };
56
54
  export default _default;
@@ -2,11 +2,11 @@ import { EditableTableProps, EditableColumnType } from './interface';
2
2
  import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
4
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
6
  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
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
8
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType>> & PublicProps;
9
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & Partial<{}> & EditableTableProps<RecordType>> & PublicProps;
10
10
  expose(exposed: ShallowUnwrapRef<{
11
11
  resetFields: () => void;
12
12
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
@@ -53,9 +53,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
53
53
  }) => void;
54
54
  };
55
55
  emit: (event: "update:value", ...args: any[]) => void;
56
- }>) => VNode<RendererNode, RendererElement, {
57
- [key: string]: any;
58
- }> & {
56
+ }>) => VNode & {
59
57
  __ctx?: Awaited<typeof __VLS_setup>;
60
58
  };
61
59
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  export declare const Wrapper: DefineComponent<{
3
- uiMode?: ("admin" | "aplus") | undefined;
4
- lang?: ("en" | "zh-cn") | undefined;
3
+ uiMode?: "admin" | "aplus" | undefined;
4
+ lang?: "en" | "zh-cn" | undefined;
5
5
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
6
- uiMode?: ("admin" | "aplus") | undefined;
7
- lang?: ("en" | "zh-cn") | undefined;
6
+ uiMode?: "admin" | "aplus" | undefined;
7
+ lang?: "en" | "zh-cn" | undefined;
8
8
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -6,5 +6,5 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
6
6
  }, string, PublicProps, Readonly<WorkOrderModalProps> & Readonly<{
7
7
  "onUpdate:open"?: (() => any) | undefined;
8
8
  onModalClose?: (() => any) | undefined;
9
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
10
  export default _default;
@@ -1,9 +1,10 @@
1
1
  import { ApActionItemProps, ApActionItemSlots } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
5
6
  refs: {};
6
- attrs: Partial<{}>;
7
+ rootEl: any;
7
8
  };
8
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
10
  declare const __VLS_component: DefineComponent<ApActionItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApActionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -3,11 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  import { ActionColor, MixedActionTypes } from '..';
4
4
  import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
5
5
  declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
6
7
  slots: {
7
8
  default?(_: {}): any;
8
9
  };
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: any;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<ApActionItemDropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApActionItemDropdownProps> & Readonly<{}>, {
@@ -3,9 +3,10 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  import { ActionColor } from '..';
4
4
  import { ModalFuncProps } from '@aplus-frontend/antdv';
5
5
  declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
6
7
  slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
7
8
  refs: {};
8
- attrs: Partial<{}>;
9
+ rootEl: any;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
12
  declare const __VLS_component: DefineComponent<ApActionItemModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApActionItemModalProps> & Readonly<{}>, {
@@ -11,9 +11,10 @@ import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
11
11
  import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
12
12
  import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
13
13
  declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
14
15
  slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
15
16
  refs: {};
16
- attrs: Partial<{}>;
17
+ rootEl: any;
17
18
  };
18
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
20
  declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApActionItemPopconfirmProps> & Readonly<{}>, {
@@ -1,10 +1,11 @@
1
+ import { ApButtonSlots, ApButtonProps } from './interface';
1
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- import { ApButtonProps } from './interface';
3
3
  import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  declare function __VLS_template(): {
5
- slots: Partial<Record<string, (_: any) => any>>;
6
- refs: {};
7
5
  attrs: Partial<{}>;
6
+ slots: Readonly<ApButtonSlots> & ApButtonSlots;
7
+ refs: {};
8
+ rootEl: any;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: DefineComponent<ApButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApButtonProps> & Readonly<{}>, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./ap-button.vue2.js");const l=require("./ap-button.vue.js"),u=e.defineComponent({__name:"ap-action-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"borderLink"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!0},lazy:{type:[Boolean,Number],default:!0},onClick:{}},setup(r){const n=r;return(t,s)=>(e.openBlock(),e.createBlock(l.default,e.normalizeProps(e.guardReactiveProps({...t.$attrs,...n})),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),o=>({name:o,fn:e.withCtx(a=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040))}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./ap-button.vue2.js");const s=require("./ap-button.vue.js"),u=e.defineComponent({__name:"ap-action-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"borderLink"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!0},lazy:{type:[Boolean,Number],default:!0},onClick:{}},setup(r){const n=e.useSlots(),a=r;return(t,i)=>(e.openBlock(),e.createBlock(s.default,e.normalizeProps(e.guardReactiveProps({...t.$attrs,...a})),e.createSlots({_:2},[e.renderList(n,(p,o)=>({name:o,fn:e.withCtx(l=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040))}});exports.default=u;
@@ -1,10 +1,11 @@
1
- import { ApButtonProps } from './interface';
1
+ import { ApButtonSlots, ApButtonProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  declare function __VLS_template(): {
5
- slots: Partial<Record<string, (_: any) => any>>;
6
- refs: {};
7
5
  attrs: Partial<{}>;
6
+ slots: Readonly<ApButtonSlots> & ApButtonSlots;
7
+ refs: {};
8
+ rootEl: any;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: DefineComponent<ApButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApButtonProps> & Readonly<{}>, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@aplus-frontend/antdv"),B=require("@aplus-frontend/utils");require("../config-provider/index.js");const W=require("lodash-unified"),p=require("./utils/index.js"),z=require("../config-provider/hooks/use-namespace.js"),L=require("../config-provider/hooks/use-global-config.js"),q=88,M=300,w=e.defineComponent({__name:"ap-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"default"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!1},lazy:{type:[Boolean,Number],default:!0},onClick:{}},setup(f){const t=f,l={aplus:"#0070FF",admin:"#34b77c"},{b:a}=z.useNamespace("ap-action-button"),y=L.useGlobalConfig("uiMode"),r=e.ref(!1),m=e.computed(()=>t.borderLinkColor||l[y.value]||l.aplus),i=e.computed(()=>t.type==="borderLink"?m.value:void 0),u=e.computed(()=>p.transferOpacityColor(i.value)),b=e.computed(()=>t.minWidth===!0?`${q}px`:typeof t.minWidth=="number"?`${t.minWidth}px`:typeof t.minWidth=="string"?t.minWidth:void 0),v=e.computed(()=>(t.type==="borderLink"?"default":t.type)||"default"),s=e.computed(()=>t.loading??r.value??!1),c=e.computed(()=>t.lazy===!0?M:typeof t.lazy=="number"&&t.lazy>=0?t.lazy:0);function h(){const o=W.omit(t,["type","borderLinkColor","minWidth","onClick","loading"]);return o?{...o,type:v.value,onclick:g}:{}}async function g(){if(s.value)return;const o=p.isAsynchronous(t.onClick),d=Date.now();try{o&&(r.value=!0,await o)}finally{if(o){const n=Date.now()-d;n<c.value&&await B.wait(c.value-n),r.value=!1}}}return(o,d)=>(e.openBlock(),e.createBlock(e.unref(C.Button),e.mergeProps({class:{[e.unref(a)()]:!0,[`${e.unref(a)()}-border-link`]:u.value}},{...o.$attrs,...h()},{style:{color:i.value,minWidth:b.value,"--button-border-color":u.value},loading:s.value}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),n=>({name:n,fn:e.withCtx(k=>[e.renderSlot(o.$slots,n,e.normalizeProps(e.guardReactiveProps(k||{})))])}))]),1040,["class","style","loading"]))}});exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("@aplus-frontend/antdv"),z=require("@aplus-frontend/utils");require("../config-provider/index.js");const L=require("lodash-unified"),f=require("./utils/index.js"),q=require("../config-provider/hooks/use-namespace.js"),M=require("../config-provider/hooks/use-global-config.js"),_=88,w=300,T=e.defineComponent({__name:"ap-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"default"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!1},lazy:{type:[Boolean,Number],default:!0},onClick:{}},setup(y){const m=e.useSlots(),t=y,l={aplus:"#0070FF",admin:"#34b77c"},{b:a}=q.useNamespace("ap-action-button"),b=M.useGlobalConfig("uiMode"),n=e.ref(!1),v=e.computed(()=>t.borderLinkColor||l[b.value]||l.aplus),i=e.computed(()=>t.type==="borderLink"?v.value:void 0),u=e.computed(()=>f.transferOpacityColor(i.value)),h=e.computed(()=>t.minWidth===!0?`${_}px`:typeof t.minWidth=="number"?`${t.minWidth}px`:typeof t.minWidth=="string"?t.minWidth:void 0),g=e.computed(()=>(t.type==="borderLink"?"default":t.type)||"default"),s=e.computed(()=>t.loading??n.value??!1),c=e.computed(()=>t.lazy===!0?w:typeof t.lazy=="number"&&t.lazy>=0?t.lazy:0);function C(){const o=L.omit(t,["type","borderLinkColor","minWidth","onClick","loading"]);return o?{...o,type:g.value,onclick:k}:{}}async function k(){if(s.value)return;const o=f.isAsynchronous(t.onClick),d=Date.now();try{o&&(n.value=!0,await o)}finally{if(o){const r=Date.now()-d;r<c.value&&await z.wait(c.value-r),n.value=!1}}}return(o,d)=>(e.openBlock(),e.createBlock(e.unref(W.Button),e.mergeProps({class:{[e.unref(a)()]:!0,[`${e.unref(a)()}-border-link`]:u.value}},{...o.$attrs,...C()},{style:{color:i.value,minWidth:h.value,"--button-border-color":u.value},loading:s.value}),e.createSlots({_:2},[e.renderList(m,(r,p)=>({name:p,fn:e.withCtx(B=>[e.renderSlot(o.$slots,p,e.normalizeProps(e.guardReactiveProps(B||{})))])}))]),1040,["class","style","loading"]))}});exports.default=T;
@@ -7,3 +7,7 @@ export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
7
7
  onClick?: () => any | Promise<any>;
8
8
  };
9
9
  export type ApActionButtonProps = ApButtonProps;
10
+ export type ApButtonSlots = {
11
+ default: any;
12
+ icon?: any;
13
+ };
@@ -1,6 +1,7 @@
1
1
  import { DisplayInfoProps } from './interface';
2
2
  import { VNode, RendererNode, RendererElement, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: Partial<Record<string, (_: {
5
6
  index: number;
6
7
  item: VNode<RendererNode, RendererElement, {
@@ -11,10 +12,10 @@ declare function __VLS_template(): {
11
12
  } | undefined;
12
13
  }) => any>>;
13
14
  refs: {};
14
- attrs: Partial<{}>;
15
+ rootEl: HTMLDivElement;
15
16
  };
16
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<DisplayInfoProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DisplayInfoProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_component: DefineComponent<DisplayInfoProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DisplayInfoProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
18
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
20
  export default _default;
20
21
  type __VLS_WithTemplateSlots<T, S> = T & {