ep-craft 0.1.35 → 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/breadcrumb/EpBreadcrumb.vue.d.ts +15 -0
- package/dist/components/breadcrumb/EpBreadcrumb.vue.js +41 -0
- package/dist/components/breadcrumb/EpBreadcrumb2.vue.js +4 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +28 -0
- package/dist/components/breadcrumb/breadcrumb.js +21 -0
- package/dist/components/breadcrumb/constants.d.ts +3 -0
- package/dist/components/breadcrumb/constants.js +4 -0
- package/dist/components/breadcrumb/index.d.ts +20 -2
- package/dist/components/breadcrumb/index.js +10 -4
- package/dist/components/breadcrumb/instance.d.ts +2 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.d.ts +15 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.js +58 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem2.vue.js +4 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +23 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +19 -0
- package/dist/components/breadcrumb-item/index.d.ts +11 -2
- package/dist/components/breadcrumb-item/index.js +8 -4
- package/dist/components/breadcrumb-item/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/col/EpCol.vue.d.ts +24 -0
- package/dist/components/col/EpCol.vue.js +61 -0
- package/dist/components/col/EpCol2.vue.js +4 -0
- package/dist/components/col/col.d.ts +71 -0
- package/dist/components/col/col.js +79 -0
- package/dist/components/col/index.d.ts +10 -2
- package/dist/components/col/index.js +5 -4
- package/dist/components/collapse/EpCollapse.vue.d.ts +27 -0
- package/dist/components/collapse/EpCollapse.vue.js +30 -0
- package/dist/components/collapse/EpCollapse2.vue.js +4 -0
- package/dist/components/collapse/collapse.d.ts +47 -0
- package/dist/components/collapse/collapse.js +46 -0
- package/dist/components/collapse/constants.d.ts +7 -0
- package/dist/components/collapse/constants.js +4 -0
- package/dist/components/collapse/index.d.ts +21 -2
- package/dist/components/collapse/index.js +11 -3
- package/dist/components/collapse/instance.d.ts +2 -0
- package/dist/components/collapse/use-collapse-item.d.ts +21 -0
- package/dist/components/collapse/use-collapse-item.js +66 -0
- package/dist/components/collapse/use-collapse.d.ts +9 -0
- package/dist/components/collapse/use-collapse.js +72 -0
- package/dist/components/collapse-item/EpCollapseItem.vue.d.ts +27 -0
- package/dist/components/collapse-item/EpCollapseItem.vue.js +102 -0
- package/dist/components/collapse-item/EpCollapseItem2.vue.js +4 -0
- package/dist/components/collapse-item/collapse-item.d.ts +34 -0
- package/dist/components/collapse-item/collapse-item.js +34 -0
- package/dist/components/collapse-item/index.d.ts +11 -2
- package/dist/components/collapse-item/index.js +8 -4
- package/dist/components/collapse-item/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 +1 -1
- package/dist/components/dropdown/src/dropdown-item2.vue.js +1 -1
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +1 -1
- package/dist/components/dropdown/src/dropdown2.vue.js +1 -1
- 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/image/EpImage.vue.d.ts +63 -0
- package/dist/components/image/EpImage.vue.js +207 -0
- package/dist/components/image/EpImage2.vue.js +4 -0
- package/dist/components/image/image.d.ts +132 -0
- package/dist/components/image/image.js +132 -0
- package/dist/components/image/index.d.ts +11 -2
- package/dist/components/image/index.js +9 -4
- package/dist/components/image/instance.d.ts +2 -0
- package/dist/components/image-viewer/EpImageViewer.vue.d.ts +61 -0
- package/dist/components/image-viewer/EpImageViewer.vue.js +421 -0
- package/dist/components/image-viewer/EpImageViewer2.vue.js +4 -0
- package/dist/components/image-viewer/image-viewer.d.ts +100 -0
- package/dist/components/image-viewer/image-viewer.js +99 -0
- package/dist/components/image-viewer/index.d.ts +11 -2
- package/dist/components/image-viewer/index.js +9 -4
- package/dist/components/image-viewer/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 +1 -1
- 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/row/EpRow.vue.d.ts +17 -0
- package/dist/components/row/EpRow.vue.js +50 -0
- package/dist/components/row/EpRow2.vue.js +4 -0
- package/dist/components/row/constants.d.ts +5 -0
- package/dist/components/row/constants.js +4 -0
- package/dist/components/row/index.d.ts +12 -2
- package/dist/components/row/index.js +7 -4
- package/dist/components/row/row.d.ts +41 -0
- package/dist/components/row/row.js +49 -0
- package/dist/components/skeleton/EpSkeleton.vue.d.ts +24 -0
- package/dist/components/skeleton/EpSkeleton.vue.js +56 -0
- package/dist/components/skeleton/EpSkeleton2.vue.js +4 -0
- package/dist/components/skeleton/index.d.ts +16 -2
- package/dist/components/skeleton/index.js +9 -3
- package/dist/components/skeleton/skeleton.d.ts +53 -0
- package/dist/components/skeleton/skeleton.js +39 -0
- package/dist/components/skeleton-item/EpSkeletonItem.vue.d.ts +5 -0
- package/dist/components/skeleton-item/EpSkeletonItem.vue.js +31 -0
- package/dist/components/skeleton-item/EpSkeletonItem2.vue.js +4 -0
- package/dist/components/skeleton-item/index.d.ts +8 -2
- package/dist/components/skeleton-item/index.js +7 -3
- package/dist/components/skeleton-item/skeleton-item.d.ts +19 -0
- package/dist/components/skeleton-item/skeleton-item.js +26 -0
- 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/components/timeline/index.d.ts +21 -2
- package/dist/components/timeline/index.js +10 -3
- package/dist/components/timeline/instance.d.ts +2 -0
- package/dist/components/timeline/timeline.d.ts +20 -0
- package/dist/components/timeline/timeline.js +53 -0
- package/dist/components/timeline/tokens.d.ts +7 -0
- package/dist/components/timeline/tokens.js +4 -0
- package/dist/components/timeline-item/EpTimelineItem.vue.d.ts +21 -0
- package/dist/components/timeline-item/EpTimelineItem.vue.js +94 -0
- package/dist/components/timeline-item/EpTimelineItem2.vue.js +4 -0
- package/dist/components/timeline-item/index.d.ts +12 -2
- package/dist/components/timeline-item/index.js +7 -3
- package/dist/components/timeline-item/instance.d.ts +2 -0
- package/dist/components/timeline-item/timeline-item.d.ts +63 -0
- package/dist/components/timeline-item/timeline-item.js +64 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-throttle-render/index.d.ts +7 -0
- package/dist/hooks/use-throttle-render/index.js +31 -0
- package/dist/utils/vue/vnode.js +32 -22
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +33 -3
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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,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
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RowProps } from './row';
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<RowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {
|
|
7
|
+
justify: typeof import("./row").RowJustify[number];
|
|
8
|
+
tag: string;
|
|
9
|
+
gutter: number;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as m, computed as r, provide as l, openBlock as p, createBlock as u, resolveDynamicComponent as c, normalizeStyle as f, normalizeClass as g, withCtx as d, renderSlot as y } from "vue";
|
|
2
|
+
import { useNamespace as w } 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 { rowContextKey as v } from "./constants.js";
|
|
15
|
+
const L = /* @__PURE__ */ m({
|
|
16
|
+
name: "EpRow",
|
|
17
|
+
__name: "EpRow",
|
|
18
|
+
props: {
|
|
19
|
+
tag: { default: "div" },
|
|
20
|
+
gutter: { default: 0 },
|
|
21
|
+
justify: { default: "start" },
|
|
22
|
+
align: {}
|
|
23
|
+
},
|
|
24
|
+
setup(s) {
|
|
25
|
+
const t = s, o = w("row"), i = r(() => t.gutter);
|
|
26
|
+
l(v, {
|
|
27
|
+
gutter: i
|
|
28
|
+
});
|
|
29
|
+
const a = r(() => {
|
|
30
|
+
const e = {};
|
|
31
|
+
return t.gutter && (e.marginRight = e.marginLeft = `-${t.gutter / 2}px`), e;
|
|
32
|
+
}), n = r(() => [
|
|
33
|
+
o.b(),
|
|
34
|
+
o.is(`justify-${t.justify}`, t.justify !== "start"),
|
|
35
|
+
o.is(`align-${t.align}`, !!t.align)
|
|
36
|
+
]);
|
|
37
|
+
return (e, C) => (p(), u(c(s.tag), {
|
|
38
|
+
class: g(n.value),
|
|
39
|
+
style: f(a.value)
|
|
40
|
+
}, {
|
|
41
|
+
default: d(() => [
|
|
42
|
+
y(e.$slots, "default")
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 8, ["class", "style"]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
L as default
|
|
50
|
+
};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpRow from './EpRow.vue';
|
|
3
|
+
/**
|
|
4
|
+
* row 自持 barrel(vendor-batch-4 产出)。
|
|
5
|
+
*
|
|
6
|
+
* `rowContextKey` 是本地 Symbol,并由本入口导出;`col` 直接引用
|
|
7
|
+
* `../row/constants`,保证父子读取同一个键。不导出 `ElRow` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpRow: typeof _EpRow & Plugin;
|
|
4
10
|
export default EpRow;
|
|
11
|
+
export { rowContextKey } from './constants';
|
|
12
|
+
export { rowProps, RowAlign, RowJustify } from './row';
|
|
13
|
+
export type { RowContext } from './constants';
|
|
14
|
+
export type { RowInstance, RowProps, RowPropsPublic } from './row';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as o } from "../../utils/with-install.js";
|
|
2
|
+
import r from "./EpRow.vue.js";
|
|
3
|
+
import { RowAlign as w, RowJustify as n } from "./row.js";
|
|
4
|
+
const m = o(r, "ep-row");
|
|
4
5
|
export {
|
|
5
|
-
m as EpRow
|
|
6
|
+
m as EpRow,
|
|
7
|
+
w as RowAlign,
|
|
8
|
+
n as RowJustify
|
|
6
9
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type EpRow from './EpRow.vue';
|
|
3
|
+
export declare const RowJustify: readonly ["start", "center", "end", "space-around", "space-between", "space-evenly"];
|
|
4
|
+
export declare const RowAlign: readonly ["top", "middle", "bottom"];
|
|
5
|
+
export interface RowProps {
|
|
6
|
+
/**
|
|
7
|
+
* @description custom element tag
|
|
8
|
+
*/
|
|
9
|
+
tag?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description grid spacing
|
|
12
|
+
*/
|
|
13
|
+
gutter?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @description horizontal alignment of flex layout
|
|
16
|
+
*/
|
|
17
|
+
justify?: (typeof RowJustify)[number];
|
|
18
|
+
/**
|
|
19
|
+
* @description vertical alignment of flex layout
|
|
20
|
+
*/
|
|
21
|
+
align?: (typeof RowAlign)[number];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Removed after 3.0.0, Use `RowProps` instead.
|
|
25
|
+
*/
|
|
26
|
+
export declare const rowProps: {
|
|
27
|
+
readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
28
|
+
readonly gutter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
29
|
+
readonly justify: import("@element-plus/utils").EpPropFinalized<StringConstructor, "center" | "space-around" | "space-between" | "space-evenly" | "end" | "start", unknown, "start", boolean>;
|
|
30
|
+
readonly align: {
|
|
31
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "bottom" | "top" | "middle", unknown>>;
|
|
32
|
+
readonly required: false;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
|
+
__epPropKey: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Removed after 3.0.0, Use `RowProps` instead.
|
|
39
|
+
*/
|
|
40
|
+
export type RowPropsPublic = ExtractPublicPropTypes<typeof rowProps>;
|
|
41
|
+
export type RowInstance = InstanceType<typeof EpRow> & unknown;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as t } from "../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
const e = [
|
|
8
|
+
"start",
|
|
9
|
+
"center",
|
|
10
|
+
"end",
|
|
11
|
+
"space-around",
|
|
12
|
+
"space-between",
|
|
13
|
+
"space-evenly"
|
|
14
|
+
], r = ["top", "middle", "bottom"];
|
|
15
|
+
t({
|
|
16
|
+
/**
|
|
17
|
+
* @description custom element tag
|
|
18
|
+
*/
|
|
19
|
+
tag: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "div"
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* @description grid spacing
|
|
25
|
+
*/
|
|
26
|
+
gutter: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* @description horizontal alignment of flex layout
|
|
32
|
+
*/
|
|
33
|
+
justify: {
|
|
34
|
+
type: String,
|
|
35
|
+
values: e,
|
|
36
|
+
default: "start"
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* @description vertical alignment of flex layout
|
|
40
|
+
*/
|
|
41
|
+
align: {
|
|
42
|
+
type: String,
|
|
43
|
+
values: r
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
r as RowAlign,
|
|
48
|
+
e as RowJustify
|
|
49
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SkeletonProps } from './skeleton';
|
|
2
|
+
declare var __VLS_1: {
|
|
3
|
+
key: number;
|
|
4
|
+
}, __VLS_9: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
template?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_9) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<SkeletonProps, {
|
|
11
|
+
/** @description loading state */
|
|
12
|
+
uiLoading: import("vue").Ref<boolean, boolean>;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
|
+
loading: boolean;
|
|
15
|
+
rows: number;
|
|
16
|
+
count: number;
|
|
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,56 @@
|
|
|
1
|
+
import { defineComponent as g, toRef as v, unref as e, openBlock as r, createElementBlock as n, mergeProps as y, Fragment as l, renderList as u, renderSlot as c, createVNode as h, normalizeClass as d, createBlock as B, createCommentVNode as $, normalizeProps as w, guardReactiveProps as C } 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 { useThrottleRender as N } from "../../hooks/use-throttle-render/index.js";
|
|
15
|
+
import f from "../skeleton-item/EpSkeletonItem.vue.js";
|
|
16
|
+
const J = /* @__PURE__ */ g({
|
|
17
|
+
name: "EpSkeleton",
|
|
18
|
+
__name: "EpSkeleton",
|
|
19
|
+
props: {
|
|
20
|
+
animated: { type: Boolean },
|
|
21
|
+
count: { default: 1 },
|
|
22
|
+
rows: { default: 3 },
|
|
23
|
+
loading: { type: Boolean, default: !0 },
|
|
24
|
+
throttle: {}
|
|
25
|
+
},
|
|
26
|
+
setup(t, { expose: k }) {
|
|
27
|
+
const i = t, o = E("skeleton"), s = N(v(i, "loading"), i.throttle);
|
|
28
|
+
return k({
|
|
29
|
+
/** @description loading state */
|
|
30
|
+
uiLoading: s
|
|
31
|
+
}), (a, P) => e(s) ? (r(), n("div", y({
|
|
32
|
+
key: 0,
|
|
33
|
+
class: [e(o).b(), e(o).is("animated", t.animated)]
|
|
34
|
+
}, a.$attrs), [
|
|
35
|
+
(r(!0), n(l, null, u(t.count, (m) => (r(), n(l, { key: m }, [
|
|
36
|
+
e(s) ? c(a.$slots, "template", { key: m }, () => [
|
|
37
|
+
h(f, {
|
|
38
|
+
class: d(e(o).is("first")),
|
|
39
|
+
variant: "p"
|
|
40
|
+
}, null, 8, ["class"]),
|
|
41
|
+
(r(!0), n(l, null, u(t.rows, (p) => (r(), B(f, {
|
|
42
|
+
key: p,
|
|
43
|
+
class: d([
|
|
44
|
+
e(o).e("paragraph"),
|
|
45
|
+
e(o).is("last", p === t.rows && t.rows > 1)
|
|
46
|
+
]),
|
|
47
|
+
variant: "p"
|
|
48
|
+
}, null, 8, ["class"]))), 128))
|
|
49
|
+
]) : $("", !0)
|
|
50
|
+
], 64))), 128))
|
|
51
|
+
], 16)) : c(a.$slots, "default", w(C(a.$attrs)), void 0, void 0, 1);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
J as default
|
|
56
|
+
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpSkeleton from './EpSkeleton.vue';
|
|
3
|
+
import _EpSkeletonItem from '../skeleton-item/EpSkeletonItem.vue';
|
|
4
|
+
/**
|
|
5
|
+
* skeleton 自持 barrel(vendor-batch-4 产出)。
|
|
6
|
+
*
|
|
7
|
+
* `.SkeletonItem` 是对外公开面的一部分(迁移前包装态经 `Object.assign`
|
|
8
|
+
* 继承自上游),此处挂载**未安装本体**,与上游形态一致。
|
|
9
|
+
* 不导出 `ElSkeleton` 别名。
|
|
10
|
+
*/
|
|
11
|
+
export declare const EpSkeleton: typeof _EpSkeleton & Plugin & {
|
|
12
|
+
SkeletonItem: typeof _EpSkeletonItem;
|
|
13
|
+
};
|
|
4
14
|
export default EpSkeleton;
|
|
15
|
+
export { skeletonProps } from './skeleton';
|
|
16
|
+
export { skeletonItemProps } from '../skeleton-item';
|
|
17
|
+
export type { SkeletonInstance, SkeletonProps, SkeletonPropsPublic, } from './skeleton';
|
|
18
|
+
export type { SkeletonItemInstance, SkeletonItemProps, SkeletonItemPropsPublic, } from '../skeleton-item';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ElSkeleton as e } from "element-plus";
|
|
2
1
|
import { withInstall as t } from "../../utils/with-install.js";
|
|
3
|
-
|
|
2
|
+
import o from "./EpSkeleton.vue.js";
|
|
3
|
+
import m from "../skeleton-item/EpSkeletonItem.vue.js";
|
|
4
|
+
import "./skeleton.js";
|
|
5
|
+
import "../skeleton-item/index.js";
|
|
6
|
+
const s = Object.assign(
|
|
7
|
+
t(o, "ep-skeleton"),
|
|
8
|
+
{ SkeletonItem: m }
|
|
9
|
+
);
|
|
4
10
|
export {
|
|
5
|
-
|
|
11
|
+
s as EpSkeleton
|
|
6
12
|
};
|