@aplus-frontend/ui 0.5.17 → 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.
- package/es/src/ap-table/ap-table.vue2.mjs +30 -30
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +8 -0
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +122 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +209 -0
- package/es/src/business/ap-ladder/index.d.ts +5 -38
- package/es/src/business/ap-ladder/interface.d.ts +42 -16
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/es/src/business/ap-ladder/utils.d.ts +2 -0
- package/es/src/business/ap-ladder/utils.mjs +5 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +1 -1
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +8 -9
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +14 -14
- package/es/src/mask/style/css.d.ts +0 -0
- package/es/src/mask/style/css.js +1 -0
- package/es/src/mask/style/index.d.ts +0 -0
- package/es/src/mask/style/index.js +1 -0
- package/es/src/path-map.mjs +3 -1
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/text/style/css.d.ts +0 -0
- package/es/src/text/style/css.js +2 -0
- package/es/src/text/style/index.d.ts +0 -0
- package/es/src/text/style/index.js +2 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +8 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +5 -38
- package/lib/src/business/ap-ladder/interface.d.ts +42 -16
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/lib/src/business/ap-ladder/utils.d.ts +2 -0
- package/lib/src/business/ap-ladder/utils.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/mask/style/css.cjs +1 -0
- package/lib/src/mask/style/css.d.ts +0 -0
- package/lib/src/mask/style/index.cjs +1 -0
- package/lib/src/mask/style/index.d.ts +0 -0
- package/lib/src/path-map.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/text/style/css.cjs +2 -0
- package/lib/src/text/style/css.d.ts +0 -0
- package/lib/src/text/style/index.cjs +2 -0
- package/lib/src/text/style/index.d.ts +0 -0
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +68 -1
- package/theme/ap-ladder/ap-ladder.less +72 -2
- package/theme/index.css +68 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApLadderLabelValue } from '../interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
13
|
+
labelValues: {
|
|
14
|
+
type: () => ApLadderLabelValue[];
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
labelAlign: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
labelStyles: {
|
|
22
|
+
type: PropType<CSSProperties>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
valueStyles: {
|
|
26
|
+
type: PropType<CSSProperties>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
linkStyles: {
|
|
30
|
+
type: PropType<CSSProperties>;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
unitStyles: {
|
|
34
|
+
type: PropType<CSSProperties>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
tooltipLabelStyles: {
|
|
38
|
+
type: PropType<CSSProperties>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
tooltipValueStyles: {
|
|
42
|
+
type: PropType<CSSProperties>;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
tooltipProps: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
tooltip: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
54
|
+
handleClick: (...args: any[]) => void;
|
|
55
|
+
"update:valueRefs": (...args: any[]) => void;
|
|
56
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
57
|
+
labelValues: {
|
|
58
|
+
type: () => ApLadderLabelValue[];
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
labelAlign: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
labelStyles: {
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
valueStyles: {
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
|
+
default: () => {};
|
|
72
|
+
};
|
|
73
|
+
linkStyles: {
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
|
+
default: () => {};
|
|
76
|
+
};
|
|
77
|
+
unitStyles: {
|
|
78
|
+
type: PropType<CSSProperties>;
|
|
79
|
+
default: () => {};
|
|
80
|
+
};
|
|
81
|
+
tooltipLabelStyles: {
|
|
82
|
+
type: PropType<CSSProperties>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
tooltipValueStyles: {
|
|
86
|
+
type: PropType<CSSProperties>;
|
|
87
|
+
default: () => {};
|
|
88
|
+
};
|
|
89
|
+
tooltipProps: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
default: () => {};
|
|
92
|
+
};
|
|
93
|
+
tooltip: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
tooltip: boolean;
|
|
102
|
+
labelAlign: string;
|
|
103
|
+
tooltipProps: Record<string, any>;
|
|
104
|
+
labelValues: ApLadderLabelValue[];
|
|
105
|
+
labelStyles: CSSProperties;
|
|
106
|
+
valueStyles: CSSProperties;
|
|
107
|
+
linkStyles: CSSProperties;
|
|
108
|
+
unitStyles: CSSProperties;
|
|
109
|
+
tooltipLabelStyles: CSSProperties;
|
|
110
|
+
tooltipValueStyles: CSSProperties;
|
|
111
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
|
+
export default _default;
|
|
114
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
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
|
+
import "../../../config-provider/index.mjs";
|
|
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({
|
|
7
|
+
name: "ApLadderValueGroupMode",
|
|
8
|
+
__name: "ValueGroupMode",
|
|
9
|
+
props: {
|
|
10
|
+
labelValues: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
labelAlign: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
labelStyles: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
valueStyles: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => ({})
|
|
25
|
+
},
|
|
26
|
+
linkStyles: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => ({})
|
|
29
|
+
},
|
|
30
|
+
unitStyles: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
tooltipLabelStyles: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({})
|
|
37
|
+
},
|
|
38
|
+
tooltipValueStyles: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: () => ({})
|
|
41
|
+
},
|
|
42
|
+
tooltipProps: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => ({})
|
|
45
|
+
},
|
|
46
|
+
tooltip: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:valueRefs", "handleClick"],
|
|
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,
|
|
59
|
+
style: {
|
|
60
|
+
...t
|
|
61
|
+
}
|
|
62
|
+
}) : null;
|
|
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]")
|
|
72
|
+
return "--";
|
|
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(
|
|
87
|
+
/(\d)(?=(\d{3})+(?!\d))/g,
|
|
88
|
+
`$1${r.thousandSeparator ? r.thousandSeparator : ","}`
|
|
89
|
+
)}.${a}`;
|
|
90
|
+
}
|
|
91
|
+
return e.toFixed(r.precision ? r.precision : 2);
|
|
92
|
+
}
|
|
93
|
+
return e;
|
|
94
|
+
}, F = (e) => {
|
|
95
|
+
$("handleClick", e);
|
|
96
|
+
};
|
|
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"))
|
|
101
|
+
}, [
|
|
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"))
|
|
105
|
+
}, [
|
|
106
|
+
t.label ? (o(), n("div", {
|
|
107
|
+
key: 0,
|
|
108
|
+
class: s([
|
|
109
|
+
i(c)("value-group-label"),
|
|
110
|
+
l.labelAlign && `label-align-${l.labelAlign}`
|
|
111
|
+
]),
|
|
112
|
+
style: u(t.labelStyles)
|
|
113
|
+
}, [
|
|
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"))
|
|
119
|
+
}, [
|
|
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", {
|
|
126
|
+
key: 0,
|
|
127
|
+
href: t.link,
|
|
128
|
+
target: "_blank",
|
|
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
|
|
134
|
+
]),
|
|
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
|
|
142
|
+
])
|
|
143
|
+
}, y(k(t.value, { ...t })), 5),
|
|
144
|
+
t.unit ? (o(), n("span", {
|
|
145
|
+
key: 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
|
|
151
|
+
])
|
|
152
|
+
}, y(t.unit), 7)) : p("", !0)
|
|
153
|
+
], 64))
|
|
154
|
+
], 64))
|
|
155
|
+
], 2)
|
|
156
|
+
], 2))), 128))
|
|
157
|
+
], 2)
|
|
158
|
+
]),
|
|
159
|
+
_: 2
|
|
160
|
+
}, [
|
|
161
|
+
e.$slots.title ? {
|
|
162
|
+
name: "title",
|
|
163
|
+
fn: v(() => [
|
|
164
|
+
z(e.$slots, "title")
|
|
165
|
+
]),
|
|
166
|
+
key: "0"
|
|
167
|
+
} : l.tooltip ? {
|
|
168
|
+
name: "title",
|
|
169
|
+
fn: v(() => [
|
|
170
|
+
d("div", {
|
|
171
|
+
class: s(i(c)("tooltip"))
|
|
172
|
+
}, [
|
|
173
|
+
(o(!0), n(f, null, j(l.labelValues, (t, a) => (o(), n("div", {
|
|
174
|
+
key: a,
|
|
175
|
+
class: s(i(c)("tooltip-item"))
|
|
176
|
+
}, [
|
|
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)
|
|
195
|
+
}, [
|
|
196
|
+
O(y(k(t.value, { ...t })) + " ", 1),
|
|
197
|
+
t.unit ? (o(), n("span", D, y(t.unit), 1)) : p("", !0)
|
|
198
|
+
], 6))
|
|
199
|
+
], 2))), 128))
|
|
200
|
+
], 2)
|
|
201
|
+
]),
|
|
202
|
+
key: "1"
|
|
203
|
+
} : void 0
|
|
204
|
+
]), 1040));
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
export {
|
|
208
|
+
Q as default
|
|
209
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties,
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, 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,8 +11,6 @@ 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
|
-
major: string;
|
|
15
|
-
minor: string;
|
|
16
14
|
labelAlign: "left" | "right";
|
|
17
15
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
18
16
|
title: VueTypeValidableDef<any>;
|
|
@@ -89,21 +87,10 @@ declare const ApLadder: {
|
|
|
89
87
|
default: boolean;
|
|
90
88
|
};
|
|
91
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
92
91
|
majorColor: string;
|
|
93
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
92
|
minorColor: string;
|
|
95
|
-
|
|
96
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
97
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
98
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
99
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
100
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
101
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
102
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
103
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
104
|
-
wrapperRef: HTMLDivElement;
|
|
105
|
-
valueRefs: HTMLSpanElement;
|
|
106
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
93
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
107
94
|
P: {};
|
|
108
95
|
B: {};
|
|
109
96
|
D: {};
|
|
@@ -113,8 +100,6 @@ declare const ApLadder: {
|
|
|
113
100
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
114
101
|
layout: "vertical" | "horizontal";
|
|
115
102
|
tooltip: boolean;
|
|
116
|
-
major: string;
|
|
117
|
-
minor: string;
|
|
118
103
|
labelAlign: "left" | "right";
|
|
119
104
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
120
105
|
title: VueTypeValidableDef<any>;
|
|
@@ -191,17 +176,9 @@ declare const ApLadder: {
|
|
|
191
176
|
default: boolean;
|
|
192
177
|
};
|
|
193
178
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
179
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
194
180
|
majorColor: string;
|
|
195
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
196
181
|
minorColor: string;
|
|
197
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
198
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
199
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
200
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
201
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
202
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
203
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
204
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
205
182
|
}>;
|
|
206
183
|
__isFragment?: never;
|
|
207
184
|
__isTeleport?: never;
|
|
@@ -209,8 +186,6 @@ declare const ApLadder: {
|
|
|
209
186
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
210
187
|
layout: "vertical" | "horizontal";
|
|
211
188
|
tooltip: boolean;
|
|
212
|
-
major: string;
|
|
213
|
-
minor: string;
|
|
214
189
|
labelAlign: "left" | "right";
|
|
215
190
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
216
191
|
title: VueTypeValidableDef<any>;
|
|
@@ -287,17 +262,9 @@ declare const ApLadder: {
|
|
|
287
262
|
default: boolean;
|
|
288
263
|
};
|
|
289
264
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
265
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
290
266
|
majorColor: string;
|
|
291
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
292
267
|
minorColor: string;
|
|
293
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
294
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
295
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
296
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
297
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
298
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
299
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
300
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
301
268
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
302
269
|
$slots: Readonly< ApLadderSlots> & ApLadderSlots;
|
|
303
270
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip 需要的属性
|
|
5
5
|
*/
|
|
@@ -79,37 +79,37 @@ export interface ApLadderLabelValue {
|
|
|
79
79
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
80
80
|
* @since v0.4.7 新增
|
|
81
81
|
*/
|
|
82
|
-
labelStyles?:
|
|
82
|
+
labelStyles?: CSSProperties;
|
|
83
83
|
/**
|
|
84
84
|
* 健值对 - value样式
|
|
85
85
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
86
86
|
* @since v0.4.7 新增
|
|
87
87
|
*/
|
|
88
|
-
valueStyles?:
|
|
88
|
+
valueStyles?: CSSProperties;
|
|
89
89
|
/**
|
|
90
90
|
* 健值对 - link样式
|
|
91
91
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
92
92
|
* @since v0.4.7 新增
|
|
93
93
|
*/
|
|
94
|
-
linkStyles?:
|
|
94
|
+
linkStyles?: CSSProperties;
|
|
95
95
|
/**
|
|
96
96
|
* 健值对 - unit样式
|
|
97
97
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
98
98
|
* @since v0.4.7 新增
|
|
99
99
|
*/
|
|
100
|
-
unitStyles?:
|
|
100
|
+
unitStyles?: CSSProperties;
|
|
101
101
|
/**
|
|
102
102
|
* Tooltip - Label style
|
|
103
103
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
104
104
|
* @since v0.4.7 新增
|
|
105
105
|
*/
|
|
106
|
-
tooltipLabelStyles?:
|
|
106
|
+
tooltipLabelStyles?: CSSProperties;
|
|
107
107
|
/**
|
|
108
108
|
* Tooltip - Value style
|
|
109
109
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
110
110
|
* @since v0.4.7 新增
|
|
111
111
|
*/
|
|
112
|
-
tooltipValueStyles?:
|
|
112
|
+
tooltipValueStyles?: CSSProperties;
|
|
113
113
|
/**
|
|
114
114
|
* 帮助气泡
|
|
115
115
|
*/
|
|
@@ -123,7 +123,7 @@ export interface ApLadderLabelValue {
|
|
|
123
123
|
/**
|
|
124
124
|
* 帮助气泡 - 图标 - 样式
|
|
125
125
|
*/
|
|
126
|
-
helpMessageIconStyles?:
|
|
126
|
+
helpMessageIconStyles?: CSSProperties;
|
|
127
127
|
/**
|
|
128
128
|
* 帮助气泡 - 扩展tooltip props
|
|
129
129
|
*/
|
|
@@ -153,7 +153,7 @@ export interface ApLadderProps {
|
|
|
153
153
|
* 自定义重要信息 style
|
|
154
154
|
* @since v0.4.7 新增
|
|
155
155
|
*/
|
|
156
|
-
majorStyles?:
|
|
156
|
+
majorStyles?: CSSProperties;
|
|
157
157
|
/**
|
|
158
158
|
* 自定义次要信息颜色
|
|
159
159
|
* @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
|
|
@@ -164,7 +164,7 @@ export interface ApLadderProps {
|
|
|
164
164
|
* 自定义次要信息 style
|
|
165
165
|
* @since v0.4.7 新增
|
|
166
166
|
*/
|
|
167
|
-
minorStyles?:
|
|
167
|
+
minorStyles?: CSSProperties;
|
|
168
168
|
/**
|
|
169
169
|
* 布局方式
|
|
170
170
|
* - `vertical` 垂直布局
|
|
@@ -192,25 +192,25 @@ export interface ApLadderProps {
|
|
|
192
192
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
193
193
|
* @since v0.4.7 新增
|
|
194
194
|
*/
|
|
195
|
-
labelStyles?:
|
|
195
|
+
labelStyles?: CSSProperties;
|
|
196
196
|
/**
|
|
197
197
|
* 健值对 - value样式
|
|
198
198
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
199
199
|
* @since v0.4.7 新增
|
|
200
200
|
*/
|
|
201
|
-
valueStyles?:
|
|
201
|
+
valueStyles?: CSSProperties;
|
|
202
202
|
/**
|
|
203
203
|
* 健值对 - link样式
|
|
204
204
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
205
205
|
* @since v0.4.7 新增
|
|
206
206
|
*/
|
|
207
|
-
linkStyles?:
|
|
207
|
+
linkStyles?: CSSProperties;
|
|
208
208
|
/**
|
|
209
209
|
* 健值对 - unit样式
|
|
210
210
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
211
211
|
* @since v0.4.7 新增
|
|
212
212
|
*/
|
|
213
|
-
unitStyles?:
|
|
213
|
+
unitStyles?: CSSProperties;
|
|
214
214
|
/**
|
|
215
215
|
* 扩展 Tooltip
|
|
216
216
|
*/
|
|
@@ -220,13 +220,13 @@ export interface ApLadderProps {
|
|
|
220
220
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
221
221
|
* @since v0.4.7 新增
|
|
222
222
|
*/
|
|
223
|
-
tooltipLabelStyles?:
|
|
223
|
+
tooltipLabelStyles?: CSSProperties;
|
|
224
224
|
/**
|
|
225
225
|
* Tooltip - Value style
|
|
226
226
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
227
227
|
* @since v0.4.7 新增
|
|
228
228
|
*/
|
|
229
|
-
tooltipValueStyles?:
|
|
229
|
+
tooltipValueStyles?: CSSProperties;
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
232
|
* ApLadder Slots 类型声明
|
|
@@ -252,3 +252,29 @@ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
|
|
|
252
252
|
* 国际货币代码-映射-语言
|
|
253
253
|
*/
|
|
254
254
|
export declare const locales: CurrencyCodeInLocale;
|
|
255
|
+
export interface ConvertValueOptions {
|
|
256
|
+
/**
|
|
257
|
+
* 是否采用原始值
|
|
258
|
+
*/
|
|
259
|
+
rawValue?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* 精度 默认2位小数
|
|
262
|
+
*/
|
|
263
|
+
precision?: number;
|
|
264
|
+
/**
|
|
265
|
+
* 千分位展示
|
|
266
|
+
*/
|
|
267
|
+
thousand?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* 千分位分隔符
|
|
270
|
+
*/
|
|
271
|
+
thousandSeparator?: string;
|
|
272
|
+
/**
|
|
273
|
+
* 货币单位
|
|
274
|
+
*/
|
|
275
|
+
currency?: CurrencyCode;
|
|
276
|
+
/**
|
|
277
|
+
* 百分比展示
|
|
278
|
+
*/
|
|
279
|
+
percent?: boolean;
|
|
280
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
export declare const useWatchEllipsis: (target: Ref<HTMLElement | undefined>) => Ref<boolean, boolean>;
|
|
2
|
+
export declare function useWatchEllipsis(wrapperRef: Ref<HTMLElement | undefined>): Ref<boolean, boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as T, defineComponent as g, h as r, render as d, onUnmounted as C } from "vue";
|
|
2
2
|
import "../table-modal.vue.mjs";
|
|
3
|
-
import "../../../index.mjs";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
4
|
import { omit as y } from "lodash-unified";
|
|
5
5
|
import { ConfigProvider as A, globalConfigCached as h } from "../../../config-provider/config-provider.mjs";
|
|
6
6
|
import I from "../table-modal.vue2.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode, VNodeChild } from 'vue';
|
|
2
|
-
import { ApTableProps } from '../../
|
|
2
|
+
import { ApTableProps } from '../../ap-table';
|
|
3
3
|
import { ModalProps, TableProps } from '@aplus-frontend/antdv';
|
|
4
4
|
/** table-modal的props类型 */
|
|
5
5
|
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, createElementBlock as c, openBlock as f, createTextVNode as a, renderSlot as d, toDisplayString as t, createElementVNode as r, normalizeStyle as u, unref as o } from "vue";
|
|
2
|
-
import "../../index.mjs";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useLocale as p } from "../../config-provider/hooks/use-locale.mjs";
|
|
4
4
|
import { useGlobalConfig as s } from "../../config-provider/hooks/use-global-config.mjs";
|
|
5
5
|
const T = /* @__PURE__ */ m({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent as v, createElementBlock as o, openBlock as l, normalizeClass as a, unref as t, renderSlot as h, Fragment as i, createCommentVNode as b, createElementVNode as m, createVNode as p, withCtx as n, createBlock as s, resolveDynamicComponent as c, h as T, createTextVNode as $, toDisplayString as B, renderList as M } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import "../../index.mjs";
|
|
4
|
-
import { Button as V, Empty as
|
|
3
|
+
import { ApTitle as k } from "../../ap-title/index.mjs";
|
|
4
|
+
import { Button as V, Empty as I } from "@aplus-frontend/antdv";
|
|
5
5
|
import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
|
|
6
6
|
import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
|
|
8
|
-
const q = /* @__PURE__ */ v({
|
|
7
|
+
const O = /* @__PURE__ */ v({
|
|
9
8
|
__name: "index",
|
|
10
9
|
props: {
|
|
11
10
|
leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
|
|
@@ -31,7 +30,7 @@ const q = /* @__PURE__ */ v({
|
|
|
31
30
|
key: 0,
|
|
32
31
|
class: a(t(r)("table-layout-left"))
|
|
33
32
|
}, [
|
|
34
|
-
p(t(
|
|
33
|
+
p(t(k), { style: { "margin-bottom": "16px" } }, {
|
|
35
34
|
prefix: n(() => [
|
|
36
35
|
(l(), s(c(T(i, [e.leftTitle]))))
|
|
37
36
|
]),
|
|
@@ -46,7 +45,7 @@ const q = /* @__PURE__ */ v({
|
|
|
46
45
|
m("div", {
|
|
47
46
|
class: a(t(r)("table-layout-right"))
|
|
48
47
|
}, [
|
|
49
|
-
p(t(
|
|
48
|
+
p(t(k), {
|
|
50
49
|
title: `${t(d)("ap.apTableModal.selected")} (${e.selectedList.length})`
|
|
51
50
|
}, {
|
|
52
51
|
prefix: n(() => [
|
|
@@ -73,9 +72,9 @@ const q = /* @__PURE__ */ v({
|
|
|
73
72
|
var g;
|
|
74
73
|
return l(), s(c((g = e.renderSelectedItem) == null ? void 0 : g.call(e, y, { deleteItem: C })), { key: y });
|
|
75
74
|
}), 128)),
|
|
76
|
-
e.selectedList.length === 0 ? (l(), s(t(
|
|
75
|
+
e.selectedList.length === 0 ? (l(), s(t(I), {
|
|
77
76
|
key: 0,
|
|
78
|
-
image: t(
|
|
77
|
+
image: t(I).PRESENTED_IMAGE_SIMPLE,
|
|
79
78
|
style: { "margin-top": "100px" }
|
|
80
79
|
}, null, 8, ["image"])) : b("", !0)
|
|
81
80
|
], 2)
|
|
@@ -85,5 +84,5 @@ const q = /* @__PURE__ */ v({
|
|
|
85
84
|
}
|
|
86
85
|
});
|
|
87
86
|
export {
|
|
88
|
-
|
|
87
|
+
O as default
|
|
89
88
|
};
|