@aplus-frontend/ui 6.21.1 → 6.22.0-beta.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 +27 -25
- package/es/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.d.ts +2 -9
- package/es/src/ag-grid/components/body-cell/index.vue2.mjs +27 -0
- package/{lib/src/ap-pro-card/components/divider → es/src/ag-grid/components/header-cell}/index.vue.d.ts +2 -9
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +59 -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 +41 -0
- package/es/src/ag-grid/index.vue.mjs +377 -0
- package/es/src/ag-grid/index.vue2.mjs +4 -0
- package/es/src/ag-grid/interface.d.ts +194 -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/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 +37 -37
- package/es/src/ap-pro-card/index.d.ts +41 -9
- package/es/src/ap-pro-card/index.mjs +4 -10
- package/es/src/ap-pro-card/interface.d.ts +2 -2
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +293 -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.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.vue2.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 +41 -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 +194 -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/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/index.d.ts +41 -9
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/interface.d.ts +2 -2
- package/lib/src/ap-table/utils.d.ts +1 -1
- 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/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -0
- package/theme/ap-pro-card/index.css +0 -52
- package/theme/ap-pro-card/index.less +0 -56
- package/theme/index.css +164 -55
- package/theme/index.less +1 -0
- package/es/src/ap-pro-card/components/divider/index.vue2.mjs +0 -29
- package/es/src/ap-pro-card/components/title/index.vue.d.ts +0 -23
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +0 -28
- package/lib/src/ap-pro-card/components/divider/index.vue2.js +0 -1
- package/lib/src/ap-pro-card/components/title/index.vue.d.ts +0 -23
- package/lib/src/ap-pro-card/components/title/index.vue2.js +0 -1
- /package/es/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.mjs +0 -0
- /package/es/src/{ap-pro-card/components/title → ag-grid/components/header-cell}/index.vue.mjs +0 -0
- /package/lib/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.js +0 -0
- /package/lib/src/{ap-pro-card/components/title → ag-grid/components/header-cell}/index.vue.js +0 -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 T, Fragment as c } from "vue";
|
|
2
|
+
import { isUndefined as N, isArray as b, isString as y, isBoolean as F, isNumber as w, pick as v } from "lodash-unified";
|
|
3
|
+
import { valueEnumToArray as E, objectToString as O, getTableTitle as x, 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 A(e) {
|
|
8
|
+
if (!N(e))
|
|
9
|
+
return b(e) ? e.reduce((t, r) => y(r) ? `${t}.${r}` : `${t}[${r}]`, "") : String(e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function R(e) {
|
|
12
12
|
if (e)
|
|
13
13
|
return e === !0 ? "left" : e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function q(e) {
|
|
16
|
+
return F(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 F(e.filters) && e.valueEnum ? t = E(e.valueEnum) : t = e.filters, t == null ? void 0 : t.map((r) => ({
|
|
29
|
+
label: y(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 T(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 h(e, t, r) {
|
|
65
|
+
const l = v(e, ["width", "minWidth", "align"]);
|
|
66
|
+
return l.field = A(e.dataIndex), l.fixed = R(e.fixed), l.slots = {
|
|
67
|
+
header: () => x(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, p;
|
|
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 ? T(c, null, [(p = r.renderText) == null ? void 0 : p.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
|
+
})), f;
|
|
96
|
+
};
|
|
97
|
+
function o(e, t, r, l) {
|
|
98
|
+
const i = v(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
|
|
99
|
+
i.field = A(e.dataIndex), i.fixed = R(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: () => x(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 o(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 = h(a, t, r);
|
|
126
|
+
return u.children = i(a.children), u;
|
|
126
127
|
}
|
|
127
|
-
return
|
|
128
|
+
return o(a, t, r, l);
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
-
return
|
|
131
|
+
const d = h(e, t, r);
|
|
132
|
+
return d.children = i(e.children), d;
|
|
132
133
|
}
|
|
133
134
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
z as contentCustom,
|
|
136
|
+
A as dataIndexToField,
|
|
137
|
+
J as transformCol,
|
|
138
|
+
R as transformFixed,
|
|
139
|
+
h as transformToColGroup,
|
|
140
|
+
o as transformToColumn
|
|
137
141
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Y, useSlots as Z, computed as s, ref as ee, createVNode as u, Fragment as x, createElementBlock as b, openBlock as n, mergeProps as te, createCommentVNode as v, createElementVNode as
|
|
2
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as Y, useSlots as Z, computed as s, ref as ee, createVNode as u, Fragment as x, createElementBlock as b, openBlock as n, mergeProps as te, createCommentVNode as v, createElementVNode as re, normalizeStyle as w, normalizeClass as m, unref as g, renderSlot as G, createBlock as p, resolveDynamicComponent as h, withCtx as P } from "vue";
|
|
2
|
+
import { Spin as oe, Tooltip as le } from "@aplus-frontend/antdv";
|
|
3
3
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
4
4
|
import { getProCardCssVar as ae } from "../../utils/css-var.mjs";
|
|
5
5
|
import "../../../config-provider/index.mjs";
|
|
@@ -64,10 +64,10 @@ const be = /* @__PURE__ */ Y({
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
setup(E) {
|
|
67
|
-
const t = E,
|
|
67
|
+
const t = E, r = Z(), {
|
|
68
68
|
b: c
|
|
69
|
-
} = se("pro-card"), V = de("uiMode"), M = s(() => ae(V.value)), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], f = ie(), k = (e,
|
|
70
|
-
const
|
|
69
|
+
} = se("pro-card"), V = de("uiMode"), M = s(() => ae(V.value)), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], f = ie(), k = (e, o) => e ? o : {}, _ = (e) => {
|
|
70
|
+
const o = [0, 0];
|
|
71
71
|
return (Array.isArray(e) ? e : [e, 0]).forEach((a, d) => {
|
|
72
72
|
if (typeof a == "object")
|
|
73
73
|
for (let i = 0; i < $.length; i += 1) {
|
|
@@ -82,15 +82,15 @@ const be = /* @__PURE__ */ Y({
|
|
|
82
82
|
xxxl: !1,
|
|
83
83
|
...f == null ? void 0 : f.value
|
|
84
84
|
}[y] && a[y] !== void 0) {
|
|
85
|
-
|
|
85
|
+
o[d] = a[y];
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
else
|
|
90
|
-
|
|
91
|
-
}),
|
|
90
|
+
o[d] = a || 0;
|
|
91
|
+
}), o;
|
|
92
92
|
}, I = (e) => {
|
|
93
|
-
let
|
|
93
|
+
let o = e;
|
|
94
94
|
if (typeof e == "object")
|
|
95
95
|
for (let a = 0; a < $.length; a += 1) {
|
|
96
96
|
const d = $[a], i = {
|
|
@@ -104,30 +104,30 @@ const be = /* @__PURE__ */ Y({
|
|
|
104
104
|
...f == null ? void 0 : f.value
|
|
105
105
|
};
|
|
106
106
|
if (i != null && i[d] && (e == null ? void 0 : e[d]) !== void 0) {
|
|
107
|
-
|
|
107
|
+
o = e[d];
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
const l = k(typeof
|
|
112
|
-
width:
|
|
111
|
+
const l = k(typeof o == "string" && /\d%|\dpx/i.test(o), {
|
|
112
|
+
width: o,
|
|
113
113
|
flexShrink: 0
|
|
114
114
|
});
|
|
115
115
|
return {
|
|
116
|
-
span:
|
|
116
|
+
span: o,
|
|
117
117
|
colSpanStyle: l
|
|
118
118
|
};
|
|
119
119
|
}, D = s(() => _(t.gutter)), N = ee(!1), O = (e) => {
|
|
120
120
|
N.value = e;
|
|
121
121
|
}, F = s(() => {
|
|
122
122
|
var e;
|
|
123
|
-
return u(x, null, [t.title || ((e =
|
|
123
|
+
return u(x, null, [t.title || ((e = r.title) == null ? void 0 : e.call(r))]);
|
|
124
124
|
}), H = s(() => u(x, null, [t.tooltip])), Q = s(() => {
|
|
125
125
|
var e;
|
|
126
|
-
return u(x, null, [t.extra || ((e =
|
|
126
|
+
return u(x, null, [t.extra || ((e = r.extra) == null ? void 0 : e.call(r))]);
|
|
127
127
|
}), T = s(() => {
|
|
128
128
|
var e;
|
|
129
|
-
return u(x, null, [t.actions || ((e =
|
|
130
|
-
}), q = s(() => t.loading === !0 ? u(
|
|
129
|
+
return u(x, null, [t.actions || ((e = r.actions) == null ? void 0 : e.call(r))]);
|
|
130
|
+
}), q = s(() => t.loading === !0 ? u(oe, {
|
|
131
131
|
style: {
|
|
132
132
|
width: "100%",
|
|
133
133
|
height: "100%",
|
|
@@ -137,34 +137,34 @@ const be = /* @__PURE__ */ Y({
|
|
|
137
137
|
}
|
|
138
138
|
}, null) : u(x, null, [t.loading]));
|
|
139
139
|
function J() {
|
|
140
|
-
var
|
|
141
|
-
const e = (
|
|
142
|
-
return O(!1), u(x, null, [e == null ? void 0 : e.map((l, a, d) => {
|
|
140
|
+
var o;
|
|
141
|
+
const e = (o = r.default) == null ? void 0 : o.call(r);
|
|
142
|
+
return O(!1), u(x, null, [Array.isArray(e) ? e == null ? void 0 : e.map((l, a, d) => {
|
|
143
143
|
var i, y, z;
|
|
144
144
|
if (l && typeof l == "object" && "type" in l && ((i = l.type) == null ? void 0 : i.isProCard) === !0) {
|
|
145
145
|
O(!0);
|
|
146
146
|
const U = ((y = l == null ? void 0 : l.props) == null ? void 0 : y.colSpan) || ((z = l == null ? void 0 : l.props) == null ? void 0 : z["col-span"]) || {}, {
|
|
147
147
|
span: C,
|
|
148
148
|
colSpanStyle: W
|
|
149
|
-
} = I(U), B = c("col"), X = S(`${B}`, [typeof C == "number" && C >= 0 && C <= 24 ? `${B}-span-${C}` : void 0, t.split === "horizontal" && a !== d.length - 1 ? `${B}-split-horizontal` : void 0, t.split === "vertical" && a !== d.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [
|
|
149
|
+
} = I(U), B = c("col"), X = S(`${B}`, [typeof C == "number" && C >= 0 && C <= 24 ? `${B}-span-${C}` : void 0, t.split === "horizontal" && a !== d.length - 1 ? `${B}-split-horizontal` : void 0, t.split === "vertical" && a !== d.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [A, j] = D.value;
|
|
150
150
|
return u("div", {
|
|
151
151
|
class: X,
|
|
152
152
|
style: {
|
|
153
153
|
...W,
|
|
154
|
-
...k(
|
|
155
|
-
paddingInlineStart: `${
|
|
156
|
-
paddingInlineEnd: `${
|
|
154
|
+
...k(A > 0, {
|
|
155
|
+
paddingInlineStart: `${A / 2}px`,
|
|
156
|
+
paddingInlineEnd: `${A / 2}px`
|
|
157
157
|
}),
|
|
158
|
-
...k(
|
|
159
|
-
paddingBlockStart: `${
|
|
160
|
-
paddingBlockEnd: `${
|
|
158
|
+
...k(j > 0, {
|
|
159
|
+
paddingBlockStart: `${j / 2}px`,
|
|
160
|
+
paddingBlockEnd: `${j / 2}px`
|
|
161
161
|
}),
|
|
162
162
|
...t.colStyle
|
|
163
163
|
}
|
|
164
164
|
}, [l]);
|
|
165
165
|
}
|
|
166
166
|
return l;
|
|
167
|
-
})]);
|
|
167
|
+
}) : e]);
|
|
168
168
|
}
|
|
169
169
|
const K = s(() => {
|
|
170
170
|
const e = c();
|
|
@@ -176,20 +176,20 @@ const be = /* @__PURE__ */ Y({
|
|
|
176
176
|
const e = c("body");
|
|
177
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));
|
|
178
178
|
});
|
|
179
|
-
return (e,
|
|
179
|
+
return (e, o) => (n(), b("div", te({
|
|
180
180
|
class: K.value,
|
|
181
181
|
style: {
|
|
182
182
|
...M.value
|
|
183
183
|
}
|
|
184
184
|
}, {
|
|
185
185
|
...e.$attrs
|
|
186
|
-
}), [t.title ||
|
|
186
|
+
}), [t.title || r.title || t.extra || r.extra ? (n(), b("div", {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: m(L.value),
|
|
189
|
-
style:
|
|
189
|
+
style: w({
|
|
190
190
|
...t.headStyle
|
|
191
191
|
})
|
|
192
|
-
}, [t.title ||
|
|
192
|
+
}, [t.title || r.title ? (n(), b("div", {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: m(g(c)("header-title"))
|
|
195
195
|
}, [G(e.$slots, "title", {}, () => [(n(), p(h(F.value)))]), t.tooltip ? (n(), p(g(le), {
|
|
@@ -200,22 +200,22 @@ const be = /* @__PURE__ */ Y({
|
|
|
200
200
|
class: m(g(c)("header-title-tooltip"))
|
|
201
201
|
}, null, 8, ["class"])]),
|
|
202
202
|
_: 1
|
|
203
|
-
})) : v("", !0)], 2)) : v("", !0), t.extra ||
|
|
203
|
+
})) : v("", !0)], 2)) : v("", !0), t.extra || r.extra ? (n(), b("div", {
|
|
204
204
|
key: 1,
|
|
205
205
|
class: m(g(c)("header-extra"))
|
|
206
|
-
}, [G(e.$slots, "extra", {}, () => [(n(), p(h(Q.value)))])], 2)) : v("", !0)], 6)) : v("", !0),
|
|
206
|
+
}, [G(e.$slots, "extra", {}, () => [(n(), p(h(Q.value)))])], 2)) : v("", !0)], 6)) : v("", !0), re("div", {
|
|
207
207
|
class: m(R.value),
|
|
208
|
-
style:
|
|
208
|
+
style: w({
|
|
209
209
|
...t.bodyStyle
|
|
210
210
|
})
|
|
211
211
|
}, [t.loading ? (n(), p(h(q.value), {
|
|
212
212
|
key: 0
|
|
213
213
|
})) : (n(), p(h(J()), {
|
|
214
214
|
key: 1
|
|
215
|
-
}))], 6), t.actions ||
|
|
215
|
+
}))], 6), t.actions || r.actions ? (n(), b("div", {
|
|
216
216
|
key: 1,
|
|
217
217
|
class: m(g(c)("actions")),
|
|
218
|
-
style:
|
|
218
|
+
style: w({
|
|
219
219
|
...t.actionsStyle
|
|
220
220
|
})
|
|
221
221
|
}, [(n(), p(h(T.value)))], 6)) : v("", !0)], 16));
|
|
@@ -1,10 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { ApProCardProps, ApProCardGutter, ApProCardSolts } from './interface';
|
|
3
|
+
declare const ApProCard: {
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
5
|
+
wrap: boolean;
|
|
6
|
+
boxShadow: boolean;
|
|
7
|
+
gutter: ApProCardGutter | ApProCardGutter[];
|
|
8
|
+
ghost: boolean;
|
|
9
|
+
bordered: boolean;
|
|
10
|
+
headerBordered: boolean;
|
|
11
|
+
hoverable: boolean;
|
|
12
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
13
|
+
P: {};
|
|
14
|
+
B: {};
|
|
15
|
+
D: {};
|
|
16
|
+
C: {};
|
|
17
|
+
M: {};
|
|
18
|
+
Defaults: {};
|
|
19
|
+
}, Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
20
|
+
wrap: boolean;
|
|
21
|
+
boxShadow: boolean;
|
|
22
|
+
gutter: ApProCardGutter | ApProCardGutter[];
|
|
23
|
+
ghost: boolean;
|
|
24
|
+
bordered: boolean;
|
|
25
|
+
headerBordered: boolean;
|
|
26
|
+
hoverable: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
__isFragment?: never;
|
|
29
|
+
__isTeleport?: never;
|
|
30
|
+
__isSuspense?: never;
|
|
31
|
+
} & ComponentOptionsBase<Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
32
|
+
wrap: boolean;
|
|
33
|
+
boxShadow: boolean;
|
|
34
|
+
gutter: ApProCardGutter | ApProCardGutter[];
|
|
35
|
+
ghost: boolean;
|
|
36
|
+
bordered: boolean;
|
|
37
|
+
headerBordered: boolean;
|
|
38
|
+
hoverable: boolean;
|
|
39
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
40
|
+
$slots: Readonly< ApProCardSolts> & ApProCardSolts;
|
|
41
|
+
});
|
|
10
42
|
export { ApProCard };
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import "./components/card/index.vue.mjs";
|
|
2
|
-
import "./components/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import o from "./components/divider/index.vue2.mjs";
|
|
6
|
-
import m from "./components/title/index.vue2.mjs";
|
|
7
|
-
const r = i;
|
|
8
|
-
r.isProCard = !0;
|
|
9
|
-
r.Divider = o;
|
|
10
|
-
r.Title = m;
|
|
2
|
+
import r from "./components/card/index.vue2.mjs";
|
|
3
|
+
const o = r;
|
|
4
|
+
o.isProCard = !0;
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
o as ApProCard
|
|
13
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import { CSSProperties, VNodeChild } from 'vue';
|
|
2
2
|
export type ApProCardBreakpoint = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
3
|
export type ApProCardGutter = number | Partial<Record<ApProCardBreakpoint, number>>;
|
|
4
4
|
export type ApProCardColSpanType = number | string;
|
|
@@ -51,7 +51,7 @@ export interface ApProCardProps {
|
|
|
51
51
|
}
|
|
52
52
|
export type ApProCardSolts = {
|
|
53
53
|
/** 内容区 */
|
|
54
|
-
default?: () =>
|
|
54
|
+
default?: () => VNodeChild;
|
|
55
55
|
/** 标题 */
|
|
56
56
|
title?: () => VNodeChild;
|
|
57
57
|
/** 右上角自定义区域 */
|
|
@@ -97,7 +97,7 @@ export declare function updateFormProps(item: ApColumnType<any, any>, fieldProps
|
|
|
97
97
|
* @returns
|
|
98
98
|
*/
|
|
99
99
|
export declare function objectToString(value: any): any;
|
|
100
|
-
export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassName: string, slot?: (props: {
|
|
100
|
+
export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassName: string | string[], slot?: (props: {
|
|
101
101
|
title: any;
|
|
102
102
|
column: ApColumnType<any>;
|
|
103
103
|
}) => any, tooltipColor?: string): number | boolean | void | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
|
package/es/src/index.d.ts
CHANGED