@aplus-frontend/ui 6.22.0-beta.0 → 6.22.1
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/index.mjs +164 -161
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +42 -36
- package/es/src/ag-grid/context.d.ts +18 -0
- package/es/src/ag-grid/context.mjs +17 -0
- package/es/src/ag-grid/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.mjs +337 -201
- package/es/src/ag-grid/interface.d.ts +109 -3
- package/es/src/ag-grid/theme.d.ts +3 -0
- package/es/src/ag-grid/theme.mjs +25 -0
- package/es/src/ap-field/number/index.vue.mjs +25 -25
- package/es/src/ap-grid/utils/col.d.ts +1 -1
- package/es/src/ap-grid/utils/col.mjs +29 -29
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +108 -98
- package/es/src/ap-pro-card/components/divider/index.vue.d.ts +13 -0
- package/es/src/ap-pro-card/components/divider/index.vue.mjs +4 -0
- package/es/src/ap-pro-card/components/divider/index.vue2.mjs +29 -0
- package/es/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
- package/es/src/ap-pro-card/components/operation/index.vue.mjs +4 -0
- package/es/src/ap-pro-card/components/operation/index.vue2.mjs +20 -0
- package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
- package/es/src/ap-pro-card/components/statistic/index.vue.mjs +4 -0
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +134 -0
- package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
- package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +4 -0
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +116 -0
- package/es/src/ap-pro-card/components/title/index.vue.d.ts +23 -0
- package/es/src/ap-pro-card/components/title/index.vue.mjs +4 -0
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +28 -0
- package/es/src/ap-pro-card/index.d.ts +20 -42
- package/es/src/ap-pro-card/index.mjs +22 -4
- package/es/src/ap-pro-card/interface.d.ts +66 -2
- package/es/src/ap-tag/ap-tag-group.vue.mjs +42 -42
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +17 -15
- package/es/src/business/hooks/index.d.ts +1 -0
- package/es/src/business/hooks/index.mjs +8 -6
- package/es/src/business/hooks/usePageListAgGrid.d.ts +37 -0
- package/es/src/business/hooks/usePageListAgGrid.mjs +88 -0
- package/es/src/index.mjs +277 -274
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/context.d.ts +18 -0
- package/lib/src/ag-grid/context.js +1 -0
- package/lib/src/ag-grid/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +109 -3
- package/lib/src/ag-grid/theme.d.ts +3 -0
- package/lib/src/ag-grid/theme.js +1 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.d.ts +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/divider/index.vue.d.ts +13 -0
- package/lib/src/ap-pro-card/components/divider/index.vue.js +1 -0
- package/lib/src/ap-pro-card/components/divider/index.vue2.js +1 -0
- package/lib/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
- package/lib/src/ap-pro-card/components/operation/index.vue.js +1 -0
- package/lib/src/ap-pro-card/components/operation/index.vue2.js +1 -0
- package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
- package/lib/src/ap-pro-card/components/statistic/index.vue.js +1 -0
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -0
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -0
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -0
- package/lib/src/ap-pro-card/components/title/index.vue.d.ts +23 -0
- package/lib/src/ap-pro-card/components/title/index.vue.js +1 -0
- package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -0
- package/lib/src/ap-pro-card/index.d.ts +20 -42
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/interface.d.ts +66 -2
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/hooks/index.d.ts +1 -0
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.d.ts +37 -0
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/ag-grid/index.css +470 -0
- package/theme/ag-grid/index.less +27 -0
- package/theme/ap-button/ap-button.css +1 -1
- package/theme/ap-button/ap-button.less +1 -1
- package/theme/ap-pro-card/index.css +199 -0
- package/theme/ap-pro-card/index.less +203 -0
- package/theme/ap-tag/ap-tag.css +1 -1
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/index.css +220 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { QuestionCircleOutlined as
|
|
4
|
-
import { getProCardCssVar as
|
|
1
|
+
import { defineComponent as et, useSlots as ot, computed as d, ref as rt, createVNode as u, Fragment as x, createElementBlock as v, openBlock as s, mergeProps as lt, createCommentVNode as $, createElementVNode as nt, normalizeStyle as w, normalizeClass as g, unref as h, renderSlot as V, createBlock as p, resolveDynamicComponent as b, withCtx as M } from "vue";
|
|
2
|
+
import { Spin as at, Tooltip as it } from "@aplus-frontend/antdv";
|
|
3
|
+
import { QuestionCircleOutlined as st } from "@ant-design/icons-vue";
|
|
4
|
+
import { getProCardCssVar as dt } from "../../utils/css-var.mjs";
|
|
5
5
|
import "../../../config-provider/index.mjs";
|
|
6
|
-
import { mergeClass as
|
|
7
|
-
import
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useGlobalConfig as
|
|
10
|
-
const
|
|
6
|
+
import { mergeClass as m } from "../../../editable-table/utils.mjs";
|
|
7
|
+
import ut from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
|
|
8
|
+
import { useNamespace as ct } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useGlobalConfig as ft } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
const St = /* @__PURE__ */ et({
|
|
11
11
|
name: "ApProCard",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -63,15 +63,15 @@ const be = /* @__PURE__ */ Y({
|
|
|
63
63
|
default: !1
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
setup(
|
|
67
|
-
const
|
|
66
|
+
setup(_) {
|
|
67
|
+
const e = _, l = ot(), {
|
|
68
68
|
b: c
|
|
69
|
-
} =
|
|
70
|
-
const
|
|
71
|
-
return (Array.isArray(
|
|
69
|
+
} = ct("pro-card"), D = ft("uiMode"), I = d(() => dt(D.value)), C = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], y = ut(), k = (t, r) => t ? r : {}, F = (t) => {
|
|
70
|
+
const r = [0, 0];
|
|
71
|
+
return (Array.isArray(t) ? t : [t, 0]).forEach((a, o) => {
|
|
72
72
|
if (typeof a == "object")
|
|
73
|
-
for (let i = 0; i <
|
|
74
|
-
const
|
|
73
|
+
for (let i = 0; i < C.length; i += 1) {
|
|
74
|
+
const f = C[i];
|
|
75
75
|
if ({
|
|
76
76
|
lg: !0,
|
|
77
77
|
md: !0,
|
|
@@ -80,20 +80,20 @@ const be = /* @__PURE__ */ Y({
|
|
|
80
80
|
xs: !1,
|
|
81
81
|
xxl: !1,
|
|
82
82
|
xxxl: !1,
|
|
83
|
-
...
|
|
84
|
-
}[
|
|
85
|
-
o
|
|
83
|
+
...y == null ? void 0 : y.value
|
|
84
|
+
}[f] && a[f] !== void 0) {
|
|
85
|
+
r[o] = a[f];
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
else
|
|
90
|
-
o
|
|
91
|
-
}),
|
|
92
|
-
},
|
|
93
|
-
let
|
|
94
|
-
if (typeof
|
|
95
|
-
for (let a = 0; a <
|
|
96
|
-
const
|
|
90
|
+
r[o] = a || 0;
|
|
91
|
+
}), r;
|
|
92
|
+
}, H = (t) => {
|
|
93
|
+
let r = t;
|
|
94
|
+
if (typeof t == "object")
|
|
95
|
+
for (let a = 0; a < C.length; a += 1) {
|
|
96
|
+
const o = C[a], i = {
|
|
97
97
|
lg: !0,
|
|
98
98
|
md: !0,
|
|
99
99
|
sm: !0,
|
|
@@ -101,33 +101,33 @@ const be = /* @__PURE__ */ Y({
|
|
|
101
101
|
xs: !1,
|
|
102
102
|
xxl: !1,
|
|
103
103
|
xxxl: !1,
|
|
104
|
-
...
|
|
104
|
+
...y == null ? void 0 : y.value
|
|
105
105
|
};
|
|
106
|
-
if (i != null && i[
|
|
107
|
-
|
|
106
|
+
if (i != null && i[o] && (t == null ? void 0 : t[o]) !== void 0) {
|
|
107
|
+
r = t[o];
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
const
|
|
112
|
-
width:
|
|
111
|
+
const n = k(typeof r == "string" && /\d%|\dpx/i.test(r), {
|
|
112
|
+
width: r,
|
|
113
113
|
flexShrink: 0
|
|
114
114
|
});
|
|
115
115
|
return {
|
|
116
|
-
span:
|
|
117
|
-
colSpanStyle:
|
|
116
|
+
span: r,
|
|
117
|
+
colSpanStyle: n
|
|
118
118
|
};
|
|
119
|
-
},
|
|
120
|
-
N.value =
|
|
121
|
-
},
|
|
122
|
-
var
|
|
123
|
-
return u(x, null, [
|
|
124
|
-
}),
|
|
125
|
-
var
|
|
126
|
-
return u(x, null, [
|
|
127
|
-
}),
|
|
128
|
-
var
|
|
129
|
-
return u(x, null, [
|
|
130
|
-
}),
|
|
119
|
+
}, Q = d(() => F(e.gutter)), N = rt(!1), E = (t) => {
|
|
120
|
+
N.value = t;
|
|
121
|
+
}, T = d(() => {
|
|
122
|
+
var t;
|
|
123
|
+
return u(x, null, [e.title || ((t = l.title) == null ? void 0 : t.call(l))]);
|
|
124
|
+
}), q = d(() => u(x, null, [e.tooltip])), J = d(() => {
|
|
125
|
+
var t;
|
|
126
|
+
return u(x, null, [e.extra || ((t = l.extra) == null ? void 0 : t.call(l))]);
|
|
127
|
+
}), K = d(() => {
|
|
128
|
+
var t;
|
|
129
|
+
return u(x, null, [e.actions || ((t = l.actions) == null ? void 0 : t.call(l))]);
|
|
130
|
+
}), L = d(() => e.loading === !0 ? u(at, {
|
|
131
131
|
style: {
|
|
132
132
|
width: "100%",
|
|
133
133
|
height: "100%",
|
|
@@ -135,22 +135,33 @@ const be = /* @__PURE__ */ Y({
|
|
|
135
135
|
alignItems: "center",
|
|
136
136
|
justifyContent: "center"
|
|
137
137
|
}
|
|
138
|
-
}, null) : u(x, null, [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
138
|
+
}, null) : u(x, null, [e.loading])), O = (t, r = []) => {
|
|
139
|
+
if ((t == null ? void 0 : t.type) === Symbol.for("v-fgt")) {
|
|
140
|
+
const n = Array.isArray(t == null ? void 0 : t.children) ? t == null ? void 0 : t.children : [t == null ? void 0 : t.children];
|
|
141
|
+
if (n != null && n.length)
|
|
142
|
+
for (let a = 0; a < n.length; a++)
|
|
143
|
+
n != null && n[a] && O(n == null ? void 0 : n[a], r);
|
|
144
|
+
} else
|
|
145
|
+
t && r.push(t);
|
|
146
|
+
return r;
|
|
147
|
+
}, R = () => {
|
|
148
|
+
var r, n, a;
|
|
149
|
+
const t = (r = l.default) == null ? void 0 : r.call(l);
|
|
150
|
+
return E(!1), u(x, null, [(a = (n = t == null ? void 0 : t.reduce((o, i) => {
|
|
151
|
+
const f = O(i);
|
|
152
|
+
return [...o, ...f];
|
|
153
|
+
}, [])) == null ? void 0 : n.filter((o) => o.type !== Symbol.for("v-cmt"))) == null ? void 0 : a.map((o, i, f) => {
|
|
154
|
+
var z, G, P;
|
|
155
|
+
if (o && typeof o == "object" && "type" in o && ((z = o.type) == null ? void 0 : z.isProCard) === !0) {
|
|
156
|
+
E(!0);
|
|
157
|
+
const Y = ((G = o == null ? void 0 : o.props) == null ? void 0 : G.colSpan) || ((P = o == null ? void 0 : o.props) == null ? void 0 : P["col-span"]) || {}, {
|
|
158
|
+
span: S,
|
|
159
|
+
colSpanStyle: Z
|
|
160
|
+
} = H(Y), B = c("col"), tt = m(`${B}`, [typeof S == "number" && S >= 0 && S <= 24 ? `${B}-span-${S}` : void 0, e.split === "horizontal" && i !== f.length - 1 ? `${B}-split-horizontal` : void 0, e.split === "vertical" && i !== f.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [A, j] = Q.value;
|
|
150
161
|
return u("div", {
|
|
151
|
-
class:
|
|
162
|
+
class: tt,
|
|
152
163
|
style: {
|
|
153
|
-
...
|
|
164
|
+
...Z,
|
|
154
165
|
...k(A > 0, {
|
|
155
166
|
paddingInlineStart: `${A / 2}px`,
|
|
156
167
|
paddingInlineEnd: `${A / 2}px`
|
|
@@ -159,68 +170,67 @@ const be = /* @__PURE__ */ Y({
|
|
|
159
170
|
paddingBlockStart: `${j / 2}px`,
|
|
160
171
|
paddingBlockEnd: `${j / 2}px`
|
|
161
172
|
}),
|
|
162
|
-
...
|
|
173
|
+
...e.colStyle
|
|
163
174
|
}
|
|
164
|
-
}, [
|
|
175
|
+
}, [o]);
|
|
165
176
|
}
|
|
166
|
-
return
|
|
167
|
-
})
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return S(`${e}`, [t.layout === "center" ? `${e}-center` : void 0, t.split === "horizontal" || t.direction === "column" ? `${e}-direction-column` : void 0, t.wrap && N.value ? `${e}-wrap` : void 0].filter(Boolean));
|
|
177
|
+
return o;
|
|
178
|
+
})]);
|
|
179
|
+
}, U = d(() => {
|
|
180
|
+
const t = c();
|
|
181
|
+
return m(`${t}`, [e.bordered ? `${t}-border` : void 0, e.boxShadow ? `${t}-box-shadow` : void 0, N.value ? `${t}-contain-card` : void 0, e.loading ? `${t}-loading` : void 0, e.split === "vertical" || e.split === "horizontal" ? `${t}-split` : void 0, e.ghost ? `${t}-ghost` : void 0, e.hoverable ? `${t}-hoverable` : void 0, e.type ? `${t}-type-${e.type}` : void 0].filter(Boolean));
|
|
182
|
+
}), W = d(() => {
|
|
183
|
+
const t = c("header");
|
|
184
|
+
return m(`${t}`, [e.headerBordered || e.type === "inner" ? `${t}-border` : void 0].filter(Boolean));
|
|
185
|
+
}), X = d(() => {
|
|
186
|
+
const t = c("body");
|
|
187
|
+
return m(`${t}`, [e.layout === "center" ? `${t}-center` : void 0, e.split === "horizontal" || e.direction === "column" ? `${t}-direction-column` : void 0, e.wrap && N.value ? `${t}-wrap` : void 0].filter(Boolean));
|
|
178
188
|
});
|
|
179
|
-
return (
|
|
180
|
-
class:
|
|
189
|
+
return (t, r) => (s(), v("div", lt({
|
|
190
|
+
class: U.value,
|
|
181
191
|
style: {
|
|
182
|
-
...
|
|
192
|
+
...I.value
|
|
183
193
|
}
|
|
184
194
|
}, {
|
|
185
|
-
...
|
|
186
|
-
}), [
|
|
195
|
+
...t.$attrs
|
|
196
|
+
}), [e.title || l.title || e.extra || l.extra ? (s(), v("div", {
|
|
187
197
|
key: 0,
|
|
188
|
-
class:
|
|
198
|
+
class: g(W.value),
|
|
189
199
|
style: w({
|
|
190
|
-
...
|
|
200
|
+
...e.headStyle
|
|
191
201
|
})
|
|
192
|
-
}, [
|
|
202
|
+
}, [e.title || l.title ? (s(), v("div", {
|
|
193
203
|
key: 0,
|
|
194
|
-
class:
|
|
195
|
-
}, [
|
|
204
|
+
class: g(h(c)("header-title"))
|
|
205
|
+
}, [V(t.$slots, "title", {}, () => [(s(), p(b(T.value)))]), e.tooltip ? (s(), p(h(it), {
|
|
196
206
|
key: 0
|
|
197
207
|
}, {
|
|
198
|
-
title:
|
|
199
|
-
default:
|
|
200
|
-
class:
|
|
208
|
+
title: M(() => [(s(), p(b(q.value)))]),
|
|
209
|
+
default: M(() => [u(h(st), {
|
|
210
|
+
class: g(h(c)("header-title-tooltip"))
|
|
201
211
|
}, null, 8, ["class"])]),
|
|
202
212
|
_: 1
|
|
203
|
-
})) :
|
|
213
|
+
})) : $("", !0)], 2)) : $("", !0), e.extra || l.extra ? (s(), v("div", {
|
|
204
214
|
key: 1,
|
|
205
|
-
class:
|
|
206
|
-
}, [
|
|
207
|
-
class:
|
|
215
|
+
class: g(h(c)("header-extra"))
|
|
216
|
+
}, [V(t.$slots, "extra", {}, () => [(s(), p(b(J.value)))])], 2)) : $("", !0)], 6)) : $("", !0), nt("div", {
|
|
217
|
+
class: g(X.value),
|
|
208
218
|
style: w({
|
|
209
|
-
...
|
|
219
|
+
...e.bodyStyle
|
|
210
220
|
})
|
|
211
|
-
}, [
|
|
221
|
+
}, [e.loading ? (s(), p(b(L.value), {
|
|
212
222
|
key: 0
|
|
213
|
-
})) : (
|
|
223
|
+
})) : (s(), p(b(R()), {
|
|
214
224
|
key: 1
|
|
215
|
-
}))], 6),
|
|
225
|
+
}))], 6), e.actions || l.actions ? (s(), v("div", {
|
|
216
226
|
key: 1,
|
|
217
|
-
class:
|
|
227
|
+
class: g(h(c)("actions")),
|
|
218
228
|
style: w({
|
|
219
|
-
...
|
|
229
|
+
...e.actionsStyle
|
|
220
230
|
})
|
|
221
|
-
}, [(
|
|
231
|
+
}, [(s(), p(b(K.value)))], 6)) : $("", !0)], 16));
|
|
222
232
|
}
|
|
223
233
|
});
|
|
224
234
|
export {
|
|
225
|
-
|
|
235
|
+
St as default
|
|
226
236
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/**
|
|
4
|
+
* 布局类型
|
|
5
|
+
*
|
|
6
|
+
* @default vertical
|
|
7
|
+
*/
|
|
8
|
+
type?: 'horizontal' | 'vertical';
|
|
9
|
+
};
|
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
type: "horizontal" | "vertical";
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as p, computed as s, createElementBlock as a, openBlock as i, mergeProps as c } from "vue";
|
|
2
|
+
import "../../../config-provider/index.mjs";
|
|
3
|
+
import { mergeClass as m } from "../../../editable-table/utils.mjs";
|
|
4
|
+
import { useNamespace as d } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const _ = /* @__PURE__ */ p({
|
|
6
|
+
name: "ApProCardDivider",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
type: {
|
|
10
|
+
default: "vertical"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(t) {
|
|
14
|
+
const {
|
|
15
|
+
b: o
|
|
16
|
+
} = d("pro-card-divider"), r = t, n = s(() => {
|
|
17
|
+
const e = o();
|
|
18
|
+
return m(`${e}`, [r.type ? `${e}-${r.type}` : void 0].filter(Boolean));
|
|
19
|
+
});
|
|
20
|
+
return (e, l) => (i(), a("div", c({
|
|
21
|
+
...e.$attrs
|
|
22
|
+
}, {
|
|
23
|
+
class: n.value
|
|
24
|
+
}), null, 16));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as t, openBlock as n, mergeProps as a, unref as p, renderSlot as s } from "vue";
|
|
2
|
+
import "../../../config-provider/index.mjs";
|
|
3
|
+
import { useNamespace as m } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
|
+
const u = /* @__PURE__ */ o({
|
|
5
|
+
name: "ApProCardOperation",
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(c) {
|
|
8
|
+
const { b: r } = m("pro-card-operation");
|
|
9
|
+
return (e, i) => (n(), t("div", a({
|
|
10
|
+
...e.$attrs
|
|
11
|
+
}, {
|
|
12
|
+
class: p(r)()
|
|
13
|
+
}), [
|
|
14
|
+
s(e.$slots, "default")
|
|
15
|
+
], 16));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
u as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ApProCardStatisticProps, ApProCardStatisticSolts } from '../../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, VNodeArrayChildren, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<ApProCardStatisticSolts> & ApProCardStatisticSolts;
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<ApProCardStatisticProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApProCardStatisticProps> & Readonly<{}>, {
|
|
11
|
+
title: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}> | null;
|
|
18
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
19
|
+
icon: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}> | null;
|
|
22
|
+
description: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> | null;
|
|
25
|
+
suffix: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}> | null;
|
|
32
|
+
status: "error" | "default" | "success" | "warning" | "processing";
|
|
33
|
+
prefix: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}> | null;
|
|
40
|
+
tip: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}> | null;
|
|
43
|
+
trend: "up" | "down";
|
|
44
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { defineComponent as E, useSlots as F, computed as i, createVNode as r, Fragment as d, createElementBlock as P, openBlock as l, mergeProps as y, createBlock as a, createElementVNode as x, resolveDynamicComponent as o, normalizeClass as C, unref as O, createSlots as V, withCtx as s } from "vue";
|
|
2
|
+
import { QuestionCircleOutlined as z } from "@ant-design/icons-vue";
|
|
3
|
+
import { Tooltip as I, Badge as Q, Statistic as R } from "@aplus-frontend/antdv";
|
|
4
|
+
import { omit as T } from "lodash-unified";
|
|
5
|
+
import "../../../config-provider/index.mjs";
|
|
6
|
+
import { mergeClass as B } from "../../../editable-table/utils.mjs";
|
|
7
|
+
import { useNamespace as q } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const Y = /* @__PURE__ */ E({
|
|
9
|
+
name: "ApProCardStatistic",
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
prefixCls: {},
|
|
13
|
+
decimalSeparator: {},
|
|
14
|
+
groupSeparator: {},
|
|
15
|
+
format: {},
|
|
16
|
+
value: {},
|
|
17
|
+
valueStyle: {},
|
|
18
|
+
valueRender: {},
|
|
19
|
+
formatter: {
|
|
20
|
+
type: [Boolean, String, Function]
|
|
21
|
+
},
|
|
22
|
+
precision: {},
|
|
23
|
+
prefix: {
|
|
24
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
suffix: {
|
|
28
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
title: {
|
|
32
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
loading: {
|
|
36
|
+
type: Boolean
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
40
|
+
default: void 0
|
|
41
|
+
},
|
|
42
|
+
tip: {
|
|
43
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
status: {
|
|
47
|
+
default: void 0
|
|
48
|
+
},
|
|
49
|
+
icon: {
|
|
50
|
+
type: [Object, String, Number, Boolean, null, Array],
|
|
51
|
+
default: void 0
|
|
52
|
+
},
|
|
53
|
+
layout: {
|
|
54
|
+
default: "inline"
|
|
55
|
+
},
|
|
56
|
+
trend: {
|
|
57
|
+
default: void 0
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
setup(S) {
|
|
61
|
+
const t = F(), n = S, {
|
|
62
|
+
b: u
|
|
63
|
+
} = q("pro-card-statistic"), b = i(() => u()), g = i(() => u("tip")), D = i(() => {
|
|
64
|
+
const e = u();
|
|
65
|
+
return B(`${e}-trend-icon`, [n.trend ? `${e}-trend-icon-${n.trend}` : void 0].filter(Boolean));
|
|
66
|
+
}), N = i(() => u("status")), $ = i(() => u("icon")), M = i(() => u("wrapper")), A = i(() => u("content")), j = i(() => {
|
|
67
|
+
const e = u();
|
|
68
|
+
return B(`${e}-layout`, [n.layout ? `${e}-layout-${n.layout}` : void 0, n.trend ? `${e}-trend-${n.trend}` : void 0].filter(Boolean));
|
|
69
|
+
}), k = i(() => u("description")), c = i(() => {
|
|
70
|
+
var e;
|
|
71
|
+
return n.tip || t.tip ? r(I, {
|
|
72
|
+
title: n.tip ?? ((e = t.tip) == null ? void 0 : e.call(t))
|
|
73
|
+
}, {
|
|
74
|
+
default: () => [r(z, {
|
|
75
|
+
class: g.value
|
|
76
|
+
}, null)]
|
|
77
|
+
}) : void 0;
|
|
78
|
+
}), f = i(() => n.trend ? r("div", {
|
|
79
|
+
class: D.value
|
|
80
|
+
}, null) : void 0), _ = i(() => n.status ? r(Q, {
|
|
81
|
+
class: N.value,
|
|
82
|
+
status: n.status
|
|
83
|
+
}, null) : void 0), w = i(() => {
|
|
84
|
+
var e;
|
|
85
|
+
return n.icon || t.icon ? r("div", {
|
|
86
|
+
class: $.value
|
|
87
|
+
}, [n.icon ?? ((e = t.icon) == null ? void 0 : e.call(t))]) : void 0;
|
|
88
|
+
}), p = i(() => {
|
|
89
|
+
var e;
|
|
90
|
+
return n.title || t.title ? r(d, null, [n.title || ((e = t.title) == null ? void 0 : e.call(t))]) : void 0;
|
|
91
|
+
}), m = i(() => {
|
|
92
|
+
var e;
|
|
93
|
+
return n.prefix || t.prefix ? r(d, null, [n.prefix || ((e = t.prefix) == null ? void 0 : e.call(t))]) : void 0;
|
|
94
|
+
}), v = i(() => {
|
|
95
|
+
var e;
|
|
96
|
+
return n.suffix || t.suffix ? r(d, null, [n.suffix || ((e = t.suffix) == null ? void 0 : e.call(t))]) : void 0;
|
|
97
|
+
}), h = i(() => {
|
|
98
|
+
var e;
|
|
99
|
+
return n.description || t.description ? r("div", {
|
|
100
|
+
class: k.value
|
|
101
|
+
}, [n.description || ((e = t.description) == null ? void 0 : e.call(t))]) : void 0;
|
|
102
|
+
});
|
|
103
|
+
return (e, G) => (l(), P("div", y({
|
|
104
|
+
...e.$attrs
|
|
105
|
+
}, {
|
|
106
|
+
class: b.value
|
|
107
|
+
}), [(l(), a(o(w.value))), x("div", {
|
|
108
|
+
class: C(M.value)
|
|
109
|
+
}, [(l(), a(o(_.value))), x("div", {
|
|
110
|
+
class: C(A.value)
|
|
111
|
+
}, [r(O(R), y({
|
|
112
|
+
class: j.value
|
|
113
|
+
}, {
|
|
114
|
+
...O(T)(n, ["title", "prefix"])
|
|
115
|
+
}), V({
|
|
116
|
+
_: 2
|
|
117
|
+
}, [p.value || c.value ? {
|
|
118
|
+
name: "title",
|
|
119
|
+
fn: s(() => [(l(), a(o(p.value))), (l(), a(o(c.value)))]),
|
|
120
|
+
key: "0"
|
|
121
|
+
} : void 0, f.value || m.value ? {
|
|
122
|
+
name: "prefix",
|
|
123
|
+
fn: s(() => [(l(), a(o(f.value))), (l(), a(o(m.value)))]),
|
|
124
|
+
key: "1"
|
|
125
|
+
} : void 0, v.value ? {
|
|
126
|
+
name: "suffix",
|
|
127
|
+
fn: s(() => [(l(), a(o(v.value)))]),
|
|
128
|
+
key: "2"
|
|
129
|
+
} : void 0]), 1040, ["class"]), (l(), a(o(h.value)))], 2)], 2)], 16));
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
export {
|
|
133
|
+
Y as default
|
|
134
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApStatisticCardProps, ApProCardSolts } from '../../interface';
|
|
2
|
+
import { VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly< ApProCardSolts & {
|
|
6
|
+
chart?: () => VNodeChild;
|
|
7
|
+
footer?: () => VNodeChild;
|
|
8
|
+
description?: () => VNodeChild;
|
|
9
|
+
}> & ApProCardSolts & {
|
|
10
|
+
chart?: () => VNodeChild;
|
|
11
|
+
footer?: () => VNodeChild;
|
|
12
|
+
description?: () => VNodeChild;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: DefineComponent<ApStatisticCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApStatisticCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|