@aplus-frontend/ui 0.4.6 → 0.4.8

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 (72) hide show
  1. package/es/src/ap-field/date-range/index.vue.mjs +46 -42
  2. package/es/src/ap-field/hooks/use-default-presets.d.ts +11 -0
  3. package/es/src/ap-field/hooks/use-default-presets.mjs +15 -0
  4. package/es/src/ap-field/interface.d.ts +2 -1
  5. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/slider/index.vue.d.ts +1 -1
  7. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  8. package/es/src/ap-table/ap-table.vue2.mjs +87 -85
  9. package/es/src/ap-table/components/dynamic-component/diff.d.ts +2 -0
  10. package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +4 -0
  11. package/es/src/ap-table/components/dynamic-component/index.vue.mjs +4 -0
  12. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +14 -0
  13. package/es/src/ap-table/components/interface.d.ts +3 -0
  14. package/es/src/ap-table/constants.d.ts +7 -7
  15. package/es/src/ap-table/utils.d.ts +1551 -1541
  16. package/es/src/ap-table/utils.mjs +115 -104
  17. package/es/src/ap-upload/components/Picture.vue2.mjs +59 -55
  18. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
  19. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +220 -108
  20. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
  21. package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +4 -0
  22. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +35 -0
  23. package/es/src/business/ap-ladder/index.d.ts +31 -4
  24. package/es/src/business/ap-ladder/interface.d.ts +124 -4
  25. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  26. package/es/src/business/ap-size-input/index.d.ts +3 -3
  27. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +33 -25
  28. package/es/src/business/batch-input-group/form-item.vue.d.ts +0 -1
  29. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -39
  30. package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
  31. package/es/src/locale/lang/en.mjs +10 -1
  32. package/es/src/locale/lang/zh-cn.mjs +10 -1
  33. package/es/src/utils/data-range-persets.d.ts +87 -0
  34. package/es/src/utils/data-range-persets.mjs +107 -0
  35. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  36. package/lib/src/ap-field/hooks/use-default-presets.d.ts +11 -0
  37. package/lib/src/ap-field/hooks/use-default-presets.js +1 -0
  38. package/lib/src/ap-field/interface.d.ts +2 -1
  39. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  40. package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
  41. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  42. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  43. package/lib/src/ap-table/components/dynamic-component/diff.d.ts +2 -0
  44. package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +4 -0
  45. package/lib/src/ap-table/components/dynamic-component/index.vue.js +1 -0
  46. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -0
  47. package/lib/src/ap-table/components/interface.d.ts +3 -0
  48. package/lib/src/ap-table/constants.d.ts +7 -7
  49. package/lib/src/ap-table/utils.d.ts +1551 -1541
  50. package/lib/src/ap-table/utils.js +1 -1
  51. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  52. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
  53. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  54. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
  55. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +1 -0
  56. package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +1 -0
  57. package/lib/src/business/ap-ladder/index.d.ts +31 -4
  58. package/lib/src/business/ap-ladder/interface.d.ts +124 -4
  59. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  60. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  61. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  62. package/lib/src/business/batch-input-group/form-item.vue.d.ts +0 -1
  63. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  64. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
  65. package/lib/src/locale/lang/en.js +1 -1
  66. package/lib/src/locale/lang/zh-cn.js +1 -1
  67. package/lib/src/utils/data-range-persets.d.ts +87 -0
  68. package/lib/src/utils/data-range-persets.js +1 -0
  69. package/package.json +2 -2
  70. package/theme/ap-ladder/ap-ladder.css +10 -1
  71. package/theme/ap-ladder/ap-ladder.less +10 -1
  72. package/theme/index.css +10 -1
@@ -1,20 +1,29 @@
1
- import { defineComponent as q, useSlots as H, ref as R, computed as h, unref as l, onMounted as J, openBlock as t, createElementBlock as r, normalizeClass as u, createBlock as $, normalizeProps as w, mergeProps as E, createSlots as M, withCtx as b, Fragment as y, createElementVNode as p, normalizeStyle as m, toDisplayString as i, renderSlot as N, createCommentVNode as f, renderList as z, createTextVNode as K } from "vue";
2
- import { Tooltip as O } from "@aplus-frontend/antdv";
1
+ import { defineComponent as K, useSlots as Q, ref as U, computed as g, unref as o, onMounted as X, openBlock as l, createElementBlock as r, normalizeClass as a, createBlock as y, normalizeProps as E, mergeProps as C, createSlots as N, withCtx as f, Fragment as k, createElementVNode as m, normalizeStyle as d, toDisplayString as n, renderSlot as z, createCommentVNode as S, renderList as T, createTextVNode as Y, isVNode as P, resolveDynamicComponent as b, createVNode as V } from "vue";
2
+ import { Tooltip as j } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { locales as Q } from "./interface.mjs";
5
- import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
6
- import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
7
- const Y = { key: 1 }, Z = { key: 0 }, x = { key: 1 }, ee = { key: 0 }, oe = ["onClick"], te = { key: 0 }, re = { key: 1 }, le = { key: 0 }, se = { key: 1 }, pe = /* @__PURE__ */ q({
4
+ import { locales as Z } from "./interface.mjs";
5
+ import "./HelpMessageIcon.vue.mjs";
6
+ import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as ee } from "../../config-provider/hooks/use-global-config.mjs";
8
+ import O from "./HelpMessageIcon.vue2.mjs";
9
+ const te = { key: 1 }, le = { key: 0 }, oe = { key: 1 }, re = { key: 0 }, ie = ["onClick"], se = { key: 0 }, ne = { key: 1 }, ke = /* @__PURE__ */ K({
8
10
  name: "ApLadder",
9
11
  __name: "ApLadder",
10
12
  props: {
11
13
  major: { default: "" },
12
14
  minor: { default: "" },
13
15
  majorColor: { default: "" },
16
+ majorStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
14
17
  minorColor: { default: "" },
18
+ minorStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
15
19
  layout: { default: "vertical" },
16
20
  tooltip: { type: Boolean, default: !0 },
17
21
  labelValues: { default: () => [] },
22
+ labelAlign: { default: "right" },
23
+ labelStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
24
+ valueStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
25
+ linkStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
26
+ unitStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
18
27
  tooltipProps: { default: () => ({
19
28
  title: void 0,
20
29
  align: {},
@@ -31,145 +40,248 @@ const Y = { key: 1 }, Z = { key: 0 }, x = { key: 1 }, ee = { key: 0 }, oe = ["on
31
40
  overlayInnerStyle: {},
32
41
  placement: "top",
33
42
  trigger: "hover"
34
- }) }
43
+ }) },
44
+ tooltipLabelStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
45
+ tooltipValueStyles: { type: [Boolean, null, String, Object, Array], default: void 0 }
35
46
  },
36
- setup(A) {
37
- const v = H(), s = A, { b: B, e: n, m: L } = U("ap-ladder"), F = X("uiMode", "aplus"), _ = `ap-ladder-${Math.floor(Math.random() * 1e7)}`, W = n("ellipsis"), k = R(!1), D = h(() => s.labelValues.length === 0), T = h(() => s.labelValues.length > 0), g = h(() => s.majorColor ? {
38
- color: `${s.majorColor}`
39
- } : {}), S = h(() => s.minorColor ? {
40
- color: `${s.minorColor}`
41
- } : {}), C = (o) => o == null || typeof o == "string" && o.trim() === "", c = (o, a = {}) => {
47
+ setup(D) {
48
+ const M = Q(), i = D, { b: F, e: s, m: W } = x("ap-ladder"), G = ee("uiMode", "aplus"), $ = `ap-ladder-${Math.floor(Math.random() * 1e7)}`, I = s("ellipsis"), h = U(!1), q = g(() => i.labelValues.length === 0), H = g(() => i.labelValues.length > 0), B = g(() => i.majorColor ? {
49
+ color: `${i.majorColor}`
50
+ } : {}), w = g(() => i.minorColor ? {
51
+ color: `${i.minorColor}`
52
+ } : {}), A = (t) => t == null || typeof t == "string" && t.trim() === "", c = (t, u = {}) => {
42
53
  const e = {
43
- rawValue: a.rawValue,
44
- precision: a.precision === void 0 ? 2 : a.precision,
45
- thousand: a.thousand,
46
- thousandSeparator: a.thousandSeparator || ",",
47
- currency: a.currency,
48
- percent: a.percent
54
+ rawValue: u.rawValue,
55
+ precision: u.precision === void 0 ? 2 : u.precision,
56
+ thousand: u.thousand,
57
+ thousandSeparator: u.thousandSeparator || ",",
58
+ currency: u.currency,
59
+ percent: u.percent
49
60
  };
50
- return C(o) ? "--" : e.rawValue ? o : typeof o == "number" ? e.percent ? `${o.toFixed(e.precision)}%` : e.currency ? o.toLocaleString(Q[e.currency], {
51
- style: "currency",
52
- currency: e.currency
53
- }) : e.thousand ? o.toFixed(e.precision).replace(
54
- /(\d)(?=(\d{3})+(?!\d))/g,
55
- `$1${e.thousandSeparator}`
56
- ) : o.toFixed(e.precision) : o;
57
- }, G = () => {
58
- const o = document.getElementById(_);
59
- if (!o)
61
+ if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
62
+ return "--";
63
+ if (typeof t == "boolean")
64
+ return t;
65
+ if (A(t))
66
+ return "--";
67
+ if (e.rawValue)
68
+ return t;
69
+ if (typeof t == "number") {
70
+ if (e.percent)
71
+ return `${t.toFixed(e.precision)}%`;
72
+ if (e.currency)
73
+ return t.toLocaleString(Z[e.currency], {
74
+ style: "currency",
75
+ currency: e.currency
76
+ });
77
+ if (e.thousand) {
78
+ const [p, v] = t.toFixed(e.precision).split(".");
79
+ return `${p.replace(
80
+ /(\d)(?=(\d{3})+(?!\d))/g,
81
+ `$1${e.thousandSeparator}`
82
+ )}.${v}`;
83
+ }
84
+ return t.toFixed(e.precision);
85
+ }
86
+ return t;
87
+ }, R = () => {
88
+ const t = document.getElementById($);
89
+ if (!t)
60
90
  return;
61
- const a = o.querySelectorAll(`.${W}`);
62
- new ResizeObserver((d) => {
63
- d.forEach((j) => {
64
- j.target === o && (k.value = !1, a.forEach((P) => {
65
- P.clientWidth < P.scrollWidth && (k.value = !0);
91
+ const u = t.querySelectorAll(`.${I}`);
92
+ new ResizeObserver((p) => {
93
+ p.forEach((v) => {
94
+ v.target === t && (h.value = !1, u.forEach((_) => {
95
+ _.clientWidth < _.scrollWidth && (h.value = !0);
66
96
  }));
67
97
  });
68
- }).observe(o), k.value = !1, a.forEach((d) => {
69
- d.clientWidth < d.scrollWidth && (k.value = !0);
98
+ }).observe(t), h.value = !1, u.forEach((p) => {
99
+ p.clientWidth < p.scrollWidth && (h.value = !0);
70
100
  });
71
- }, V = h(() => v.title ? !0 : s.tooltip && l(k)), I = (o) => {
72
- o && window.open(o, "_blank");
101
+ }, L = g(() => M.title ? !0 : i.tooltip && o(h)), J = (t) => {
102
+ t.link && window.open(t.link, "_blank"), typeof t.handleClickLink == "function" && t.handleClickLink();
73
103
  };
74
- return J(() => {
75
- G();
76
- }), (o, a) => (t(), r("div", {
77
- id: _,
78
- class: u([l(B)(), `${l(L)(l(F))}`])
104
+ return X(() => {
105
+ R();
106
+ }), (t, u) => (l(), r("div", {
107
+ id: $,
108
+ class: a([o(F)(), `${o(W)(o(G))}`])
79
109
  }, [
80
- D.value ? (t(), $(l(O), w(E({ key: 0 }, { ...s.tooltipProps })), M({
81
- default: b(() => [
82
- !C(o.major) || !C(o.minor) ? (t(), r(y, { key: 0 }, [
83
- s.layout === "vertical" ? (t(), r(y, { key: 0 }, [
84
- p("div", {
85
- class: u([l(n)("major"), l(n)("ellipsis")]),
86
- style: m(g.value)
87
- }, i(c(o.major)), 7),
88
- p("div", {
89
- class: u([l(n)("minor"), l(n)("ellipsis")]),
90
- style: m(S.value)
91
- }, i(c(o.minor)), 7)
92
- ], 64)) : (t(), r("div", {
110
+ q.value ? (l(), y(o(j), E(C({ key: 0 }, { ...i.tooltipProps })), N({
111
+ default: f(() => [
112
+ !A(t.major) || !A(t.minor) ? (l(), r(k, { key: 0 }, [
113
+ i.layout === "vertical" ? (l(), r(k, { key: 0 }, [
114
+ m("div", {
115
+ class: a([o(s)("major"), o(s)("ellipsis")]),
116
+ style: d([t.majorStyles, B.value])
117
+ }, n(c(t.major)), 7),
118
+ m("div", {
119
+ class: a([o(s)("minor"), o(s)("ellipsis")]),
120
+ style: d([t.minorStyles, w.value])
121
+ }, n(c(t.minor)), 7)
122
+ ], 64)) : (l(), r("div", {
93
123
  key: 1,
94
- class: u(l(n)("ellipsis"))
124
+ class: a(o(s)("ellipsis"))
95
125
  }, [
96
- p("span", {
97
- class: u([l(n)("major")]),
98
- style: m(g.value)
99
- }, i(c(o.major)), 7),
100
- p("span", {
101
- class: u([l(n)("minor")]),
102
- style: m(S.value)
103
- }, i(c(o.minor)), 7)
126
+ m("span", {
127
+ class: a([o(s)("major")]),
128
+ style: d([t.majorStyles, B.value])
129
+ }, n(c(t.major)), 7),
130
+ m("span", {
131
+ class: a([o(s)("minor")]),
132
+ style: d([t.minorStyles, w.value])
133
+ }, n(c(t.minor)), 7)
104
134
  ], 2))
105
- ], 64)) : (t(), r("div", Y, i("--")))
135
+ ], 64)) : (l(), r("div", te, n("--")))
106
136
  ]),
107
137
  _: 2
108
138
  }, [
109
- V.value ? {
139
+ L.value ? {
110
140
  name: "title",
111
- fn: b(() => [
112
- v.title ? N(o.$slots, "title", { key: 0 }) : (t(), r(y, { key: 1 }, [
113
- s.tooltipProps.title ? (t(), r("div", Z, i(s.tooltipProps.title), 1)) : (t(), r("div", x, [
114
- p("div", null, i(c(o.major)), 1),
115
- p("div", null, i(c(o.minor)), 1)
141
+ fn: f(() => [
142
+ M.title ? z(t.$slots, "title", { key: 0 }) : (l(), r(k, { key: 1 }, [
143
+ i.tooltipProps.title ? (l(), r("div", le, n(i.tooltipProps.title), 1)) : (l(), r("div", oe, [
144
+ m("div", null, n(c(t.major)), 1),
145
+ m("div", null, n(c(t.minor)), 1)
116
146
  ]))
117
147
  ], 64))
118
148
  ]),
119
149
  key: "0"
120
150
  } : void 0
121
- ]), 1040)) : f("", !0),
122
- T.value ? (t(), $(l(O), w(E({ key: 1 }, { ...s.tooltipProps })), M({
123
- default: b(() => [
124
- (t(!0), r(y, null, z(s.labelValues, (e, d) => (t(), r("div", {
125
- key: d,
126
- class: u([l(n)("ellipsis")])
151
+ ]), 1040)) : S("", !0),
152
+ H.value ? (l(), y(o(j), E(C({ key: 1 }, { ...i.tooltipProps })), N({
153
+ default: f(() => [
154
+ (l(!0), r(k, null, T(i.labelValues, (e, p) => (l(), r("div", {
155
+ key: p,
156
+ class: a([o(s)("cross-bar")])
127
157
  }, [
128
- p("span", {
129
- class: u(l(n)("label")),
130
- style: m(e.labelColor ? { color: e.labelColor } : void 0)
158
+ m("div", {
159
+ class: a([o(s)("ellipsis")])
131
160
  }, [
132
- K(i(e.label), 1),
133
- e.label ? (t(), r("span", ee, ":")) : f("", !0)
134
- ], 6),
135
- C(e.link) ? (t(), r("span", {
136
- key: 1,
137
- class: u(l(n)("value")),
138
- style: m(e.valueColor ? { color: e.valueColor } : void 0)
139
- }, i(c(e.value, { ...e })), 7)) : (t(), r("span", {
161
+ m("span", {
162
+ class: a(o(s)("label")),
163
+ style: d([
164
+ t.labelStyles,
165
+ e.labelStyles,
166
+ e.labelColor ? { color: e.labelColor } : void 0,
167
+ { textAlign: e.labelAlign || t.labelAlign }
168
+ ])
169
+ }, [
170
+ Y(n(e.label), 1),
171
+ e.label ? (l(), r("span", re, ":")) : S("", !0)
172
+ ], 6),
173
+ P(e.value) ? (l(), y(b(e.value), {
174
+ key: 0,
175
+ style: { display: "inline-block" }
176
+ })) : typeof e.value == "function" ? (l(), y(b(e.value()), {
177
+ key: 1,
178
+ style: { display: "inline-block" }
179
+ })) : (l(), r(k, { key: 2 }, [
180
+ A(e.link) ? (l(), r("span", {
181
+ key: 1,
182
+ class: a(o(s)("value")),
183
+ style: d([
184
+ t.valueStyles,
185
+ e.valueStyles,
186
+ e.valueColor ? { color: e.valueColor } : void 0
187
+ ])
188
+ }, n(c(e.value, { ...e })), 7)) : (l(), r("span", {
189
+ key: 0,
190
+ class: a(o(s)("link")),
191
+ style: d([
192
+ t.linkStyles,
193
+ e.linkStyles,
194
+ e.linkColor ? { color: e.linkColor } : void 0
195
+ ]),
196
+ onClick: (v) => J(e)
197
+ }, n(c(e.value, { ...e })), 15, ie))
198
+ ], 64)),
199
+ e.unit ? (l(), r("span", {
200
+ key: 3,
201
+ class: a(o(s)("unit")),
202
+ style: d([
203
+ t.unitStyles,
204
+ e.unitStyles,
205
+ e.unitColor ? { color: e.unitColor } : void 0
206
+ ])
207
+ }, n(e.unit), 7)) : S("", !0)
208
+ ], 2),
209
+ e.helpMessage ? (l(), r("div", {
140
210
  key: 0,
141
- class: u(l(n)("link")),
142
- style: m(e.linkColor ? { color: e.linkColor } : void 0),
143
- onClick: (j) => I(e.link)
144
- }, i(c(e.value, { ...e })), 15, oe)),
145
- e.unit ? (t(), r("span", {
146
- key: 2,
147
- class: u(l(n)("unit")),
148
- style: m(e.unitColor ? { color: e.unitColor } : void 0)
149
- }, i(e.unit), 7)) : f("", !0)
211
+ class: a([o(s)("help-message")])
212
+ }, [
213
+ P(e.helpMessage) ? (l(), y(o(j), C({
214
+ key: 0,
215
+ ref_for: !0
216
+ }, { ...e.helpMessageTooltipProps }), {
217
+ title: f(() => [
218
+ (l(), y(b(e.helpMessage)))
219
+ ]),
220
+ default: f(() => [
221
+ V(O, { lv: e }, null, 8, ["lv"])
222
+ ]),
223
+ _: 2
224
+ }, 1040)) : typeof e.helpMessage == "function" ? (l(), y(o(j), C({
225
+ key: 1,
226
+ ref_for: !0
227
+ }, { ...e.helpMessageTooltipProps }), {
228
+ title: f(() => [
229
+ (l(), y(b(e.helpMessage())))
230
+ ]),
231
+ default: f(() => [
232
+ V(O, { lv: e }, null, 8, ["lv"])
233
+ ]),
234
+ _: 2
235
+ }, 1040)) : (l(), y(o(j), C({
236
+ key: 2,
237
+ ref_for: !0
238
+ }, { ...e.helpMessageTooltipProps }, {
239
+ placement: "bottom",
240
+ title: e.helpMessage
241
+ }), {
242
+ default: f(() => [
243
+ V(O, { lv: e }, null, 8, ["lv"])
244
+ ]),
245
+ _: 2
246
+ }, 1040, ["title"]))
247
+ ], 2)) : S("", !0)
150
248
  ], 2))), 128))
151
249
  ]),
152
250
  _: 2
153
251
  }, [
154
- V.value ? {
252
+ L.value ? {
155
253
  name: "title",
156
- fn: b(() => [
157
- v.title ? N(o.$slots, "title", { key: 0 }) : (t(), r(y, { key: 1 }, [
158
- s.tooltipProps.title ? (t(), r("div", te, i(s.tooltipProps.title), 1)) : (t(), r("div", re, [
159
- (t(!0), r(y, null, z(s.labelValues, (e, d) => (t(), r("div", { key: d }, [
160
- e.label ? (t(), r("span", le, i(e.label), 1)) : f("", !0),
161
- e.label ? (t(), r("span", se, ":")) : f("", !0),
162
- p("span", null, i(c(e.value, { ...e })), 1)
254
+ fn: f(() => [
255
+ M.title ? z(t.$slots, "title", { key: 0 }) : (l(), r(k, { key: 1 }, [
256
+ i.tooltipProps.title ? (l(), r("div", se, n(i.tooltipProps.title), 1)) : (l(), r("div", ne, [
257
+ (l(!0), r(k, null, T(i.labelValues, (e, p) => (l(), r("div", {
258
+ key: p,
259
+ style: { "word-break": "break-all" }
260
+ }, [
261
+ e.label ? (l(), r("span", {
262
+ key: 0,
263
+ style: d([t.tooltipLabelStyles, e.tooltipLabelStyles])
264
+ }, n(e.label) + ":", 5)) : S("", !0),
265
+ P(e.value) ? (l(), y(b(e.value), {
266
+ key: 1,
267
+ style: { display: "inline-block" }
268
+ })) : typeof e.value == "function" ? (l(), y(b(e.value()), {
269
+ key: 2,
270
+ style: { display: "inline-block" }
271
+ })) : (l(), r("span", {
272
+ key: 3,
273
+ style: d([t.tooltipValueStyles, e.tooltipValueStyles])
274
+ }, n(c(e.value, { ...e })), 5))
163
275
  ]))), 128))
164
276
  ]))
165
277
  ], 64))
166
278
  ]),
167
279
  key: "0"
168
280
  } : void 0
169
- ]), 1040)) : f("", !0)
281
+ ]), 1040)) : S("", !0)
170
282
  ], 2));
171
283
  }
172
284
  });
173
285
  export {
174
- pe as default
286
+ ke as default
175
287
  };
@@ -0,0 +1,14 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApLadderLabelValue } from './interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ lv: {
5
+ type: PropType<ApLadderLabelValue>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
9
+ lv: {
10
+ type: PropType<ApLadderLabelValue>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
14
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./HelpMessageIcon.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as a, openBlock as l, createElementBlock as y, isVNode as i, createBlock as t, resolveDynamicComponent as o, normalizeStyle as s, unref as c } from "vue";
2
+ import { IconApAdFillWarn as r, IconApAdLineAnnotation as u } from "@aplus-frontend/icon";
3
+ const g = { style: { display: "inline-flex", "align-items": "center" } }, v = /* @__PURE__ */ a({
4
+ __name: "HelpMessageIcon",
5
+ props: {
6
+ lv: {
7
+ type: Object,
8
+ required: !0
9
+ }
10
+ },
11
+ setup(e) {
12
+ const n = {
13
+ color: "#FAAD14",
14
+ fontSize: "12px"
15
+ };
16
+ return (m, I) => (l(), y("span", g, [
17
+ i(e.lv.helpMessageIcon) ? (l(), t(o(e.lv.helpMessageIcon), {
18
+ key: 0,
19
+ style: s([n, e.lv.helpMessageIconStyles])
20
+ }, null, 8, ["style"])) : typeof e.lv.helpMessageIcon == "function" ? (l(), t(o(e.lv.helpMessageIcon()), {
21
+ key: 1,
22
+ style: s([n, e.lv.helpMessageIconStyles])
23
+ }, null, 8, ["style"])) : e.lv.helpMessageIcon === "warning" ? (l(), t(c(r), {
24
+ key: 2,
25
+ style: s([n, e.lv.helpMessageIconStyles])
26
+ }, null, 8, ["style"])) : (l(), t(c(u), {
27
+ key: 3,
28
+ style: s([n, e.lv.helpMessageIconStyles])
29
+ }, null, 8, ["style"]))
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ v as default
35
+ };
@@ -1,4 +1,4 @@
1
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, StyleValue, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
3
3
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
4
  import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
@@ -11,7 +11,8 @@ declare const ApLadder: {
11
11
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
12
12
  layout: "vertical" | "horizontal";
13
13
  tooltip: boolean;
14
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
14
+ labelAlign: "left" | "right";
15
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
15
16
  title: VueTypeValidableDef<any>;
16
17
  trigger: PropType< TriggerType | TriggerType[]>;
17
18
  open: {
@@ -76,8 +77,16 @@ declare const ApLadder: {
76
77
  major: string;
77
78
  minor: string;
78
79
  majorColor: string;
80
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
79
81
  minorColor: string;
82
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
80
83
  labelValues: Array< ApLadderLabelValue>;
84
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
85
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
86
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
87
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
88
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
89
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
81
90
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
82
91
  P: {};
83
92
  B: {};
@@ -88,7 +97,8 @@ declare const ApLadder: {
88
97
  }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
89
98
  layout: "vertical" | "horizontal";
90
99
  tooltip: boolean;
91
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
100
+ labelAlign: "left" | "right";
101
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
92
102
  title: VueTypeValidableDef<any>;
93
103
  trigger: PropType< TriggerType | TriggerType[]>;
94
104
  open: {
@@ -153,8 +163,16 @@ declare const ApLadder: {
153
163
  major: string;
154
164
  minor: string;
155
165
  majorColor: string;
166
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
156
167
  minorColor: string;
168
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
157
169
  labelValues: Array< ApLadderLabelValue>;
170
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
171
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
172
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
173
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
174
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
175
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
158
176
  }>;
159
177
  __isFragment?: never;
160
178
  __isTeleport?: never;
@@ -162,7 +180,8 @@ declare const ApLadder: {
162
180
  } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
163
181
  layout: "vertical" | "horizontal";
164
182
  tooltip: boolean;
165
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
183
+ labelAlign: "left" | "right";
184
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
166
185
  title: VueTypeValidableDef<any>;
167
186
  trigger: PropType< TriggerType | TriggerType[]>;
168
187
  open: {
@@ -227,8 +246,16 @@ declare const ApLadder: {
227
246
  major: string;
228
247
  minor: string;
229
248
  majorColor: string;
249
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
230
250
  minorColor: string;
251
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
231
252
  labelValues: Array< ApLadderLabelValue>;
253
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
254
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
255
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
256
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
257
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
258
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
232
259
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
233
260
  $slots: Readonly< ApLadderSlots> & ApLadderSlots;
234
261
  }) & ( Plugin & (new (...args: any[]) => {