fancy-plugins-components 1.0.31 → 1.0.33
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/dist/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/es/fancy-button/styles/index.js +0 -1
- package/dist/es/fancy-card/index.js +2 -2
- package/dist/es/fancy-card/index.vue.d.ts +1 -1
- package/dist/es/fancy-card/index.vue.js +75 -13
- package/dist/es/fancy-card/styles/index.js +1 -0
- package/dist/es/fancy-card/styles/index.scss +3 -0
- package/dist/es/styles/index.scss +2 -1
- package/dist/es/utils/resolvers.js +11 -8
- package/package.json +2 -2
- package/dist/es/fancy-card/index.vue2.js +0 -4
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/index.js +0 -106
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/props.js +0 -41
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/icons/ArrowUp.js +0 -21
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/utils/hook.js +0 -29
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,16 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { EleCard as s, EleLoading as i, EleText as m } from "ele-admin-plus/es";
|
|
2
|
+
import "ele-admin-plus/es/ele-card/style/index";
|
|
3
|
+
import "ele-admin-plus/es/ele-text/style/index";
|
|
4
|
+
import "ele-admin-plus/es/ele-loading/style/index";
|
|
5
|
+
import { createElementBlock as u, openBlock as p, createVNode as t, withCtx as l, createElementVNode as f, createTextVNode as d } from "vue";
|
|
6
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const E = {}, y = { class: "csds__Cc" };
|
|
8
|
+
function _(A, e) {
|
|
9
|
+
const o = i, n = m, r = s;
|
|
10
|
+
return p(), u("div", y, [
|
|
11
|
+
t(r, { shadow: "always" }, {
|
|
12
|
+
default: l(() => [
|
|
13
|
+
f("div", null, [
|
|
14
|
+
e[9] || (e[9] = d(" 123 ", -1)),
|
|
15
|
+
t(o, { loading: "" }, {
|
|
16
|
+
default: l(() => [...e[0] || (e[0] = [
|
|
17
|
+
d(" 加载中... ", -1)
|
|
18
|
+
])]),
|
|
19
|
+
_: 1
|
|
20
|
+
}),
|
|
21
|
+
t(n, { type: "secondary" }, {
|
|
22
|
+
default: l(() => [...e[1] || (e[1] = [
|
|
23
|
+
d("EleAdmin Plus", -1)
|
|
24
|
+
])]),
|
|
25
|
+
_: 1
|
|
26
|
+
}),
|
|
27
|
+
t(n, { type: "placeholder" }, {
|
|
28
|
+
default: l(() => [...e[2] || (e[2] = [
|
|
29
|
+
d("EleAdmin Plus", -1)
|
|
30
|
+
])]),
|
|
31
|
+
_: 1
|
|
32
|
+
}),
|
|
33
|
+
t(n, { type: "heading" }, {
|
|
34
|
+
default: l(() => [...e[3] || (e[3] = [
|
|
35
|
+
d("EleAdmin Plus", -1)
|
|
36
|
+
])]),
|
|
37
|
+
_: 1
|
|
38
|
+
}),
|
|
39
|
+
t(n, { type: "primary" }, {
|
|
40
|
+
default: l(() => [...e[4] || (e[4] = [
|
|
41
|
+
d("EleAdmin Plus", -1)
|
|
42
|
+
])]),
|
|
43
|
+
_: 1
|
|
44
|
+
}),
|
|
45
|
+
t(n, { type: "success" }, {
|
|
46
|
+
default: l(() => [...e[5] || (e[5] = [
|
|
47
|
+
d("EleAdmin Plus", -1)
|
|
48
|
+
])]),
|
|
49
|
+
_: 1
|
|
50
|
+
}),
|
|
51
|
+
t(n, { type: "warning" }, {
|
|
52
|
+
default: l(() => [...e[6] || (e[6] = [
|
|
53
|
+
d("EleAdmin Plus", -1)
|
|
54
|
+
])]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
t(n, { type: "danger" }, {
|
|
58
|
+
default: l(() => [...e[7] || (e[7] = [
|
|
59
|
+
d("EleAdmin Plus", -1)
|
|
60
|
+
])]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
t(n, { type: "info" }, {
|
|
64
|
+
default: l(() => [...e[8] || (e[8] = [
|
|
65
|
+
d("EleAdmin Plus", -1)
|
|
66
|
+
])]),
|
|
67
|
+
_: 1
|
|
68
|
+
})
|
|
69
|
+
])
|
|
70
|
+
]),
|
|
10
71
|
_: 1
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
}
|
|
72
|
+
})
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
const V = /* @__PURE__ */ a(E, [["render", _]]);
|
|
14
76
|
export {
|
|
15
|
-
|
|
77
|
+
V as default
|
|
16
78
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.scss'
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@use '../fancy-button/styles/index.scss';
|
|
1
|
+
@use '../fancy-button/styles/index.scss' as button;
|
|
2
|
+
@use '../fancy-card/styles/index.scss' as card;
|
|
@@ -2,24 +2,27 @@ function i(e, t) {
|
|
|
2
2
|
if (t?.importStyle)
|
|
3
3
|
return `${e}/styles`;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function u(e, t, n) {
|
|
6
6
|
return n ? `${t}${n}/${e}` : `${t}/es/${e}`;
|
|
7
7
|
}
|
|
8
|
-
function f(e) {
|
|
8
|
+
function f(e, t, n) {
|
|
9
|
+
return n ? `${t}${n}/${e}` : `${t}/es/${e}`;
|
|
10
|
+
}
|
|
11
|
+
function l(e) {
|
|
9
12
|
return {
|
|
10
13
|
type: "component",
|
|
11
14
|
resolve: (t) => {
|
|
12
|
-
const { path: n, exclude:
|
|
13
|
-
if (t.match(/^Fancy[A-Z]/) && !
|
|
14
|
-
const
|
|
15
|
+
const { path: n, exclude: s } = e || {};
|
|
16
|
+
if (t.match(/^Fancy[A-Z]/) && !s?.includes?.(t)) {
|
|
17
|
+
const r = "fancy-plugins-components", o = t.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase(), c = u(o, r, n);
|
|
15
18
|
return {
|
|
16
|
-
from:
|
|
17
|
-
sideEffects: i(
|
|
19
|
+
from: f(o, r, n),
|
|
20
|
+
sideEffects: i(c, e)
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
export {
|
|
24
|
-
|
|
27
|
+
l as FancyComponentsResolver
|
|
25
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-plugins-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/es/index.js",
|
|
6
6
|
"module": "./dist/es/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "vite build
|
|
33
|
+
"build": "vite build"
|
|
34
34
|
},
|
|
35
35
|
"sideEffects": [
|
|
36
36
|
"**/*.css",
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as A, watch as T, createElementBlock as s, openBlock as t, normalizeClass as n, createCommentVNode as d, createVNode as f, normalizeStyle as a, createElementVNode as m, renderSlot as r, createTextVNode as p, toDisplayString as v, withModifiers as N, unref as l, withCtx as c, Transition as V, withDirectives as I, vShow as g } from "vue";
|
|
2
|
-
import { ElIcon as z } from "element-plus";
|
|
3
|
-
import D from "../icons/ArrowUp.js";
|
|
4
|
-
import { useCollapseAnim as F } from "../utils/hook.js";
|
|
5
|
-
import { cardEmits as H, cardProps as M } from "./props.js";
|
|
6
|
-
const O = /* @__PURE__ */ B({
|
|
7
|
-
name: "EleCard",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: M,
|
|
10
|
-
emits: H,
|
|
11
|
-
setup(u, { emit: y }) {
|
|
12
|
-
const i = u, C = y, {
|
|
13
|
-
handleBeforeEnter: E,
|
|
14
|
-
handleEnter: b,
|
|
15
|
-
handleAfterEnter: k,
|
|
16
|
-
handleBeforeLeave: w,
|
|
17
|
-
handleLeave: $,
|
|
18
|
-
handleAfterLeave: L
|
|
19
|
-
} = F(), o = A(!!i.collapse), h = () => {
|
|
20
|
-
o.value = !o.value, C("collapseChange", o.value);
|
|
21
|
-
}, S = () => {
|
|
22
|
-
i.collapsable === "header" && h();
|
|
23
|
-
};
|
|
24
|
-
return T(
|
|
25
|
-
() => i.collapse,
|
|
26
|
-
(e) => {
|
|
27
|
-
o.value !== !!e && (o.value = !!e);
|
|
28
|
-
}
|
|
29
|
-
), (e, P) => (t(), s("div", {
|
|
30
|
-
class: n(["ele-card", [
|
|
31
|
-
{ "is-border": e.bordered },
|
|
32
|
-
{ "is-shadow": e.shadow === "always" },
|
|
33
|
-
{ "is-hover-shadow": e.shadow === "hover" },
|
|
34
|
-
{ "is-collapse": o.value },
|
|
35
|
-
{ "is-flex-table": e.flexTable && e.flexTable !== "auto" },
|
|
36
|
-
{ "is-flex-auto-table": e.flexTable === "auto" },
|
|
37
|
-
{ "is-search-form": e.searchForm }
|
|
38
|
-
]])
|
|
39
|
-
}, [
|
|
40
|
-
e.header || e.$slots.header || e.$slots.extra ? (t(), s("div", {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: n(["ele-card-header", e.headerClass]),
|
|
43
|
-
style: a(e.headerStyle),
|
|
44
|
-
onClick: S
|
|
45
|
-
}, [
|
|
46
|
-
m("div", {
|
|
47
|
-
class: "ele-card-title",
|
|
48
|
-
style: a(e.titleStyle)
|
|
49
|
-
}, [
|
|
50
|
-
r(e.$slots, "header", {}, () => [
|
|
51
|
-
p(v(e.header), 1)
|
|
52
|
-
])
|
|
53
|
-
], 4),
|
|
54
|
-
e.$slots.extra ? r(e.$slots, "extra", { key: 0 }) : d("", !0),
|
|
55
|
-
e.collapsable ? (t(), s("div", {
|
|
56
|
-
key: 1,
|
|
57
|
-
style: a(e.collapseIconStyle),
|
|
58
|
-
class: "ele-card-collapse-icon",
|
|
59
|
-
onClick: N(h, ["stop"])
|
|
60
|
-
}, [
|
|
61
|
-
r(e.$slots, "collapseIcon", { collapse: o.value }, () => [
|
|
62
|
-
f(l(z), null, {
|
|
63
|
-
default: c(() => [
|
|
64
|
-
f(l(D))
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
})
|
|
68
|
-
])
|
|
69
|
-
], 4)) : d("", !0)
|
|
70
|
-
], 6)) : d("", !0),
|
|
71
|
-
f(V, {
|
|
72
|
-
name: "ele-card-slide",
|
|
73
|
-
onBeforeLeave: l(w),
|
|
74
|
-
onLeave: l($),
|
|
75
|
-
onAfterLeave: l(L),
|
|
76
|
-
onBeforeEnter: l(E),
|
|
77
|
-
onEnter: l(b),
|
|
78
|
-
onAfterEnter: l(k)
|
|
79
|
-
}, {
|
|
80
|
-
default: c(() => [
|
|
81
|
-
I(m("div", {
|
|
82
|
-
class: n(["ele-card-body", e.bodyClass]),
|
|
83
|
-
style: a(e.bodyStyle)
|
|
84
|
-
}, [
|
|
85
|
-
r(e.$slots, "default")
|
|
86
|
-
], 6), [
|
|
87
|
-
[g, !o.value]
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
}, 8, ["onBeforeLeave", "onLeave", "onAfterLeave", "onBeforeEnter", "onEnter", "onAfterEnter"]),
|
|
92
|
-
e.footer || e.$slots.footer ? (t(), s("div", {
|
|
93
|
-
key: 1,
|
|
94
|
-
class: n(["ele-card-footer", e.footerClass]),
|
|
95
|
-
style: a(e.footerStyle)
|
|
96
|
-
}, [
|
|
97
|
-
r(e.$slots, "footer", {}, () => [
|
|
98
|
-
p(v(e.footer), 1)
|
|
99
|
-
])
|
|
100
|
-
], 6)) : d("", !0)
|
|
101
|
-
], 2));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
export {
|
|
105
|
-
O as default
|
|
106
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const o = {
|
|
2
|
-
/** 标题 */
|
|
3
|
-
header: String,
|
|
4
|
-
/** 标题类名 */
|
|
5
|
-
headerClass: String,
|
|
6
|
-
/** 页脚 */
|
|
7
|
-
footer: String,
|
|
8
|
-
/** 页脚类名 */
|
|
9
|
-
footerClass: String,
|
|
10
|
-
/** 主体样式 */
|
|
11
|
-
bodyStyle: Object,
|
|
12
|
-
/** 主体类名 */
|
|
13
|
-
bodyClass: String,
|
|
14
|
-
/** 阴影 */
|
|
15
|
-
shadow: String,
|
|
16
|
-
/** 边框 */
|
|
17
|
-
bordered: Boolean,
|
|
18
|
-
/** 标题栏样式 */
|
|
19
|
-
headerStyle: Object,
|
|
20
|
-
/** 标题样式 */
|
|
21
|
-
titleStyle: Object,
|
|
22
|
-
/** 页脚样式 */
|
|
23
|
-
footerStyle: Object,
|
|
24
|
-
/** 是否可折叠 */
|
|
25
|
-
collapsable: [Boolean, String],
|
|
26
|
-
/** 是否折叠 */
|
|
27
|
-
collapse: Boolean,
|
|
28
|
-
/** 折叠按钮样式 */
|
|
29
|
-
collapseIconStyle: Object,
|
|
30
|
-
/** 是否是搜索表单卡片 */
|
|
31
|
-
searchForm: Boolean,
|
|
32
|
-
/** 内部表格是否弹性布局 */
|
|
33
|
-
flexTable: [Boolean, String]
|
|
34
|
-
}, t = {
|
|
35
|
-
/** 折叠展开事件 */
|
|
36
|
-
collapseChange: (e) => !0
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
t as cardEmits,
|
|
40
|
-
o as cardProps
|
|
41
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as r, openBlock as n, createElementVNode as t } from "vue";
|
|
2
|
-
const l = {
|
|
3
|
-
viewBox: "0 0 48 48",
|
|
4
|
-
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
"stroke-width": "4",
|
|
7
|
-
"stroke-linecap": "round",
|
|
8
|
-
"stroke-linejoin": "round",
|
|
9
|
-
class: "ele-arrow-up"
|
|
10
|
-
}, i = /* @__PURE__ */ o({
|
|
11
|
-
name: "ArrowUp",
|
|
12
|
-
__name: "ArrowUp",
|
|
13
|
-
setup(s) {
|
|
14
|
-
return (p, e) => (n(), r("svg", l, [...e[0] || (e[0] = [
|
|
15
|
-
t("path", { d: "M10 31 24 17 38 31" }, null, -1)
|
|
16
|
-
])]));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
i as default
|
|
21
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
import "element-plus";
|
|
3
|
-
function h() {
|
|
4
|
-
let d = 0;
|
|
5
|
-
const e = (t, o) => o ? Math.max(t.offsetHeight, t.scrollHeight, d) : Math.max(t.offsetHeight, t.scrollHeight);
|
|
6
|
-
return {
|
|
7
|
-
handleBeforeEnter: (t) => {
|
|
8
|
-
t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.maxHeight = "0px", t.style.paddingTop = "0px", t.style.paddingBottom = "0px";
|
|
9
|
-
},
|
|
10
|
-
handleEnter: (t) => {
|
|
11
|
-
t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${e(t, !0)}px`, t.style.paddingTop = t.dataset.oldPaddingTop ?? "", t.style.paddingBottom = t.dataset.oldPaddingBottom ?? "", t.style.overflow = "hidden";
|
|
12
|
-
},
|
|
13
|
-
handleAfterEnter: (t) => {
|
|
14
|
-
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow ?? "";
|
|
15
|
-
},
|
|
16
|
-
handleBeforeLeave: (t) => {
|
|
17
|
-
t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.dataset.oldOverflow = t.style.overflow, d = e(t), t.style.maxHeight = `${d}px`, t.style.overflow = "hidden";
|
|
18
|
-
},
|
|
19
|
-
handleLeave: (t) => {
|
|
20
|
-
t.style.maxHeight = "0px", t.style.paddingTop = "0px", t.style.paddingBottom = "0px";
|
|
21
|
-
},
|
|
22
|
-
handleAfterLeave: (t) => {
|
|
23
|
-
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow ?? "", t.style.paddingTop = t.dataset.oldPaddingTop ?? "", t.style.paddingBottom = t.dataset.oldPaddingBottom ?? "";
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
h as useCollapseAnim
|
|
29
|
-
};
|