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,53 @@
|
|
|
1
|
+
import type EpSkeleton from './EpSkeleton.vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
import type { ThrottleType } from '@element-plus/hooks';
|
|
4
|
+
export interface SkeletonProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description whether showing the animation
|
|
7
|
+
*/
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @description how many fake items to render to the DOM
|
|
11
|
+
*/
|
|
12
|
+
count?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @description numbers of the row, only useful when no template slot were given
|
|
15
|
+
*/
|
|
16
|
+
rows?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @description whether showing the real DOM
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @description rendering delay in milliseconds
|
|
23
|
+
*/
|
|
24
|
+
throttle?: ThrottleType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.
|
|
28
|
+
*/
|
|
29
|
+
export declare const skeletonProps: {
|
|
30
|
+
readonly animated: BooleanConstructor;
|
|
31
|
+
readonly count: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
32
|
+
readonly rows: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
|
33
|
+
readonly loading: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
34
|
+
readonly throttle: {
|
|
35
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => number | {
|
|
36
|
+
leading?: number;
|
|
37
|
+
trailing?: number;
|
|
38
|
+
initVal?: boolean;
|
|
39
|
+
}) | (() => ThrottleType) | (((new (...args: any[]) => number | {
|
|
40
|
+
leading?: number;
|
|
41
|
+
trailing?: number;
|
|
42
|
+
initVal?: boolean;
|
|
43
|
+
}) | (() => ThrottleType)) | null)[], unknown, unknown>>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.
|
|
51
|
+
*/
|
|
52
|
+
export type SkeletonPropsPublic = ExtractPublicPropTypes<typeof skeletonProps>;
|
|
53
|
+
export type SkeletonInstance = InstanceType<typeof EpSkeleton> & unknown;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 whether showing the animation
|
|
10
|
+
*/
|
|
11
|
+
animated: Boolean,
|
|
12
|
+
/**
|
|
13
|
+
* @description how many fake items to render to the DOM
|
|
14
|
+
*/
|
|
15
|
+
count: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 1
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* @description numbers of the row, only useful when no template slot were given
|
|
21
|
+
*/
|
|
22
|
+
rows: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 3
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @description whether showing the real DOM
|
|
28
|
+
*/
|
|
29
|
+
loading: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !0
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @description rendering delay in milliseconds
|
|
35
|
+
*/
|
|
36
|
+
throttle: {
|
|
37
|
+
type: e([Number, Object])
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SkeletonItemProps } from './skeleton-item';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<SkeletonItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonItemProps> & Readonly<{}>, {
|
|
3
|
+
variant: "circle" | "rect" | "h1" | "h3" | "text" | "caption" | "p" | "image" | "button";
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as r, createElementBlock as i, normalizeClass as a, unref as e, createBlock as n, createCommentVNode as p } from "vue";
|
|
2
|
+
import { useNamespace as c } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import { PictureFilled as l } from "@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
|
+
const h = /* @__PURE__ */ m({
|
|
15
|
+
name: "EpSkeletonItem",
|
|
16
|
+
__name: "EpSkeletonItem",
|
|
17
|
+
props: {
|
|
18
|
+
variant: { default: "text" }
|
|
19
|
+
},
|
|
20
|
+
setup(t) {
|
|
21
|
+
const o = c("skeleton");
|
|
22
|
+
return (s, u) => (r(), i("div", {
|
|
23
|
+
class: a([e(o).e("item"), e(o).e(t.variant)])
|
|
24
|
+
}, [
|
|
25
|
+
t.variant === "image" ? (r(), n(e(l), { key: 0 })) : p("", !0)
|
|
26
|
+
], 2));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpSkeletonItem from './EpSkeletonItem.vue';
|
|
3
|
+
/**
|
|
4
|
+
* skeleton-item 自持 barrel(vendor-batch-4 产出)。
|
|
5
|
+
* 不导出 `ElSkeletonItem` 别名。
|
|
6
|
+
*/
|
|
7
|
+
export declare const EpSkeletonItem: typeof _EpSkeletonItem & Plugin;
|
|
4
8
|
export default EpSkeletonItem;
|
|
9
|
+
export { skeletonItemProps } from './skeleton-item';
|
|
10
|
+
export type { SkeletonItemInstance, SkeletonItemProps, SkeletonItemPropsPublic, } from './skeleton-item';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { ElSkeletonItem as e } from "element-plus";
|
|
2
1
|
import { withInstall as t } from "../../utils/with-install.js";
|
|
3
|
-
|
|
2
|
+
import o from "./EpSkeletonItem.vue.js";
|
|
3
|
+
import "./skeleton-item.js";
|
|
4
|
+
const p = t(
|
|
5
|
+
o,
|
|
6
|
+
"ep-skeleton-item"
|
|
7
|
+
);
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
p as EpSkeletonItem
|
|
6
10
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type EpSkeletonItem from './EpSkeletonItem.vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
export interface SkeletonItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description the current rendering skeleton type
|
|
6
|
+
*/
|
|
7
|
+
variant?: 'circle' | 'rect' | 'h1' | 'h3' | 'text' | 'caption' | 'p' | 'image' | 'button';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const skeletonItemProps: {
|
|
13
|
+
readonly variant: import("@element-plus/utils").EpPropFinalized<StringConstructor, "button" | "text" | "caption" | "circle" | "h1" | "h3" | "p" | "image" | "rect", unknown, "text", boolean>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.
|
|
17
|
+
*/
|
|
18
|
+
export type SkeletonItemPropsPublic = ExtractPublicPropTypes<typeof skeletonItemProps>;
|
|
19
|
+
export type SkeletonItemInstance = InstanceType<typeof EpSkeletonItem> & unknown;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
t({
|
|
8
|
+
/**
|
|
9
|
+
* @description the current rendering skeleton type
|
|
10
|
+
*/
|
|
11
|
+
variant: {
|
|
12
|
+
type: String,
|
|
13
|
+
values: [
|
|
14
|
+
"circle",
|
|
15
|
+
"rect",
|
|
16
|
+
"h1",
|
|
17
|
+
"h3",
|
|
18
|
+
"text",
|
|
19
|
+
"caption",
|
|
20
|
+
"p",
|
|
21
|
+
"image",
|
|
22
|
+
"button"
|
|
23
|
+
],
|
|
24
|
+
default: "text"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -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;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { isVNode as S, defineComponent as P, renderSlot as T, createVNode as s, createTextVNode as A, Comment as L } from "vue";
|
|
2
|
+
import { isNumber as y } from "../../utils/types.js";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { isArray as c, isString as C } from "@vue/shared";
|
|
6
|
+
import { componentSizes as O } from "../../constants/size.js";
|
|
7
|
+
import "@element-plus/icons-vue";
|
|
8
|
+
import { buildProps as z, definePropType as u } from "../../utils/vue/props/runtime.js";
|
|
9
|
+
import { PatchFlags as i, isFragment as g, isValidElementNode as V } from "../../utils/vue/vnode.js";
|
|
10
|
+
import E from "./item.js";
|
|
11
|
+
import { useSpace as Y } from "./use-space.js";
|
|
12
|
+
const j = z({
|
|
13
|
+
/**
|
|
14
|
+
* @description Placement direction
|
|
15
|
+
*/
|
|
16
|
+
direction: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: ["horizontal", "vertical"],
|
|
19
|
+
default: "horizontal"
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @description Classname
|
|
23
|
+
*/
|
|
24
|
+
class: {
|
|
25
|
+
type: u([
|
|
26
|
+
String,
|
|
27
|
+
Object,
|
|
28
|
+
Array
|
|
29
|
+
]),
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* @description Extra style rules
|
|
34
|
+
*/
|
|
35
|
+
style: {
|
|
36
|
+
type: u([String, Array, Object, Boolean]),
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description Controls the alignment of items
|
|
41
|
+
*/
|
|
42
|
+
alignment: {
|
|
43
|
+
type: u(String),
|
|
44
|
+
default: "center"
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* @description Prefix for space-items
|
|
48
|
+
*/
|
|
49
|
+
prefixCls: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @description Spacer
|
|
54
|
+
*/
|
|
55
|
+
spacer: {
|
|
56
|
+
type: u([Object, String, Number, Array]),
|
|
57
|
+
default: null,
|
|
58
|
+
validator: (e) => S(e) || y(e) || C(e)
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @description Auto wrapping
|
|
62
|
+
*/
|
|
63
|
+
wrap: Boolean,
|
|
64
|
+
/**
|
|
65
|
+
* @description Whether to fill the container
|
|
66
|
+
*/
|
|
67
|
+
fill: Boolean,
|
|
68
|
+
/**
|
|
69
|
+
* @description Ratio of fill
|
|
70
|
+
*/
|
|
71
|
+
fillRatio: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 100
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* @description Spacing size
|
|
77
|
+
*/
|
|
78
|
+
size: {
|
|
79
|
+
type: [String, Array, Number],
|
|
80
|
+
values: O,
|
|
81
|
+
validator: (e) => y(e) || c(e) && e.length === 2 && e.every(y)
|
|
82
|
+
}
|
|
83
|
+
}), G = P({
|
|
84
|
+
name: "EpSpace",
|
|
85
|
+
props: j,
|
|
86
|
+
setup(e, { slots: b }) {
|
|
87
|
+
const { classes: v, containerStyle: N, itemStyle: f } = Y(e);
|
|
88
|
+
function d(n, a = "", t = []) {
|
|
89
|
+
const { prefixCls: l } = e;
|
|
90
|
+
return n.forEach((o, m) => {
|
|
91
|
+
g(o) ? c(o.children) && o.children.forEach((r, p) => {
|
|
92
|
+
g(r) && c(r.children) ? d(
|
|
93
|
+
r.children,
|
|
94
|
+
`${a + p}-`,
|
|
95
|
+
t
|
|
96
|
+
) : S(r) && (r == null ? void 0 : r.type) === L ? t.push(r) : t.push(
|
|
97
|
+
s(
|
|
98
|
+
E,
|
|
99
|
+
{
|
|
100
|
+
style: f.value,
|
|
101
|
+
prefixCls: l,
|
|
102
|
+
key: `nested-${a + p}`
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
default: () => [r]
|
|
106
|
+
},
|
|
107
|
+
i.PROPS | i.STYLE,
|
|
108
|
+
["style", "prefixCls"]
|
|
109
|
+
)
|
|
110
|
+
);
|
|
111
|
+
}) : V(o) && t.push(
|
|
112
|
+
s(
|
|
113
|
+
E,
|
|
114
|
+
{
|
|
115
|
+
style: f.value,
|
|
116
|
+
prefixCls: l,
|
|
117
|
+
key: `LoopKey${a + m}`
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
default: () => [o]
|
|
121
|
+
},
|
|
122
|
+
i.PROPS | i.STYLE,
|
|
123
|
+
["style", "prefixCls"]
|
|
124
|
+
)
|
|
125
|
+
);
|
|
126
|
+
}), t;
|
|
127
|
+
}
|
|
128
|
+
return () => {
|
|
129
|
+
const { spacer: n, direction: a } = e, t = T(b, "default", { key: 0 }, () => []);
|
|
130
|
+
if ((t.children ?? []).length === 0) return null;
|
|
131
|
+
if (c(t.children)) {
|
|
132
|
+
let l = d(t.children);
|
|
133
|
+
if (n) {
|
|
134
|
+
const o = l.length - 1;
|
|
135
|
+
l = l.reduce(
|
|
136
|
+
(m, r, p) => {
|
|
137
|
+
const h = [...m, r];
|
|
138
|
+
return p !== o && h.push(
|
|
139
|
+
s(
|
|
140
|
+
"span",
|
|
141
|
+
// adding width 100% for vertical alignment,
|
|
142
|
+
// when the spacer inherit the width from the
|
|
143
|
+
// parent, this span's width was not set, so space
|
|
144
|
+
// might disappear
|
|
145
|
+
{
|
|
146
|
+
style: [
|
|
147
|
+
f.value,
|
|
148
|
+
a === "vertical" ? "width: 100%" : null
|
|
149
|
+
],
|
|
150
|
+
key: p
|
|
151
|
+
},
|
|
152
|
+
[
|
|
153
|
+
// if spacer is already a valid vnode, then append it to the current
|
|
154
|
+
// span element.
|
|
155
|
+
// otherwise, treat it as string.
|
|
156
|
+
S(n) ? n : A(n, i.TEXT)
|
|
157
|
+
],
|
|
158
|
+
i.STYLE
|
|
159
|
+
)
|
|
160
|
+
), h;
|
|
161
|
+
},
|
|
162
|
+
[]
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
return s(
|
|
166
|
+
"div",
|
|
167
|
+
{
|
|
168
|
+
class: v.value,
|
|
169
|
+
style: N.value
|
|
170
|
+
},
|
|
171
|
+
l,
|
|
172
|
+
i.STYLE | i.CLASS
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
return t.children;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export {
|
|
180
|
+
G as default,
|
|
181
|
+
j as spaceProps
|
|
182
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SpaceProps } from './space';
|
|
2
|
+
import type { StyleValue } from 'vue';
|
|
3
|
+
export declare function useSpace(props: SpaceProps): {
|
|
4
|
+
classes: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => import("@element-plus/utils").Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => import("@element-plus/utils").Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown>[]>;
|
|
5
|
+
containerStyle: import("vue").ComputedRef<StyleValue>;
|
|
6
|
+
itemStyle: import("vue").ComputedRef<StyleValue>;
|
|
7
|
+
};
|