@aplus-frontend/ui 0.5.23 → 0.5.25

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 (227) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  13. package/es/src/ap-field/date/index.vue.mjs +4 -4
  14. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  15. package/es/src/ap-field/index.mjs +36 -36
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +2 -2
  21. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  22. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  23. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  24. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  25. package/es/src/ap-field/text/password.vue.mjs +2 -2
  26. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  27. package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  29. package/es/src/ap-form/ap-form.vue.d.ts +4 -3
  30. package/es/src/ap-form/ap-form.vue2.mjs +124 -124
  31. package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -8
  32. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  33. package/es/src/ap-form/interface.d.ts +3 -2
  34. package/es/src/ap-form/item/index.vue.mjs +7 -7
  35. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  36. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  41. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  42. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  43. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  44. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  45. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  46. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  47. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  48. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  49. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -8
  50. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  51. package/es/src/ap-form/render/item.vue.mjs +2 -2
  52. package/es/src/ap-form/search-form/index.vue.d.ts +9 -8
  53. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  54. package/es/src/ap-form/set/index.vue.mjs +1 -1
  55. package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  56. package/es/src/ap-grid/editable/form-item.vue.mjs +65 -61
  57. package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
  58. package/es/src/ap-grid/editable/index.vue.mjs +86 -81
  59. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  60. package/es/src/ap-grid/index.vue.d.ts +4 -2
  61. package/es/src/ap-grid/index.vue.mjs +25 -25
  62. package/es/src/ap-grid/interface.d.ts +4 -0
  63. package/es/src/ap-grid/utils/table.d.ts +1 -1
  64. package/es/src/ap-grid/utils/table.mjs +42 -41
  65. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  66. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  67. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  68. package/es/src/ap-list/index.vue.d.ts +4 -2
  69. package/es/src/ap-list/index.vue.mjs +4 -4
  70. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  71. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  72. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  73. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  74. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  75. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  76. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  77. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  78. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  79. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  80. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  81. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  82. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  83. package/es/src/ap-table/constants.d.ts +5 -5
  84. package/es/src/ap-table/constants.mjs +45 -45
  85. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  86. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  87. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -102
  88. package/es/src/ap-table/utils.d.ts +5 -5
  89. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  90. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  91. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  92. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  93. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  94. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  95. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  96. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  97. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  98. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  99. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  100. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  101. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  102. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  103. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  104. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  105. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  106. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  107. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  108. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  109. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  110. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  111. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  112. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  113. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  114. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  115. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  116. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
  117. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +34 -59
  118. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
  119. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +34 -99
  120. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
  121. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +68 -195
  122. package/es/src/business/ap-ladder/index.d.ts +1 -235
  123. package/es/src/business/ap-ladder/interface.d.ts +4 -114
  124. package/es/src/business/ap-ladder/utils.d.ts +5 -0
  125. package/es/src/business/ap-ladder/utils.mjs +38 -3
  126. package/es/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
  127. package/es/src/business/ap-product-info/constans.d.ts +23 -0
  128. package/es/src/business/ap-product-info/index.d.ts +1 -0
  129. package/es/src/business/ap-product-info/interface.d.ts +11 -0
  130. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  131. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  132. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  133. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  134. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  135. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  136. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  137. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  138. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  139. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  140. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  141. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  142. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  143. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  144. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  145. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  146. package/es/src/check-card/index.vue2.mjs +3 -3
  147. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  148. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  149. package/es/src/editable-table/form-item.vue.mjs +2 -2
  150. package/es/src/editable-table/index.vue.d.ts +4 -2
  151. package/es/src/editable-table/index.vue.mjs +2 -2
  152. package/es/src/full-screen/index.vue.mjs +3 -3
  153. package/es/src/hooks/useFullScreen.mjs +5 -5
  154. package/es/src/mask/index.vue.mjs +10 -10
  155. package/es/src/portal/index.vue.mjs +2 -2
  156. package/es/src/scroll-bar/index.vue.mjs +3 -3
  157. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  158. package/es/src/scroll-view/index.vue.d.ts +5 -5
  159. package/es/src/scroll-view/index.vue.mjs +9 -9
  160. package/es/src/tests/wrapper.d.ts +4 -4
  161. package/es/src/text/group.vue.mjs +2 -2
  162. package/es/src/text/index.vue.mjs +4 -4
  163. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  164. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -5
  165. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  166. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  167. package/lib/src/ap-field/index.js +1 -1
  168. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  169. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  170. package/lib/src/ap-form/ap-form.vue.d.ts +4 -3
  171. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  172. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -8
  173. package/lib/src/ap-form/interface.d.ts +3 -2
  174. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  175. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -8
  176. package/lib/src/ap-form/search-form/index.vue.d.ts +9 -8
  177. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  178. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  179. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  180. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  181. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  182. package/lib/src/ap-grid/index.vue.js +1 -1
  183. package/lib/src/ap-grid/interface.d.ts +4 -0
  184. package/lib/src/ap-grid/utils/table.d.ts +1 -1
  185. package/lib/src/ap-grid/utils/table.js +1 -1
  186. package/lib/src/ap-list/index.vue.d.ts +4 -2
  187. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  188. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  189. package/lib/src/ap-table/constants.d.ts +5 -5
  190. package/lib/src/ap-table/constants.js +1 -1
  191. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  192. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  193. package/lib/src/ap-table/utils.d.ts +5 -5
  194. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  195. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  196. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  197. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  198. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  199. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  200. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
  201. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  202. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
  203. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
  204. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
  205. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
  206. package/lib/src/business/ap-ladder/index.d.ts +1 -235
  207. package/lib/src/business/ap-ladder/interface.d.ts +4 -114
  208. package/lib/src/business/ap-ladder/utils.d.ts +5 -0
  209. package/lib/src/business/ap-ladder/utils.js +1 -1
  210. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
  211. package/lib/src/business/ap-product-info/constans.d.ts +23 -0
  212. package/lib/src/business/ap-product-info/index.d.ts +1 -0
  213. package/lib/src/business/ap-product-info/interface.d.ts +11 -0
  214. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  215. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  216. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  217. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  218. package/lib/src/editable-table/index.vue.d.ts +4 -2
  219. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  220. package/lib/src/tests/wrapper.d.ts +4 -4
  221. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -5
  222. package/package.json +3 -3
  223. package/theme/ap-grid/index.css +3 -0
  224. package/theme/ap-grid/index.less +3 -0
  225. package/theme/ap-ladder/ap-ladder.css +14 -5
  226. package/theme/ap-ladder/ap-ladder.less +16 -7
  227. package/theme/index.css +17 -5
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as O, unref as t, resolveComponent as R, createElementBlock as D, openBlock as C, normalizeClass as d, createVNode as p, withCtx as w, createBlock as K, createCommentVNode as F, renderSlot as T, normalizeStyle as $ } from "vue";
1
+ import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as O, unref as t, resolveComponent as R, openBlock as C, createElementBlock as D, normalizeClass as d, createVNode as p, withCtx as w, normalizeStyle as K, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
2
2
  import { Flex as j, Select as E } from "@aplus-frontend/antdv";
3
3
  import G from "./images/icon-down.vue.mjs";
4
4
  import "./extension-select/index.vue.mjs";
@@ -154,7 +154,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
154
154
  return [
155
155
  p(t(E), {
156
156
  value: V.value,
157
- style: $(B.value),
157
+ style: K(B.value),
158
158
  class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
159
159
  options: k.value,
160
160
  bordered: !1,
@@ -166,13 +166,13 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
166
166
  ]),
167
167
  _: 1
168
168
  }, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
169
- t(f) === "aplus" ? (C(), K(n, {
169
+ t(f) === "aplus" ? (C(), F(n, {
170
170
  key: 0,
171
171
  class: d(t(g)("divider")),
172
172
  type: "vertical",
173
173
  style: {}
174
- }, null, 8, ["class"])) : F("", !0),
175
- T(e.$slots, "search", {
174
+ }, null, 8, ["class"])) : T("", !0),
175
+ $(e.$slots, "search", {
176
176
  key: (s = t(a)) == null ? void 0 : s.key,
177
177
  value: (i = t(a)) == null ? void 0 : i.value,
178
178
  change: v
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, ref as a, computed as y, watch as w, createElementBlock as B, openBlock as _, createVNode as s, unref as l, normalizeStyle as x, normalizeClass as b, withCtx as S } from "vue";
1
+ import { defineComponent as C, ref as a, computed as y, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
2
2
  import { Select as I } from "@aplus-frontend/antdv";
3
3
  import "../popover-select/index.vue.mjs";
4
4
  import "../../../config-provider/index.mjs";
@@ -99,14 +99,14 @@ const F = /* @__PURE__ */ C({
99
99
  const p = (e) => {
100
100
  n.value = e, f("change", e);
101
101
  }, { b: g } = V("ap-extension-select");
102
- return (e, i) => (_(), B("div", {
102
+ return (e, i) => (B(), _("div", {
103
103
  ref_key: "containerRef",
104
104
  ref: r
105
105
  }, [
106
106
  s(l(I), {
107
- class: b(l(g)()),
107
+ class: x(l(g)()),
108
108
  value: n.value,
109
- style: x(e.$attrs.style),
109
+ style: b(e.$attrs.style),
110
110
  bordered: l(d) === "admin",
111
111
  mode: "tags",
112
112
  "show-arrow": !0,
@@ -1,4 +1,4 @@
1
- import { createElementBlock as n, openBlock as e, createElementVNode as o } from "vue";
1
+ import { openBlock as n, createElementBlock as e, createElementVNode as o } from "vue";
2
2
  import l from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
3
  const r = {}, i = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -10,7 +10,7 @@ const r = {}, i = {
10
10
  viewBox: "0 0 16 16"
11
11
  };
12
12
  function c(s, t) {
13
- return e(), n("svg", i, t[0] || (t[0] = [
13
+ return n(), e("svg", i, t[0] || (t[0] = [
14
14
  o("g", null, [
15
15
  o("g", null, [
16
16
  o("path", {
@@ -1,4 +1,4 @@
1
- import { createElementBlock as e, openBlock as o, createElementVNode as Q } from "vue";
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as Q } from "vue";
2
2
  import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
3
  const n = {}, r = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -10,7 +10,7 @@ const n = {}, r = {
10
10
  viewBox: "0 0 16 16"
11
11
  };
12
12
  function i(c, l) {
13
- return o(), e("svg", r, l[0] || (l[0] = [
13
+ return e(), o("svg", r, l[0] || (l[0] = [
14
14
  Q("g", null, [
15
15
  Q("g", null, [
16
16
  Q("path", {
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as u, watchEffect as O, createElementBlock as R, openBlock as L, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as M, createTextVNode as d, toDisplayString as m } from "vue";
1
+ import { defineComponent as P, ref as u, watchEffect as O, openBlock as R, createElementBlock as L, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as M, createTextVNode as d, toDisplayString as m } from "vue";
2
2
  import { Popover as T, Select as z, Button as f, Space as G } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import A from "../images/icon-line-select.vue.mjs";
@@ -103,7 +103,7 @@ const Y = /* @__PURE__ */ P({
103
103
  var o;
104
104
  (o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
105
105
  }, { b: V, e: I, em: l } = K("ap-popover-select");
106
- return (o, y) => (L(), R("div", {
106
+ return (o, y) => (R(), L("div", {
107
107
  class: p(e(V)())
108
108
  }, [
109
109
  a(e(T), {
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, computed as c, ref as U, watchEffect as j, createBlock as p, openBlock as i, unref as n, mergeProps as g, withCtx as B, renderSlot as E, normalizeProps as I, guardReactiveProps as L, createElementVNode as b, normalizeClass as D, createElementBlock as M, Fragment as P, renderList as R, resolveDynamicComponent as T, createVNode as x } from "vue";
1
+ import { defineComponent as S, computed as c, ref as U, watchEffect as j, openBlock as i, createBlock as p, unref as n, mergeProps as g, withCtx as B, renderSlot as E, normalizeProps as I, guardReactiveProps as L, createElementVNode as b, normalizeClass as D, createElementBlock as M, Fragment as P, renderList as R, resolveDynamicComponent as T, createVNode as x } from "vue";
2
2
  import { Image as z } from "@aplus-frontend/antdv";
3
3
  import { DownloadOutlined as V } from "@ant-design/icons-vue";
4
4
  import { injectLocaleToOss as W, getOssInstance as G, getSignatureUrl as $ } from "./hooks/useOss.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, onMounted as g, createElementBlock as R, openBlock as V, normalizeClass as b, unref as t, createVNode as i, mergeProps as h } from "vue";
1
+ import { defineComponent as f, onMounted as g, openBlock as R, createElementBlock as V, normalizeClass as b, unref as t, createVNode as i, mergeProps as h } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import { Form as I, InputNumber as B, RadioGroup as k } from "@aplus-frontend/antdv";
4
4
  import { omit as _ } from "lodash-unified";
@@ -51,7 +51,7 @@ const G = /* @__PURE__ */ f({
51
51
  }
52
52
  }), (a, o) => {
53
53
  var l, r;
54
- return V(), R("div", {
54
+ return R(), V("div", {
55
55
  class: b([t(m)()])
56
56
  }, [
57
57
  i(t(B), h({
@@ -1,11 +1,5 @@
1
1
  import { ApLadderLabelValue, ApLadderProps, ApLadderSlots } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, ComponentProvideOptions } from 'vue';
3
- import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
- import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
5
- import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
6
- import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
7
- import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
8
- import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
9
3
  declare function __VLS_template(): {
10
4
  attrs: Partial<{}>;
11
5
  slots: Readonly<ApLadderSlots> & ApLadderSlots;
@@ -15,83 +9,7 @@ declare function __VLS_template(): {
15
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
10
  declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApLadderProps> & Readonly<{}>, {
17
11
  layout: "vertical" | "horizontal";
18
- tooltip: boolean;
19
12
  labelAlign: "left" | "right";
20
- tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
21
- title: VueTypeValidableDef<any>;
22
- trigger: PropType< TriggerType | TriggerType[]>;
23
- open: {
24
- type: BooleanConstructor;
25
- default: any;
26
- };
27
- visible: {
28
- type: BooleanConstructor;
29
- default: any;
30
- };
31
- placement: PropType<TooltipPlacement>;
32
- color: PropType<LiteralUnion<PresetColorType>>;
33
- transitionName: StringConstructor;
34
- overlayStyle: {
35
- type: PropType<CSSProperties>;
36
- default: CSSProperties;
37
- };
38
- overlayInnerStyle: {
39
- type: PropType<CSSProperties>;
40
- default: CSSProperties;
41
- };
42
- overlayClassName: StringConstructor;
43
- openClassName: StringConstructor;
44
- prefixCls: StringConstructor;
45
- mouseEnterDelay: NumberConstructor;
46
- mouseLeaveDelay: NumberConstructor;
47
- getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
48
- arrowPointAtCenter: {
49
- type: BooleanConstructor;
50
- default: any;
51
- };
52
- arrow: {
53
- type: PropType<boolean | {
54
- pointAtCenter?: boolean;
55
- }>;
56
- default: boolean | {
57
- pointAtCenter?: boolean;
58
- };
59
- };
60
- autoAdjustOverflow: {
61
- type: PropType<boolean | AdjustOverflow>;
62
- default: boolean | AdjustOverflow;
63
- };
64
- destroyTooltipOnHide: {
65
- type: BooleanConstructor;
66
- default: any;
67
- };
68
- align: {
69
- type: PropType<AlignType>;
70
- default: AlignType;
71
- };
72
- builtinPlacements: {
73
- type: PropType<BuildInPlacements>;
74
- default: BuildInPlacements;
75
- };
76
- children: ArrayConstructor;
77
- onVisibleChange: PropType<(vis: boolean) => void>;
78
- 'onUpdate:visible': PropType<(vis: boolean) => void>;
79
- onOpenChange: PropType<(vis: boolean) => void>;
80
- 'onUpdate:open': PropType<(vis: boolean) => void>;
81
- mask: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- };
85
- maskStyle: {
86
- type: PropType<CSSProperties>;
87
- default: CSSProperties;
88
- };
89
- maskTransitionName: StringConstructor;
90
- maskClosable: {
91
- type: BooleanConstructor;
92
- default: boolean;
93
- };
94
- }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
95
13
  labelValues: Array<ApLadderLabelValue>;
96
14
  majorColor: string;
97
15
  minorColor: string;
@@ -1,90 +1,65 @@
1
- import { defineComponent as C, useSlots as j, computed as e, createElementBlock as _, openBlock as i, normalizeClass as g, unref as o, createBlock as n, createCommentVNode as V, createSlots as p, withCtx as m, renderSlot as u } from "vue";
2
- import { memoize as h } from "lodash-unified";
1
+ import { defineComponent as g, useSlots as V, computed as t, withMemo as h, openBlock as n, createElementBlock as _, normalizeClass as j, unref as l, createBlock as a, createSlots as i, withCtx as m, renderSlot as s, createCommentVNode as M } from "vue";
2
+ import { memoize as A } from "lodash-unified";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "./components/SimpleMode.vue.mjs";
5
5
  import "./components/ValueGroupMode.vue.mjs";
6
- import { isNull as L, createMemoizeKey as A } from "./utils.mjs";
7
- import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
9
- import B from "./components/SimpleMode.vue2.mjs";
10
- import w from "./components/ValueGroupMode.vue2.mjs";
11
- const J = /* @__PURE__ */ C({
6
+ import { isNull as S, createMemoizeKey as $ } from "./utils.mjs";
7
+ import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useGlobalConfig as L } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import z from "./components/SimpleMode.vue2.mjs";
10
+ import B from "./components/ValueGroupMode.vue2.mjs";
11
+ const P = /* @__PURE__ */ g({
12
12
  name: "ApLadder",
13
13
  __name: "ApLadder",
14
14
  props: {
15
15
  major: {},
16
16
  minor: {},
17
17
  majorColor: { default: "" },
18
- majorStyles: {},
19
18
  minorColor: { default: "" },
20
- minorStyles: {},
21
19
  layout: { default: "vertical" },
22
- tooltip: { type: Boolean, default: !0 },
23
20
  labelValues: { default: () => [] },
24
- labelAlign: { default: "left" },
25
- labelStyles: {},
26
- valueStyles: {},
27
- linkStyles: {},
28
- unitStyles: {},
29
- tooltipProps: { default: () => ({}) },
30
- tooltipLabelStyles: {},
31
- tooltipValueStyles: {}
21
+ labelAlign: { default: "left" }
32
22
  },
33
- setup(y) {
34
- const s = j(), l = y, { b: c, m: f } = M("ap-ladder"), d = $("uiMode", "aplus"), v = e(
35
- () => l.labelValues === void 0 || l.labelValues.length === 0
36
- ), b = e(() => l.labelValues.length > 0), S = e(() => l.labelAlign), r = h((t) => L(t) ? "" : typeof t == "number" ? t.toString() : typeof t == "string" ? t : "", A), a = e(() => !!s.title || l.tooltip), k = (t) => {
37
- t.link && window.open(t.link, "_blank"), typeof t.handleClickLink == "function" && t.handleClickLink();
23
+ setup(u) {
24
+ const r = V(), o = u, { b: c, m: p } = w("ap-ladder"), f = L("uiMode", "aplus"), d = t(
25
+ () => o.labelValues === void 0 || o.labelValues.length === 0
26
+ ), k = t(() => o.labelValues.length > 0), b = t(() => o.labelAlign), v = A((e) => S(e) ? "" : typeof e == "number" ? e.toString() : typeof e == "string" ? e : "", $), y = (e) => {
27
+ e.link && window.open(e.link, "_blank"), typeof e.handleClickLink == "function" && e.handleClickLink();
38
28
  };
39
- return (t, N) => (i(), _("div", {
40
- class: g([o(c)(), `${o(f)(o(d))}`])
29
+ return (e, C) => h([e.labelValues, e.major, e.minor], () => (n(), _("div", {
30
+ class: j([l(c)(), `${l(p)(l(f))}`])
41
31
  }, [
42
- v.value ? (i(), n(B, {
32
+ d.value ? (n(), a(z, {
43
33
  key: 0,
44
- major: l.major,
45
- minor: l.minor,
46
- "major-styles": l.majorStyles || {},
47
- "major-color": l.majorColor || {},
48
- "minor-styles": l.minorStyles || {},
49
- "minor-color": l.minorColor || {},
50
- "tooltip-props": l.tooltipProps || {},
51
- layout: l.layout,
52
- tooltip: a.value,
53
- "convert-value": o(r)
54
- }, p({ _: 2 }, [
55
- s.title ? {
34
+ major: o.major,
35
+ minor: o.minor,
36
+ layout: o.layout,
37
+ "convert-value": l(v)
38
+ }, i({ _: 2 }, [
39
+ r.title ? {
56
40
  name: "title",
57
41
  fn: m(() => [
58
- u(t.$slots, "title")
42
+ s(e.$slots, "title")
59
43
  ]),
60
44
  key: "0"
61
45
  } : void 0
62
- ]), 1032, ["major", "minor", "major-styles", "major-color", "minor-styles", "minor-color", "tooltip-props", "layout", "tooltip", "convert-value"])) : b.value ? (i(), n(w, {
46
+ ]), 1032, ["major", "minor", "layout", "convert-value"])) : k.value ? (n(), a(B, {
63
47
  key: 1,
64
- "label-values": l.labelValues || {},
65
- "label-align": S.value,
66
- "label-styles": l.labelStyles || {},
67
- "value-styles": l.valueStyles || {},
68
- "link-styles": l.linkStyles || {},
69
- "unit-styles": l.unitStyles || {},
70
- "tooltip-label-styles": l.tooltipLabelStyles || {},
71
- "tooltip-value-styles": l.tooltipValueStyles || {},
72
- "tooltip-props": l.tooltipProps || {},
73
- tooltip: a.value,
74
- "convert-value": o(r),
75
- onHandleClick: k
76
- }, p({ _: 2 }, [
77
- s.title ? {
48
+ "label-values": o.labelValues || {},
49
+ "label-align": b.value,
50
+ onHandleClick: y
51
+ }, i({ _: 2 }, [
52
+ r.title ? {
78
53
  name: "title",
79
54
  fn: m(() => [
80
- u(t.$slots, "title")
55
+ s(e.$slots, "title")
81
56
  ]),
82
57
  key: "0"
83
58
  } : void 0
84
- ]), 1032, ["label-values", "label-align", "label-styles", "value-styles", "link-styles", "unit-styles", "tooltip-label-styles", "tooltip-value-styles", "tooltip-props", "tooltip", "convert-value"])) : V("", !0)
85
- ], 2));
59
+ ]), 1032, ["label-values", "label-align"])) : M("", !0)
60
+ ], 2)), C, 0);
86
61
  }
87
62
  });
88
63
  export {
89
- J as default
64
+ P as default
90
65
  };
@@ -1,11 +1,11 @@
1
- import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
5
  title?(_: {}): any;
6
6
  };
7
7
  refs: {};
8
- rootEl: any;
8
+ rootEl: HTMLDivElement;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
@@ -17,38 +17,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
17
17
  type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
18
18
  default: null;
19
19
  };
20
- majorStyles: {
21
- type: PropType<CSSProperties>;
22
- default: () => {};
23
- };
24
- majorColorStyles: {
25
- type: PropType<CSSProperties>;
26
- default: () => {};
27
- };
28
- minorStyles: {
29
- type: PropType<CSSProperties>;
30
- default: () => {};
31
- };
32
- minorColorStyles: {
33
- type: PropType<CSSProperties>;
34
- default: () => {};
35
- };
36
- tooltipProps: {
37
- type: ObjectConstructor;
38
- default: () => {};
39
- };
40
20
  layout: {
41
21
  type: StringConstructor;
42
22
  default: string;
43
23
  };
44
- tooltip: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- convertValue: {
49
- type: FunctionConstructor;
50
- required: true;
51
- };
52
24
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
53
25
  major: {
54
26
  type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
@@ -58,49 +30,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
58
30
  type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
59
31
  default: null;
60
32
  };
61
- majorStyles: {
62
- type: PropType<CSSProperties>;
63
- default: () => {};
64
- };
65
- majorColorStyles: {
66
- type: PropType<CSSProperties>;
67
- default: () => {};
68
- };
69
- minorStyles: {
70
- type: PropType<CSSProperties>;
71
- default: () => {};
72
- };
73
- minorColorStyles: {
74
- type: PropType<CSSProperties>;
75
- default: () => {};
76
- };
77
- tooltipProps: {
78
- type: ObjectConstructor;
79
- default: () => {};
80
- };
81
33
  layout: {
82
34
  type: StringConstructor;
83
35
  default: string;
84
36
  };
85
- tooltip: {
86
- type: BooleanConstructor;
87
- default: boolean;
88
- };
89
- convertValue: {
90
- type: FunctionConstructor;
91
- required: true;
92
- };
93
37
  }>> & Readonly<{}>, {
94
38
  layout: string;
95
- tooltip: boolean;
96
39
  major: string | number | Function | Record<string, any>;
97
40
  minor: string | number | Function | Record<string, any>;
98
- tooltipProps: Record<string, any>;
99
- majorStyles: CSSProperties;
100
- majorColorStyles: CSSProperties;
101
- minorStyles: CSSProperties;
102
- minorColorStyles: CSSProperties;
103
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
104
42
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
105
43
  export default _default;
106
44
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,9 +1,7 @@
1
- import { defineComponent as j, createBlock as S, openBlock as n, unref as t, normalizeProps as v, guardReactiveProps as b, createSlots as k, withCtx as s, createElementBlock as i, createCommentVNode as u, Fragment as C, normalizeClass as l, createElementVNode as a, normalizeStyle as m, toDisplayString as r, renderSlot as V } from "vue";
2
- import { Tooltip as O } from "@aplus-frontend/antdv";
1
+ import { defineComponent as d, openBlock as r, createElementBlock as m, normalizeClass as a, unref as t, createElementVNode as l, toDisplayString as n, renderSlot as u, createCommentVNode as j } from "vue";
3
2
  import "../../../config-provider/index.mjs";
4
- import { isNull as c } from "../utils.mjs";
5
- import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
6
- const E = /* @__PURE__ */ j({
3
+ import { useNamespace as S } from "../../../config-provider/hooks/use-namespace.mjs";
4
+ const f = ["title"], y = ["title"], g = ["title"], b = ["title"], N = /* @__PURE__ */ d({
7
5
  name: "ApLadderSimpleMode",
8
6
  __name: "SimpleMode",
9
7
  props: {
@@ -15,108 +13,45 @@ const E = /* @__PURE__ */ j({
15
13
  type: [String, Number, Function, Object],
16
14
  default: null
17
15
  },
18
- majorStyles: {
19
- type: Object,
20
- default: () => ({})
21
- },
22
- majorColorStyles: {
23
- type: Object,
24
- default: () => ({})
25
- },
26
- minorStyles: {
27
- type: Object,
28
- default: () => ({})
29
- },
30
- minorColorStyles: {
31
- type: Object,
32
- default: () => ({})
33
- },
34
- tooltipProps: {
35
- type: Object,
36
- default: () => ({})
37
- },
38
16
  layout: {
39
17
  type: String,
40
18
  default: "vertical"
41
- },
42
- tooltip: {
43
- type: Boolean,
44
- default: !1
45
- },
46
- convertValue: {
47
- type: Function,
48
- required: !0
49
19
  }
50
20
  },
51
21
  setup(e) {
52
- const { b: y, e: o, m: d } = g("ap-ladder");
53
- return (f, N) => (n(), S(t(O), v(b(e.tooltipProps)), k({
54
- default: s(() => [
55
- !t(c)(e.major) || !t(c)(e.minor) ? (n(), i(C, { key: 0 }, [
56
- e.layout === "vertical" ? (n(), i("div", {
57
- key: 0,
58
- class: l([t(y)("base"), t(d)("vertical")])
59
- }, [
60
- a("span", {
61
- class: l([t(o)("major")]),
62
- style: m([e.majorStyles, e.majorColorStyles])
63
- }, r(e.convertValue(e.major)), 7),
64
- a("span", {
65
- class: l([t(o)("minor")]),
66
- style: m([e.minorStyles, e.minorColorStyles])
67
- }, r(e.convertValue(e.minor)), 7)
68
- ], 2)) : (n(), i("div", {
69
- key: 1,
70
- class: l([t(y)("base"), t(d)("horizontal")])
71
- }, [
72
- a("span", {
73
- class: l([t(o)("major")]),
74
- style: m([e.majorStyles, e.majorColorStyles])
75
- }, r(e.convertValue(e.major)), 7),
76
- a("span", {
77
- class: l([t(o)("minor")]),
78
- style: m([e.minorStyles, e.minorColorStyles])
79
- }, r(e.convertValue(e.minor)), 7)
80
- ], 2))
81
- ], 64)) : u("", !0)
82
- ]),
83
- _: 2
22
+ const { b: o, e: i, m: s } = S("ap-ladder");
23
+ return (c, p) => (r(), m("div", {
24
+ class: a([t(o)("simple-mode")])
84
25
  }, [
85
- f.$slots.title ? {
86
- name: "title",
87
- fn: s(() => [
88
- V(f.$slots, "title")
89
- ]),
90
- key: "0"
91
- } : e.tooltip ? {
92
- name: "title",
93
- fn: s(() => [
94
- a("div", {
95
- class: l(t(o)("tooltip"))
96
- }, [
97
- t(c)(e.major) ? u("", !0) : (n(), i("div", {
98
- key: 0,
99
- class: l(t(o)("tooltip-item"))
100
- }, [
101
- a("span", {
102
- class: l(t(o)("tooltip-label"))
103
- }, r(e.convertValue(e.major)), 3)
104
- ], 2)),
105
- t(c)(e.minor) ? u("", !0) : (n(), i("div", {
106
- key: 1,
107
- class: l(t(o)("tooltip-item"))
108
- }, [
109
- a("span", {
110
- class: l(t(o)("tooltip-label"))
111
- }, r(e.convertValue(e.minor)), 3)
112
- ], 2))
113
- ], 2)
114
- ]),
115
- key: "1"
116
- } : void 0
117
- ]), 1040));
26
+ e.layout === "vertical" ? (r(), m("div", {
27
+ key: 0,
28
+ class: a([t(o)("base"), t(s)("vertical")])
29
+ }, [
30
+ l("span", {
31
+ class: a([t(i)("major")]),
32
+ title: String(e.major)
33
+ }, n(e.major), 11, f),
34
+ l("span", {
35
+ class: a([t(i)("minor")]),
36
+ title: String(e.major)
37
+ }, n(e.minor), 11, y)
38
+ ], 2)) : (r(), m("div", {
39
+ key: 1,
40
+ class: a([t(o)("base"), t(s)("horizontal")])
41
+ }, [
42
+ l("span", {
43
+ class: a([t(i)("major")]),
44
+ title: String(e.major)
45
+ }, n(e.major), 11, g),
46
+ l("span", {
47
+ class: a([t(i)("minor")]),
48
+ title: String(e.major)
49
+ }, n(e.minor), 11, b)
50
+ ], 2)),
51
+ c.$slots.title ? u(c.$slots, "title", { key: 2 }) : j("", !0)
52
+ ], 2));
118
53
  }
119
54
  });
120
55
  export {
121
- E as default
56
+ N as default
122
57
  };