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,21 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import { iconPropType as r } from "../../utils/vue/icon.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import { buildProps as o } from "../../utils/vue/props/runtime.js";
|
|
7
|
+
o({
|
|
8
|
+
/**
|
|
9
|
+
* @description separator character
|
|
10
|
+
*/
|
|
11
|
+
separator: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "/"
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* @description icon component of icon separator
|
|
17
|
+
*/
|
|
18
|
+
separatorIcon: {
|
|
19
|
+
type: r
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpBreadcrumb from './EpBreadcrumb.vue';
|
|
3
|
+
import _EpBreadcrumbItem from '../breadcrumb-item/EpBreadcrumbItem.vue';
|
|
4
|
+
/**
|
|
5
|
+
* breadcrumb 自持 barrel(vendor-batch-4 产出)。
|
|
6
|
+
*
|
|
7
|
+
* `.BreadcrumbItem` 是对外公开面的一部分(迁移前包装态经 `Object.assign`
|
|
8
|
+
* 继承自上游),此处挂载**未安装本体**,与上游形态一致。
|
|
9
|
+
* 上下文键 `breadcrumbKey` 由本入口导出,子项从 ./constants 读取同一 Symbol。
|
|
10
|
+
* 不导出 `ElBreadcrumb` / `ElBreadcrumbItem` 别名。
|
|
11
|
+
*/
|
|
12
|
+
export declare const EpBreadcrumb: typeof _EpBreadcrumb & Plugin & {
|
|
13
|
+
BreadcrumbItem: typeof _EpBreadcrumbItem;
|
|
14
|
+
};
|
|
4
15
|
export default EpBreadcrumb;
|
|
16
|
+
export { breadcrumbKey } from './constants';
|
|
17
|
+
export { breadcrumbProps } from './breadcrumb';
|
|
18
|
+
export { breadcrumbItemProps } from '../breadcrumb-item';
|
|
19
|
+
export type { BreadcrumbProps, BreadcrumbPropsPublic } from './breadcrumb';
|
|
20
|
+
export type { BreadcrumbInstance } from './instance';
|
|
21
|
+
export type { BreadcrumbItemProps, BreadcrumbItemPropsPublic, } from '../breadcrumb-item';
|
|
22
|
+
export type { BreadcrumbItemInstance } from '../breadcrumb-item/instance';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as r } from "../../utils/with-install.js";
|
|
2
|
+
import m from "./EpBreadcrumb.vue.js";
|
|
3
|
+
import t from "../breadcrumb-item/EpBreadcrumbItem.vue.js";
|
|
4
|
+
import "./breadcrumb.js";
|
|
5
|
+
import "../breadcrumb-item/index.js";
|
|
6
|
+
const e = Object.assign(
|
|
7
|
+
r(m, "ep-breadcrumb"),
|
|
8
|
+
{ BreadcrumbItem: t }
|
|
9
|
+
);
|
|
4
10
|
export {
|
|
5
|
-
|
|
11
|
+
e as EpBreadcrumb
|
|
6
12
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BreadcrumbItemProps } from './breadcrumb-item';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<BreadcrumbItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbItemProps> & Readonly<{}>, {
|
|
7
|
+
to: import("vue-router").RouteLocationRaw;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as b, getCurrentInstance as k, inject as C, openBlock as o, createElementBlock as i, normalizeClass as a, unref as e, createElementVNode as y, renderSlot as B, createBlock as l, withCtx as I, resolveDynamicComponent as E, toDisplayString as g } from "vue";
|
|
2
|
+
import { EpIcon as x } from "../icon/index.js";
|
|
3
|
+
import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
|
|
4
|
+
import "@vue/shared";
|
|
5
|
+
import "lodash-unified";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@element-plus/icons-vue";
|
|
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
|
+
import { breadcrumbKey as h } from "../breadcrumb/constants.js";
|
|
16
|
+
const J = /* @__PURE__ */ b({
|
|
17
|
+
name: "EpBreadcrumbItem",
|
|
18
|
+
__name: "EpBreadcrumbItem",
|
|
19
|
+
props: {
|
|
20
|
+
to: { default: "" },
|
|
21
|
+
replace: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(s) {
|
|
24
|
+
const r = s, u = k(), n = C(h, void 0), t = _("breadcrumb"), p = u.appContext.config.globalProperties.$router, d = () => {
|
|
25
|
+
!r.to || !p || (r.replace ? p.replace(r.to) : p.push(r.to));
|
|
26
|
+
};
|
|
27
|
+
return (f, v) => {
|
|
28
|
+
var c, m;
|
|
29
|
+
return o(), i("span", {
|
|
30
|
+
class: a(e(t).e("item"))
|
|
31
|
+
}, [
|
|
32
|
+
y("span", {
|
|
33
|
+
class: a([e(t).e("inner"), e(t).is("link", !!s.to)]),
|
|
34
|
+
role: "link",
|
|
35
|
+
onClick: d
|
|
36
|
+
}, [
|
|
37
|
+
B(f.$slots, "default")
|
|
38
|
+
], 2),
|
|
39
|
+
(c = e(n)) != null && c.separatorIcon ? (o(), l(e(x), {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: a(e(t).e("separator"))
|
|
42
|
+
}, {
|
|
43
|
+
default: I(() => [
|
|
44
|
+
(o(), l(E(e(n).separatorIcon)))
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}, 8, ["class"])) : (o(), i("span", {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: a(e(t).e("separator")),
|
|
50
|
+
role: "presentation"
|
|
51
|
+
}, g((m = e(n)) == null ? void 0 : m.separator), 3))
|
|
52
|
+
], 2);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
J as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
export interface BreadcrumbItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description target route of the link, same as `to` of `vue-router`
|
|
6
|
+
*/
|
|
7
|
+
to?: RouteLocationRaw;
|
|
8
|
+
/**
|
|
9
|
+
* @description if `true`, the navigation will not leave a history record
|
|
10
|
+
*/
|
|
11
|
+
replace?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.
|
|
15
|
+
*/
|
|
16
|
+
export declare const breadcrumbItemProps: {
|
|
17
|
+
readonly to: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (((new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric)) | null)[], unknown, unknown, "", boolean>;
|
|
18
|
+
readonly replace: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.
|
|
22
|
+
*/
|
|
23
|
+
export type BreadcrumbItemPropsPublic = ExtractPublicPropTypes<typeof breadcrumbItemProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as o, definePropType as p } from "../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
o({
|
|
8
|
+
/**
|
|
9
|
+
* @description target route of the link, same as `to` of `vue-router`
|
|
10
|
+
*/
|
|
11
|
+
to: {
|
|
12
|
+
type: p([String, Object]),
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* @description if `true`, the navigation will not leave a history record
|
|
17
|
+
*/
|
|
18
|
+
replace: Boolean
|
|
19
|
+
});
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpBreadcrumbItem from './EpBreadcrumbItem.vue';
|
|
3
|
+
/**
|
|
4
|
+
* breadcrumb-item 自持 barrel(vendor-batch-4 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 子项通过 `../breadcrumb/constants` 的本地 `breadcrumbKey` 注入父上下文;
|
|
7
|
+
* 父入口以本体挂载 `.BreadcrumbItem`。不导出 `ElBreadcrumbItem` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpBreadcrumbItem: typeof _EpBreadcrumbItem & Plugin;
|
|
4
10
|
export default EpBreadcrumbItem;
|
|
11
|
+
export { breadcrumbItemProps } from './breadcrumb-item';
|
|
12
|
+
export type { BreadcrumbItemProps, BreadcrumbItemPropsPublic, } from './breadcrumb-item';
|
|
13
|
+
export type { BreadcrumbItemInstance } from './instance';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as m } from "../../utils/with-install.js";
|
|
2
|
+
import r from "./EpBreadcrumbItem.vue.js";
|
|
3
|
+
import "./breadcrumb-item.js";
|
|
4
|
+
const i = m(
|
|
5
|
+
r,
|
|
6
|
+
"ep-breadcrumb-item"
|
|
7
|
+
);
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
i as EpBreadcrumbItem
|
|
6
10
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CardProps } from './card';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
header?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
11
|
+
footer: string;
|
|
12
|
+
header: string;
|
|
13
|
+
bodyStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
14
|
+
shadow: "always" | "hover" | "never";
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as h, computed as p, openBlock as l, createElementBlock as d, normalizeClass as r, unref as a, renderSlot as i, createTextVNode as n, toDisplayString as m, createCommentVNode as f, createElementVNode as C, normalizeStyle as b } from "vue";
|
|
2
|
+
import { useNamespace as g } 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 "../config-provider/index.js";
|
|
15
|
+
import { useGlobalConfig as v } from "../config-provider/src/hooks/use-global-config.js";
|
|
16
|
+
const q = /* @__PURE__ */ h({
|
|
17
|
+
name: "EpCard",
|
|
18
|
+
__name: "EpCard",
|
|
19
|
+
props: {
|
|
20
|
+
header: { default: "" },
|
|
21
|
+
footer: { default: "" },
|
|
22
|
+
bodyStyle: { type: [Boolean, null, String, Object, Array], default: "" },
|
|
23
|
+
headerClass: {},
|
|
24
|
+
bodyClass: {},
|
|
25
|
+
footerClass: {},
|
|
26
|
+
shadow: { default: void 0 }
|
|
27
|
+
},
|
|
28
|
+
setup(e) {
|
|
29
|
+
const c = v("card"), u = e, y = p(() => {
|
|
30
|
+
var s;
|
|
31
|
+
const o = (s = c.value) == null ? void 0 : s.shadow;
|
|
32
|
+
return u.shadow || (typeof o == "string" ? o : "") || "always";
|
|
33
|
+
}), t = g("card");
|
|
34
|
+
return (o, s) => (l(), d("div", {
|
|
35
|
+
class: r([a(t).b(), a(t).is(`${y.value}-shadow`)])
|
|
36
|
+
}, [
|
|
37
|
+
o.$slots.header || e.header ? (l(), d("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: r([a(t).e("header"), e.headerClass])
|
|
40
|
+
}, [
|
|
41
|
+
i(o.$slots, "header", {}, () => [
|
|
42
|
+
n(m(e.header), 1)
|
|
43
|
+
])
|
|
44
|
+
], 2)) : f("", !0),
|
|
45
|
+
C("div", {
|
|
46
|
+
class: r([a(t).e("body"), e.bodyClass]),
|
|
47
|
+
style: b(e.bodyStyle)
|
|
48
|
+
}, [
|
|
49
|
+
i(o.$slots, "default")
|
|
50
|
+
], 6),
|
|
51
|
+
o.$slots.footer || e.footer ? (l(), d("div", {
|
|
52
|
+
key: 1,
|
|
53
|
+
class: r([a(t).e("footer"), e.footerClass])
|
|
54
|
+
}, [
|
|
55
|
+
i(o.$slots, "footer", {}, () => [
|
|
56
|
+
n(m(e.footer), 1)
|
|
57
|
+
])
|
|
58
|
+
], 2)) : f("", !0)
|
|
59
|
+
], 2));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
q as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, InjectionKey, StyleValue } from 'vue';
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description title of the card. Also accepts a DOM passed by `slot#header`
|
|
5
|
+
*/
|
|
6
|
+
header?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description content of footer. Also accepts a DOM passed by `slot#footer`
|
|
9
|
+
*/
|
|
10
|
+
footer?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description CSS style of card body
|
|
13
|
+
*/
|
|
14
|
+
bodyStyle?: StyleValue;
|
|
15
|
+
/**
|
|
16
|
+
* @description custom class name of card header
|
|
17
|
+
*/
|
|
18
|
+
headerClass?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @description custom class name of card body
|
|
21
|
+
*/
|
|
22
|
+
bodyClass?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description custom class name of card footer
|
|
25
|
+
*/
|
|
26
|
+
footerClass?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @description when to show card shadows
|
|
29
|
+
*/
|
|
30
|
+
shadow?: 'always' | 'hover' | 'never';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Removed after 3.0.0, Use `CardProps` instead.
|
|
34
|
+
*/
|
|
35
|
+
export declare const cardProps: {
|
|
36
|
+
readonly header: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
37
|
+
readonly footer: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
38
|
+
readonly bodyStyle: 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>;
|
|
39
|
+
readonly headerClass: StringConstructor;
|
|
40
|
+
readonly bodyClass: StringConstructor;
|
|
41
|
+
readonly footerClass: StringConstructor;
|
|
42
|
+
readonly shadow: import("@element-plus/utils").EpPropFinalized<StringConstructor, "always" | "never" | "hover", unknown, undefined, boolean>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Removed after 3.0.0, Use `CardProps` instead.
|
|
46
|
+
*/
|
|
47
|
+
export type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>;
|
|
48
|
+
export interface CardConfigContext {
|
|
49
|
+
shadow?: CardProps['shadow'];
|
|
50
|
+
}
|
|
51
|
+
export declare const cardContextKey: InjectionKey<CardConfigContext>;
|
|
@@ -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, definePropType as e } from "../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
t({
|
|
8
|
+
/**
|
|
9
|
+
* @description title of the card. Also accepts a DOM passed by `slot#header`
|
|
10
|
+
*/
|
|
11
|
+
header: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* @description content of footer. Also accepts a DOM passed by `slot#footer`
|
|
17
|
+
*/
|
|
18
|
+
footer: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @description CSS style of card body
|
|
24
|
+
*/
|
|
25
|
+
bodyStyle: {
|
|
26
|
+
type: e([String, Object, Array, Boolean]),
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @description custom class name of card footer
|
|
31
|
+
*/
|
|
32
|
+
headerClass: String,
|
|
33
|
+
/**
|
|
34
|
+
* @description custom class name of card body
|
|
35
|
+
*/
|
|
36
|
+
bodyClass: String,
|
|
37
|
+
/**
|
|
38
|
+
* @description custom class name of card footer
|
|
39
|
+
*/
|
|
40
|
+
footerClass: String,
|
|
41
|
+
/**
|
|
42
|
+
* @description when to show card shadows
|
|
43
|
+
*/
|
|
44
|
+
shadow: {
|
|
45
|
+
type: String,
|
|
46
|
+
values: ["always", "hover", "never"],
|
|
47
|
+
default: void 0
|
|
48
|
+
}
|
|
49
|
+
});
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpCard from './EpCard.vue';
|
|
3
|
+
/**
|
|
4
|
+
* card 自持 barrel(vendor-batch-5 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 阴影支持全局配置回退;`cardContextKey` 随本体落到本地,
|
|
7
|
+
* 供后续卡片子组件使用。本批不导出 `ElCard` 别名。
|
|
8
|
+
*/
|
|
9
|
+
export declare const EpCard: typeof _EpCard & Plugin;
|
|
4
10
|
export default EpCard;
|
|
11
|
+
export { cardContextKey, cardProps } from './card';
|
|
12
|
+
export type { CardConfigContext, CardProps, CardPropsPublic, } from './card';
|
|
13
|
+
export type { CardInstance } from './instance';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as r } from "../../utils/with-install.js";
|
|
2
|
+
import o from "./EpCard.vue.js";
|
|
3
|
+
import "./card.js";
|
|
4
|
+
const i = r(o, "ep-card");
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
i as EpCard
|
|
6
7
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ColProps } from './col';
|
|
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<ColProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColProps> & Readonly<{}>, {
|
|
7
|
+
push: number;
|
|
8
|
+
offset: number;
|
|
9
|
+
span: number;
|
|
10
|
+
tag: string;
|
|
11
|
+
pull: number;
|
|
12
|
+
xs: import("./col").ColSize;
|
|
13
|
+
sm: import("./col").ColSize;
|
|
14
|
+
md: import("./col").ColSize;
|
|
15
|
+
lg: import("./col").ColSize;
|
|
16
|
+
xl: import("./col").ColSize;
|
|
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,61 @@
|
|
|
1
|
+
import { defineComponent as c, inject as d, computed as r, openBlock as h, createBlock as $, resolveDynamicComponent as g, normalizeStyle as b, normalizeClass as x, withCtx as v, renderSlot as y } from "vue";
|
|
2
|
+
import { isNumber as f } from "../../utils/types.js";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { isObject as C } from "@vue/shared";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { useNamespace as E } 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
|
+
import { rowContextKey as _ } from "../row/constants.js";
|
|
16
|
+
const I = /* @__PURE__ */ c({
|
|
17
|
+
name: "EpCol",
|
|
18
|
+
__name: "EpCol",
|
|
19
|
+
props: {
|
|
20
|
+
tag: { default: "div" },
|
|
21
|
+
span: { default: 24 },
|
|
22
|
+
offset: { default: 0 },
|
|
23
|
+
pull: { default: 0 },
|
|
24
|
+
push: { default: 0 },
|
|
25
|
+
xs: { default: () => ({}) },
|
|
26
|
+
sm: { default: () => ({}) },
|
|
27
|
+
md: { default: () => ({}) },
|
|
28
|
+
lg: { default: () => ({}) },
|
|
29
|
+
xl: { default: () => ({}) }
|
|
30
|
+
},
|
|
31
|
+
setup(n) {
|
|
32
|
+
const s = n, { gutter: a } = d(_, { gutter: r(() => 0) }), o = E("col"), m = r(() => {
|
|
33
|
+
const e = {};
|
|
34
|
+
return a.value && (e.paddingLeft = e.paddingRight = `${a.value / 2}px`), e;
|
|
35
|
+
}), i = r(() => {
|
|
36
|
+
const e = [];
|
|
37
|
+
return ["span", "offset", "pull", "push"].forEach((t) => {
|
|
38
|
+
const l = s[t];
|
|
39
|
+
f(l) && (t === "span" ? e.push(o.b(`${s[t]}`)) : l > 0 && e.push(o.b(`${t}-${s[t]}`)));
|
|
40
|
+
}), ["xs", "sm", "md", "lg", "xl"].forEach((t) => {
|
|
41
|
+
f(s[t]) ? e.push(o.b(`${t}-${s[t]}`)) : C(s[t]) && Object.entries(s[t]).forEach(([l, u]) => {
|
|
42
|
+
e.push(
|
|
43
|
+
l !== "span" ? o.b(`${t}-${l}-${u}`) : o.b(`${t}-${u}`)
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
}), a.value && e.push(o.is("guttered")), [o.b(), e];
|
|
47
|
+
});
|
|
48
|
+
return (e, p) => (h(), $(g(n.tag), {
|
|
49
|
+
class: x(i.value),
|
|
50
|
+
style: b(m.value)
|
|
51
|
+
}, {
|
|
52
|
+
default: v(() => [
|
|
53
|
+
y(e.$slots, "default")
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["class", "style"]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
I as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type EpCol from './EpCol.vue';
|
|
3
|
+
export type ColSizeObject = {
|
|
4
|
+
span?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
pull?: number;
|
|
7
|
+
push?: number;
|
|
8
|
+
};
|
|
9
|
+
export type ColSize = number | ColSizeObject;
|
|
10
|
+
export interface ColProps {
|
|
11
|
+
/**
|
|
12
|
+
* @description custom element tag
|
|
13
|
+
*/
|
|
14
|
+
tag?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @description number of column the grid spans
|
|
17
|
+
*/
|
|
18
|
+
span?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @description number of spacing on the left side of the grid
|
|
21
|
+
*/
|
|
22
|
+
offset?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @description number of columns that grid moves to the left
|
|
25
|
+
*/
|
|
26
|
+
pull?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @description number of columns that grid moves to the right
|
|
29
|
+
*/
|
|
30
|
+
push?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @description `<768px` Responsive columns or column props object
|
|
33
|
+
*/
|
|
34
|
+
xs?: ColSize;
|
|
35
|
+
/**
|
|
36
|
+
* @description `≥768px` Responsive columns or column props object
|
|
37
|
+
*/
|
|
38
|
+
sm?: ColSize;
|
|
39
|
+
/**
|
|
40
|
+
* @description `≥992px` Responsive columns or column props object
|
|
41
|
+
*/
|
|
42
|
+
md?: ColSize;
|
|
43
|
+
/**
|
|
44
|
+
* @description `≥1200px` Responsive columns or column props object
|
|
45
|
+
*/
|
|
46
|
+
lg?: ColSize;
|
|
47
|
+
/**
|
|
48
|
+
* @description `≥1920px` Responsive columns or column props object
|
|
49
|
+
*/
|
|
50
|
+
xl?: ColSize;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Removed after 3.0.0, Use `ColProps` instead.
|
|
54
|
+
*/
|
|
55
|
+
export declare const colProps: {
|
|
56
|
+
readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
57
|
+
readonly span: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
58
|
+
readonly offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
59
|
+
readonly pull: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
60
|
+
readonly push: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
61
|
+
readonly xs: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
|
|
62
|
+
readonly sm: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
|
|
63
|
+
readonly md: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
|
|
64
|
+
readonly lg: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
|
|
65
|
+
readonly xl: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Removed after 3.0.0, Use `ColProps` instead.
|
|
69
|
+
*/
|
|
70
|
+
export type ColPropsPublic = ExtractPublicPropTypes<typeof colProps>;
|
|
71
|
+
export type ColInstance = InstanceType<typeof EpCol> & unknown;
|