@aplus-frontend/ui 0.4.7 → 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.
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-table/constants.d.ts +7 -7
- package/es/src/ap-table/utils.d.ts +4 -4
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +220 -108
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +4 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +35 -0
- package/es/src/business/ap-ladder/index.d.ts +31 -4
- package/es/src/business/ap-ladder/interface.d.ts +124 -4
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +33 -25
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-table/constants.d.ts +7 -7
- package/lib/src/ap-table/utils.d.ts +4 -4
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +1 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +31 -4
- package/lib/src/business/ap-ladder/interface.d.ts +124 -4
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/package.json +3 -3
- package/theme/ap-ladder/ap-ladder.css +10 -1
- package/theme/ap-ladder/ap-ladder.less +10 -1
- package/theme/index.css +10 -1
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
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
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
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(
|
|
37
|
-
const
|
|
38
|
-
color: `${
|
|
39
|
-
} : {}),
|
|
40
|
-
color: `${
|
|
41
|
-
} : {}),
|
|
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:
|
|
44
|
-
precision:
|
|
45
|
-
thousand:
|
|
46
|
-
thousandSeparator:
|
|
47
|
-
currency:
|
|
48
|
-
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
|
62
|
-
new ResizeObserver((
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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(
|
|
69
|
-
|
|
98
|
+
}).observe(t), h.value = !1, u.forEach((p) => {
|
|
99
|
+
p.clientWidth < p.scrollWidth && (h.value = !0);
|
|
70
100
|
});
|
|
71
|
-
},
|
|
72
|
-
|
|
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
|
|
75
|
-
|
|
76
|
-
}), (
|
|
77
|
-
id:
|
|
78
|
-
class:
|
|
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
|
-
|
|
81
|
-
default:
|
|
82
|
-
!
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
-
style:
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
class:
|
|
90
|
-
style:
|
|
91
|
-
},
|
|
92
|
-
], 64)) : (
|
|
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:
|
|
124
|
+
class: a(o(s)("ellipsis"))
|
|
95
125
|
}, [
|
|
96
|
-
|
|
97
|
-
class:
|
|
98
|
-
style:
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
class:
|
|
102
|
-
style:
|
|
103
|
-
},
|
|
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)) : (
|
|
135
|
+
], 64)) : (l(), r("div", te, n("--")))
|
|
106
136
|
]),
|
|
107
137
|
_: 2
|
|
108
138
|
}, [
|
|
109
|
-
|
|
139
|
+
L.value ? {
|
|
110
140
|
name: "title",
|
|
111
|
-
fn:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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)) :
|
|
122
|
-
|
|
123
|
-
default:
|
|
124
|
-
(
|
|
125
|
-
key:
|
|
126
|
-
class:
|
|
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
|
-
|
|
129
|
-
class:
|
|
130
|
-
style: m(e.labelColor ? { color: e.labelColor } : void 0)
|
|
158
|
+
m("div", {
|
|
159
|
+
class: a([o(s)("ellipsis")])
|
|
131
160
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
252
|
+
L.value ? {
|
|
155
253
|
name: "title",
|
|
156
|
-
fn:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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)) :
|
|
281
|
+
]), 1040)) : S("", !0)
|
|
170
282
|
], 2));
|
|
171
283
|
}
|
|
172
284
|
});
|
|
173
285
|
export {
|
|
174
|
-
|
|
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,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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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[]) => {
|