@aplus-frontend/ui 0.5.18 → 0.5.19

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 (196) 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 +30 -30
  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-form/ap-form.vue.d.ts +1 -2
  28. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  29. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  30. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  31. package/es/src/ap-form/item/index.vue.mjs +7 -7
  32. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  33. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  41. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  42. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  43. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  44. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  45. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  46. package/es/src/ap-form/render/item.vue.mjs +2 -2
  47. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  48. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  49. package/es/src/ap-form/set/index.vue.mjs +1 -1
  50. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  51. package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
  52. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  53. package/es/src/ap-grid/editable/index.vue.mjs +2 -2
  54. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  55. package/es/src/ap-grid/index.vue.d.ts +2 -4
  56. package/es/src/ap-grid/index.vue.mjs +4 -4
  57. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  58. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  59. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  60. package/es/src/ap-list/index.vue.d.ts +2 -4
  61. package/es/src/ap-list/index.vue.mjs +4 -4
  62. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  63. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  64. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  65. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  66. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  67. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  68. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  69. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  70. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  71. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  72. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  73. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  75. package/es/src/ap-table/constants.mjs +40 -40
  76. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  77. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  78. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
  79. package/es/src/ap-table/interface.d.ts +8 -0
  80. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  81. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  82. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  83. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  84. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  85. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  86. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  87. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  88. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  89. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  90. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  91. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  92. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  93. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  94. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  95. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  96. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  97. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  98. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  99. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  100. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  101. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  102. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  103. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  104. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  105. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  106. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  107. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  108. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
  109. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
  110. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
  111. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
  112. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
  113. package/es/src/business/ap-ladder/index.d.ts +1 -3
  114. package/es/src/business/ap-ladder/interface.d.ts +16 -16
  115. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  116. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  117. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  118. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  119. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  120. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  121. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  122. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  123. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  124. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  125. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  126. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  127. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  128. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  129. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  130. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  131. package/es/src/check-card/index.vue2.mjs +3 -3
  132. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  133. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  134. package/es/src/editable-table/form-item.vue.mjs +2 -2
  135. package/es/src/editable-table/index.vue.d.ts +2 -4
  136. package/es/src/editable-table/index.vue.mjs +2 -2
  137. package/es/src/full-screen/index.vue.mjs +3 -3
  138. package/es/src/hooks/useFullScreen.mjs +5 -5
  139. package/es/src/mask/index.vue.mjs +10 -10
  140. package/es/src/portal/index.vue.mjs +2 -2
  141. package/es/src/scroll-bar/index.vue.mjs +3 -3
  142. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  143. package/es/src/scroll-view/index.vue.d.ts +5 -5
  144. package/es/src/scroll-view/index.vue.mjs +9 -9
  145. package/es/src/tests/wrapper.d.ts +4 -4
  146. package/es/src/text/group.vue.mjs +2 -2
  147. package/es/src/text/index.vue.mjs +46 -41
  148. package/es/src/text/interface.d.ts +6 -0
  149. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  150. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  151. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  152. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  153. package/lib/src/ap-field/index.js +1 -1
  154. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  155. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  156. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  157. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  158. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  159. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  160. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  161. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  162. package/lib/src/ap-list/index.vue.d.ts +2 -4
  163. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  164. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  165. package/lib/src/ap-table/constants.js +1 -1
  166. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  167. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  168. package/lib/src/ap-table/interface.d.ts +8 -0
  169. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  170. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  171. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  172. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  173. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  174. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  175. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  176. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  177. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
  178. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
  179. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
  180. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
  181. package/lib/src/business/ap-ladder/index.d.ts +1 -3
  182. package/lib/src/business/ap-ladder/interface.d.ts +16 -16
  183. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  184. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  185. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  186. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  187. package/lib/src/editable-table/index.vue.d.ts +2 -4
  188. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  189. package/lib/src/tests/wrapper.d.ts +4 -4
  190. package/lib/src/text/index.vue.js +1 -1
  191. package/lib/src/text/interface.d.ts +6 -0
  192. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  193. package/package.json +1 -1
  194. package/theme/ap-ladder/ap-ladder.css +41 -1
  195. package/theme/ap-ladder/ap-ladder.less +41 -2
  196. package/theme/index.css +41 -1
@@ -1,4 +1,4 @@
1
- import { StyleValue, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
@@ -18,19 +18,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
18
18
  default: null;
19
19
  };
20
20
  majorStyles: {
21
- type: PropType<StyleValue>;
21
+ type: PropType<CSSProperties>;
22
22
  default: () => {};
23
23
  };
24
24
  majorColorStyles: {
25
- type: PropType<StyleValue>;
25
+ type: PropType<CSSProperties>;
26
26
  default: () => {};
27
27
  };
28
28
  minorStyles: {
29
- type: PropType<StyleValue>;
29
+ type: PropType<CSSProperties>;
30
30
  default: () => {};
31
31
  };
32
32
  minorColorStyles: {
33
- type: PropType<StyleValue>;
33
+ type: PropType<CSSProperties>;
34
34
  default: () => {};
35
35
  };
36
36
  tooltipProps: {
@@ -59,19 +59,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
59
59
  default: null;
60
60
  };
61
61
  majorStyles: {
62
- type: PropType<StyleValue>;
62
+ type: PropType<CSSProperties>;
63
63
  default: () => {};
64
64
  };
65
65
  majorColorStyles: {
66
- type: PropType<StyleValue>;
66
+ type: PropType<CSSProperties>;
67
67
  default: () => {};
68
68
  };
69
69
  minorStyles: {
70
- type: PropType<StyleValue>;
70
+ type: PropType<CSSProperties>;
71
71
  default: () => {};
72
72
  };
73
73
  minorColorStyles: {
74
- type: PropType<StyleValue>;
74
+ type: PropType<CSSProperties>;
75
75
  default: () => {};
76
76
  };
77
77
  tooltipProps: {
@@ -96,10 +96,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
96
96
  major: string | number | Function | Record<string, any>;
97
97
  minor: string | number | Function | Record<string, any>;
98
98
  tooltipProps: Record<string, any>;
99
- majorStyles: StyleValue;
100
- majorColorStyles: StyleValue;
101
- minorStyles: StyleValue;
102
- minorColorStyles: StyleValue;
99
+ majorStyles: CSSProperties;
100
+ majorColorStyles: CSSProperties;
101
+ minorStyles: CSSProperties;
102
+ minorColorStyles: CSSProperties;
103
103
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
104
104
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
105
105
  export default _default;
@@ -1,9 +1,9 @@
1
- import { defineComponent as j, openBlock as i, createBlock as S, unref as t, normalizeProps as v, guardReactiveProps as b, createSlots as C, withCtx as c, createElementBlock as r, Fragment as f, createElementVNode as a, normalizeClass as o, normalizeStyle as m, toDisplayString as n, createCommentVNode as u, renderSlot as k } from "vue";
2
- import { Tooltip as V } from "@aplus-frontend/antdv";
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";
3
3
  import "../../../config-provider/index.mjs";
4
- import { isNull as s } from "../utils.mjs";
5
- import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
6
- const y = "ellipsis-element", h = /* @__PURE__ */ j({
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({
7
7
  name: "ApLadderSimpleMode",
8
8
  __name: "SimpleMode",
9
9
  props: {
@@ -37,7 +37,7 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
37
37
  },
38
38
  layout: {
39
39
  type: String,
40
- default: "horizontal"
40
+ default: "vertical"
41
41
  },
42
42
  tooltip: {
43
43
  type: Boolean,
@@ -49,63 +49,66 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
49
49
  }
50
50
  },
51
51
  setup(e) {
52
- const { e: l } = O("ap-ladder");
53
- return (d, g) => (i(), S(t(V), v(b(e.tooltipProps)), C({
54
- default: c(() => [
55
- !t(s)(e.major) || !t(s)(e.minor) ? (i(), r(f, { key: 0 }, [
56
- e.layout === "vertical" ? (i(), r(f, { key: 0 }, [
57
- a("div", {
58
- class: o([t(l)("major"), t(l)("ellipsis"), y]),
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")]),
59
62
  style: m([e.majorStyles, e.majorColorStyles])
60
- }, n(e.convertValue(e.major)), 7),
61
- a("div", {
62
- class: o([t(l)("minor"), t(l)("ellipsis"), y]),
63
+ }, r(e.convertValue(e.major)), 7),
64
+ a("span", {
65
+ class: l([t(o)("minor")]),
63
66
  style: m([e.minorStyles, e.minorColorStyles])
64
- }, n(e.convertValue(e.minor)), 7)
65
- ], 64)) : (i(), r("div", {
67
+ }, r(e.convertValue(e.minor)), 7)
68
+ ], 2)) : (n(), i("div", {
66
69
  key: 1,
67
- class: o([t(l)("ellipsis"), y])
70
+ class: l([t(y)("base"), t(d)("horizontal")])
68
71
  }, [
69
72
  a("span", {
70
- class: o([t(l)("major")]),
73
+ class: l([t(o)("major")]),
71
74
  style: m([e.majorStyles, e.majorColorStyles])
72
- }, n(e.convertValue(e.major)), 7),
75
+ }, r(e.convertValue(e.major)), 7),
73
76
  a("span", {
74
- class: o([t(l)("minor")]),
77
+ class: l([t(o)("minor")]),
75
78
  style: m([e.minorStyles, e.minorColorStyles])
76
- }, n(e.convertValue(e.minor)), 7)
79
+ }, r(e.convertValue(e.minor)), 7)
77
80
  ], 2))
78
81
  ], 64)) : u("", !0)
79
82
  ]),
80
83
  _: 2
81
84
  }, [
82
- d.$slots.title ? {
85
+ f.$slots.title ? {
83
86
  name: "title",
84
- fn: c(() => [
85
- k(d.$slots, "title")
87
+ fn: s(() => [
88
+ V(f.$slots, "title")
86
89
  ]),
87
90
  key: "0"
88
91
  } : e.tooltip ? {
89
92
  name: "title",
90
- fn: c(() => [
93
+ fn: s(() => [
91
94
  a("div", {
92
- class: o(t(l)("tooltip"))
95
+ class: l(t(o)("tooltip"))
93
96
  }, [
94
- t(s)(e.major) ? u("", !0) : (i(), r("div", {
97
+ t(c)(e.major) ? u("", !0) : (n(), i("div", {
95
98
  key: 0,
96
- class: o(t(l)("tooltip-item"))
99
+ class: l(t(o)("tooltip-item"))
97
100
  }, [
98
101
  a("span", {
99
- class: o(t(l)("tooltip-label"))
100
- }, n(e.convertValue(e.major)), 3)
102
+ class: l(t(o)("tooltip-label"))
103
+ }, r(e.convertValue(e.major)), 3)
101
104
  ], 2)),
102
- t(s)(e.minor) ? u("", !0) : (i(), r("div", {
105
+ t(c)(e.minor) ? u("", !0) : (n(), i("div", {
103
106
  key: 1,
104
- class: o(t(l)("tooltip-item"))
107
+ class: l(t(o)("tooltip-item"))
105
108
  }, [
106
109
  a("span", {
107
- class: o(t(l)("tooltip-label"))
108
- }, n(e.convertValue(e.minor)), 3)
110
+ class: l(t(o)("tooltip-label"))
111
+ }, r(e.convertValue(e.minor)), 3)
109
112
  ], 2))
110
113
  ], 2)
111
114
  ]),
@@ -115,5 +118,5 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
115
118
  }
116
119
  });
117
120
  export {
118
- h as default
121
+ E as default
119
122
  };
@@ -1,4 +1,4 @@
1
- import { StyleValue, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ApLadderLabelValue } from '../interface';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -19,27 +19,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
19
19
  default: string;
20
20
  };
21
21
  labelStyles: {
22
- type: PropType<StyleValue>;
22
+ type: PropType<CSSProperties>;
23
23
  default: () => {};
24
24
  };
25
25
  valueStyles: {
26
- type: PropType<StyleValue>;
26
+ type: PropType<CSSProperties>;
27
27
  default: () => {};
28
28
  };
29
29
  linkStyles: {
30
- type: PropType<StyleValue>;
30
+ type: PropType<CSSProperties>;
31
31
  default: () => {};
32
32
  };
33
33
  unitStyles: {
34
- type: PropType<StyleValue>;
34
+ type: PropType<CSSProperties>;
35
35
  default: () => {};
36
36
  };
37
37
  tooltipLabelStyles: {
38
- type: PropType<StyleValue>;
38
+ type: PropType<CSSProperties>;
39
39
  default: () => {};
40
40
  };
41
41
  tooltipValueStyles: {
42
- type: PropType<StyleValue>;
42
+ type: PropType<CSSProperties>;
43
43
  default: () => {};
44
44
  };
45
45
  tooltipProps: {
@@ -63,27 +63,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
63
63
  default: string;
64
64
  };
65
65
  labelStyles: {
66
- type: PropType<StyleValue>;
66
+ type: PropType<CSSProperties>;
67
67
  default: () => {};
68
68
  };
69
69
  valueStyles: {
70
- type: PropType<StyleValue>;
70
+ type: PropType<CSSProperties>;
71
71
  default: () => {};
72
72
  };
73
73
  linkStyles: {
74
- type: PropType<StyleValue>;
74
+ type: PropType<CSSProperties>;
75
75
  default: () => {};
76
76
  };
77
77
  unitStyles: {
78
- type: PropType<StyleValue>;
78
+ type: PropType<CSSProperties>;
79
79
  default: () => {};
80
80
  };
81
81
  tooltipLabelStyles: {
82
- type: PropType<StyleValue>;
82
+ type: PropType<CSSProperties>;
83
83
  default: () => {};
84
84
  };
85
85
  tooltipValueStyles: {
86
- type: PropType<StyleValue>;
86
+ type: PropType<CSSProperties>;
87
87
  default: () => {};
88
88
  };
89
89
  tooltipProps: {
@@ -102,12 +102,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
102
102
  labelAlign: string;
103
103
  tooltipProps: Record<string, any>;
104
104
  labelValues: ApLadderLabelValue[];
105
- labelStyles: StyleValue;
106
- valueStyles: StyleValue;
107
- linkStyles: StyleValue;
108
- unitStyles: StyleValue;
109
- tooltipLabelStyles: StyleValue;
110
- tooltipValueStyles: StyleValue;
105
+ labelStyles: CSSProperties;
106
+ valueStyles: CSSProperties;
107
+ linkStyles: CSSProperties;
108
+ unitStyles: CSSProperties;
109
+ tooltipLabelStyles: CSSProperties;
110
+ tooltipValueStyles: CSSProperties;
111
111
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
112
112
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
113
113
  export default _default;
@@ -1,10 +1,9 @@
1
- import { defineComponent as w, ref as x, isVNode as g, h as C, onMounted as A, openBlock as r, createBlock as F, unref as l, normalizeProps as R, guardReactiveProps as B, createSlots as M, withCtx as k, createElementVNode as y, normalizeClass as c, createElementBlock as n, Fragment as p, renderList as O, normalizeStyle as a, createTextVNode as $, toDisplayString as d, createCommentVNode as f, createVNode as z, withModifiers as E, renderSlot as G } from "vue";
2
- import { Tooltip as T } from "@aplus-frontend/antdv";
1
+ import { defineComponent as L, isVNode as g, h as C, ref as P, createBlock as h, openBlock as o, unref as i, normalizeProps as x, guardReactiveProps as A, createSlots as B, withCtx as v, createElementVNode as d, normalizeClass as s, createElementBlock as n, Fragment as f, renderList as j, createCommentVNode as p, normalizeStyle as u, createTextVNode as O, toDisplayString as y, withModifiers as w, renderSlot as z, createVNode as M } from "vue";
2
+ import { Tooltip as R } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
- import { locales as b } from "../interface.mjs";
5
- import { isNull as D } from "../utils.mjs";
6
- import { useNamespace as q } from "../../../config-provider/hooks/use-namespace.mjs";
7
- const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _ = /* @__PURE__ */ w({
4
+ import { locales as Y } from "../interface.mjs";
5
+ import { useNamespace as b } from "../../../config-provider/hooks/use-namespace.mjs";
6
+ const E = { key: 0 }, G = ["href", "onClick"], T = { key: 0 }, D = { key: 0 }, Q = /* @__PURE__ */ L({
8
7
  name: "ApLadderValueGroupMode",
9
8
  __name: "ValueGroupMode",
10
9
  props: {
@@ -50,121 +49,107 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
50
49
  }
51
50
  },
52
51
  emits: ["update:valueRefs", "handleClick"],
53
- setup(i, { emit: j }) {
54
- const v = j, { e: s } = q("ap-ladder"), S = x([]), N = (t) => g(t) || typeof t == "function", L = (t) => {
55
- const { value: o, style: e, ref: u } = t;
56
- return g(o) ? C(o, {
57
- ref: u,
52
+ setup(l, { emit: N }) {
53
+ const $ = N, { e: c } = b("ap-ladder"), m = (e) => g(e) || typeof e == "function", S = (e) => {
54
+ const { value: r, style: t } = e;
55
+ return g(r) ? C(r, {
56
+ style: t
57
+ }) : typeof r == "function" ? C(r(), {
58
+ ref: P,
58
59
  style: {
59
- ...e,
60
- display: "inline-block"
61
- }
62
- }) : typeof o == "function" ? C(o(), {
63
- ref: u,
64
- style: {
65
- ...e,
66
- display: "inline-block"
60
+ ...t
67
61
  }
68
62
  }) : null;
69
- }, m = (t, o = {}) => {
70
- const e = {
71
- rawValue: o.rawValue,
72
- precision: o.precision === void 0 ? 2 : o.precision,
73
- thousand: o.thousand,
74
- thousandSeparator: o.thousandSeparator || ",",
75
- currency: o.currency,
76
- percent: o.percent
77
- };
78
- if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
63
+ }, k = (e, r = {
64
+ rawValue: !0,
65
+ precision: 2,
66
+ thousand: !0,
67
+ thousandSeparator: ",",
68
+ currency: "CNY",
69
+ percent: !1
70
+ }) => {
71
+ if (Object.prototype.toString.call(e) === "[object Null]" || Object.prototype.toString.call(e) === "[object Undefined]" || Object.prototype.toString.call(e) === "[object Object]" || Object.prototype.toString.call(e) === "[object Function]")
79
72
  return "--";
80
- if (typeof t == "boolean")
81
- return t;
82
- if (D(t))
83
- return "--";
84
- if (e.rawValue)
85
- return t;
86
- if (typeof t == "number") {
87
- if (e.percent)
88
- return `${t.toFixed(e.precision)}%`;
89
- if (e.currency)
90
- return t.toLocaleString(b[e.currency], {
91
- style: "currency",
92
- currency: e.currency
93
- });
94
- if (e.thousand) {
95
- const [u, h] = t.toFixed(e.precision).split(".");
96
- return `${u.replace(
73
+ if (typeof e == "number") {
74
+ if (r.percent)
75
+ return `${e.toFixed(r.precision)}%`;
76
+ if (r.currency)
77
+ return e.toLocaleString(
78
+ Y[r.currency ? r.currency : "CNY"],
79
+ {
80
+ style: "currency",
81
+ currency: r.currency ? r.currency : "CNY"
82
+ }
83
+ );
84
+ if (r.thousand) {
85
+ const [t, a] = e.toFixed(r.precision ? r.precision : 2).split(".");
86
+ return `${t.replace(
97
87
  /(\d)(?=(\d{3})+(?!\d))/g,
98
- `$1${e.thousandSeparator}`
99
- )}.${h}`;
88
+ `$1${r.thousandSeparator ? r.thousandSeparator : ","}`
89
+ )}.${a}`;
100
90
  }
101
- return t.toFixed(e.precision);
91
+ return e.toFixed(r.precision ? r.precision : 2);
102
92
  }
103
- return t;
104
- }, P = (t) => {
105
- v("handleClick", t);
93
+ return e;
94
+ }, F = (e) => {
95
+ $("handleClick", e);
106
96
  };
107
- return A(() => {
108
- S.value.length > 0 && v("update:valueRefs", S.value);
109
- }), (t, o) => (r(), F(l(T), R(B(i.tooltipProps)), M({
110
- default: k(() => [
111
- y("div", {
112
- class: c(l(s)("value-group"))
97
+ return (e, r) => (o(), h(i(R), x(A(l.tooltipProps)), B({
98
+ default: v(() => [
99
+ d("div", {
100
+ class: s(i(c)("value-group"))
113
101
  }, [
114
- (r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
115
- key: u,
116
- class: c(l(s)("value-group-item"))
102
+ (o(!0), n(f, null, j(l.labelValues, (t, a) => (o(), n("div", {
103
+ key: a,
104
+ class: s(i(c)("value-group-item"))
117
105
  }, [
118
- e.label ? (r(), n("div", {
106
+ t.label ? (o(), n("div", {
119
107
  key: 0,
120
- class: c([
121
- l(s)("value-group-label"),
122
- i.labelAlign && `label-align-${i.labelAlign}`
108
+ class: s([
109
+ i(c)("value-group-label"),
110
+ l.labelAlign && `label-align-${l.labelAlign}`
123
111
  ]),
124
- style: a(e.labelStyles)
112
+ style: u(t.labelStyles)
125
113
  }, [
126
- $(d(e.label), 1),
127
- e.label ? (r(), n("span", H, ":")) : f("", !0)
128
- ], 6)) : f("", !0),
129
- y("div", {
130
- class: c(l(s)("value-group-value"))
114
+ O(y(t.label), 1),
115
+ t.label ? (o(), n("span", E, ":")) : p("", !0)
116
+ ], 6)) : p("", !0),
117
+ d("div", {
118
+ class: s(i(c)("value-group-value"))
131
119
  }, [
132
- N(e.value) ? (r(), n("div", I, [
133
- z(L, {
134
- value: e.value,
135
- style: a(
136
- (e.valueColor, e.valueStyles)
137
- )
138
- }, null, 8, ["value", "style"])
139
- ])) : (r(), n(p, { key: 1 }, [
140
- e.link ? (r(), n("a", {
120
+ m(t.value) ? (o(), h(S, {
121
+ key: 0,
122
+ value: t.value,
123
+ style: u([t.labelColor, t.valueStyles])
124
+ }, null, 8, ["value", "style"])) : (o(), n(f, { key: 1 }, [
125
+ t.link ? (o(), n("a", {
141
126
  key: 0,
142
- href: e.link,
127
+ href: t.link,
143
128
  target: "_blank",
144
- class: c(l(s)("value-group-link")),
145
- style: a([
146
- i.linkStyles,
147
- e.linkStyles,
148
- e.linkColor ? { color: e.linkColor } : void 0
129
+ class: s(i(c)("value-group-link")),
130
+ style: u([
131
+ l.linkStyles,
132
+ t.linkStyles,
133
+ t.linkColor ? { color: t.linkColor } : void 0
149
134
  ]),
150
- onClick: E((h) => P(e), ["prevent"])
151
- }, d(m(e.value, { ...e })), 15, J)) : (r(), n(p, { key: 1 }, [
152
- y("span", {
153
- style: a([
154
- i.valueStyles,
155
- e.valueStyles,
156
- e.valueColor ? { color: e.valueColor } : void 0
135
+ onClick: w((U) => F(t), ["prevent"])
136
+ }, y(k(t.value, { ...t })), 15, G)) : (o(), n(f, { key: 1 }, [
137
+ d("span", {
138
+ style: u([
139
+ l.valueStyles,
140
+ t.valueStyles,
141
+ t.valueColor ? { color: t.valueColor } : void 0
157
142
  ])
158
- }, d(m(e.value, { ...e })), 5),
159
- e.unit ? (r(), n("span", {
143
+ }, y(k(t.value, { ...t })), 5),
144
+ t.unit ? (o(), n("span", {
160
145
  key: 0,
161
- class: c(l(s)("value-group-unit")),
162
- style: a([
163
- i.unitStyles,
164
- e.unitStyles,
165
- e.unitColor ? { color: e.unitColor } : void 0
146
+ class: s(i(c)("value-group-unit")),
147
+ style: u([
148
+ l.unitStyles,
149
+ t.unitStyles,
150
+ t.unitColor ? { color: t.unitColor } : void 0
166
151
  ])
167
- }, d(e.unit), 7)) : f("", !0)
152
+ }, y(t.unit), 7)) : p("", !0)
168
153
  ], 64))
169
154
  ], 64))
170
155
  ], 2)
@@ -173,33 +158,44 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
173
158
  ]),
174
159
  _: 2
175
160
  }, [
176
- t.$slots.title ? {
161
+ e.$slots.title ? {
177
162
  name: "title",
178
- fn: k(() => [
179
- G(t.$slots, "title")
163
+ fn: v(() => [
164
+ z(e.$slots, "title")
180
165
  ]),
181
166
  key: "0"
182
- } : i.tooltip ? {
167
+ } : l.tooltip ? {
183
168
  name: "title",
184
- fn: k(() => [
185
- y("div", {
186
- class: c(l(s)("tooltip"))
169
+ fn: v(() => [
170
+ d("div", {
171
+ class: s(i(c)("tooltip"))
187
172
  }, [
188
- (r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
189
- key: u,
190
- class: c(l(s)("tooltip-item"))
173
+ (o(!0), n(f, null, j(l.labelValues, (t, a) => (o(), n("div", {
174
+ key: a,
175
+ class: s(i(c)("tooltip-item"))
191
176
  }, [
192
- y("span", {
193
- class: c(l(s)("tooltip-label")),
194
- style: a(i.tooltipLabelStyles)
195
- }, d(e.label), 7),
196
- y("span", {
197
- class: c(l(s)("tooltip-value")),
198
- style: a(i.tooltipValueStyles)
177
+ d("span", {
178
+ class: s(i(c)("tooltip-label")),
179
+ style: u(l.tooltipLabelStyles)
180
+ }, y(t.label ? t.label : "--") + ": ", 7),
181
+ m(t.value) ? (o(), n("span", {
182
+ key: 0,
183
+ class: s(i(c)("tooltip-value")),
184
+ style: u(l.tooltipValueStyles)
185
+ }, [
186
+ M(S, {
187
+ value: t.value,
188
+ style: u([t.tooltipValueStyles])
189
+ }, null, 8, ["value", "style"]),
190
+ t.unit ? (o(), n("span", T, y(t.unit), 1)) : p("", !0)
191
+ ], 6)) : (o(), n("span", {
192
+ key: 1,
193
+ class: s(i(c)("tooltip-value")),
194
+ style: u(l.tooltipValueStyles)
199
195
  }, [
200
- $(d(m(e.value)) + " ", 1),
201
- e.unit ? (r(), n("span", K, d(e.unit), 1)) : f("", !0)
202
- ], 6)
196
+ O(y(k(t.value, { ...t })) + " ", 1),
197
+ t.unit ? (o(), n("span", D, y(t.unit), 1)) : p("", !0)
198
+ ], 6))
203
199
  ], 2))), 128))
204
200
  ], 2)
205
201
  ]),
@@ -209,5 +205,5 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
209
205
  }
210
206
  });
211
207
  export {
212
- _ as default
208
+ Q as default
213
209
  };
@@ -90,9 +90,7 @@ declare const ApLadder: {
90
90
  labelValues: Array< ApLadderLabelValue>;
91
91
  majorColor: string;
92
92
  minorColor: string;
93
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
94
- wrapperRef: HTMLDivElement;
95
- }, HTMLDivElement, ComponentProvideOptions, {
93
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
96
94
  P: {};
97
95
  B: {};
98
96
  D: {};