@aplus-frontend/ui 6.21.1 → 6.22.0
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 +160 -155
- package/es/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
- package/es/src/ag-grid/components/body-cell/index.vue.mjs +4 -0
- package/es/src/ag-grid/components/body-cell/index.vue2.mjs +27 -0
- package/es/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
- package/es/src/ag-grid/components/header-cell/index.vue.mjs +4 -0
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +65 -0
- package/es/src/ag-grid/context.d.ts +18 -0
- package/es/src/ag-grid/context.mjs +17 -0
- package/es/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
- package/es/src/ag-grid/hooks/use-row-selection.mjs +98 -0
- package/es/src/ag-grid/index.d.ts +3 -0
- package/es/src/ag-grid/index.mjs +2 -0
- package/es/src/ag-grid/index.vue.d.ts +43 -0
- package/es/src/ag-grid/index.vue.mjs +512 -0
- package/es/src/ag-grid/index.vue2.mjs +4 -0
- package/es/src/ag-grid/interface.d.ts +296 -0
- package/es/src/ag-grid/interface.mjs +1 -0
- package/es/src/ag-grid/style/css.d.ts +0 -0
- package/es/src/ag-grid/style/css.js +1 -0
- package/es/src/ag-grid/style/index.d.ts +0 -0
- package/es/src/ag-grid/style/index.js +1 -0
- 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/index.vue.mjs +1 -1
- package/es/src/ap-grid/utils/col.d.ts +11 -0
- package/es/src/ap-grid/utils/col.mjs +99 -95
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +112 -102
- 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/index.d.ts +13 -3
- package/es/src/ap-pro-card/index.mjs +16 -4
- package/es/src/ap-pro-card/interface.d.ts +64 -0
- package/es/src/ap-table/utils.d.ts +1 -1
- 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.d.ts +1 -0
- package/es/src/index.mjs +296 -290
- 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/body-cell/index.vue.d.ts +6 -0
- package/lib/src/ag-grid/components/body-cell/index.vue.js +1 -0
- package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -0
- package/lib/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
- package/lib/src/ag-grid/components/header-cell/index.vue.js +1 -0
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -0
- package/lib/src/ag-grid/context.d.ts +18 -0
- package/lib/src/ag-grid/context.js +1 -0
- package/lib/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -0
- package/lib/src/ag-grid/index.d.ts +3 -0
- package/lib/src/ag-grid/index.js +1 -0
- package/lib/src/ag-grid/index.vue.d.ts +43 -0
- package/lib/src/ag-grid/index.vue.js +1 -0
- package/lib/src/ag-grid/index.vue2.js +1 -0
- package/lib/src/ag-grid/interface.d.ts +296 -0
- package/lib/src/ag-grid/interface.js +1 -0
- package/lib/src/ag-grid/style/css.cjs +1 -0
- package/lib/src/ag-grid/style/css.d.ts +0 -0
- package/lib/src/ag-grid/style/index.cjs +1 -0
- package/lib/src/ag-grid/style/index.d.ts +0 -0
- 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/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.d.ts +11 -0
- 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/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/index.d.ts +13 -3
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/interface.d.ts +64 -0
- package/lib/src/ap-table/utils.d.ts +1 -1
- 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.d.ts +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 +3 -1
- package/theme/ag-grid/index.css +468 -0
- package/theme/ag-grid/index.less +25 -0
- package/theme/ap-button/ap-button.css +1 -1
- package/theme/ap-button/ap-button.less +1 -1
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -0
- package/theme/ap-pro-card/index.css +147 -0
- package/theme/ap-pro-card/index.less +147 -0
- package/theme/ap-tag/ap-tag.css +1 -1
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/index.css +330 -5
- package/theme/index.less +1 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createVNode as
|
|
2
|
-
import { isUndefined as
|
|
3
|
-
import { valueEnumToArray as
|
|
4
|
-
import { noRenderAsFormItemValueList as
|
|
1
|
+
import { createVNode as p, Fragment as o } from "vue";
|
|
2
|
+
import { isUndefined as N, isArray as b, isString as F, isBoolean as v, isNumber as w, pick as x } from "lodash-unified";
|
|
3
|
+
import { valueEnumToArray as E, objectToString as O, getTableTitle as A, getTableRenderType as S, getTableRenderProps as $, getTableCellRenderNode as M } from "../../ap-table/utils.mjs";
|
|
4
|
+
import { noRenderAsFormItemValueList as V } from "../../ap-table/constants.mjs";
|
|
5
5
|
import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
if (!
|
|
9
|
-
return
|
|
6
|
+
import j from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
|
|
7
|
+
function R(e) {
|
|
8
|
+
if (!N(e))
|
|
9
|
+
return b(e) ? e.reduce((t, r) => F(r) ? `${t}.${r}` : `${t}[${r}]`, "") : String(e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function c(e) {
|
|
12
12
|
if (e)
|
|
13
13
|
return e === !0 ? "left" : e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function q(e) {
|
|
16
|
+
return v(e) ? {
|
|
17
17
|
sortable: e
|
|
18
18
|
} : e ? {
|
|
19
19
|
sortable: !0,
|
|
@@ -23,115 +23,119 @@ function z(e) {
|
|
|
23
23
|
sortable: !1
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
let
|
|
28
|
-
return
|
|
29
|
-
label:
|
|
30
|
-
value:
|
|
26
|
+
function B(e) {
|
|
27
|
+
let t;
|
|
28
|
+
return v(e.filters) && e.valueEnum ? t = E(e.valueEnum) : t = e.filters, t == null ? void 0 : t.map((r) => ({
|
|
29
|
+
label: F(r.text) ? r.text : "",
|
|
30
|
+
value: r.value
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function W(e) {
|
|
34
34
|
if (e)
|
|
35
|
-
return (
|
|
35
|
+
return (t) => e(t.value, t.row);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return e ?
|
|
39
|
-
tooltip:
|
|
37
|
+
function _(e, t) {
|
|
38
|
+
return e ? w(e) ? {
|
|
39
|
+
tooltip: t,
|
|
40
40
|
rows: e
|
|
41
41
|
} : e === !0 || e === "tooltip" ? {
|
|
42
|
-
tooltip:
|
|
42
|
+
tooltip: t,
|
|
43
43
|
rows: 1
|
|
44
44
|
} : {
|
|
45
45
|
tooltip: null,
|
|
46
46
|
rows: 1,
|
|
47
|
-
htmlTitle: e === "title" ?
|
|
47
|
+
htmlTitle: e === "title" ? t : ""
|
|
48
48
|
} : !1;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
50
|
+
function k(e, t, r) {
|
|
51
|
+
if (V.includes(e.valueType))
|
|
52
|
+
return r;
|
|
53
53
|
if (e.copyable || e.ellipsis) {
|
|
54
|
-
const l =
|
|
55
|
-
return
|
|
56
|
-
rawValue:
|
|
54
|
+
const l = _(e.ellipsis, t), i = O(t);
|
|
55
|
+
return p(j, {
|
|
56
|
+
rawValue: i,
|
|
57
57
|
copyable: e.copyable,
|
|
58
58
|
ellipsis: l,
|
|
59
|
-
content:
|
|
59
|
+
content: r
|
|
60
60
|
}, null);
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const l =
|
|
66
|
-
return l.field =
|
|
67
|
-
header: () =>
|
|
64
|
+
function T(e, t, r) {
|
|
65
|
+
const l = x(e, ["width", "minWidth", "align"]);
|
|
66
|
+
return l.field = R(e.dataIndex), l.fixed = c(e.fixed), l.slots = {
|
|
67
|
+
header: () => A(e, r, void 0, t)
|
|
68
68
|
}, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
t
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
70
|
+
const z = ({
|
|
71
|
+
value: e,
|
|
72
|
+
...t
|
|
73
|
+
}, r, l) => {
|
|
74
|
+
var u, h;
|
|
75
|
+
const i = S(r), d = $({
|
|
76
|
+
...r,
|
|
77
|
+
valueType: i
|
|
78
|
+
}, {
|
|
79
|
+
value: e,
|
|
80
|
+
...t
|
|
81
|
+
}), s = M(i, d, t.record, l), n = ((u = r.renderText) == null ? void 0 : u.call(r, {
|
|
82
|
+
value: e,
|
|
83
|
+
...t
|
|
84
|
+
})) || e, a = r.renderText ? p(o, null, [(h = r.renderText) == null ? void 0 : h.call(r, {
|
|
85
|
+
value: e,
|
|
86
|
+
...t
|
|
87
|
+
})]) : s;
|
|
88
|
+
let f = k(r, n, a);
|
|
89
|
+
return r.customRender && (f = r.customRender({
|
|
90
|
+
value: e,
|
|
91
|
+
...t,
|
|
92
|
+
column: r,
|
|
93
|
+
originalNode: f,
|
|
94
|
+
originalText: n
|
|
95
|
+
})), p(o, null, [f]);
|
|
96
|
+
};
|
|
97
|
+
function y(e, t, r, l) {
|
|
98
|
+
const i = x(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
|
|
99
|
+
i.field = R(e.dataIndex), i.fixed = c(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, q(e.sorter)), i.filters = B(e), i.filterMultiple = e.filterMultiple, i.filterMethod = W(e.onFilter);
|
|
100
|
+
const d = ({
|
|
101
|
+
row: s,
|
|
102
|
+
rowIndex: n
|
|
103
|
+
}) => z({
|
|
104
|
+
value: s[i.field],
|
|
105
|
+
text: s[i.field],
|
|
106
|
+
record: s,
|
|
107
|
+
index: n,
|
|
108
|
+
renderIndex: n,
|
|
108
109
|
column: e
|
|
109
|
-
});
|
|
110
|
-
return
|
|
111
|
-
header: () =>
|
|
112
|
-
default:
|
|
113
|
-
footer:
|
|
114
|
-
}, e.html && (delete
|
|
110
|
+
}, e, l);
|
|
111
|
+
return i.slots = {
|
|
112
|
+
header: () => A(e, r, void 0, t),
|
|
113
|
+
default: d,
|
|
114
|
+
footer: d
|
|
115
|
+
}, e.html && (delete i.slots.default, delete i.slots.footer, i.type = "html"), e.seq && (i.type = "seq", i.slots = {}), i;
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
-
var
|
|
118
|
-
if (!((
|
|
119
|
-
return
|
|
120
|
-
function
|
|
121
|
-
return
|
|
122
|
-
var
|
|
123
|
-
if ((
|
|
124
|
-
const u =
|
|
125
|
-
return u.children =
|
|
117
|
+
function J(e, t, r, l) {
|
|
118
|
+
var s;
|
|
119
|
+
if (!((s = e.children) != null && s.length))
|
|
120
|
+
return y(e, t, r, l);
|
|
121
|
+
function i(n) {
|
|
122
|
+
return n.map((a) => {
|
|
123
|
+
var f;
|
|
124
|
+
if ((f = a.children) != null && f.length) {
|
|
125
|
+
const u = T(a, t, r);
|
|
126
|
+
return u.children = i(a.children), u;
|
|
126
127
|
}
|
|
127
|
-
return
|
|
128
|
+
return y(a, t, r, l);
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
-
return
|
|
131
|
+
const d = T(e, t, r);
|
|
132
|
+
return d.children = i(e.children), d;
|
|
132
133
|
}
|
|
133
134
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
z as contentCustom,
|
|
136
|
+
R as dataIndexToField,
|
|
137
|
+
J as transformCol,
|
|
138
|
+
c as transformFixed,
|
|
139
|
+
T as transformToColGroup,
|
|
140
|
+
y as transformToColumn
|
|
137
141
|
};
|
|
@@ -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
|
-
} =
|
|
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
70
|
const r = [0, 0];
|
|
71
|
-
return (Array.isArray(
|
|
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
|
-
r[
|
|
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
|
-
r[
|
|
90
|
+
r[o] = a || 0;
|
|
91
91
|
}), r;
|
|
92
|
-
},
|
|
93
|
-
let r =
|
|
94
|
-
if (typeof
|
|
95
|
-
for (let a = 0; a <
|
|
96
|
-
const
|
|
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
|
-
r =
|
|
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
|
|
111
|
+
const n = k(typeof r == "string" && /\d%|\dpx/i.test(r), {
|
|
112
112
|
width: r,
|
|
113
113
|
flexShrink: 0
|
|
114
114
|
});
|
|
115
115
|
return {
|
|
116
116
|
span: r,
|
|
117
|
-
colSpanStyle:
|
|
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,92 +135,102 @@ 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
|
-
...
|
|
154
|
-
...k(
|
|
155
|
-
paddingInlineStart: `${
|
|
156
|
-
paddingInlineEnd: `${
|
|
164
|
+
...Z,
|
|
165
|
+
...k(A > 0, {
|
|
166
|
+
paddingInlineStart: `${A / 2}px`,
|
|
167
|
+
paddingInlineEnd: `${A / 2}px`
|
|
157
168
|
}),
|
|
158
|
-
...k(
|
|
159
|
-
paddingBlockStart: `${
|
|
160
|
-
paddingBlockEnd: `${
|
|
169
|
+
...k(j > 0, {
|
|
170
|
+
paddingBlockStart: `${j / 2}px`,
|
|
171
|
+
paddingBlockEnd: `${j / 2}px`
|
|
161
172
|
}),
|
|
162
|
-
...
|
|
173
|
+
...e.colStyle
|
|
163
174
|
}
|
|
164
|
-
}, [
|
|
175
|
+
}, [o]);
|
|
165
176
|
}
|
|
166
|
-
return
|
|
177
|
+
return o;
|
|
167
178
|
})]);
|
|
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));
|
|
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:
|
|
189
|
-
style:
|
|
190
|
-
...
|
|
198
|
+
class: g(W.value),
|
|
199
|
+
style: w({
|
|
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:
|
|
208
|
-
style:
|
|
209
|
-
...
|
|
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),
|
|
218
|
+
style: w({
|
|
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:
|
|
218
|
-
style:
|
|
219
|
-
...
|
|
227
|
+
class: g(h(c)("actions")),
|
|
228
|
+
style: w({
|
|
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,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
|
+
};
|