@aplus-frontend/ui 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) 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-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  51. package/es/src/ap-scroll-bar/index.d.ts +1 -1
  52. package/es/src/ap-table/ap-table.vue.d.ts +3 -5
  53. package/es/src/ap-table/ap-table.vue2.mjs +23 -22
  54. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  55. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  56. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  57. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  58. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  59. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  60. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  61. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  62. package/es/src/ap-table/constants.d.ts +1 -1
  63. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  64. package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  65. package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
  66. package/es/src/ap-table/utils.d.ts +1 -0
  67. package/es/src/ap-table/utils.mjs +10 -5
  68. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  69. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  70. package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
  71. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  72. package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
  73. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  74. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  75. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  76. package/es/src/business/ap-appendix/index.d.ts +1 -1
  77. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  78. package/es/src/business/ap-batch-action/index.d.ts +1 -1
  79. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  80. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  81. package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
  82. package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
  83. package/es/src/business/ap-card/index.d.ts +1 -1
  84. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  85. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  86. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  87. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  88. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  89. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  90. package/es/src/business/ap-group-search/index.d.ts +3 -3
  91. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  92. package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
  93. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  94. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  95. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  96. package/es/src/business/ap-ladder/index.d.ts +1 -1
  97. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  98. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  99. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  100. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  101. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  102. package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  103. package/es/src/business/ap-title/index.d.ts +1 -1
  104. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  105. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  106. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  107. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  108. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  109. package/es/src/check-card/group.vue.d.ts +2 -1
  110. package/es/src/check-card/index.vue.d.ts +3 -2
  111. package/es/src/editable-table/form-item.vue.d.ts +3 -5
  112. package/es/src/editable-table/index.vue.d.ts +3 -5
  113. package/es/src/tests/wrapper.d.ts +4 -4
  114. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  115. package/lib/src/ap-action/item/index.vue.d.ts +2 -1
  116. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  117. package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
  118. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  119. package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
  120. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  121. package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
  122. package/lib/src/ap-button/ap-button.vue.js +1 -1
  123. package/lib/src/ap-button/interface.d.ts +4 -0
  124. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  125. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  126. package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
  127. package/lib/src/ap-field/date/index.vue.d.ts +2 -1
  128. package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
  129. package/lib/src/ap-field/number/index.vue.d.ts +2 -1
  130. package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
  131. package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
  132. package/lib/src/ap-field/select/index.vue.d.ts +2 -1
  133. package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
  134. package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
  135. package/lib/src/ap-field/text/index.vue.d.ts +2 -1
  136. package/lib/src/ap-field/text/password.vue.d.ts +2 -1
  137. package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
  138. package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
  139. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  140. package/lib/src/ap-form/item/index.vue.d.ts +2 -1
  141. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
  142. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  143. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
  144. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  145. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
  146. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
  147. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
  148. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
  149. package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
  150. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
  151. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
  152. package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  153. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  154. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
  155. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  156. package/lib/src/ap-form/render/control.vue.d.ts +2 -1
  157. package/lib/src/ap-form/render/item.vue.d.ts +2 -1
  158. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
  159. package/lib/src/ap-form/set/index.vue.d.ts +2 -1
  160. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  161. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  162. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  163. package/lib/src/ap-list/index.vue.d.ts +3 -5
  164. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  165. package/lib/src/ap-scroll-bar/index.d.ts +1 -1
  166. package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
  167. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  168. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  169. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  170. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  171. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  172. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  173. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  174. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  175. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  176. package/lib/src/ap-table/constants.d.ts +1 -1
  177. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  178. package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  179. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  180. package/lib/src/ap-table/utils.d.ts +1 -0
  181. package/lib/src/ap-table/utils.js +1 -1
  182. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  183. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  184. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
  185. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  186. package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
  187. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  188. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  189. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  190. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  191. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  192. package/lib/src/business/ap-batch-action/index.d.ts +1 -1
  193. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  194. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  195. package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
  196. package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
  197. package/lib/src/business/ap-card/index.d.ts +1 -1
  198. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  199. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  200. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  201. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  202. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  203. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  204. package/lib/src/business/ap-group-search/index.d.ts +3 -3
  205. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  206. package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
  207. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  208. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  209. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  210. package/lib/src/business/ap-ladder/index.d.ts +1 -1
  211. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  212. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  213. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  214. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  215. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  216. package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  217. package/lib/src/business/ap-title/index.d.ts +1 -1
  218. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  219. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  220. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  221. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  222. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  223. package/lib/src/check-card/group.vue.d.ts +2 -1
  224. package/lib/src/check-card/index.vue.d.ts +3 -2
  225. package/lib/src/editable-table/form-item.vue.d.ts +3 -5
  226. package/lib/src/editable-table/index.vue.d.ts +3 -5
  227. package/lib/src/tests/wrapper.d.ts +4 -4
  228. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  229. package/package.json +1 -1
  230. package/index.ts +0 -19
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),x=require("../utils.js"),V=require("lodash-unified");require("../../config-provider/index.js");const ee=require("./use-sorted-filtered.js"),te=require("../../config-provider/hooks/use-locale.js"),ae=require("../../config-provider/hooks/use-namespace.js"),re=({manual:D=!1,defaultCurrent:E=1,defaultPageSize:y=10,request:R,defaultParams:M={},defaultData:B=[],formatParams:z,paramsValueTypeMap:C,resetFieldsIgnores:N,filterFields:K,sortFields:L,showLessItems:P=!1,showTotal:$=!0})=>{let q=0,s={};const J=e=>z?z(e):e,c=t.ref(),l=t.ref(E),d=t.ref(y),{getColumnSFConfig:Q,setSF:U,clearAll:W}=ee.useTableSortedAndFiltered(),{t:S}=te.useLocale(),{b:T}=ae.useNamespace("ap-table"),n=t.ref({total:0,records:B,loading:!1}),w=async e=>{var o;const r=J(e),a=Date.now();q=a,n.value.loading=!0;try{const u=await R({...M,...r});q===a&&(n.value.total=u.total||((o=u.data)==null?void 0:o.length)||0,n.value.records=[...u.data||[]])}catch{q===a&&(n.value.records=[],n.value.total=0)}finally{n.value.loading=!1}},A=e=>{const r={};return Object.entries(e).forEach(([a,o])=>{if(r[a]=o,C&&o){const u=C[a];u&&(r[a]=x.parseFieldValue(u,o))}}),r},G=async e=>{var o,u,g,p,m,f,h;const r=((u=(o=c.value)==null?void 0:o.apForm)==null?void 0:u.getFieldsValueTransformed(!0))||{},a={};Object.entries(r).forEach(([v,b])=>{N&&N.indexOf(v)>-1&&(a[v]=b)}),await((p=(g=c.value)==null?void 0:g.apForm)==null?void 0:p.resetFields()),(h=(f=(m=c.value)==null?void 0:m.apForm)==null?void 0:f.setFieldsValue)==null||h.call(f,a),t.nextTick(()=>{e==null||e()})},F=e=>{s=e;const r=A(e);w(r)},H=e=>{F({...s,...e})},O=()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};l.value=1,F({...e,filter:s.filter,sort:s.sort,current:1,pageSize:s.pageSize||y})},X=()=>{W(),s.sort={},s.filter={},G(O)},Y=()=>{F(s)},Z=e=>{const r=t.unref(n).total-e,a=Math.ceil(r/t.unref(d)),o=t.unref(l)>a?a:t.unref(l);H({current:o>0?o:1})},j=(e,r,a)=>{var f,h,v,b;const o=((h=(f=c.value)==null?void 0:f.apForm)==null?void 0:h.getFieldsValueTransformed(!0))||{};l.value=e.current,d.value=e.pageSize,U(r,a);const u=V.isArray(a)?[...a]:[a],g={};for(const i of u)(v=t.unref(L))!=null&&v.includes(i.columnKey||i.field)&&i.order&&(g[x.dataIndexToStr(i.columnKey||i.field)]=i.order);const p={};for(const i of Object.keys(r))(b=t.unref(K))!=null&&b.includes(i)&&r[i]&&(p[i]=r[i]);const m={...o,filter:p,sort:g,current:e.current,pageSize:e.pageSize};V.isEqualWith(s,m,x.isEqualCustom)||F(m)};t.onMounted(()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};if(s={current:t.unref(l),pageSize:t.unref(d),filter:{},sort:{},...e},!D){const o=A(s);w(o)}});const _=t.computed(()=>t.unref(n).total===0?"-":`${t.unref(l.value)}/${Math.ceil(t.unref(n).total/t.unref(d))}`);function I(e){V.isArray(e)&&(n.value.records=e,n.value.total=e.length)}const k=t.computed(()=>({loading:t.unref(n).loading,pagination:{current:t.unref(l),pageSize:t.unref(d),total:t.unref(n).total,showSizeChanger:!P,showQuickJumper:!P,showLessItems:P,size:"default",showTotal:$?e=>t.createVNode("span",{class:T("pagination-total-wrapper")},[S("ap.apTable.pagination.totalLeftPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[e])," ",S("ap.apTable.pagination.totalLeftSuffix"),t.createVNode("span",{class:T("pagination--total-right")},[S("ap.apTable.pagination.totalRightPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[t.unref(_)])," ",S("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:j,dataSource:t.unref(n).records}));return{formRef:c,submit:O,reset:X,refresh:Y,refreshByDelete:Z,data:n,current:l,pageSize:d,handleTableChange:j,tableProps:k,dataSource:t.computed(()=>t.unref(n).records),setDataSource:I,getColumnSFConfig:Q}};exports.useTablePaging=re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),z=require("../utils.js"),V=require("lodash-unified");require("../../config-provider/index.js");const te=require("./use-sorted-filtered.js"),re=require("../../config-provider/hooks/use-locale.js"),ae=require("../../config-provider/hooks/use-namespace.js"),ne=({manual:R=!1,defaultCurrent:M=1,defaultPageSize:y=10,request:B,defaultParams:K={},defaultData:L=[],formatParams:C,paramsValueTypeMap:N,resetFieldsIgnores:w,filterFields:_,sortFields:$,showLessItems:q=!1,showTotal:J=!0,pagination:g=!0})=>{let x=0,u={};const Q=e=>C?C(e):e,c=t.ref(),f=t.ref(g?M:void 0),p=t.ref(g?y:void 0),{getColumnSFConfig:U,setSF:W,clearAll:G}=te.useTableSortedAndFiltered(),{t:T}=re.useLocale(),{b:F}=ae.useNamespace("ap-table"),n=t.ref({total:0,records:L,loading:!1}),A=async e=>{var o;const r=Q(e),a=Date.now();x=a,n.value.loading=!0;try{const s=await B({...K,...r});x===a&&(n.value.total=s.total||((o=s.data)==null?void 0:o.length)||0,n.value.records=[...s.data||[]])}catch{x===a&&(n.value.records=[],n.value.total=0)}finally{n.value.loading=!1}},O=e=>{const r={};return Object.entries(e).forEach(([a,o])=>{if(r[a]=o,N&&o){const s=N[a];s&&(r[a]=z.parseFieldValue(s,o))}}),r},H=async e=>{var o,s,l,m,h,d,v;const r=((s=(o=c.value)==null?void 0:o.apForm)==null?void 0:s.getFieldsValueTransformed(!0))||{},a={};Object.entries(r).forEach(([S,P])=>{w&&w.indexOf(S)>-1&&(a[S]=P)}),await((m=(l=c.value)==null?void 0:l.apForm)==null?void 0:m.resetFields()),(v=(d=(h=c.value)==null?void 0:h.apForm)==null?void 0:d.setFieldsValue)==null||v.call(d,a),t.nextTick(()=>{e==null||e()})},b=e=>{u=e;const r=O(e);A(r)},X=e=>{b({...u,...e})},j=()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};g&&(f.value=1),b({...e,filter:u.filter,sort:u.sort,current:g?1:void 0,pageSize:g?u.pageSize||y:void 0})},Y=()=>{G(),u.sort={},u.filter={},H(j)},D=()=>{b(u)},Z=e=>{if(!g)D();else{const r=t.unref(f),a=t.unref(p),o=t.unref(n).total-e,s=Math.ceil(o/a),l=r>s?s:r;X({current:l>0?l:1})}},E=(e,r,a)=>{var d,v,S,P;const o=((v=(d=c.value)==null?void 0:d.apForm)==null?void 0:v.getFieldsValueTransformed(!0))||{};f.value=e.current,p.value=e.pageSize,W(r,a);const s=V.isArray(a)?[...a]:[a],l={};for(const i of s)(S=t.unref($))!=null&&S.includes(i.columnKey||i.field)&&i.order&&(l[z.dataIndexToStr(i.columnKey||i.field)]=i.order);const m={};for(const i of Object.keys(r))(P=t.unref(_))!=null&&P.includes(i)&&r[i]&&(m[i]=r[i]);const h={...o,filter:m,sort:l,current:e.current,pageSize:e.pageSize};V.isEqualWith(u,h,z.isEqualCustom)||b(h)};t.onMounted(()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};if(u={current:t.unref(f),pageSize:t.unref(p),filter:{},sort:{},...e},!R){const o=O(u);A(o)}});const I=t.computed(()=>t.unref(n).total===0?"-":`${t.unref(f.value)}/${Math.ceil(t.unref(n).total/t.unref(p))}`);function k(e){V.isArray(e)&&(n.value.records=e,n.value.total=e.length)}const ee=t.computed(()=>({loading:t.unref(n).loading,pagination:{current:t.unref(f),pageSize:t.unref(p),total:t.unref(n).total,showSizeChanger:!q,showQuickJumper:!q,showLessItems:q,size:"default",showTotal:J?e=>t.createVNode("span",{class:F("pagination-total-wrapper")},[T("ap.apTable.pagination.totalLeftPrefix")," ",t.createVNode("span",{class:F("pagination-count-text")},[e])," ",T("ap.apTable.pagination.totalLeftSuffix"),t.createVNode("span",{class:F("pagination--total-right")},[T("ap.apTable.pagination.totalRightPrefix")," ",t.createVNode("span",{class:F("pagination-count-text")},[t.unref(I)])," ",T("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:E,dataSource:t.unref(n).records}));return{formRef:c,submit:j,reset:Y,refresh:D,refreshByDelete:Z,data:n,current:f,pageSize:p,handleTableChange:E,tableProps:ee,dataSource:t.computed(()=>t.unref(n).records),setDataSource:k,getColumnSFConfig:U}};exports.useTablePaging=ne;
@@ -708,4 +708,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
708
708
  }> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
709
709
  export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
710
710
  export declare function isEqualCustom(value: any, other: any): boolean | undefined;
711
+ export declare function falseToUndefined(obj: any): any;
711
712
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("lodash-unified"),d=require("./constants.js"),b=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue"),O=require("../ap-form/item/index.vue.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const p=(e,t,n)=>{let o={};return u.isObject(e)?Object.keys(e).forEach(r=>{u.isObject(e[r])?o[r]=p(e[r],t[r],n):o[r]=n(e[r],t)}):o=n(e,t),o},N=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return u.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function E(e){return u.isArray(e)?e.join("."):e}function F(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const m=e=>F(e)==="map"?e:new Map(Object.entries(e||{})),c=e=>{const t=[],n=m(e);return n.forEach((o,r)=>{const s=n.get(r)||n.get(`${r}`);if(s){if(typeof s=="object"&&(s!=null&&s.text)){t.push({text:s==null?void 0:s.text,value:r,label:s==null?void 0:s.text,disabled:s.disabled});return}t.push({text:s,label:s,value:r})}}),t},S=e=>u.isUndefined(e)||e<0?0:e;function y(e,t){return!e||!u.isFunction(e)?e:e(t)}function V(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function v(e,t,n,o){var l;const r=d.apTableRenderItemMap[e];if(r)return i.createVNode(r,i.mergeProps(t,{mode:"read"}),null);const s=o==null?void 0:o[e];return((l=s==null?void 0:s.render)==null?void 0:l.call(s,t.value,n,t))||t.value}function C(e,t){if(e.customRenderFormItem)return()=>{const r=e.customRenderFormItem(e);return i.cloneVNode(r,{...e.fieldProps,span:e.span,...r.props||{}})};const n=d.apTableFormItemMap[e.valueType];if(n)return n;const o=t==null?void 0:t[e.valueType];return()=>{var s;const r=(s=o==null?void 0:o.renderFormItem)==null?void 0:s.call(o,e.fieldProps.field);return r?i.createVNode(O.default,i.mergeProps(e.fieldProps,{span:e.span}),h(r)?r:{default:()=>[r]}):null}}function P(e,t){const n=y(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},r=e.valueType==="switch",s=e.valueType==="index",l=r?{checked:t.value}:{value:s?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...u.omit(o,["request"]),...l}}function q(e){const t={...e};return u.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=c(e.valueEnum)),t}function I(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:c(e.valueEnum)}),n}function A(e){if(!b.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function _(e,t,n,o){const r=n==null?void 0:n({title:e.title,column:e}),s=(r==null?void 0:r.filter(T=>T.type!==Symbol.for("v-cmt")))||[];if(r&&s.length>0)return r;const a=u.isString(e.title)?i.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?u.isFunction(e.tooltip)?e.tooltip(e):i.createVNode(i.Fragment,null,[e.tooltip]):null;return f?i.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,i.createVNode(g.Tooltip,{title:f,placement:"bottom"},{default:()=>[i.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(r){var s;for(const l of r)(s=l.children)!=null&&s.length?o(l.children):n.push(t(l))}return o(e),n}function w(e,t){if(u.isArray(e)&&u.isArray(t))return u.isEqual(u.sortBy(e),u.sortBy(t));if(u.isPlainObject(e)&&u.isPlainObject(t)){const n=o=>u.every(o,r=>r==null)||u.isEmpty(o);if(n(e)&&n(t))return!0}}exports.apColumnToColumn=q;exports.dataIndexToStr=E;exports.formatParamsValueType=p;exports.getColumnOrder=S;exports.getFieldProps=y;exports.getSearchFormItemRenderNode=C;exports.getTableCellRenderNode=v;exports.getTableRenderProps=P;exports.getTableRenderType=V;exports.getTableTitle=_;exports.isEqualCustom=w;exports.objectToMap=m;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("lodash-unified"),d=require("./constants.js"),b=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue"),O=require("../ap-form/item/index.vue.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!u.isVNode(e)}const p=(e,t,n)=>{let o={};return i.isObject(e)?Object.keys(e).forEach(r=>{i.isObject(e[r])?o[r]=p(e[r],t[r],n):o[r]=n(e[r],t)}):o=n(e,t),o},N=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return i.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function E(e){return i.isArray(e)?e.join("."):e}function F(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const m=e=>F(e)==="map"?e:new Map(Object.entries(e||{})),c=e=>{const t=[],n=m(e);return n.forEach((o,r)=>{const s=n.get(r)||n.get(`${r}`);if(s){if(typeof s=="object"&&(s!=null&&s.text)){t.push({text:s==null?void 0:s.text,value:r,label:s==null?void 0:s.text,disabled:s.disabled});return}t.push({text:s,label:s,value:r})}}),t},S=e=>i.isUndefined(e)||e<0?0:e;function y(e,t){return!e||!i.isFunction(e)?e:e(t)}function V(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function v(e,t,n,o){var l;const r=d.apTableRenderItemMap[e];if(r)return u.createVNode(r,u.mergeProps(t,{mode:"read"}),null);const s=o==null?void 0:o[e];return((l=s==null?void 0:s.render)==null?void 0:l.call(s,t.value,n,t))||t.value}function C(e,t){if(e.customRenderFormItem)return()=>{const r=e.customRenderFormItem(e);return u.cloneVNode(r,{...e.fieldProps,span:e.span,...r.props||{}})};const n=d.apTableFormItemMap[e.valueType];if(n)return n;const o=t==null?void 0:t[e.valueType];return()=>{var s;const r=(s=o==null?void 0:o.renderFormItem)==null?void 0:s.call(o,e.fieldProps.field);return r?u.createVNode(O.default,u.mergeProps(e.fieldProps,{span:e.span}),h(r)?r:{default:()=>[r]}):null}}function P(e,t){const n=y(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},r=e.valueType==="switch",s=e.valueType==="index",l=r?{checked:t.value}:{value:s?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...i.omit(o,["request"]),...l}}function q(e){const t={...e};return i.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=c(e.valueEnum)),t}function I(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:c(e.valueEnum)}),n}function A(e){if(!b.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function _(e,t,n,o){const r=n==null?void 0:n({title:e.title,column:e}),s=(r==null?void 0:r.filter(T=>T.type!==Symbol.for("v-cmt")))||[];if(r&&s.length>0)return r;const a=i.isString(e.title)?u.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?i.isFunction(e.tooltip)?e.tooltip(e):u.createVNode(u.Fragment,null,[e.tooltip]):null;return f?u.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,u.createVNode(g.Tooltip,{title:f,placement:"bottom"},{default:()=>[u.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(r){var s;for(const l of r)(s=l.children)!=null&&s.length?o(l.children):n.push(t(l))}return o(e),n}function w(e,t){if(i.isArray(e)&&i.isArray(t))return i.isEqual(i.sortBy(e),i.sortBy(t));if(i.isPlainObject(e)&&i.isPlainObject(t)){const n=o=>i.every(o,r=>r==null)||i.isEmpty(o);if(n(e)&&n(t))return!0}}function x(e){if(e!==!1)return e}exports.apColumnToColumn=q;exports.dataIndexToStr=E;exports.falseToUndefined=x;exports.formatParamsValueType=p;exports.getColumnOrder=S;exports.getFieldProps=y;exports.getSearchFormItemRenderNode=C;exports.getTableCellRenderNode=v;exports.getTableRenderProps=P;exports.getTableRenderType=V;exports.getTableTitle=_;exports.isEqualCustom=w;exports.objectToMap=m;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=c;
@@ -6,11 +6,12 @@ type ApTagGroupSlots = {
6
6
  }) => void;
7
7
  };
8
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
9
10
  slots: Readonly<ApTagGroupSlots> & ApTagGroupSlots;
10
11
  refs: {
11
12
  container: HTMLDivElement;
12
13
  };
13
- attrs: Partial<{}>;
14
+ rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
17
  declare const __VLS_component: DefineComponent<ApTagGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTagGroupProps> & Readonly<{}>, {
@@ -4,5 +4,5 @@ declare const _default: DefineComponent<ApTagProps, {}, {}, {}, {}, ComponentOpt
4
4
  size: "small" | "middle" | "large";
5
5
  color: string;
6
6
  disabled: boolean;
7
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
8
8
  export default _default;
@@ -4,11 +4,12 @@ import { GetOssAccess } from './hooks/useOss';
4
4
  declare function clear(): void;
5
5
  declare function setValue(val: any): void;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: Readonly<ApUploadSlots> & ApUploadSlots;
8
9
  refs: {
9
10
  uploadRef: unknown;
10
11
  };
11
- attrs: Partial<{}>;
12
+ rootEl: HTMLDivElement;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
15
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
@@ -168,7 +169,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
168
169
  acceptErrorMsg: string;
169
170
  maxCount: number;
170
171
  maxCountErrorMsg: string;
171
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
172
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
172
173
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
173
174
  export default _default;
174
175
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,5 +2,5 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function setValue(val: (string | Record<string, any>)[]): void;
3
3
  declare const _default: DefineComponent<{}, {
4
4
  setValue: typeof setValue;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { Oss } from '../hooks/useOss';
2
+ import { actionResponse } from '@aplus-frontend/oss';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  declare function setValue(val?: (string | Record<string, any>)[]): void;
4
5
  interface UploadFile extends File {
@@ -12,17 +13,12 @@ interface UploadFile extends File {
12
13
  }
13
14
  declare function handleRemove(uploadFile: UploadFile): Promise<boolean>;
14
15
  declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
15
17
  slots: {
16
18
  pictureContext?(_: {
17
19
  fileList: {
18
20
  oss: {
19
- pauseUpload: (() => Promise<{
20
- status: number;
21
- previewUrl?: string;
22
- saveUrl?: string;
23
- originalFileName?: string;
24
- message: string;
25
- }>) | undefined;
21
+ pauseUpload: (() => Promise< actionResponse>) | undefined;
26
22
  };
27
23
  }[];
28
24
  remove: typeof handleRemove;
@@ -31,12 +27,12 @@ declare function __VLS_template(): {
31
27
  refs: {
32
28
  fileRef: HTMLInputElement;
33
29
  };
34
- attrs: Partial<{}>;
30
+ rootEl: HTMLDivElement;
35
31
  };
36
32
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
33
  declare const __VLS_component: DefineComponent<{}, {
38
34
  setValue: typeof setValue;
39
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
35
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
40
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
37
  export default _default;
42
38
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,5 +2,5 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function setValue(val?: string | Record<string, any>): void;
3
3
  declare const _default: DefineComponent<{}, {
4
4
  setValue: typeof setValue;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1,16 +1,18 @@
1
1
  import { ApAppendixProps, ApAppendixSlots, ApNeedNameModel } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = ApAppendixProps;
3
4
  declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
4
6
  slots: Readonly<ApAppendixSlots<any>> & ApAppendixSlots<any>;
5
7
  refs: {};
6
- attrs: Partial<{}>;
8
+ rootEl: HTMLDivElement;
7
9
  };
8
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
- declare const __VLS_component: DefineComponent<ApAppendixProps<any>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApAppendixProps<any>> & Readonly<{}>, {
11
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
12
  column: number;
11
13
  needName: ApNeedNameModel;
12
14
  isFileAreaBorder: boolean;
13
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
14
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
17
  export default _default;
16
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -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;
@@ -6,7 +6,7 @@ declare const ApAppendix: {
6
6
  column: number;
7
7
  needName: ApNeedNameModel;
8
8
  isFileAreaBorder: boolean;
9
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
9
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
10
10
  P: {};
11
11
  B: {};
12
12
  D: {};
@@ -1,6 +1,7 @@
1
1
  import { ApBatchActionProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: Readonly<{
5
6
  header: () => void;
6
7
  prefix: () => void;
@@ -11,10 +12,10 @@ declare function __VLS_template(): {
11
12
  suffix: () => void;
12
13
  };
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<ApBatchActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_component: DefineComponent<ApBatchActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionProps> & 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 & {
@@ -2,7 +2,7 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
2
2
  import { ApBatchActionProps } from './interface';
3
3
  export * from './interface';
4
4
  declare const ApBatchAction: {
5
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
6
6
  P: {};
7
7
  B: {};
8
8
  D: {};
@@ -1,4 +1,5 @@
1
1
  import { ApBatchActionGroupProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApBatchActionGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ type __VLS_Props = ApBatchActionGroupProps;
4
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
5
  export default _default;
@@ -1,8 +1,7 @@
1
1
  import { ApBatchActionGroupMenuProps, ApBatchActionGroupProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApBatchActionGroupProps & {
3
+ type __VLS_Props = ApBatchActionGroupProps & {
4
4
  menuList: ApBatchActionGroupMenuProps[];
5
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionGroupProps & {
6
- menuList: ApBatchActionGroupMenuProps[];
7
- }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
7
  export default _default;