@aplus-frontend/ui 7.0.0-beta.3 → 7.0.1

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 (254) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
  3. package/es/src/ag-grid/index.vue.mjs +1 -0
  4. package/es/src/ag-grid/interface.d.ts +1 -0
  5. package/es/src/ag-grid/style/custom-header.d.ts +2 -2
  6. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  7. package/es/src/ag-grid/style/editable.d.ts +2 -2
  8. package/es/src/ag-grid/style/index.d.ts +2 -2
  9. package/es/src/ag-grid/style/index.mjs +0 -1
  10. package/es/src/ap-action/item-dropdown/index.vue.mjs +19 -18
  11. package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
  12. package/es/src/ap-action/style/index.d.ts +2 -2
  13. package/es/src/ap-button/style/index.d.ts +2 -2
  14. package/es/src/ap-button/utils/index.mjs +16 -16
  15. package/es/src/ap-descriptions/style/index.d.ts +2 -2
  16. package/es/src/ap-download/ap-download.vue.d.ts +4 -4
  17. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  18. package/es/src/ap-download/interface.d.ts +4 -0
  19. package/es/src/ap-download/style/index.d.ts +2 -2
  20. package/es/src/ap-drawer/style/index.d.ts +2 -2
  21. package/es/src/ap-field/style/index.d.ts +2 -2
  22. package/es/src/ap-form/style/drawer-form.d.ts +2 -2
  23. package/es/src/ap-form/style/item-group.d.ts +2 -2
  24. package/es/src/ap-form/style/item-text-group.d.ts +2 -2
  25. package/es/src/ap-form/style/item.d.ts +2 -2
  26. package/es/src/ap-form/style/item.mjs +5 -4
  27. package/es/src/ap-form/style/modal-form.d.ts +2 -2
  28. package/es/src/ap-form/style/modal-form.mjs +11 -11
  29. package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
  30. package/es/src/ap-form/style/search-form-sorter.mjs +16 -12
  31. package/es/src/ap-form/style/search-form.d.ts +2 -2
  32. package/es/src/ap-form/style/token.d.ts +4 -0
  33. package/es/src/ap-grid/style/editable.d.ts +2 -2
  34. package/es/src/ap-grid/style/index.d.ts +2 -2
  35. package/es/src/ap-grid/utils/col.mjs +33 -33
  36. package/es/src/ap-list/style/index.d.ts +2 -2
  37. package/es/src/ap-modal/interface.d.ts +31 -11
  38. package/es/src/ap-modal/utils/createModal.mjs +52 -45
  39. package/es/src/ap-pro-card/style/divider.d.ts +2 -2
  40. package/es/src/ap-pro-card/style/index.d.ts +2 -2
  41. package/es/src/ap-pro-card/style/operation.d.ts +2 -2
  42. package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
  43. package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  44. package/es/src/ap-pro-card/style/title.d.ts +2 -2
  45. package/es/src/ap-table/style/ellipsis.d.ts +2 -2
  46. package/es/src/ap-table/style/index-comp.d.ts +2 -2
  47. package/es/src/ap-table/style/index.d.ts +2 -2
  48. package/es/src/ap-table/style/setting.d.ts +2 -2
  49. package/es/src/ap-tag/style/group.d.ts +2 -2
  50. package/es/src/ap-tag/style/index.d.ts +2 -2
  51. package/es/src/ap-upload/apUpload.vue.mjs +32 -31
  52. package/es/src/ap-upload/style/index.d.ts +2 -2
  53. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  54. package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
  55. package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  56. package/es/src/business/ag-grid-modal/utils.mjs +23 -23
  57. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  58. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  59. package/es/src/business/ap-appendix/style/index.d.ts +3 -3
  60. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  61. package/es/src/business/ap-attachment/ApAttachment.mjs +70 -66
  62. package/es/src/business/ap-attachment/style/index.d.ts +2 -2
  63. package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
  64. package/es/src/business/ap-batch-action/style/index.mjs +1 -1
  65. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
  66. package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  67. package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
  68. package/es/src/business/ap-card/style/index.d.ts +3 -3
  69. package/es/src/business/ap-card/style/index.mjs +8 -8
  70. package/es/src/business/ap-copy/style/index.d.ts +2 -2
  71. package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  72. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  73. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
  74. package/es/src/business/ap-expand-alert/index.d.ts +5 -2
  75. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  76. package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
  77. package/es/src/business/ap-image/style/index.d.ts +3 -3
  78. package/es/src/business/ap-image/style/index.mjs +6 -6
  79. package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
  80. package/es/src/business/ap-label/style/index.d.ts +2 -2
  81. package/es/src/business/ap-ladder/style/index.d.ts +2 -2
  82. package/es/src/business/ap-ladder/style/index.mjs +2 -5
  83. package/es/src/business/ap-product-info/style/index.d.ts +2 -2
  84. package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
  85. package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
  86. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  87. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  88. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  89. package/es/src/business/ap-size-input/constans.mjs +9 -1
  90. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  91. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  92. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  93. package/es/src/business/ap-size-input/index.d.ts +33 -8
  94. package/es/src/business/ap-size-input/index.mjs +3 -2
  95. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  96. package/es/src/business/ap-size-input/style/index.d.ts +2 -2
  97. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  98. package/es/src/business/ap-status/style/index.d.ts +2 -2
  99. package/es/src/business/ap-summary/style/index.d.ts +2 -2
  100. package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
  101. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
  102. package/es/src/business/ap-title/style/index.d.ts +2 -2
  103. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  104. package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
  105. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  106. package/es/src/business/ap-view/style/index.d.ts +3 -3
  107. package/es/src/business/ap-view/style/index.mjs +2 -2
  108. package/es/src/business/batch-input-group/style/index.d.ts +2 -2
  109. package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
  110. package/es/src/check-card/style/index.d.ts +2 -2
  111. package/es/src/check-card/style/index.mjs +46 -51
  112. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  113. package/es/src/design-token/interface.d.ts +24 -1
  114. package/es/src/editable-table/style/index.d.ts +2 -2
  115. package/es/src/full-screen/style/index.d.ts +2 -2
  116. package/es/src/index.mjs +95 -93
  117. package/es/src/mask/style/index.d.ts +2 -2
  118. package/es/src/scroll-bar/style/index.d.ts +2 -2
  119. package/es/src/scroll-view/style/index.d.ts +2 -2
  120. package/es/src/splitter/style/index.d.ts +2 -2
  121. package/es/src/text/style/group.d.ts +2 -2
  122. package/es/src/text/style/index.d.ts +2 -2
  123. package/es/src/utils/cssinjs/index.d.ts +2 -2
  124. package/es/src/utils/cssinjs/index.mjs +54 -48
  125. package/es/src/utils/cssinjs/plugin-specificity.mjs +13 -0
  126. package/es/src/version.d.ts +1 -1
  127. package/es/src/version.mjs +1 -1
  128. package/lib/index.js +1 -1
  129. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  130. package/lib/src/ag-grid/index.vue.js +1 -1
  131. package/lib/src/ag-grid/interface.d.ts +1 -0
  132. package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
  133. package/lib/src/ag-grid/style/custom-header.js +1 -1
  134. package/lib/src/ag-grid/style/editable.d.ts +2 -2
  135. package/lib/src/ag-grid/style/index.d.ts +2 -2
  136. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  137. package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
  138. package/lib/src/ap-action/style/index.d.ts +2 -2
  139. package/lib/src/ap-button/style/index.d.ts +2 -2
  140. package/lib/src/ap-button/utils/index.js +1 -1
  141. package/lib/src/ap-descriptions/style/index.d.ts +2 -2
  142. package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
  143. package/lib/src/ap-download/ap-download.vue.js +1 -1
  144. package/lib/src/ap-download/interface.d.ts +4 -0
  145. package/lib/src/ap-download/style/index.d.ts +2 -2
  146. package/lib/src/ap-drawer/style/index.d.ts +2 -2
  147. package/lib/src/ap-field/style/index.d.ts +2 -2
  148. package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
  149. package/lib/src/ap-form/style/item-group.d.ts +2 -2
  150. package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
  151. package/lib/src/ap-form/style/item.d.ts +2 -2
  152. package/lib/src/ap-form/style/item.js +1 -1
  153. package/lib/src/ap-form/style/modal-form.d.ts +2 -2
  154. package/lib/src/ap-form/style/modal-form.js +1 -1
  155. package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
  156. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  157. package/lib/src/ap-form/style/search-form.d.ts +2 -2
  158. package/lib/src/ap-form/style/token.d.ts +4 -0
  159. package/lib/src/ap-grid/style/editable.d.ts +2 -2
  160. package/lib/src/ap-grid/style/index.d.ts +2 -2
  161. package/lib/src/ap-grid/utils/col.js +1 -1
  162. package/lib/src/ap-list/style/index.d.ts +2 -2
  163. package/lib/src/ap-modal/interface.d.ts +31 -11
  164. package/lib/src/ap-modal/utils/createModal.js +1 -1
  165. package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
  166. package/lib/src/ap-pro-card/style/index.d.ts +2 -2
  167. package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
  168. package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
  169. package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  170. package/lib/src/ap-pro-card/style/title.d.ts +2 -2
  171. package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
  172. package/lib/src/ap-table/style/index-comp.d.ts +2 -2
  173. package/lib/src/ap-table/style/index.d.ts +2 -2
  174. package/lib/src/ap-table/style/setting.d.ts +2 -2
  175. package/lib/src/ap-tag/style/group.d.ts +2 -2
  176. package/lib/src/ap-tag/style/index.d.ts +2 -2
  177. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  178. package/lib/src/ap-upload/style/index.d.ts +2 -2
  179. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  180. package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
  181. package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  182. package/lib/src/business/ag-grid-modal/utils.js +1 -1
  183. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  184. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  185. package/lib/src/business/ap-appendix/style/index.d.ts +3 -3
  186. package/lib/src/business/ap-appendix/style/index.js +1 -1
  187. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  188. package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
  189. package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
  190. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  191. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  192. package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  193. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  194. package/lib/src/business/ap-card/style/index.d.ts +3 -3
  195. package/lib/src/business/ap-card/style/index.js +1 -1
  196. package/lib/src/business/ap-copy/style/index.d.ts +2 -2
  197. package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  198. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  199. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  200. package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
  201. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  202. package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
  203. package/lib/src/business/ap-image/style/index.d.ts +3 -3
  204. package/lib/src/business/ap-image/style/index.js +1 -1
  205. package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
  206. package/lib/src/business/ap-label/style/index.d.ts +2 -2
  207. package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
  208. package/lib/src/business/ap-ladder/style/index.js +1 -1
  209. package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
  210. package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
  211. package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
  212. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  213. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  214. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  215. package/lib/src/business/ap-size-input/constans.js +1 -1
  216. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  217. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  218. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  219. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  220. package/lib/src/business/ap-size-input/index.js +1 -1
  221. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  222. package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
  223. package/lib/src/business/ap-size-input/style/index.js +1 -1
  224. package/lib/src/business/ap-status/style/index.d.ts +2 -2
  225. package/lib/src/business/ap-summary/style/index.d.ts +2 -2
  226. package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
  227. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  228. package/lib/src/business/ap-title/style/index.d.ts +2 -2
  229. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  230. package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
  231. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  232. package/lib/src/business/ap-view/style/index.d.ts +3 -3
  233. package/lib/src/business/ap-view/style/index.js +1 -1
  234. package/lib/src/business/batch-input-group/style/index.d.ts +2 -2
  235. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  236. package/lib/src/check-card/style/index.d.ts +2 -2
  237. package/lib/src/check-card/style/index.js +1 -1
  238. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  239. package/lib/src/design-token/interface.d.ts +24 -1
  240. package/lib/src/editable-table/style/index.d.ts +2 -2
  241. package/lib/src/full-screen/style/index.d.ts +2 -2
  242. package/lib/src/index.js +1 -1
  243. package/lib/src/mask/style/index.d.ts +2 -2
  244. package/lib/src/scroll-bar/style/index.d.ts +2 -2
  245. package/lib/src/scroll-view/style/index.d.ts +2 -2
  246. package/lib/src/splitter/style/index.d.ts +2 -2
  247. package/lib/src/text/style/group.d.ts +2 -2
  248. package/lib/src/text/style/index.d.ts +2 -2
  249. package/lib/src/utils/cssinjs/index.d.ts +2 -2
  250. package/lib/src/utils/cssinjs/index.js +1 -1
  251. package/lib/src/utils/cssinjs/plugin-specificity.js +1 -0
  252. package/lib/src/version.d.ts +1 -1
  253. package/lib/src/version.js +1 -1
  254. package/package.json +1 -1
@@ -86,7 +86,6 @@ const t = {
86
86
  "&__title": {
87
87
  ...a(i),
88
88
  fontWeight: 700,
89
- // textAlign: 'right',
90
89
  "&--single": {
91
90
  flex: "unset"
92
91
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, ref as w, computed as B, createBlock as n, openBlock as r, unref as o, normalizeClass as s, withCtx as l, createElementVNode as A, createVNode as u, createCommentVNode as b, normalizeProps as I, guardReactiveProps as h, renderSlot as C, createElementBlock as P, Fragment as D, renderList as N, mergeProps as p } from "vue";
1
+ import { defineComponent as w, ref as B, computed as A, createBlock as n, openBlock as r, unref as o, normalizeClass as s, withCtx as l, createElementVNode as c, createVNode as d, normalizeProps as b, guardReactiveProps as I, renderSlot as h, createCommentVNode as C, createElementBlock as P, Fragment as D, renderList as N, mergeProps as p } from "vue";
2
2
  import { Dropdown as $, Menu as L, MenuItem as V } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
@@ -8,10 +8,10 @@ import "../../config-provider/index.mjs";
8
8
  import { isUndefined as E, omit as F } from "lodash-unified";
9
9
  import M from "../style/dropdown-item.mjs";
10
10
  import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
11
- import c from "../item/index.vue2.mjs";
11
+ import y from "../item/index.vue2.mjs";
12
12
  import U from "../item-modal/index.vue.mjs";
13
13
  import x from "../item-popconfirm/index.vue.mjs";
14
- const Z = /* @__PURE__ */ k({
14
+ const Z = /* @__PURE__ */ w({
15
15
  name: "ApActionItemDropDown",
16
16
  __name: "index",
17
17
  props: {
@@ -29,8 +29,8 @@ const Z = /* @__PURE__ */ k({
29
29
  iconFirst: { type: Boolean },
30
30
  tooltip: {}
31
31
  },
32
- setup(d) {
33
- const m = d, i = w(!1), { e: f, b: y } = S("action-item-dropdown"), g = M("action-item-dropdown"), _ = B(() => m.actions.filter((e) => e.visible || E(e.visible)).map((e) => ({
32
+ setup(g) {
33
+ const m = g, i = B(!1), { e: f, b: _ } = S("action-item-dropdown"), u = M("action-item-dropdown"), v = A(() => m.actions.filter((e) => e.visible || E(e.visible)).map((e) => ({
34
34
  ...e,
35
35
  onAction: async (a) => {
36
36
  try {
@@ -45,14 +45,14 @@ const Z = /* @__PURE__ */ k({
45
45
  "onUpdate:open": a[0] || (a[0] = (t) => i.value = t),
46
46
  trigger: e.trigger,
47
47
  placement: e.placement,
48
- class: s(o(g))
48
+ class: s(o(u))
49
49
  }, {
50
50
  overlay: l(() => [
51
- u(o(L), null, {
51
+ d(o(L), null, {
52
52
  default: l(() => [
53
- (r(!0), P(D, null, N(_.value, (t, v) => (r(), n(o(V), {
54
- key: v,
55
- class: s(o(f)("item"))
53
+ (r(!0), P(D, null, N(v.value, (t, k) => (r(), n(o(V), {
54
+ key: k,
55
+ class: s([o(u), o(f)("item")])
56
56
  }, {
57
57
  default: l(() => [
58
58
  t.modalProps ? (r(), n(U, p({
@@ -61,7 +61,7 @@ const Z = /* @__PURE__ */ k({
61
61
  }, t), null, 16)) : t.popconfirmProps ? (r(), n(x, p({
62
62
  key: 1,
63
63
  ref_for: !0
64
- }, t), null, 16)) : (r(), n(c, p({
64
+ }, t), null, 16)) : (r(), n(y, p({
65
65
  key: 2,
66
66
  ref_for: !0
67
67
  }, t), null, 16))
@@ -73,19 +73,20 @@ const Z = /* @__PURE__ */ k({
73
73
  })
74
74
  ]),
75
75
  default: l(() => [
76
- A("span", {
77
- class: s(o(y)())
76
+ c("span", {
77
+ class: s(o(_)())
78
78
  }, [
79
- u(c, I(h(o(F)(m, ["actions", "trigger", "placement"]))), {
79
+ d(y, b(I(o(F)(m, ["actions", "trigger", "placement"]))), {
80
80
  default: l(() => [
81
- C(e.$slots, "default")
81
+ h(e.$slots, "default")
82
82
  ]),
83
83
  _: 3
84
84
  }, 16),
85
- e.showIcon ? (r(), n(o(z), {
86
- key: 0,
85
+ c("span", {
87
86
  class: s(o(f)("icon"))
88
- }, null, 8, ["class"])) : b("", !0)
87
+ }, [
88
+ e.showIcon ? (r(), n(o(z), { key: 0 })) : C("", !0)
89
+ ], 2)
89
90
  ], 2)
90
91
  ]),
91
92
  _: 3
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genActionDropdownItemStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export type ActionToken = {
4
4
  /**
5
5
  * 加载中时的组件透明度
@@ -7,5 +7,5 @@ export type ActionToken = {
7
7
  loadingOpacity: number;
8
8
  };
9
9
  export declare const genActionItemStyle: GenStyleFunc<ActionToken>;
10
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
10
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
11
11
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -3,42 +3,42 @@ import { omit as a } from "lodash-unified";
3
3
  function f(o) {
4
4
  return typeof o == "object" && typeof o.then == "function" ? o : !1;
5
5
  }
6
- const m = (o) => typeof o == "function" && f(o?.()), h = (o, s = "0.7") => {
6
+ const m = (o) => typeof o == "function" && f(o?.()), h = (o, c = "0.7") => {
7
7
  try {
8
8
  let t = o?.toLowerCase();
9
9
  if (t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
10
10
  if (t.length === 4) {
11
- let r = "#";
11
+ let e = "#";
12
12
  for (let n = 1; n < 4; n += 1)
13
- r += t.slice(n, n + 1).concat(t.slice(n, n + 1));
14
- t = r;
13
+ e += t.slice(n, n + 1).concat(t.slice(n, n + 1));
14
+ t = e;
15
15
  }
16
- const e = [];
17
- for (let r = 1; r < 7; r += 2)
18
- e.push(parseInt("0x" + t.slice(r, r + 2)));
19
- return "rgba(" + e.join(",") + "," + s + ")";
16
+ const r = [];
17
+ for (let e = 1; e < 7; e += 2)
18
+ r.push(parseInt("0x" + t.slice(e, e + 2)));
19
+ return "rgba(" + r.join(",") + "," + c + ")";
20
20
  }
21
21
  if (t && t.startsWith("rgb")) {
22
- let e = t.match(/(\d(\.\d+)?)+/g);
23
- return e = e?.slice(0, 3)?.concat(s), "rgba(" + e.join(",") + ")";
22
+ let r = t.match(/(\d(\.\d+)?)+/g);
23
+ return r = r?.slice(0, 3)?.concat(c), "rgba(" + r.join(",") + ")";
24
24
  }
25
25
  return t;
26
26
  } catch {
27
27
  return;
28
28
  }
29
29
  }, p = (o) => {
30
- const { onOk: s = () => ({}) } = o;
31
- return new Promise((t, c) => {
30
+ const { onOk: c = () => ({}) } = o;
31
+ return new Promise((t, s) => {
32
32
  i.confirm({
33
33
  onOk: async () => {
34
34
  try {
35
- await s(), t(!0);
36
- } catch {
37
- c();
35
+ await c(), t(!0);
36
+ } catch (r) {
37
+ s(r);
38
38
  }
39
39
  },
40
40
  onCancel: () => {
41
- c();
41
+ t(!1);
42
42
  },
43
43
  ...a(o, ["onOk"])
44
44
  });
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ApDownLoadProps } from './interface';
1
+ import { ApDownLoadProps, downloadCallbackResponse } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  type __VLS_Props = ApDownLoadProps;
@@ -11,10 +11,10 @@ declare function __VLS_template(): {
11
11
  rootEl: any;
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
- downloadCallback: (...args: any[]) => void;
14
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
15
+ downloadCallback: (res?: downloadCallbackResponse | undefined) => any;
16
16
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onDownloadCallback?: ((...args: any[]) => any) | undefined;
17
+ onDownloadCallback?: ((res?: downloadCallbackResponse | undefined) => any) | undefined;
18
18
  }>, {
19
19
  size: "small" | "large" | "middle";
20
20
  type: ButtonType;
@@ -1,9 +1,9 @@
1
- import { defineComponent as F, ref as A, useSlots as L, computed as a, unref as t, createBlock as S, openBlock as i, mergeProps as x, withCtx as j, createElementVNode as m, normalizeClass as I, createElementBlock as u, createCommentVNode as f, createVNode as M, renderSlot as T, toDisplayString as U } from "vue";
1
+ import { defineComponent as F, ref as A, useSlots as L, computed as s, unref as t, createBlock as S, openBlock as i, mergeProps as x, withCtx as j, createElementVNode as u, normalizeClass as I, createElementBlock as f, createCommentVNode as g, createVNode as M, renderSlot as T, toDisplayString as U } from "vue";
2
2
  import { Button as V } from "@aplus-frontend/antdv";
3
3
  import { LoadingOutlined as D } from "@ant-design/icons-vue";
4
4
  import "../config-provider/index.mjs";
5
5
  import { useOssInit as E } from "./hooks/index.mjs";
6
- import { getFileInfo as g } from "./utils/getFileInfo.mjs";
6
+ import { getFileInfo as y } from "./utils/getFileInfo.mjs";
7
7
  import { useStyle as P } from "./hooks/useStyle.mjs";
8
8
  import { omit as G } from "lodash-unified";
9
9
  import { useLocale as R } from "../config-provider/hooks/use-locale.mjs";
@@ -44,58 +44,58 @@ const W = {
44
44
  getOssAccess: {}
45
45
  },
46
46
  emits: ["downloadCallback"],
47
- setup(y, { emit: C }) {
48
- const N = C, n = A(!1), { lang: b } = R(), v = L(), h = a(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), w = r("uiMode"), e = y, l = r("apUpload"), c = r(
47
+ setup(C, { emit: N }) {
48
+ const c = N, l = A(!1), { lang: b } = R(), v = L(), w = s(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), h = r("uiMode"), e = C, n = r("apUpload"), d = r(
49
49
  "downloadCenterTriggerConfig"
50
- ), d = a(() => e.disabled), _ = a(() => e.color ? e.color : w.value === "aplus" ? "#0070FF" : "#1890FF"), k = a(() => e.size), { getInnerWrapperClass: B } = P(_, k, d), O = a(() => e.getOssAccess || l.value?.getOssAccess), z = async () => {
50
+ ), p = s(() => e.disabled), _ = s(() => e.color ? e.color : h.value === "aplus" ? "#0070FF" : "#1890FF"), k = s(() => e.size), { getInnerWrapperClass: B } = P(_, k, p), O = s(() => e.getOssAccess || n.value?.getOssAccess), z = async () => {
51
51
  if (!e.disabled) {
52
- n.value = !0;
52
+ l.value = !0;
53
53
  try {
54
- if (c.value?.trigger) {
55
- let s = g(
56
- e.needName ?? l?.value?.needName,
54
+ if (d.value?.trigger) {
55
+ let a = y(
56
+ e.needName ?? n?.value?.needName,
57
57
  e.fileName
58
- ).map((p) => ({
59
- objectName: p.path,
60
- fileName: p.fileName
58
+ ).map((m) => ({
59
+ objectName: m.path,
60
+ fileName: m.fileName
61
61
  }));
62
- await c.value?.trigger(s);
62
+ await d.value?.trigger(a), c("downloadCallback", a);
63
63
  } else {
64
- const s = await (await E(
64
+ const a = await (await E(
65
65
  O.value,
66
- t(h)
66
+ t(w)
67
67
  )).downloadFile(
68
- g(
69
- e.needName ?? l?.value?.needName,
68
+ y(
69
+ e.needName ?? n?.value?.needName,
70
70
  e.fileName
71
71
  )
72
72
  );
73
- N("downloadCallback", s);
73
+ c("downloadCallback", a);
74
74
  }
75
75
  } catch (o) {
76
76
  console.error(o);
77
77
  } finally {
78
- n.value = !1;
78
+ l.value = !1;
79
79
  }
80
80
  }
81
81
  };
82
- return (o, s) => (i(), S(t(V), x(t(G)(e, ["getOssAccess", "fileName", "needName"]), {
82
+ return (o, a) => (i(), S(t(V), x(t(G)(e, ["getOssAccess", "fileName", "needName"]), {
83
83
  type: e.type,
84
84
  size: e.size,
85
- disabled: d.value,
85
+ disabled: p.value,
86
86
  onClick: z
87
87
  }), {
88
88
  default: j(() => [
89
- m("div", {
89
+ u("div", {
90
90
  class: I(t(B))
91
91
  }, [
92
- n.value ? (i(), u("span", W, [
92
+ l.value ? (i(), f("span", W, [
93
93
  M(t(D), { spin: !0 })
94
- ])) : f("", !0),
95
- t(v).icon ? (i(), u("span", $, [
94
+ ])) : g("", !0),
95
+ t(v).icon ? (i(), f("span", $, [
96
96
  T(o.$slots, "icon")
97
- ])) : f("", !0),
98
- m("span", q, U(o.text), 1)
97
+ ])) : g("", !0),
98
+ u("span", q, U(o.text), 1)
99
99
  ], 2)
100
100
  ]),
101
101
  _: 3
@@ -38,4 +38,8 @@ export declare enum ApDownLoadNeedNameKeyDefault {
38
38
  pathKey = "path"
39
39
  }
40
40
  export type actionResponse = Awaited<ReturnType<typeof client.downloadFile>>;
41
+ export type downloadCallbackResponse = {
42
+ objectName: string;
43
+ fileName: string;
44
+ }[] | actionResponse;
41
45
  export {};
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genDrawerFormStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genItemGroupStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genFormItemTextGroupStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genApFormItemStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
2
- const i = (n) => {
2
+ const r = (n) => {
3
3
  const { componentCls: e, namespace: t } = n;
4
4
  return {
5
5
  [e]: {
@@ -42,7 +42,8 @@ const i = (n) => {
42
42
  },
43
43
  ".ant-select-selector": {
44
44
  borderWidth: "0 !important",
45
- boxShadow: "none !important"
45
+ boxShadow: "none !important",
46
+ background: "unset !important"
46
47
  },
47
48
  ".ant-select-single .ant-select-selector": {
48
49
  height: "30px !important"
@@ -124,8 +125,8 @@ const i = (n) => {
124
125
  }
125
126
  }
126
127
  };
127
- }, o = a("ApForm", (n) => [i(n)]);
128
+ }, o = a("ApForm", (n) => [r(n)]);
128
129
  export {
129
130
  o as default,
130
- i as genApFormItemStyle
131
+ r as genApFormItemStyle
131
132
  };
@@ -1,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { ApFormToken } from './token';
3
- import { Ref } from 'vue';
3
+ import { ComputedRef } from 'vue';
4
4
  export declare const genModalFormStyle: GenStyleFunc<ApFormToken>;
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -1,8 +1,8 @@
1
- import { genComponentStyleHook as d } from "../../utils/cssinjs/index.mjs";
1
+ import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
2
2
  const e = (o) => {
3
- const { componentCls: a } = o;
3
+ const { componentCls: d, apFormModalCloseSize: a } = o;
4
4
  return {
5
- [a]: {
5
+ [d]: {
6
6
  ".ant-modal-content": {
7
7
  padding: 0
8
8
  },
@@ -12,23 +12,23 @@ const e = (o) => {
12
12
  borderBottom: "1px solid #E9EDF3",
13
13
  marginBottom: 0
14
14
  },
15
- [`${a}__content`]: {
15
+ [`${d}__content`]: {
16
16
  padding: o.apFormModalContentPadding
17
17
  },
18
- [`${a}__footer`]: {
18
+ [`${d}__footer`]: {
19
19
  padding: o.apFormModalFooterPadding
20
20
  },
21
- [`${a}__footer-admin`]: {
21
+ [`${d}__footer-admin`]: {
22
22
  borderTop: "1px solid #E9EDF3"
23
23
  },
24
24
  ".ant-modal-close": {
25
- top: `calc(${o.apFormModalHeaderPaddingBlock} - (${o.apFormModalCloseSize} - 22px) / 2)`,
26
- width: o.apFormModalCloseSize,
27
- height: o.apFormModalCloseSize
25
+ top: `calc(${o.apFormModalHeaderPaddingBlock} - (${a} - 22px) / 2)`,
26
+ width: a,
27
+ height: a
28
28
  }
29
29
  }
30
30
  };
31
- }, r = d(
31
+ }, l = n(
32
32
  "ApForm.Modal",
33
33
  (o) => [e(o)],
34
34
  {
@@ -40,6 +40,6 @@ const e = (o) => {
40
40
  }
41
41
  );
42
42
  export {
43
- r as default,
43
+ l as default,
44
44
  e as genModalFormStyle
45
45
  };
@@ -1,6 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { ApFormToken } from './token';
3
- import { Ref } from 'vue';
3
+ import { ComputedRef } from 'vue';
4
4
  export declare const genSearchFormSorter: GenStyleFunc<ApFormToken>;
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { resetComponent as e } from "../../style/index.mjs";
2
- import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
3
- import { genPopoverStyle as t } from "./search-form.mjs";
4
- const i = (r) => {
5
- const { componentCls: o } = r;
2
+ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
3
+ import { genPopoverStyle as i } from "./search-form.mjs";
4
+ const c = (r) => {
5
+ const { componentCls: o } = r, a = `calc(100% / ${r.searchFormSorterCountPerRow})`;
6
6
  return {
7
7
  [o]: {
8
8
  [`${o}-content`]: {
@@ -40,8 +40,8 @@ const i = (r) => {
40
40
  rowGap: r.searchFormSorterItemGap
41
41
  },
42
42
  [`${o}-sorter-item`]: {
43
- flex: "0 0 33.333333%",
44
- maxWidth: "33.333333%",
43
+ flex: `0 0 ${a}`,
44
+ maxWidth: a,
45
45
  paddingInline: `calc(${r.searchFormSorterItemGap} / 2)`,
46
46
  "> div": {
47
47
  border: `1px solid ${r.colorBg1}`,
@@ -72,17 +72,21 @@ const i = (r) => {
72
72
  textOverflow: "ellipsis"
73
73
  }
74
74
  },
75
- ...t(r)
75
+ ...i(r)
76
76
  };
77
- }, s = a(
77
+ }, m = t(
78
78
  "ApForm.SearchFormSorter",
79
- (r) => [i(r)],
79
+ (r) => [c(r)],
80
80
  {
81
81
  searchFormSorterWidth: 560,
82
- searchFormSorterItemGap: 8
82
+ searchFormSorterItemGap: 8,
83
+ searchFormSorterCountPerRow: 3
84
+ },
85
+ {
86
+ skipUnit: ["searchFormSorterCountPerRow"]
83
87
  }
84
88
  );
85
89
  export {
86
- s as default,
87
- i as genSearchFormSorter
90
+ m as default,
91
+ c as genSearchFormSorter
88
92
  };
@@ -1,6 +1,6 @@
1
1
  import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genPopoverStyle: StyleMixin;
4
4
  export declare const genSearchFormStyle: GenStyleFunc;
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -24,4 +24,8 @@ export type ApFormToken = {
24
24
  * 查询表单排序元素间距
25
25
  */
26
26
  searchFormSorterItemGap: number;
27
+ /**
28
+ * 查询表单排序每一行显示的元素
29
+ */
30
+ searchFormSorterCountPerRow: number;
27
31
  };
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genEditableGridStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export type ApGridToken = {
4
4
  apGridFixedScrollingBoxShadowColor: string;
5
5
  };
6
6
  export declare const genApGridStyle: GenStyleFunc<ApGridToken>;
7
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
7
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
8
8
  export default _default;