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,47 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import { InfoFilled as i, CircleCloseFilled as o, WarningFilled as n, CircleCheckFilled as e } from "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as t } from "../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
const r = {
|
|
8
|
+
primary: "icon-primary",
|
|
9
|
+
success: "icon-success",
|
|
10
|
+
warning: "icon-warning",
|
|
11
|
+
error: "icon-error",
|
|
12
|
+
info: "icon-info"
|
|
13
|
+
}, f = {
|
|
14
|
+
[r.primary]: i,
|
|
15
|
+
[r.success]: e,
|
|
16
|
+
[r.warning]: n,
|
|
17
|
+
[r.error]: o,
|
|
18
|
+
[r.info]: i
|
|
19
|
+
};
|
|
20
|
+
t({
|
|
21
|
+
/**
|
|
22
|
+
* @description title of result
|
|
23
|
+
*/
|
|
24
|
+
title: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @description sub title of result
|
|
30
|
+
*/
|
|
31
|
+
subTitle: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* @description icon type of result
|
|
37
|
+
*/
|
|
38
|
+
icon: {
|
|
39
|
+
type: String,
|
|
40
|
+
values: ["primary", "success", "warning", "info", "error"],
|
|
41
|
+
default: "info"
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
f as IconComponentMap,
|
|
46
|
+
r as IconMap
|
|
47
|
+
};
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
]),
|
|
12
|
-
_: 3
|
|
13
|
-
}, 16)
|
|
14
|
-
]),
|
|
15
|
-
_: 3
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const B = /* @__PURE__ */ a(c, [["render", f]]);
|
|
1
|
+
import { defineComponent as o } from "vue";
|
|
2
|
+
import n from "./roving-focus-group-impl.vue.js";
|
|
3
|
+
import { ElCollection as m } from "./roving-focus-group.js";
|
|
4
|
+
const e = o({
|
|
5
|
+
name: "EpRovingFocusGroup",
|
|
6
|
+
components: {
|
|
7
|
+
ElFocusGroupCollection: m,
|
|
8
|
+
ElRovingFocusGroupImpl: n
|
|
9
|
+
}
|
|
10
|
+
});
|
|
19
11
|
export {
|
|
20
|
-
|
|
12
|
+
e as default
|
|
21
13
|
};
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import c from "./roving-focus-group.vue.js";
|
|
2
|
+
import { resolveComponent as e, openBlock as p, createBlock as l, withCtx as r, createVNode as s, normalizeProps as u, guardReactiveProps as _, renderSlot as i } from "vue";
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function f(o, m, d, g, $, v) {
|
|
5
|
+
const t = e("el-roving-focus-group-impl"), n = e("el-focus-group-collection");
|
|
6
|
+
return p(), l(n, null, {
|
|
7
|
+
default: r(() => [
|
|
8
|
+
s(t, u(_(o.$attrs)), {
|
|
9
|
+
default: r(() => [
|
|
10
|
+
i(o.$slots, "default")
|
|
11
|
+
]),
|
|
12
|
+
_: 3
|
|
13
|
+
}, 16)
|
|
14
|
+
]),
|
|
15
|
+
_: 3
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const B = /* @__PURE__ */ a(c, [["render", f]]);
|
|
11
19
|
export {
|
|
12
|
-
|
|
20
|
+
B as default
|
|
13
21
|
};
|
|
@@ -1,78 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const A = C({
|
|
19
|
-
name: "EpRovingFocusItem",
|
|
20
|
-
components: {
|
|
21
|
-
ElRovingFocusCollectionItem: R
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
focusable: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !0
|
|
27
|
-
},
|
|
28
|
-
active: Boolean
|
|
29
|
-
},
|
|
30
|
-
emits: ["mousedown", "focus", "keydown"],
|
|
31
|
-
setup(u, { emit: n }) {
|
|
32
|
-
const { currentTabbedId: d, onItemFocus: m, onItemShiftTab: a, onKeydown: f } = O(
|
|
33
|
-
g,
|
|
34
|
-
void 0
|
|
35
|
-
), e = N(), l = b(), i = r(
|
|
36
|
-
(o) => {
|
|
37
|
-
n("mousedown", o);
|
|
38
|
-
},
|
|
39
|
-
(o) => {
|
|
40
|
-
u.focusable ? m(t(e)) : o.preventDefault();
|
|
41
|
-
}
|
|
42
|
-
), s = r(
|
|
43
|
-
(o) => {
|
|
44
|
-
n("focus", o);
|
|
45
|
-
},
|
|
46
|
-
() => {
|
|
47
|
-
m(t(e));
|
|
48
|
-
}
|
|
49
|
-
), c = r(
|
|
50
|
-
(o) => {
|
|
51
|
-
n("keydown", o);
|
|
52
|
-
},
|
|
53
|
-
(o) => {
|
|
54
|
-
const { shiftKey: E, target: _, currentTarget: v } = o;
|
|
55
|
-
if (w(o) === F.tab && E) {
|
|
56
|
-
a();
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
_ === v && f(o);
|
|
60
|
-
}
|
|
61
|
-
), I = p(() => d.value === t(e));
|
|
62
|
-
return T(y, {
|
|
63
|
-
rovingFocusGroupItemRef: l,
|
|
64
|
-
tabIndex: p(() => t(I) ? 0 : -1),
|
|
65
|
-
handleMousedown: i,
|
|
66
|
-
handleFocus: s,
|
|
67
|
-
handleKeydown: c
|
|
68
|
-
}), {
|
|
69
|
-
id: e,
|
|
70
|
-
handleKeydown: c,
|
|
71
|
-
handleFocus: s,
|
|
72
|
-
handleMousedown: i
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
1
|
+
import t from "./roving-focus-item2.vue.js";
|
|
2
|
+
import { resolveComponent as c, openBlock as r, createBlock as i, withCtx as n, renderSlot as l } from "vue";
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function a(o, f, m, p, u, _) {
|
|
5
|
+
const e = c("el-roving-focus-collection-item");
|
|
6
|
+
return r(), i(e, {
|
|
7
|
+
id: o.id,
|
|
8
|
+
focusable: o.focusable,
|
|
9
|
+
active: o.active
|
|
10
|
+
}, {
|
|
11
|
+
default: n(() => [
|
|
12
|
+
l(o.$slots, "default")
|
|
13
|
+
]),
|
|
14
|
+
_: 3
|
|
15
|
+
}, 8, ["id", "focusable", "active"]);
|
|
16
|
+
}
|
|
17
|
+
const b = /* @__PURE__ */ s(t, [["render", a]]);
|
|
76
18
|
export {
|
|
77
|
-
|
|
19
|
+
b as default
|
|
78
20
|
};
|
|
@@ -1,20 +1,78 @@
|
|
|
1
|
-
import t from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
1
|
+
import { defineComponent as C, inject as O, ref as b, unref as t, computed as p, provide as T } from "vue";
|
|
2
|
+
import "@vue/shared";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { composeEventHandlers as r, getEventCode as w } from "../../../utils/dom/event.js";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { EVENT_CODE as F } from "../../../constants/aria.js";
|
|
8
|
+
import { useId as N } from "../../../hooks/use-id/index.js";
|
|
9
|
+
import "../../../hooks/use-size/index.js";
|
|
10
|
+
import "@popperjs/core";
|
|
11
|
+
import "../../../hooks/use-z-index/index.js";
|
|
12
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
13
|
+
import "../../../hooks/use-aria/index.js";
|
|
14
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
15
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
16
|
+
import { ElCollectionItem as R } from "./roving-focus-group.js";
|
|
17
|
+
import { ROVING_FOCUS_GROUP_INJECTION_KEY as g, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY as y } from "./tokens.js";
|
|
18
|
+
const A = C({
|
|
19
|
+
name: "EpRovingFocusItem",
|
|
20
|
+
components: {
|
|
21
|
+
ElRovingFocusCollectionItem: R
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
focusable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
active: Boolean
|
|
29
|
+
},
|
|
30
|
+
emits: ["mousedown", "focus", "keydown"],
|
|
31
|
+
setup(u, { emit: n }) {
|
|
32
|
+
const { currentTabbedId: d, onItemFocus: m, onItemShiftTab: a, onKeydown: f } = O(
|
|
33
|
+
g,
|
|
34
|
+
void 0
|
|
35
|
+
), e = N(), l = b(), i = r(
|
|
36
|
+
(o) => {
|
|
37
|
+
n("mousedown", o);
|
|
38
|
+
},
|
|
39
|
+
(o) => {
|
|
40
|
+
u.focusable ? m(t(e)) : o.preventDefault();
|
|
41
|
+
}
|
|
42
|
+
), s = r(
|
|
43
|
+
(o) => {
|
|
44
|
+
n("focus", o);
|
|
45
|
+
},
|
|
46
|
+
() => {
|
|
47
|
+
m(t(e));
|
|
48
|
+
}
|
|
49
|
+
), c = r(
|
|
50
|
+
(o) => {
|
|
51
|
+
n("keydown", o);
|
|
52
|
+
},
|
|
53
|
+
(o) => {
|
|
54
|
+
const { shiftKey: E, target: _, currentTarget: v } = o;
|
|
55
|
+
if (w(o) === F.tab && E) {
|
|
56
|
+
a();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
_ === v && f(o);
|
|
60
|
+
}
|
|
61
|
+
), I = p(() => d.value === t(e));
|
|
62
|
+
return T(y, {
|
|
63
|
+
rovingFocusGroupItemRef: l,
|
|
64
|
+
tabIndex: p(() => t(I) ? 0 : -1),
|
|
65
|
+
handleMousedown: i,
|
|
66
|
+
handleFocus: s,
|
|
67
|
+
handleKeydown: c
|
|
68
|
+
}), {
|
|
69
|
+
id: e,
|
|
70
|
+
handleKeydown: c,
|
|
71
|
+
handleFocus: s,
|
|
72
|
+
handleMousedown: i
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
18
76
|
export {
|
|
19
|
-
|
|
77
|
+
A as default
|
|
20
78
|
};
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpSpace from './space';
|
|
3
|
+
/**
|
|
4
|
+
* space 自持 barrel(vendor-batch-5 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 本体保持 `.ts` 渲染式组件形态(上游无 SFC),内部子项与间距计算
|
|
7
|
+
* 随本体落到本地。按上游契约导出 `spaceItemProps` / `useSpace`;
|
|
8
|
+
* 内部子项组件不对外公开。不导出 `ElSpace` 别名。
|
|
9
|
+
*/
|
|
10
|
+
export declare const EpSpace: typeof _EpSpace & Plugin;
|
|
4
11
|
export default EpSpace;
|
|
12
|
+
export { spaceItemProps } from './item';
|
|
13
|
+
export { spaceProps } from './space';
|
|
14
|
+
export { useSpace } from './use-space';
|
|
15
|
+
export type { SpaceItemProps, SpaceItemPropsPublic, } from './item';
|
|
16
|
+
export type { SpaceProps, SpacePropsPublic } from './space';
|
|
17
|
+
export type { SpaceInstance } from './instance';
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as p } from "../../utils/with-install.js";
|
|
2
|
+
import o from "./space.js";
|
|
3
|
+
import { spaceProps as E } from "./space.js";
|
|
4
|
+
import { spaceItemProps as d } from "./item.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import "@vue/shared";
|
|
7
|
+
import "lodash-unified";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "@element-plus/icons-vue";
|
|
10
|
+
import "../../hooks/use-size/index.js";
|
|
11
|
+
import "@popperjs/core";
|
|
12
|
+
import "../../hooks/use-z-index/index.js";
|
|
13
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
14
|
+
import "../../hooks/use-aria/index.js";
|
|
15
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
16
|
+
import "../../hooks/use-empty-values/index.js";
|
|
17
|
+
const S = p(
|
|
18
|
+
o,
|
|
19
|
+
"ep-space"
|
|
20
|
+
);
|
|
4
21
|
export {
|
|
5
|
-
|
|
22
|
+
S as EpSpace,
|
|
23
|
+
d as spaceItemProps,
|
|
24
|
+
E as spaceProps
|
|
6
25
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
export declare const spaceItemProps: {
|
|
3
|
+
readonly prefixCls: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type SpaceItemProps = ExtractPropTypes<typeof spaceItemProps>;
|
|
11
|
+
export type SpaceItemPropsPublic = ExtractPublicPropTypes<typeof spaceItemProps>;
|
|
12
|
+
declare const SpaceItem: import("vue").DefineComponent<ExtractPropTypes<{
|
|
13
|
+
readonly prefixCls: {
|
|
14
|
+
readonly type: import("vue").PropType<string>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
22
|
+
readonly prefixCls: {
|
|
23
|
+
readonly type: import("vue").PropType<string>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export default SpaceItem;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as r, computed as m, h as i, renderSlot as s } from "vue";
|
|
2
|
+
import "@vue/shared";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "@element-plus/icons-vue";
|
|
6
|
+
import { buildProps as a } from "../../utils/vue/props/runtime.js";
|
|
7
|
+
import { useNamespace as c } from "../../hooks/use-namespace/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 n = a({
|
|
16
|
+
prefixCls: {
|
|
17
|
+
type: String
|
|
18
|
+
}
|
|
19
|
+
}), y = r({
|
|
20
|
+
name: "EpSpaceItem",
|
|
21
|
+
props: n,
|
|
22
|
+
setup(t, { slots: p }) {
|
|
23
|
+
const o = c("space"), e = m(() => `${t.prefixCls || o.b()}__item`);
|
|
24
|
+
return () => i("div", { class: e.value }, s(p, "default"));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
y as default,
|
|
29
|
+
n as spaceItemProps
|
|
30
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue, VNode, VNodeChild } from 'vue';
|
|
2
|
+
import type { Arrayable } from '@element-plus/utils';
|
|
3
|
+
export declare const spaceProps: {
|
|
4
|
+
readonly direction: import("@element-plus/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
5
|
+
readonly class: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown, "", boolean>;
|
|
6
|
+
readonly style: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
7
|
+
readonly alignment: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined)) | null)[], unknown, unknown, "center", boolean>;
|
|
8
|
+
readonly prefixCls: {
|
|
9
|
+
readonly type: import("vue").PropType<string>;
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
+
__epPropKey: true;
|
|
13
|
+
};
|
|
14
|
+
readonly spacer: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, null, boolean>;
|
|
17
|
+
readonly wrap: BooleanConstructor;
|
|
18
|
+
readonly fill: BooleanConstructor;
|
|
19
|
+
readonly fillRatio: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
20
|
+
readonly size: {
|
|
21
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
|
+
__epPropKey: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type SpaceProps = ExtractPropTypes<typeof spaceProps>;
|
|
28
|
+
export type SpacePropsPublic = ExtractPublicPropTypes<typeof spaceProps>;
|
|
29
|
+
declare const Space: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
|
+
readonly direction: import("@element-plus/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
31
|
+
readonly class: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown, "", boolean>;
|
|
32
|
+
readonly style: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
33
|
+
readonly alignment: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined)) | null)[], unknown, unknown, "center", boolean>;
|
|
34
|
+
readonly prefixCls: {
|
|
35
|
+
readonly type: import("vue").PropType<string>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
40
|
+
readonly spacer: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>, null, boolean>;
|
|
43
|
+
readonly wrap: BooleanConstructor;
|
|
44
|
+
readonly fill: BooleanConstructor;
|
|
45
|
+
readonly fillRatio: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
46
|
+
readonly size: {
|
|
47
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
};
|
|
52
|
+
}>, () => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}> | {
|
|
55
|
+
[name: string]: unknown;
|
|
56
|
+
$stable?: boolean;
|
|
57
|
+
} | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
58
|
+
readonly direction: import("@element-plus/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
59
|
+
readonly class: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown, "", boolean>;
|
|
60
|
+
readonly style: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
61
|
+
readonly alignment: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined)) | null)[], unknown, unknown, "center", boolean>;
|
|
62
|
+
readonly prefixCls: {
|
|
63
|
+
readonly type: import("vue").PropType<string>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
};
|
|
68
|
+
readonly spacer: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}>, null, boolean>;
|
|
71
|
+
readonly wrap: BooleanConstructor;
|
|
72
|
+
readonly fill: BooleanConstructor;
|
|
73
|
+
readonly fillRatio: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
74
|
+
readonly size: {
|
|
75
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
};
|
|
80
|
+
}>> & Readonly<{}>, {
|
|
81
|
+
readonly fill: boolean;
|
|
82
|
+
readonly style: StyleValue;
|
|
83
|
+
readonly direction: import("@element-plus/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
84
|
+
readonly wrap: boolean;
|
|
85
|
+
readonly spacer: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}>>;
|
|
88
|
+
readonly class: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown>;
|
|
89
|
+
readonly alignment: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => import("csstype").Property.AlignItems | undefined)) | null)[], unknown, unknown>;
|
|
90
|
+
readonly fillRatio: number;
|
|
91
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default Space;
|