@aplus-frontend/ui 7.8.0 → 7.9.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 +26 -24
- package/es/src/ag-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ag-grid/index.vue.mjs +53 -52
- package/es/src/ag-grid/style/index.mjs +9 -4
- package/es/src/ap-form/style/item-text-group.mjs +8 -4
- package/es/src/ap-table/style/index.d.ts +2 -2
- package/es/src/ap-table/style/index.mjs +3 -3
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +20 -19
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +14 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +73 -71
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +288 -286
- package/es/src/skeleton/components/desc/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/desc/index.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/index.vue2.mjs +37 -0
- package/es/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
- package/es/src/skeleton/components/desc/item-large.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +72 -0
- package/es/src/skeleton/components/desc/item.vue.d.ts +7 -0
- package/es/src/skeleton/components/desc/item.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/item.vue2.mjs +69 -0
- package/es/src/skeleton/components/line/index.d.ts +14 -0
- package/es/src/skeleton/components/line/index.mjs +26 -0
- package/es/src/skeleton/components/list/index.vue.d.ts +10 -0
- package/es/src/skeleton/components/list/index.vue.mjs +4 -0
- package/es/src/skeleton/components/list/index.vue2.mjs +49 -0
- package/es/src/skeleton/components/list/item.vue.d.ts +6 -0
- package/es/src/skeleton/components/list/item.vue.mjs +4 -0
- package/es/src/skeleton/components/list/item.vue2.mjs +57 -0
- package/es/src/skeleton/components/page-header/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/page-header/index.vue.mjs +4 -0
- package/es/src/skeleton/components/page-header/index.vue2.mjs +24 -0
- package/es/src/skeleton/components/search-form/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/search-form/index.vue.mjs +4 -0
- package/es/src/skeleton/components/search-form/index.vue2.mjs +99 -0
- package/es/src/skeleton/components/table/index.vue.d.ts +11 -0
- package/es/src/skeleton/components/table/index.vue.mjs +4 -0
- package/es/src/skeleton/components/table/index.vue2.mjs +78 -0
- package/es/src/skeleton/components/table/item.vue.d.ts +9 -0
- package/es/src/skeleton/components/table/item.vue.mjs +4 -0
- package/es/src/skeleton/components/table/item.vue2.mjs +80 -0
- package/es/src/skeleton/descriptions.vue.d.ts +8 -0
- package/es/src/skeleton/descriptions.vue.mjs +4 -0
- package/es/src/skeleton/descriptions.vue2.mjs +37 -0
- package/es/src/skeleton/index.d.ts +9 -0
- package/es/src/skeleton/index.mjs +12 -0
- package/es/src/skeleton/interface.d.ts +12 -0
- package/es/src/skeleton/interface.mjs +1 -0
- package/es/src/skeleton/list-page.vue.d.ts +10 -0
- package/es/src/skeleton/list-page.vue.mjs +4 -0
- package/es/src/skeleton/list-page.vue2.mjs +50 -0
- 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/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-form/style/item-text-group.js +1 -1
- package/lib/src/ap-table/style/index.d.ts +2 -2
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/desc/index.vue.js +1 -0
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -0
- package/lib/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
- package/lib/src/skeleton/components/desc/item-large.vue.js +1 -0
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -0
- package/lib/src/skeleton/components/desc/item.vue.d.ts +7 -0
- package/lib/src/skeleton/components/desc/item.vue.js +1 -0
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -0
- package/lib/src/skeleton/components/line/index.d.ts +14 -0
- package/lib/src/skeleton/components/line/index.js +1 -0
- package/lib/src/skeleton/components/list/index.vue.d.ts +10 -0
- package/lib/src/skeleton/components/list/index.vue.js +1 -0
- package/lib/src/skeleton/components/list/index.vue2.js +1 -0
- package/lib/src/skeleton/components/list/item.vue.d.ts +6 -0
- package/lib/src/skeleton/components/list/item.vue.js +1 -0
- package/lib/src/skeleton/components/list/item.vue2.js +1 -0
- package/lib/src/skeleton/components/page-header/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/page-header/index.vue.js +1 -0
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -0
- package/lib/src/skeleton/components/search-form/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/search-form/index.vue.js +1 -0
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -0
- package/lib/src/skeleton/components/table/index.vue.d.ts +11 -0
- package/lib/src/skeleton/components/table/index.vue.js +1 -0
- package/lib/src/skeleton/components/table/index.vue2.js +1 -0
- package/lib/src/skeleton/components/table/item.vue.d.ts +9 -0
- package/lib/src/skeleton/components/table/item.vue.js +1 -0
- package/lib/src/skeleton/components/table/item.vue2.js +1 -0
- package/lib/src/skeleton/descriptions.vue.d.ts +8 -0
- package/lib/src/skeleton/descriptions.vue.js +1 -0
- package/lib/src/skeleton/descriptions.vue2.js +1 -0
- package/lib/src/skeleton/index.d.ts +9 -0
- package/lib/src/skeleton/index.js +1 -0
- package/lib/src/skeleton/interface.d.ts +12 -0
- package/lib/src/skeleton/interface.js +1 -0
- package/lib/src/skeleton/list-page.vue.d.ts +10 -0
- package/lib/src/skeleton/list-page.vue.js +1 -0
- package/lib/src/skeleton/list-page.vue2.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as o, createBlock as r, openBlock as i, unref as a, withCtx as n, createVNode as t } from "vue";
|
|
2
|
+
import { Card as c, Skeleton as l } from "@aplus-frontend/antdv";
|
|
3
|
+
import "./item.vue.mjs";
|
|
4
|
+
import "./item-large.vue.mjs";
|
|
5
|
+
import p from "./item.vue2.mjs";
|
|
6
|
+
import m from "./item-large.vue2.mjs";
|
|
7
|
+
const x = /* @__PURE__ */ o({
|
|
8
|
+
name: "ApSkeletonDesc",
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
active: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
setup(s) {
|
|
14
|
+
return (e, d) => (i(), r(a(c), {
|
|
15
|
+
variant: "borderless",
|
|
16
|
+
style: {
|
|
17
|
+
borderStartEndRadius: 0,
|
|
18
|
+
borderTopLeftRadius: 0,
|
|
19
|
+
marginBlockEnd: "16px"
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
default: n(() => [
|
|
23
|
+
t(a(l).Button, {
|
|
24
|
+
active: e.active,
|
|
25
|
+
size: "small",
|
|
26
|
+
style: { width: "100px", marginBlockEnd: "16px" }
|
|
27
|
+
}, null, 8, ["active"]),
|
|
28
|
+
t(p, { active: e.active }, null, 8, ["active"]),
|
|
29
|
+
t(m, { active: e.active }, null, 8, ["active"])
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
x as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as r, openBlock as o, createVNode as t, createElementVNode as l, unref as a } from "vue";
|
|
2
|
+
import { Skeleton as i } from "@aplus-frontend/antdv";
|
|
3
|
+
const s = { style: { marginBlockStart: "32px" } }, c = { style: {
|
|
4
|
+
width: "100%",
|
|
5
|
+
justifyContent: "space-between",
|
|
6
|
+
display: "flex"
|
|
7
|
+
} }, p = { style: {
|
|
8
|
+
flex: 1,
|
|
9
|
+
marginInlineEnd: "24px",
|
|
10
|
+
maxWidth: "300px"
|
|
11
|
+
} }, v = { style: {
|
|
12
|
+
flex: 1,
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center"
|
|
15
|
+
} }, m = { style: {
|
|
16
|
+
maxWidth: "300px",
|
|
17
|
+
margin: "auto"
|
|
18
|
+
} }, u = /* @__PURE__ */ n({
|
|
19
|
+
__name: "item-large",
|
|
20
|
+
props: {
|
|
21
|
+
active: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(d) {
|
|
24
|
+
return (e, f) => (o(), r("div", s, [
|
|
25
|
+
t(a(i).Button, {
|
|
26
|
+
active: e.active,
|
|
27
|
+
size: "small",
|
|
28
|
+
style: { width: "100px", marginBlockEnd: "16px" }
|
|
29
|
+
}, null, 8, ["active"]),
|
|
30
|
+
l("div", c, [
|
|
31
|
+
l("div", p, [
|
|
32
|
+
t(a(i), {
|
|
33
|
+
active: e.active,
|
|
34
|
+
paragraph: !1,
|
|
35
|
+
title: { style: { marginBlockStart: 0 } }
|
|
36
|
+
}, null, 8, ["active"]),
|
|
37
|
+
t(a(i), {
|
|
38
|
+
active: e.active,
|
|
39
|
+
paragraph: !1,
|
|
40
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
41
|
+
}, null, 8, ["active"]),
|
|
42
|
+
t(a(i), {
|
|
43
|
+
active: e.active,
|
|
44
|
+
paragraph: !1,
|
|
45
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
46
|
+
}, null, 8, ["active"])
|
|
47
|
+
]),
|
|
48
|
+
l("div", v, [
|
|
49
|
+
l("div", m, [
|
|
50
|
+
t(a(i), {
|
|
51
|
+
active: e.active,
|
|
52
|
+
paragraph: !1,
|
|
53
|
+
title: {
|
|
54
|
+
style: { marginBlockStart: 0 }
|
|
55
|
+
}
|
|
56
|
+
}, null, 8, ["active"]),
|
|
57
|
+
t(a(i), {
|
|
58
|
+
active: e.active,
|
|
59
|
+
paragraph: !1,
|
|
60
|
+
title: {
|
|
61
|
+
style: { marginBlockStart: "8px" }
|
|
62
|
+
}
|
|
63
|
+
}, null, 8, ["active"])
|
|
64
|
+
])
|
|
65
|
+
])
|
|
66
|
+
])
|
|
67
|
+
]));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
u as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: number;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as y, computed as a, createElementBlock as n, openBlock as r, Fragment as g, renderList as x, normalizeStyle as k, createVNode as i, unref as s } from "vue";
|
|
2
|
+
import { Skeleton as o } from "@aplus-frontend/antdv";
|
|
3
|
+
import S from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
|
|
4
|
+
const z = { style: {
|
|
5
|
+
width: "100%",
|
|
6
|
+
justifyContent: "space-between",
|
|
7
|
+
display: "flex"
|
|
8
|
+
} }, E = /* @__PURE__ */ y({
|
|
9
|
+
name: "ApSkeletonDescItem",
|
|
10
|
+
__name: "item",
|
|
11
|
+
props: {
|
|
12
|
+
size: {},
|
|
13
|
+
active: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(u) {
|
|
16
|
+
const t = u;
|
|
17
|
+
t.size;
|
|
18
|
+
const m = {
|
|
19
|
+
lg: !0,
|
|
20
|
+
md: !0,
|
|
21
|
+
sm: !1,
|
|
22
|
+
xl: !1,
|
|
23
|
+
xs: !1,
|
|
24
|
+
xxl: !1
|
|
25
|
+
}, f = {
|
|
26
|
+
xs: 1,
|
|
27
|
+
sm: 2,
|
|
28
|
+
md: 3,
|
|
29
|
+
lg: 3,
|
|
30
|
+
xl: 3,
|
|
31
|
+
xxl: 4
|
|
32
|
+
}, d = S(), c = a(() => d.value || m), v = a(
|
|
33
|
+
() => Object.keys(c.value).filter(
|
|
34
|
+
(e) => c.value[e] === !0
|
|
35
|
+
)[0] || "md"
|
|
36
|
+
), p = a(
|
|
37
|
+
() => t.size === void 0 ? f[v.value] || 3 : t.size
|
|
38
|
+
);
|
|
39
|
+
return (e, B) => (r(), n("div", z, [
|
|
40
|
+
(r(!0), n(g, null, x(new Array(p.value).fill(null), (_, l) => (r(), n("div", {
|
|
41
|
+
key: l,
|
|
42
|
+
style: k({
|
|
43
|
+
flex: 1,
|
|
44
|
+
paddingInlineStart: l === 0 ? 0 : "24px",
|
|
45
|
+
paddingInlineEnd: l === p.value - 1 ? 0 : "24px"
|
|
46
|
+
})
|
|
47
|
+
}, [
|
|
48
|
+
i(s(o), {
|
|
49
|
+
active: e.active,
|
|
50
|
+
paragraph: !1,
|
|
51
|
+
title: { style: { marginBlockStart: 0 } }
|
|
52
|
+
}, null, 8, ["active"]),
|
|
53
|
+
i(s(o), {
|
|
54
|
+
active: e.active,
|
|
55
|
+
paragraph: !1,
|
|
56
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
57
|
+
}, null, 8, ["active"]),
|
|
58
|
+
i(s(o), {
|
|
59
|
+
active: e.active,
|
|
60
|
+
paragraph: !1,
|
|
61
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
62
|
+
}, null, 8, ["active"])
|
|
63
|
+
], 4))), 128))
|
|
64
|
+
]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
E as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const ApSkeletonLine: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
padding: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
8
|
+
padding: {
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
padding: string | number;
|
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as t, createVNode as e } from "vue";
|
|
2
|
+
import { Divider as d } from "@aplus-frontend/antdv";
|
|
3
|
+
const r = /* @__PURE__ */ t({
|
|
4
|
+
props: {
|
|
5
|
+
padding: {
|
|
6
|
+
type: [String, Number],
|
|
7
|
+
default: void 0
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
return () => {
|
|
12
|
+
e("div", {
|
|
13
|
+
style: {
|
|
14
|
+
padding: n.padding || "0 24px"
|
|
15
|
+
}
|
|
16
|
+
}, [e(d, {
|
|
17
|
+
style: {
|
|
18
|
+
margin: 0
|
|
19
|
+
}
|
|
20
|
+
}, null)]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
r as ApSkeletonLine
|
|
26
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size: number;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
actionButton?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
active: boolean;
|
|
9
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as t, unref as a, withCtx as r, createCommentVNode as s, createElementBlock as d, createVNode as p, Fragment as u, renderList as c } from "vue";
|
|
2
|
+
import { Card as o, Skeleton as m } from "@aplus-frontend/antdv";
|
|
3
|
+
import "./item.vue.mjs";
|
|
4
|
+
import f from "./item.vue2.mjs";
|
|
5
|
+
const g = /* @__PURE__ */ i({
|
|
6
|
+
name: "ApSkeletonList",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
size: {},
|
|
10
|
+
active: { type: Boolean, default: !0 },
|
|
11
|
+
actionButton: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
setup(y) {
|
|
14
|
+
return (e, v) => (t(), n(a(o), {
|
|
15
|
+
variant: "borderless",
|
|
16
|
+
"body-style": { padding: 0 }
|
|
17
|
+
}, {
|
|
18
|
+
default: r(() => [
|
|
19
|
+
e.actionButton !== !1 ? (t(), n(a(o), {
|
|
20
|
+
key: 0,
|
|
21
|
+
variant: "borderless",
|
|
22
|
+
"body-style": {
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
justifyContent: "end",
|
|
26
|
+
padding: "18px 24px"
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
default: r(() => [
|
|
30
|
+
p(a(m).Button, {
|
|
31
|
+
style: { width: "80px" },
|
|
32
|
+
active: e.active,
|
|
33
|
+
size: "small"
|
|
34
|
+
}, null, 8, ["active"])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})) : s("", !0),
|
|
38
|
+
(t(!0), d(u, null, c(new Array(e.size).fill(null), (_, l) => (t(), n(f, {
|
|
39
|
+
key: l,
|
|
40
|
+
active: !!e.active
|
|
41
|
+
}, null, 8, ["active"]))), 128))
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
g as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as l, openBlock as r, Fragment as s, createVNode as e, unref as t, withCtx as p, createElementVNode as i } from "vue";
|
|
2
|
+
import { Card as c, Skeleton as n } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApSkeletonLine as d } from "../line/index.mjs";
|
|
4
|
+
const m = { style: {
|
|
5
|
+
width: "100%",
|
|
6
|
+
display: "flex",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
justifyContent: "space-between"
|
|
9
|
+
} }, u = { style: {
|
|
10
|
+
maxWidth: "100%",
|
|
11
|
+
flex: 1
|
|
12
|
+
} }, x = /* @__PURE__ */ o({
|
|
13
|
+
name: "ApSkeletonListItem",
|
|
14
|
+
__name: "item",
|
|
15
|
+
props: {
|
|
16
|
+
active: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(f) {
|
|
19
|
+
return (a, y) => (r(), l(s, null, [
|
|
20
|
+
e(t(c), {
|
|
21
|
+
variant: "borderless",
|
|
22
|
+
style: { borderRadius: 0 },
|
|
23
|
+
"body-style": { padding: "24px" }
|
|
24
|
+
}, {
|
|
25
|
+
default: p(() => [
|
|
26
|
+
i("div", m, [
|
|
27
|
+
i("div", u, [
|
|
28
|
+
e(t(n), {
|
|
29
|
+
active: a.active,
|
|
30
|
+
title: {
|
|
31
|
+
width: "100px",
|
|
32
|
+
style: { marginBlockStart: 0 }
|
|
33
|
+
},
|
|
34
|
+
paragraph: {
|
|
35
|
+
rows: 1,
|
|
36
|
+
style: {
|
|
37
|
+
margin: 0
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, null, 8, ["active"])
|
|
41
|
+
]),
|
|
42
|
+
e(t(n).Button, {
|
|
43
|
+
active: a.active,
|
|
44
|
+
size: "small",
|
|
45
|
+
style: { width: "165px", marginBlockStart: "12px" }
|
|
46
|
+
}, null, 8, ["active"])
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}),
|
|
51
|
+
e(t(d))
|
|
52
|
+
], 64));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
x as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as r, openBlock as p, createVNode as e, unref as t } from "vue";
|
|
2
|
+
import { Skeleton as o } from "@aplus-frontend/antdv";
|
|
3
|
+
const i = { style: { "margin-block-end": "16px" } }, d = /* @__PURE__ */ n({
|
|
4
|
+
name: "ApSkeletonPageHeader",
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
active: { type: Boolean }
|
|
8
|
+
},
|
|
9
|
+
setup(l) {
|
|
10
|
+
return (a, c) => (p(), r("div", i, [
|
|
11
|
+
e(t(o), {
|
|
12
|
+
paragraph: !1,
|
|
13
|
+
title: { width: "185px" }
|
|
14
|
+
}),
|
|
15
|
+
e(t(o).Button, {
|
|
16
|
+
active: a.active,
|
|
17
|
+
size: "small"
|
|
18
|
+
}, null, 8, ["active"])
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
d as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineComponent as v, computed as i, unref as e, createBlock as y, openBlock as o, withCtx as r, createVNode as a, createElementBlock as p, Fragment as x, renderList as B, normalizeStyle as _, createElementVNode as k } from "vue";
|
|
2
|
+
import { Card as w, Flex as n, Skeleton as l } from "@aplus-frontend/antdv";
|
|
3
|
+
import C from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
|
|
4
|
+
const E = { style: {
|
|
5
|
+
width: "20%"
|
|
6
|
+
} }, N = /* @__PURE__ */ v({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
active: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(S) {
|
|
12
|
+
const m = {
|
|
13
|
+
lg: !0,
|
|
14
|
+
md: !0,
|
|
15
|
+
sm: !1,
|
|
16
|
+
xl: !1,
|
|
17
|
+
xs: !1,
|
|
18
|
+
xxl: !1
|
|
19
|
+
}, u = {
|
|
20
|
+
xs: 2,
|
|
21
|
+
sm: 2,
|
|
22
|
+
md: 4,
|
|
23
|
+
lg: 4,
|
|
24
|
+
xl: 5,
|
|
25
|
+
xxl: 5
|
|
26
|
+
}, d = C(), f = i(() => d.value || m), g = i(() => {
|
|
27
|
+
const t = e(f);
|
|
28
|
+
return Object.keys(t).filter((c) => t[c] === !0).pop() || "md";
|
|
29
|
+
}), s = i(
|
|
30
|
+
() => u[g.value] || 4
|
|
31
|
+
);
|
|
32
|
+
return (t, c) => (o(), y(e(w), {
|
|
33
|
+
variant: "borderless",
|
|
34
|
+
style: { marginBlockEnd: "16px" }
|
|
35
|
+
}, {
|
|
36
|
+
default: r(() => [
|
|
37
|
+
a(e(n), {
|
|
38
|
+
gap: 8,
|
|
39
|
+
style: { marginBlockEnd: "16px" }
|
|
40
|
+
}, {
|
|
41
|
+
default: r(() => [
|
|
42
|
+
(o(!0), p(x, null, B(new Array(s.value).fill(null), (b, h) => (o(), p("div", {
|
|
43
|
+
key: h,
|
|
44
|
+
style: _({ width: `${100 / s.value}%` })
|
|
45
|
+
}, [
|
|
46
|
+
a(e(l), {
|
|
47
|
+
active: t.active,
|
|
48
|
+
paragraph: !1,
|
|
49
|
+
title: { style: { height: "24px", marginBottom: 0 } }
|
|
50
|
+
}, null, 8, ["active"])
|
|
51
|
+
], 4))), 128))
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}),
|
|
55
|
+
a(e(n), {
|
|
56
|
+
gap: 8,
|
|
57
|
+
justify: "space-between"
|
|
58
|
+
}, {
|
|
59
|
+
default: r(() => [
|
|
60
|
+
a(e(n), { gap: 8 }, {
|
|
61
|
+
default: r(() => [
|
|
62
|
+
a(e(l), {
|
|
63
|
+
active: t.active,
|
|
64
|
+
paragraph: !1,
|
|
65
|
+
title: { style: { height: "24px", marginBottom: 0 }, width: 48 }
|
|
66
|
+
}, null, 8, ["active"]),
|
|
67
|
+
a(e(l), {
|
|
68
|
+
active: t.active,
|
|
69
|
+
paragraph: !1,
|
|
70
|
+
title: { style: { height: "24px", marginBottom: 0 }, width: 48 }
|
|
71
|
+
}, null, 8, ["active"]),
|
|
72
|
+
a(e(l), {
|
|
73
|
+
active: t.active,
|
|
74
|
+
paragraph: !1,
|
|
75
|
+
title: { style: { height: "24px", marginBottom: 0 }, width: 48 }
|
|
76
|
+
}, null, 8, ["active"])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
k("div", E, [
|
|
81
|
+
a(e(l), {
|
|
82
|
+
active: t.active,
|
|
83
|
+
paragraph: !1,
|
|
84
|
+
title: {
|
|
85
|
+
style: { height: "24px", marginBottom: 0 }
|
|
86
|
+
}
|
|
87
|
+
}, null, 8, ["active"])
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
N as default
|
|
99
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
size?: number;
|
|
5
|
+
actions?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
size: number;
|
|
9
|
+
actions: boolean;
|
|
10
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as d, createBlock as n, openBlock as l, unref as t, withCtx as r, createCommentVNode as p, createVNode as a, createElementBlock as m, createElementVNode as o, Fragment as u, renderList as v } from "vue";
|
|
2
|
+
import { Card as f, Flex as y, Skeleton as i } from "@aplus-frontend/antdv";
|
|
3
|
+
import "./item.vue.mjs";
|
|
4
|
+
import c from "./item.vue2.mjs";
|
|
5
|
+
const h = { style: {
|
|
6
|
+
display: "flex",
|
|
7
|
+
justifyContent: "flex-end",
|
|
8
|
+
paddingBlockStart: "16px"
|
|
9
|
+
} }, z = /* @__PURE__ */ d({
|
|
10
|
+
name: "ApSkeletonTable",
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
active: { type: Boolean },
|
|
14
|
+
size: { default: 4 },
|
|
15
|
+
actions: { type: Boolean, default: void 0 }
|
|
16
|
+
},
|
|
17
|
+
setup(B) {
|
|
18
|
+
return (e, k) => (l(), n(t(f), { variant: "borderless" }, {
|
|
19
|
+
default: r(() => [
|
|
20
|
+
e.actions !== !1 ? (l(), n(t(y), {
|
|
21
|
+
key: 0,
|
|
22
|
+
justify: "space-between"
|
|
23
|
+
}, {
|
|
24
|
+
default: r(() => [
|
|
25
|
+
o("div", null, [
|
|
26
|
+
a(t(i).Button, {
|
|
27
|
+
active: e.active,
|
|
28
|
+
size: "small",
|
|
29
|
+
style: {
|
|
30
|
+
width: "100px",
|
|
31
|
+
marginBlockEnd: "16px",
|
|
32
|
+
marginInlineEnd: "16px"
|
|
33
|
+
}
|
|
34
|
+
}, null, 8, ["active"]),
|
|
35
|
+
a(t(i).Button, {
|
|
36
|
+
active: e.active,
|
|
37
|
+
size: "small",
|
|
38
|
+
style: { width: "100px", marginBlockEnd: "16px" }
|
|
39
|
+
}, null, 8, ["active"])
|
|
40
|
+
]),
|
|
41
|
+
a(t(i).Button, {
|
|
42
|
+
active: e.active,
|
|
43
|
+
size: "small",
|
|
44
|
+
style: { width: "22px", marginBlockEnd: "16px" }
|
|
45
|
+
}, null, 8, ["active"])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})) : p("", !0),
|
|
49
|
+
a(c, {
|
|
50
|
+
header: "",
|
|
51
|
+
active: e.active
|
|
52
|
+
}, null, 8, ["active"]),
|
|
53
|
+
(l(!0), m(u, null, v(new Array(e.size).fill(null), (g, s) => (l(), n(c, {
|
|
54
|
+
key: s,
|
|
55
|
+
active: e.active
|
|
56
|
+
}, null, 8, ["active"]))), 128)),
|
|
57
|
+
o("div", h, [
|
|
58
|
+
a(t(i), {
|
|
59
|
+
active: e.active,
|
|
60
|
+
paragraph: !1,
|
|
61
|
+
title: {
|
|
62
|
+
style: {
|
|
63
|
+
margin: 0,
|
|
64
|
+
height: "24px",
|
|
65
|
+
float: "right",
|
|
66
|
+
maxWidth: "630px"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, null, 8, ["active"])
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
z as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
header?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
header: boolean;
|
|
8
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|