ep-craft 0.1.36 → 0.1.37
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/components/avatar/EpAvatar.vue.d.ts +20 -0
- package/dist/components/avatar/EpAvatar.vue.js +72 -0
- package/dist/components/avatar/EpAvatar2.vue.js +4 -0
- package/dist/components/avatar/avatar.d.ts +68 -0
- package/dist/components/avatar/avatar.js +59 -0
- package/dist/components/avatar/constants.d.ts +7 -0
- package/dist/components/avatar/constants.js +6 -0
- package/dist/components/avatar/index.d.ts +13 -2
- package/dist/components/avatar/index.js +8 -3
- package/dist/components/avatar/instance.d.ts +2 -0
- package/dist/components/badge/EpBadge.vue.d.ts +28 -0
- package/dist/components/badge/EpBadge.vue.js +75 -0
- package/dist/components/badge/EpBadge2.vue.js +4 -0
- package/dist/components/badge/badge.d.ts +67 -0
- package/dist/components/badge/badge.js +69 -0
- package/dist/components/badge/index.d.ts +11 -2
- package/dist/components/badge/index.js +8 -4
- package/dist/components/badge/instance.d.ts +2 -0
- package/dist/components/card/EpCard.vue.d.ts +22 -0
- package/dist/components/card/EpCard.vue.js +64 -0
- package/dist/components/card/EpCard2.vue.js +4 -0
- package/dist/components/card/card.d.ts +51 -0
- package/dist/components/card/card.js +49 -0
- package/dist/components/card/index.d.ts +11 -2
- package/dist/components/card/index.js +5 -4
- package/dist/components/card/instance.d.ts +2 -0
- package/dist/components/countdown/EpCountdown.vue.d.ts +28 -0
- package/dist/components/countdown/EpCountdown.vue.js +71 -0
- package/dist/components/countdown/EpCountdown2.vue.js +4 -0
- package/dist/components/countdown/countdown.d.ts +48 -0
- package/dist/components/countdown/countdown.js +50 -0
- package/dist/components/countdown/index.d.ts +11 -2
- package/dist/components/countdown/index.js +9 -4
- package/dist/components/countdown/instance.d.ts +2 -0
- package/dist/components/countdown/utils.d.ts +3 -0
- package/dist/components/countdown/utils.js +40 -0
- package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown-item2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown2.vue.js +2 -2
- package/dist/components/empty/EpEmpty.vue.d.ts +20 -0
- package/dist/components/empty/EpEmpty.vue.js +62 -0
- package/dist/components/empty/EpEmpty2.vue.js +4 -0
- package/dist/components/empty/empty.d.ts +27 -0
- package/dist/components/empty/empty.js +26 -0
- package/dist/components/empty/img-empty.vue.d.ts +2 -0
- package/dist/components/empty/img-empty.vue.js +141 -0
- package/dist/components/empty/img-empty2.vue.js +4 -0
- package/dist/components/empty/index.d.ts +11 -2
- package/dist/components/empty/index.js +8 -4
- package/dist/components/empty/instance.d.ts +2 -0
- package/dist/components/link/EpLink.vue.d.ts +24 -0
- package/dist/components/link/EpLink.vue.js +86 -0
- package/dist/components/link/EpLink2.vue.js +4 -0
- package/dist/components/link/index.d.ts +11 -2
- package/dist/components/link/index.js +5 -3
- package/dist/components/link/instance.d.ts +2 -0
- package/dist/components/link/link.d.ts +56 -0
- package/dist/components/link/link.js +51 -0
- package/dist/components/result/EpResult.vue.d.ts +23 -0
- package/dist/components/result/EpResult.vue.js +71 -0
- package/dist/components/result/EpResult2.vue.js +4 -0
- package/dist/components/result/index.d.ts +11 -2
- package/dist/components/result/index.js +10 -4
- package/dist/components/result/instance.d.ts +2 -0
- package/dist/components/result/result.d.ts +35 -0
- package/dist/components/result/result.js +47 -0
- package/dist/components/roving-focus-group/index.js +2 -2
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +11 -19
- package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +19 -11
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +18 -76
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +76 -18
- package/dist/components/space/index.d.ts +15 -2
- package/dist/components/space/index.js +23 -4
- package/dist/components/space/instance.d.ts +2 -0
- package/dist/components/space/item.d.ts +29 -0
- package/dist/components/space/item.js +30 -0
- package/dist/components/space/space.d.ts +92 -0
- package/dist/components/space/space.js +182 -0
- package/dist/components/space/use-space.d.ts +7 -0
- package/dist/components/space/use-space.js +47 -0
- package/dist/components/statistic/EpStatistic.vue.d.ts +28 -0
- package/dist/components/statistic/EpStatistic.vue.js +82 -0
- package/dist/components/statistic/EpStatistic2.vue.js +4 -0
- package/dist/components/statistic/index.d.ts +11 -2
- package/dist/components/statistic/index.js +8 -4
- package/dist/components/statistic/instance.d.ts +2 -0
- package/dist/components/statistic/statistic.d.ts +58 -0
- package/dist/components/statistic/statistic.js +59 -0
- package/dist/utils/vue/vnode.js +32 -22
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +16 -3
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as e, createElementBlock as a, createElementVNode as l, unref as o } from "vue";
|
|
2
|
+
import { useNamespace as n } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { useId as i } from "../../hooks/use-id/index.js";
|
|
8
|
+
import "../../hooks/use-size/index.js";
|
|
9
|
+
import "@popperjs/core";
|
|
10
|
+
import "../../hooks/use-z-index/index.js";
|
|
11
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
12
|
+
import "../../hooks/use-aria/index.js";
|
|
13
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
14
|
+
import "../../hooks/use-empty-values/index.js";
|
|
15
|
+
const c = {
|
|
16
|
+
viewBox: "0 0 79 86",
|
|
17
|
+
version: "1.1",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
20
|
+
}, f = ["id"], m = ["stop-color"], _ = ["stop-color"], p = ["id"], d = ["stop-color"], h = ["stop-color"], u = ["id"], k = {
|
|
21
|
+
stroke: "none",
|
|
22
|
+
"stroke-width": "1",
|
|
23
|
+
fill: "none",
|
|
24
|
+
"fill-rule": "evenodd"
|
|
25
|
+
}, g = { transform: "translate(-1268.000000, -535.000000)" }, $ = { transform: "translate(1268.000000, 535.000000)" }, v = ["fill"], x = ["fill"], y = { transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)" }, B = ["fill"], N = ["fill"], w = ["fill"], V = ["fill"], G = ["fill"], C = { transform: "translate(53.000000, 45.000000)" }, E = ["fill", "xlink:href"], I = ["fill", "mask"], M = ["fill"], T = /* @__PURE__ */ r({
|
|
26
|
+
name: "ImgEmpty",
|
|
27
|
+
__name: "img-empty",
|
|
28
|
+
setup(Z) {
|
|
29
|
+
const t = n("empty"), s = i();
|
|
30
|
+
return (b, j) => (e(), a("svg", c, [
|
|
31
|
+
l("defs", null, [
|
|
32
|
+
l("linearGradient", {
|
|
33
|
+
id: `linearGradient-1-${o(s)}`,
|
|
34
|
+
x1: "38.8503086%",
|
|
35
|
+
y1: "0%",
|
|
36
|
+
x2: "61.1496914%",
|
|
37
|
+
y2: "100%"
|
|
38
|
+
}, [
|
|
39
|
+
l("stop", {
|
|
40
|
+
"stop-color": `var(${o(t).cssVarBlockName("fill-color-1")})`,
|
|
41
|
+
offset: "0%"
|
|
42
|
+
}, null, 8, m),
|
|
43
|
+
l("stop", {
|
|
44
|
+
"stop-color": `var(${o(t).cssVarBlockName("fill-color-4")})`,
|
|
45
|
+
offset: "100%"
|
|
46
|
+
}, null, 8, _)
|
|
47
|
+
], 8, f),
|
|
48
|
+
l("linearGradient", {
|
|
49
|
+
id: `linearGradient-2-${o(s)}`,
|
|
50
|
+
x1: "0%",
|
|
51
|
+
y1: "9.5%",
|
|
52
|
+
x2: "100%",
|
|
53
|
+
y2: "90.5%"
|
|
54
|
+
}, [
|
|
55
|
+
l("stop", {
|
|
56
|
+
"stop-color": `var(${o(t).cssVarBlockName("fill-color-1")})`,
|
|
57
|
+
offset: "0%"
|
|
58
|
+
}, null, 8, d),
|
|
59
|
+
l("stop", {
|
|
60
|
+
"stop-color": `var(${o(t).cssVarBlockName("fill-color-6")})`,
|
|
61
|
+
offset: "100%"
|
|
62
|
+
}, null, 8, h)
|
|
63
|
+
], 8, p),
|
|
64
|
+
l("rect", {
|
|
65
|
+
id: `path-3-${o(s)}`,
|
|
66
|
+
x: "0",
|
|
67
|
+
y: "0",
|
|
68
|
+
width: "17",
|
|
69
|
+
height: "36"
|
|
70
|
+
}, null, 8, u)
|
|
71
|
+
]),
|
|
72
|
+
l("g", k, [
|
|
73
|
+
l("g", g, [
|
|
74
|
+
l("g", $, [
|
|
75
|
+
l("path", {
|
|
76
|
+
d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
|
|
77
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-3")})`
|
|
78
|
+
}, null, 8, v),
|
|
79
|
+
l("polygon", {
|
|
80
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-7")})`,
|
|
81
|
+
transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
|
|
82
|
+
points: "13 58 53 58 42 45 2 45"
|
|
83
|
+
}, null, 8, x),
|
|
84
|
+
l("g", y, [
|
|
85
|
+
l("polygon", {
|
|
86
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-7")})`,
|
|
87
|
+
transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
|
|
88
|
+
points: "2.84078316e-14 3 18 3 23 7 5 7"
|
|
89
|
+
}, null, 8, B),
|
|
90
|
+
l("polygon", {
|
|
91
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-5")})`,
|
|
92
|
+
points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
|
|
93
|
+
}, null, 8, N),
|
|
94
|
+
l("rect", {
|
|
95
|
+
fill: `url(#linearGradient-1-${o(s)})`,
|
|
96
|
+
transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
|
|
97
|
+
x: "38",
|
|
98
|
+
y: "7",
|
|
99
|
+
width: "17",
|
|
100
|
+
height: "36"
|
|
101
|
+
}, null, 8, w),
|
|
102
|
+
l("polygon", {
|
|
103
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-2")})`,
|
|
104
|
+
transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
|
|
105
|
+
points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
|
|
106
|
+
}, null, 8, V)
|
|
107
|
+
]),
|
|
108
|
+
l("rect", {
|
|
109
|
+
fill: `url(#linearGradient-2-${o(s)})`,
|
|
110
|
+
x: "13",
|
|
111
|
+
y: "45",
|
|
112
|
+
width: "40",
|
|
113
|
+
height: "36"
|
|
114
|
+
}, null, 8, G),
|
|
115
|
+
l("g", C, [
|
|
116
|
+
l("use", {
|
|
117
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-8")})`,
|
|
118
|
+
transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
|
|
119
|
+
"xlink:href": `#path-3-${o(s)}`
|
|
120
|
+
}, null, 8, E),
|
|
121
|
+
l("polygon", {
|
|
122
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-9")})`,
|
|
123
|
+
mask: `url(#mask-4-${o(s)})`,
|
|
124
|
+
transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
|
|
125
|
+
points: "7 0 24 0 20 18 7 16.5"
|
|
126
|
+
}, null, 8, I)
|
|
127
|
+
]),
|
|
128
|
+
l("polygon", {
|
|
129
|
+
fill: `var(${o(t).cssVarBlockName("fill-color-2")})`,
|
|
130
|
+
transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
|
|
131
|
+
points: "62 45 79 45 70 58 53 58"
|
|
132
|
+
}, null, 8, M)
|
|
133
|
+
])
|
|
134
|
+
])
|
|
135
|
+
])
|
|
136
|
+
]));
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
T as default
|
|
141
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpEmpty from './EpEmpty.vue';
|
|
3
|
+
/**
|
|
4
|
+
* empty 自持 barrel(vendor-batch-5 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 内置图形 `ImgEmpty` 随本体落到本地,仅作内部件,不从入口导出。
|
|
7
|
+
* 描述回退沿用 `el.table.emptyText` 本地化键。不导出 `ElEmpty` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpEmpty: typeof _EpEmpty & Plugin;
|
|
4
10
|
export default EpEmpty;
|
|
11
|
+
export { emptyProps } from './empty';
|
|
12
|
+
export type { EmptyProps, EmptyPropsPublic } from './empty';
|
|
13
|
+
export type { EmptyInstance } from './instance';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
|
+
import m from "./EpEmpty.vue.js";
|
|
3
|
+
import "./empty.js";
|
|
4
|
+
const i = t(
|
|
5
|
+
m,
|
|
6
|
+
"ep-empty"
|
|
7
|
+
);
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
i as EpEmpty
|
|
6
10
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LinkProps } from './link';
|
|
2
|
+
declare var __VLS_9: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_9) => any;
|
|
5
|
+
} & {
|
|
6
|
+
icon?: (props: typeof __VLS_11) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
click: (evt: MouseEvent) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
|
|
11
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
underline: boolean | "always" | "never" | "hover";
|
|
14
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
15
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
16
|
+
href: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as B, computed as l, openBlock as r, createElementBlock as m, normalizeClass as u, createBlock as c, unref as f, withCtx as E, resolveDynamicComponent as $, createCommentVNode as a, renderSlot as p } from "vue";
|
|
2
|
+
import { ElIcon as w } from "../icon/index.js";
|
|
3
|
+
import "../config-provider/index.js";
|
|
4
|
+
import { useNamespace as S } from "../../hooks/use-namespace/index.js";
|
|
5
|
+
import { isBoolean as v } from "../../utils/types.js";
|
|
6
|
+
import "lodash-unified";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "@vue/shared";
|
|
9
|
+
import "@element-plus/icons-vue";
|
|
10
|
+
import "../../hooks/use-size/index.js";
|
|
11
|
+
import { useDeprecated as D } from "../../hooks/use-deprecated/index.js";
|
|
12
|
+
import "@popperjs/core";
|
|
13
|
+
import "../../hooks/use-z-index/index.js";
|
|
14
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
15
|
+
import "../../hooks/use-aria/index.js";
|
|
16
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
17
|
+
import "../../hooks/use-empty-values/index.js";
|
|
18
|
+
import { linkEmits as L } from "./link.js";
|
|
19
|
+
import { useGlobalConfig as N } from "../config-provider/src/hooks/use-global-config.js";
|
|
20
|
+
const T = ["href", "target"], Y = /* @__PURE__ */ B({
|
|
21
|
+
name: "EpLink",
|
|
22
|
+
__name: "EpLink",
|
|
23
|
+
props: {
|
|
24
|
+
type: { default: void 0 },
|
|
25
|
+
underline: { type: [Boolean, String], default: void 0 },
|
|
26
|
+
disabled: { type: Boolean },
|
|
27
|
+
href: { default: "" },
|
|
28
|
+
target: { default: "_self" },
|
|
29
|
+
icon: {}
|
|
30
|
+
},
|
|
31
|
+
emits: L,
|
|
32
|
+
setup(o, { emit: h }) {
|
|
33
|
+
const n = o, k = h, s = N("link");
|
|
34
|
+
D(
|
|
35
|
+
{
|
|
36
|
+
scope: "el-link",
|
|
37
|
+
from: "The underline option (boolean)",
|
|
38
|
+
replacement: "'always' | 'hover' | 'never'",
|
|
39
|
+
version: "3.0.0",
|
|
40
|
+
ref: "https://element-plus.org/en-US/component/link.html#underline"
|
|
41
|
+
},
|
|
42
|
+
l(() => v(n.underline))
|
|
43
|
+
);
|
|
44
|
+
const t = S("link"), b = l(() => {
|
|
45
|
+
var i;
|
|
46
|
+
const e = (i = s.value) == null ? void 0 : i.type;
|
|
47
|
+
return typeof e == "string" ? e : void 0;
|
|
48
|
+
}), y = l(() => {
|
|
49
|
+
var i;
|
|
50
|
+
const e = (i = s.value) == null ? void 0 : i.underline;
|
|
51
|
+
return typeof e == "boolean" || typeof e == "string" ? e : void 0;
|
|
52
|
+
}), d = l(() => v(n.underline) ? n.underline ? "hover" : "never" : n.underline ?? y.value ?? "hover"), g = l(() => [
|
|
53
|
+
t.b(),
|
|
54
|
+
t.m(n.type ?? b.value ?? "default"),
|
|
55
|
+
t.is("disabled", n.disabled),
|
|
56
|
+
t.is("underline", d.value === "always"),
|
|
57
|
+
t.is("hover-underline", d.value === "hover" && !n.disabled)
|
|
58
|
+
]);
|
|
59
|
+
function C(e) {
|
|
60
|
+
n.disabled || k("click", e);
|
|
61
|
+
}
|
|
62
|
+
return (e, i) => (r(), m("a", {
|
|
63
|
+
class: u(g.value),
|
|
64
|
+
href: o.disabled || !o.href ? void 0 : o.href,
|
|
65
|
+
target: o.disabled || !o.href ? void 0 : o.target,
|
|
66
|
+
onClick: C
|
|
67
|
+
}, [
|
|
68
|
+
o.icon ? (r(), c(f(w), { key: 0 }, {
|
|
69
|
+
default: E(() => [
|
|
70
|
+
(r(), c($(o.icon)))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})) : a("", !0),
|
|
74
|
+
e.$slots.default ? (r(), m("span", {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: u(f(t).e("inner"))
|
|
77
|
+
}, [
|
|
78
|
+
p(e.$slots, "default")
|
|
79
|
+
], 2)) : a("", !0),
|
|
80
|
+
e.$slots.icon ? p(e.$slots, "icon", {}, void 0, void 0, 2) : a("", !0)
|
|
81
|
+
], 10, T));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
Y as default
|
|
86
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpLink from './EpLink.vue';
|
|
3
|
+
/**
|
|
4
|
+
* link 自持 barrel(vendor-batch-5 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 类型 / 下划线支持全局配置回退,图标消费本地 `ElIcon`。
|
|
7
|
+
* 不导出 `ElLink` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpLink: typeof _EpLink & Plugin;
|
|
4
10
|
export default EpLink;
|
|
11
|
+
export { linkEmits, linkProps } from './link';
|
|
12
|
+
export type { LinkConfigContext, LinkEmits, LinkProps, LinkPropsPublic, } from './link';
|
|
13
|
+
export type { LinkInstance } from './instance';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ElLink as n } from "element-plus";
|
|
2
1
|
import { withInstall as i } from "../../utils/with-install.js";
|
|
3
|
-
|
|
2
|
+
import o from "./EpLink.vue.js";
|
|
3
|
+
import { linkEmits as f } from "./link.js";
|
|
4
|
+
const r = i(o, "ep-link");
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
r as EpLink,
|
|
7
|
+
f as linkEmits
|
|
6
8
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { IconPropType } from '@element-plus/utils';
|
|
3
|
+
export interface LinkProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description type
|
|
6
|
+
*/
|
|
7
|
+
type?: 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'default';
|
|
8
|
+
/**
|
|
9
|
+
* @description when underlines should appear
|
|
10
|
+
*/
|
|
11
|
+
underline?: boolean | 'always' | 'never' | 'hover';
|
|
12
|
+
/**
|
|
13
|
+
* @description whether the component is disabled
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @description same as native hyperlink's `href`
|
|
18
|
+
*/
|
|
19
|
+
href?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description same as native hyperlink's `target`
|
|
22
|
+
*/
|
|
23
|
+
target?: '_blank' | '_parent' | '_self' | '_top' | (string & NonNullable<unknown>);
|
|
24
|
+
/**
|
|
25
|
+
* @description icon component
|
|
26
|
+
*/
|
|
27
|
+
icon?: IconPropType;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Removed after 3.0.0, Use `LinkProps` instead.
|
|
31
|
+
*/
|
|
32
|
+
export declare const linkProps: {
|
|
33
|
+
readonly type: import("@element-plus/utils").EpPropFinalized<StringConstructor, "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, undefined, boolean>;
|
|
34
|
+
readonly underline: import("@element-plus/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor], boolean | "always" | "never" | "hover", unknown, undefined, boolean>;
|
|
35
|
+
readonly disabled: BooleanConstructor;
|
|
36
|
+
readonly href: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
37
|
+
readonly target: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | (((new (...args: any[]) => string) | (() => string)) | null)[], unknown, unknown, "_self", boolean>;
|
|
38
|
+
readonly icon: {
|
|
39
|
+
readonly type: PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Removed after 3.0.0, Use `LinkProps` instead.
|
|
47
|
+
*/
|
|
48
|
+
export type LinkPropsPublic = ExtractPublicPropTypes<typeof linkProps>;
|
|
49
|
+
export declare const linkEmits: {
|
|
50
|
+
click: (evt: MouseEvent) => boolean;
|
|
51
|
+
};
|
|
52
|
+
export type LinkEmits = typeof linkEmits;
|
|
53
|
+
export interface LinkConfigContext {
|
|
54
|
+
type?: LinkProps['type'];
|
|
55
|
+
underline?: LinkProps['underline'];
|
|
56
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import { iconPropType as t } from "../../utils/vue/icon.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import { buildProps as r } from "../../utils/vue/props/runtime.js";
|
|
7
|
+
r({
|
|
8
|
+
/**
|
|
9
|
+
* @description type
|
|
10
|
+
*/
|
|
11
|
+
type: {
|
|
12
|
+
type: String,
|
|
13
|
+
values: ["primary", "success", "warning", "info", "danger", "default"],
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* @description when underlines should appear
|
|
18
|
+
*/
|
|
19
|
+
underline: {
|
|
20
|
+
type: [Boolean, String],
|
|
21
|
+
values: [!0, !1, "always", "never", "hover"],
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @description whether the component is disabled
|
|
26
|
+
*/
|
|
27
|
+
disabled: Boolean,
|
|
28
|
+
/**
|
|
29
|
+
* @description same as native hyperlink's `href`
|
|
30
|
+
*/
|
|
31
|
+
href: { type: String, default: "" },
|
|
32
|
+
/**
|
|
33
|
+
* @description same as native hyperlink's `target`
|
|
34
|
+
*/
|
|
35
|
+
target: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "_self"
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description icon component
|
|
41
|
+
*/
|
|
42
|
+
icon: {
|
|
43
|
+
type: t
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const s = {
|
|
47
|
+
click: (e) => e instanceof MouseEvent
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
s as linkEmits
|
|
51
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ResultProps } from './result';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
title?: (props: typeof __VLS_7) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'sub-title'?: (props: typeof __VLS_9) => any;
|
|
9
|
+
} & {
|
|
10
|
+
extra?: (props: typeof __VLS_11) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<ResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResultProps> & Readonly<{}>, {
|
|
13
|
+
icon: "primary" | "success" | "warning" | "info" | "error";
|
|
14
|
+
title: string;
|
|
15
|
+
subTitle: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as k, computed as C, openBlock as l, createElementBlock as i, normalizeClass as t, unref as n, createElementVNode as u, renderSlot as r, createBlock as $, resolveDynamicComponent as y, createCommentVNode as c, toDisplayString as p } from "vue";
|
|
2
|
+
import { useNamespace as E } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import "../../hooks/use-size/index.js";
|
|
8
|
+
import "@popperjs/core";
|
|
9
|
+
import "../../hooks/use-z-index/index.js";
|
|
10
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
11
|
+
import "../../hooks/use-aria/index.js";
|
|
12
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
13
|
+
import "../../hooks/use-empty-values/index.js";
|
|
14
|
+
import { IconMap as d, IconComponentMap as f } from "./result.js";
|
|
15
|
+
const w = /* @__PURE__ */ k({
|
|
16
|
+
name: "EpResult",
|
|
17
|
+
__name: "EpResult",
|
|
18
|
+
props: {
|
|
19
|
+
title: { default: "" },
|
|
20
|
+
subTitle: { default: "" },
|
|
21
|
+
icon: { default: "info" }
|
|
22
|
+
},
|
|
23
|
+
setup(o) {
|
|
24
|
+
const v = o, s = E("result"), a = C(() => {
|
|
25
|
+
const e = v.icon, m = e && d[e] ? d[e] : "icon-info", b = f[m] || f["icon-info"];
|
|
26
|
+
return {
|
|
27
|
+
class: m,
|
|
28
|
+
component: b
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
return (e, m) => (l(), i("div", {
|
|
32
|
+
class: t(n(s).b())
|
|
33
|
+
}, [
|
|
34
|
+
u("div", {
|
|
35
|
+
class: t(n(s).e("icon"))
|
|
36
|
+
}, [
|
|
37
|
+
r(e.$slots, "icon", {}, () => [
|
|
38
|
+
a.value.component ? (l(), $(y(a.value.component), {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: t(a.value.class)
|
|
41
|
+
}, null, 8, ["class"])) : c("", !0)
|
|
42
|
+
])
|
|
43
|
+
], 2),
|
|
44
|
+
o.title || e.$slots.title ? (l(), i("div", {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: t(n(s).e("title"))
|
|
47
|
+
}, [
|
|
48
|
+
r(e.$slots, "title", {}, () => [
|
|
49
|
+
u("p", null, p(o.title), 1)
|
|
50
|
+
])
|
|
51
|
+
], 2)) : c("", !0),
|
|
52
|
+
o.subTitle || e.$slots["sub-title"] ? (l(), i("div", {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: t(n(s).e("subtitle"))
|
|
55
|
+
}, [
|
|
56
|
+
r(e.$slots, "sub-title", {}, () => [
|
|
57
|
+
u("p", null, p(o.subTitle), 1)
|
|
58
|
+
])
|
|
59
|
+
], 2)) : c("", !0),
|
|
60
|
+
e.$slots.extra ? (l(), i("div", {
|
|
61
|
+
key: 2,
|
|
62
|
+
class: t(n(s).e("extra"))
|
|
63
|
+
}, [
|
|
64
|
+
r(e.$slots, "extra")
|
|
65
|
+
], 2)) : c("", !0)
|
|
66
|
+
], 2));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
w as default
|
|
71
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpResult from './EpResult.vue';
|
|
3
|
+
/**
|
|
4
|
+
* result 自持 barrel(vendor-batch-5 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 类型图标映射随本体落到本地;图标继续来自独立图标包。
|
|
7
|
+
* 不导出 `ElResult` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpResult: typeof _EpResult & Plugin;
|
|
4
10
|
export default EpResult;
|
|
11
|
+
export { IconComponentMap, IconMap, resultProps } from './result';
|
|
12
|
+
export type { ResultProps, ResultPropsPublic, } from './result';
|
|
13
|
+
export type { ResultInstance } from './instance';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as o } from "../../utils/with-install.js";
|
|
2
|
+
import t from "./EpResult.vue.js";
|
|
3
|
+
import { IconComponentMap as s, IconMap as a } from "./result.js";
|
|
4
|
+
const m = o(
|
|
5
|
+
t,
|
|
6
|
+
"ep-result"
|
|
7
|
+
);
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
m as EpResult,
|
|
10
|
+
s as IconComponentMap,
|
|
11
|
+
a as IconMap
|
|
6
12
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Component, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
export declare const IconMap: {
|
|
3
|
+
readonly primary: "icon-primary";
|
|
4
|
+
readonly success: "icon-success";
|
|
5
|
+
readonly warning: "icon-warning";
|
|
6
|
+
readonly error: "icon-error";
|
|
7
|
+
readonly info: "icon-info";
|
|
8
|
+
};
|
|
9
|
+
export declare const IconComponentMap: Record<(typeof IconMap)[keyof typeof IconMap], Component>;
|
|
10
|
+
export interface ResultProps {
|
|
11
|
+
/**
|
|
12
|
+
* @description title of result
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @description sub title of result
|
|
17
|
+
*/
|
|
18
|
+
subTitle?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @description icon type of result
|
|
21
|
+
*/
|
|
22
|
+
icon?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Removed after 3.0.0, Use `ResultProps` instead.
|
|
26
|
+
*/
|
|
27
|
+
export declare const resultProps: {
|
|
28
|
+
readonly title: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
29
|
+
readonly subTitle: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
30
|
+
readonly icon: import("@element-plus/utils").EpPropFinalized<StringConstructor, "error" | "primary" | "success" | "warning" | "info", unknown, "info", boolean>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Removed after 3.0.0, Use `ResultProps` instead.
|
|
34
|
+
*/
|
|
35
|
+
export type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>;
|