@seresweb/website-component 2.0.0
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/README.md +144 -0
- package/dist/_vars-BV4QQF-p.js +4 -0
- package/dist/_vars-CyrPevgT.cjs +1 -0
- package/dist/cjs/Input.cjs +1 -0
- package/dist/cjs/accordion-info-panel.cjs +1 -0
- package/dist/cjs/animated-number.cjs +1 -0
- package/dist/cjs/drawer.cjs +1 -0
- package/dist/cjs/dropdown.cjs +1 -0
- package/dist/cjs/gradual-highlight.cjs +1 -0
- package/dist/cjs/horizontal-viewer.cjs +1 -0
- package/dist/cjs/image-indicator.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/layz-image.cjs +1 -0
- package/dist/cjs/parameter-box.cjs +1 -0
- package/dist/cjs/radio.cjs +1 -0
- package/dist/cjs/swiper-normal.cjs +1 -0
- package/dist/cjs/swiper-vehicle.cjs +1 -0
- package/dist/cjs/tab-indicator.cjs +1 -0
- package/dist/cjs/video.cjs +1 -0
- package/dist/css/accordion-info-panel.css +1 -0
- package/dist/css/drawer.css +1 -0
- package/dist/css/dropdown.css +1 -0
- package/dist/css/gradual-highlight.css +1 -0
- package/dist/css/horizontal-viewer.css +1 -0
- package/dist/css/image-indicator.css +1 -0
- package/dist/css/input.css +1 -0
- package/dist/css/layz-image.css +1 -0
- package/dist/css/parameter-box.css +1 -0
- package/dist/css/radio.css +1 -0
- package/dist/css/swiper-normal.css +1 -0
- package/dist/css/swiper-vehicle.css +1 -0
- package/dist/css/tab-indicator.css +1 -0
- package/dist/css/video.css +1 -0
- package/dist/es/Input.mjs +70 -0
- package/dist/es/accordion-info-panel.mjs +145 -0
- package/dist/es/animated-number.mjs +72 -0
- package/dist/es/drawer.mjs +174 -0
- package/dist/es/dropdown.mjs +62 -0
- package/dist/es/gradual-highlight.mjs +90 -0
- package/dist/es/horizontal-viewer.mjs +4 -0
- package/dist/es/image-indicator.mjs +4 -0
- package/dist/es/index.mjs +60 -0
- package/dist/es/layz-image.mjs +51 -0
- package/dist/es/parameter-box.mjs +115 -0
- package/dist/es/radio.mjs +56 -0
- package/dist/es/swiper-normal.mjs +4 -0
- package/dist/es/swiper-vehicle.mjs +4 -0
- package/dist/es/tab-indicator.mjs +184 -0
- package/dist/es/video.mjs +246 -0
- package/dist/global.d.ts +22 -0
- package/dist/index-BgNMAlW8.js +536 -0
- package/dist/index-BrggpRcU.js +5287 -0
- package/dist/index-DrnEpWXW.cjs +5 -0
- package/dist/index-LswhGmG3.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/scss/_animate.scss +132 -0
- package/dist/scss/_vars.scss +1 -0
- package/dist/scss/accordion-info-panel.scss +104 -0
- package/dist/scss/drawer.scss +64 -0
- package/dist/scss/dropdown.scss +21 -0
- package/dist/scss/gradual-highlight.scss +26 -0
- package/dist/scss/horizontal-viewer.scss +161 -0
- package/dist/scss/image-indicator.scss +79 -0
- package/dist/scss/index.scss +17 -0
- package/dist/scss/input.scss +46 -0
- package/dist/scss/layz-image.scss +11 -0
- package/dist/scss/parameter-box.scss +94 -0
- package/dist/scss/radio.scss +70 -0
- package/dist/scss/swiper-normal.scss +117 -0
- package/dist/scss/swiper-vehicle.scss +123 -0
- package/dist/scss/tab-indicator.scss +148 -0
- package/dist/scss/video.scss +169 -0
- package/dist/types/components/Input/Input.vue.d.ts +26 -0
- package/dist/types/components/Input/index.d.ts +6 -0
- package/dist/types/components/Input/type.d.ts +9 -0
- package/dist/types/components/_utils.d.ts +1 -0
- package/dist/types/components/_vars.d.ts +1 -0
- package/dist/types/components/accordion-info-panel/accordion-info-panel.vue.d.ts +5 -0
- package/dist/types/components/accordion-info-panel/index.d.ts +6 -0
- package/dist/types/components/accordion-info-panel/type.d.ts +26 -0
- package/dist/types/components/animated-number/animated-number.vue.d.ts +12 -0
- package/dist/types/components/animated-number/index.d.ts +6 -0
- package/dist/types/components/animated-number/type.d.ts +50 -0
- package/dist/types/components/drawer/drawer.vue.d.ts +37 -0
- package/dist/types/components/drawer/index.d.ts +6 -0
- package/dist/types/components/drawer/type.d.ts +43 -0
- package/dist/types/components/drawer/u.d.ts +1 -0
- package/dist/types/components/dropdown/dropdown.vue.d.ts +18 -0
- package/dist/types/components/dropdown/index.d.ts +5 -0
- package/dist/types/components/gradual-highlight/gradual-highlight.vue.d.ts +10 -0
- package/dist/types/components/gradual-highlight/index.d.ts +6 -0
- package/dist/types/components/gradual-highlight/type.d.ts +17 -0
- package/dist/types/components/horizontal-viewer/horizontal-viewer.vue.d.ts +5 -0
- package/dist/types/components/horizontal-viewer/index.d.ts +6 -0
- package/dist/types/components/horizontal-viewer/mb-viewer.vue.d.ts +5 -0
- package/dist/types/components/horizontal-viewer/pc-viewer.vue.d.ts +15 -0
- package/dist/types/components/horizontal-viewer/type.d.ts +15 -0
- package/dist/types/components/image-indicator/image-indicator.vue.d.ts +11 -0
- package/dist/types/components/image-indicator/index.d.ts +6 -0
- package/dist/types/components/image-indicator/type.d.ts +18 -0
- package/dist/types/components/index.d.ts +21 -0
- package/dist/types/components/layz-image/index.d.ts +6 -0
- package/dist/types/components/layz-image/layz-image.vue.d.ts +3 -0
- package/dist/types/components/layz-image/type.d.ts +35 -0
- package/dist/types/components/parameter-box/index.d.ts +6 -0
- package/dist/types/components/parameter-box/parameter-box.vue.d.ts +6 -0
- package/dist/types/components/parameter-box/type.d.ts +46 -0
- package/dist/types/components/radio/index.d.ts +6 -0
- package/dist/types/components/radio/radio.vue.d.ts +9 -0
- package/dist/types/components/radio/type.d.ts +8 -0
- package/dist/types/components/resolver.d.ts +18 -0
- package/dist/types/components/swiper-normal/index.d.ts +6 -0
- package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +19 -0
- package/dist/types/components/swiper-normal/type.d.ts +79 -0
- package/dist/types/components/swiper-vehicle/index.d.ts +6 -0
- package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +15 -0
- package/dist/types/components/swiper-vehicle/type.d.ts +54 -0
- package/dist/types/components/tab-indicator/index.d.ts +6 -0
- package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +15 -0
- package/dist/types/components/tab-indicator/type.d.ts +28 -0
- package/dist/types/components/video/index.d.ts +6 -0
- package/dist/types/components/video/type.d.ts +38 -0
- package/dist/types/components/video/video-wrapper.vue.d.ts +33 -0
- package/dist/types/components/video/video.vue.d.ts +183 -0
- package/package.json +48 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InputProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
prefix?(_: {}): any;
|
|
6
|
+
suffix?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:modelValue": (value: string | number) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
type: "text" | "email" | "tel";
|
|
18
|
+
autocomplete: "on" | "off";
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const smoothScrollLeftTo: (element: HTMLElement, targetX: number, duration?: number) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "sc";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AccordionInfoPanelProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AccordionInfoPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionInfoPanelProps> & Readonly<{}>, {
|
|
3
|
+
defaultOpenIndex: number;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface AccordionInfoPanelData {
|
|
2
|
+
title: string;
|
|
3
|
+
desc: string;
|
|
4
|
+
/**
|
|
5
|
+
* 图片地址,如果设置单一图片,这个属性可以省略
|
|
6
|
+
*/
|
|
7
|
+
imgUrl?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AccordionInfoPanelProps {
|
|
11
|
+
/**
|
|
12
|
+
* 数据列表
|
|
13
|
+
*/
|
|
14
|
+
dataList: AccordionInfoPanelData[];
|
|
15
|
+
/**
|
|
16
|
+
* 默认展开的索引
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
defaultOpenIndex?: number;
|
|
20
|
+
/**
|
|
21
|
+
* 单一的图片链接
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
singleImageSrc?: string;
|
|
25
|
+
singleImageAlt?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnimatedNumberProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AnimatedNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AnimatedNumberProps> & Readonly<{}>, {
|
|
3
|
+
duration: number;
|
|
4
|
+
format: boolean;
|
|
5
|
+
threshold: number;
|
|
6
|
+
once: boolean;
|
|
7
|
+
direction: "auto" | "up" | "down";
|
|
8
|
+
isAnimation: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
el: HTMLSpanElement;
|
|
11
|
+
}, HTMLSpanElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface AnimatedNumberProps {
|
|
2
|
+
/**
|
|
3
|
+
* 目标值
|
|
4
|
+
*/
|
|
5
|
+
value: number;
|
|
6
|
+
/**
|
|
7
|
+
* 是否格式化数字
|
|
8
|
+
*
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
format?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 动画范围
|
|
14
|
+
*
|
|
15
|
+
* @default value / 10
|
|
16
|
+
*/
|
|
17
|
+
range?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 进入可视范围的阈值
|
|
20
|
+
*
|
|
21
|
+
* 1.0 表示完全进入可视范围,0.5 表示一半进入可视范围
|
|
22
|
+
*
|
|
23
|
+
* @default 0.5
|
|
24
|
+
*/
|
|
25
|
+
threshold?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 动画持续时间
|
|
28
|
+
*
|
|
29
|
+
* @default 1500
|
|
30
|
+
*/
|
|
31
|
+
duration?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 是否只执行一次动画
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
once?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 动画方向
|
|
40
|
+
*
|
|
41
|
+
* @default 'auto'
|
|
42
|
+
*/
|
|
43
|
+
direction?: 'auto' | 'up' | 'down';
|
|
44
|
+
/**
|
|
45
|
+
* 是否执行动画
|
|
46
|
+
*
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
isAnimation?: boolean;
|
|
50
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DrawerProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
trigger?(_: {}): any;
|
|
6
|
+
trigger?(_: {}): any;
|
|
7
|
+
header?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
triggerRef: HTMLDivElement;
|
|
12
|
+
mainRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (...args: any[]) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
modelValue: boolean;
|
|
23
|
+
direction: "top" | "bottom" | "left" | "right";
|
|
24
|
+
showMask: boolean;
|
|
25
|
+
maskClosable: boolean;
|
|
26
|
+
hoverable: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
triggerRef: HTMLDivElement;
|
|
29
|
+
mainRef: HTMLDivElement;
|
|
30
|
+
}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface DrawerProps {
|
|
2
|
+
/**
|
|
3
|
+
* 是否显示抽屉
|
|
4
|
+
*/
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* 抽屉的方向
|
|
8
|
+
*
|
|
9
|
+
* @default 'right'
|
|
10
|
+
*/
|
|
11
|
+
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
12
|
+
/**
|
|
13
|
+
* 是否显示遮罩
|
|
14
|
+
*
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
showMask?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否点击遮罩关闭抽屉
|
|
20
|
+
*
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
maskClosable?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 是否悬停显示抽屉
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
hoverable?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否将触发器放在顶部
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
triggerOnTop?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 自定义宽度,仅在左右方向时生效
|
|
38
|
+
*
|
|
39
|
+
* @default '50vw'
|
|
40
|
+
*/
|
|
41
|
+
width?: string;
|
|
42
|
+
class?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDrawerZIndex: () => number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
content?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GradualHighlightProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<GradualHighlightProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GradualHighlightProps> & Readonly<{}>, {
|
|
3
|
+
originColor: string;
|
|
4
|
+
highlightColor: string;
|
|
5
|
+
startRatio: number;
|
|
6
|
+
endRatio: number;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
container: HTMLDivElement;
|
|
9
|
+
}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface GradualHighlightProps {
|
|
2
|
+
text: string;
|
|
3
|
+
originColor?: string;
|
|
4
|
+
highlightColor?: string;
|
|
5
|
+
/**
|
|
6
|
+
* 开始高亮的位置占比
|
|
7
|
+
*
|
|
8
|
+
* 默认值为 0.9,表示从可视区域的 90% 位置开始高亮
|
|
9
|
+
*/
|
|
10
|
+
startRatio?: number;
|
|
11
|
+
/**
|
|
12
|
+
* 结束高亮的位置占比
|
|
13
|
+
*
|
|
14
|
+
* 默认值为 0.5,表示在可视区域的 50% 位置结束高亮
|
|
15
|
+
*/
|
|
16
|
+
endRatio?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HorizontalViewerProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<HorizontalViewerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HorizontalViewerProps> & Readonly<{}>, {
|
|
3
|
+
showIndicator: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HorizontalViewerProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<HorizontalViewerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HorizontalViewerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
rootRef: HTMLDivElement;
|
|
4
|
+
}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HorizontalViewerData } from './type';
|
|
2
|
+
interface Props {
|
|
3
|
+
title?: string;
|
|
4
|
+
desc?: string;
|
|
5
|
+
dataList: HorizontalViewerData[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
rootRef: HTMLDivElement;
|
|
9
|
+
containerRef: HTMLDivElement;
|
|
10
|
+
headerRef: HTMLDivElement;
|
|
11
|
+
scrollerRef: HTMLDivElement;
|
|
12
|
+
paginationRef: HTMLDivElement;
|
|
13
|
+
scrollbarDragRef: HTMLDivElement;
|
|
14
|
+
}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SwiperNormalProps } from '../swiper-normal';
|
|
2
|
+
export interface HorizontalViewerData {
|
|
3
|
+
title: string;
|
|
4
|
+
desc?: string;
|
|
5
|
+
type: 'img' | 'video';
|
|
6
|
+
poster?: string;
|
|
7
|
+
playable?: boolean;
|
|
8
|
+
url: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface HorizontalViewerProps extends SwiperNormalProps {
|
|
12
|
+
title?: string;
|
|
13
|
+
desc?: string;
|
|
14
|
+
isMobile?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageIndicatorProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ImageIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (...args: any[]) => void;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<ImageIndicatorProps> & Readonly<{
|
|
5
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
showIntro: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
introItemRef: HTMLDivElement[];
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ImageIndicatorData {
|
|
2
|
+
url: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
desc?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ImageIndicatorProps {
|
|
8
|
+
/**
|
|
9
|
+
* 数据列表
|
|
10
|
+
*/
|
|
11
|
+
dataList: ImageIndicatorData[];
|
|
12
|
+
/**
|
|
13
|
+
* 是否显示介绍
|
|
14
|
+
*
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
showIntro?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export * from './Input';
|
|
3
|
+
export * from './accordion-info-panel';
|
|
4
|
+
export * from './animated-number';
|
|
5
|
+
export * from './drawer';
|
|
6
|
+
export * from './dropdown';
|
|
7
|
+
export * from './gradual-highlight';
|
|
8
|
+
export * from './horizontal-viewer';
|
|
9
|
+
export * from './image-indicator';
|
|
10
|
+
export * from './layz-image';
|
|
11
|
+
export * from './parameter-box';
|
|
12
|
+
export * from './radio';
|
|
13
|
+
export * from './swiper-normal';
|
|
14
|
+
export * from './swiper-vehicle';
|
|
15
|
+
export * from './tab-indicator';
|
|
16
|
+
export * from './video';
|
|
17
|
+
declare const _default: {
|
|
18
|
+
install: (app: App) => App<any>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export * from './resolver';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LayzImageProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<LayzImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LayzImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLPictureElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
export interface LayzImageProps {
|
|
3
|
+
/**
|
|
4
|
+
* 默认图片 (也会作为回退方案)
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* 超大屏幕 (1920px以上)
|
|
9
|
+
*/
|
|
10
|
+
lSrcset?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 中等屏幕 (768px到1920px)
|
|
13
|
+
*/
|
|
14
|
+
mSrcset?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 小屏幕 (768px以下)
|
|
17
|
+
*/
|
|
18
|
+
sSrcset?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 图片替代文本
|
|
21
|
+
*/
|
|
22
|
+
alt?: string;
|
|
23
|
+
/**
|
|
24
|
+
* img标签的自定义类名
|
|
25
|
+
*/
|
|
26
|
+
class?: string;
|
|
27
|
+
/**
|
|
28
|
+
* picture标签的自定义类名
|
|
29
|
+
*/
|
|
30
|
+
imgClass?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 自定义行内样式
|
|
33
|
+
*/
|
|
34
|
+
style?: string | CSSProperties;
|
|
35
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ParameterBoxProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ParameterBoxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ParameterBoxProps> & Readonly<{}>, {
|
|
3
|
+
isAnimation: boolean;
|
|
4
|
+
colorMode: "dark" | "light";
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface ParameterBoxProps {
|
|
2
|
+
dataList: {
|
|
3
|
+
/**
|
|
4
|
+
* 单位
|
|
5
|
+
*/
|
|
6
|
+
unit: string;
|
|
7
|
+
/**
|
|
8
|
+
* 参数名称
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* 参数值
|
|
13
|
+
*/
|
|
14
|
+
value: number | string;
|
|
15
|
+
}[];
|
|
16
|
+
/**
|
|
17
|
+
* 是否动画数据
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
isAnimation?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 是否显示分割线
|
|
24
|
+
*
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
showDivider?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 名称是否在上面
|
|
30
|
+
*
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
nameOnTop?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 颜色模式
|
|
36
|
+
*
|
|
37
|
+
* @default light
|
|
38
|
+
*/
|
|
39
|
+
colorMode?: 'dark' | 'light';
|
|
40
|
+
/**
|
|
41
|
+
* 是否单行(移动端)
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
inline?: boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RadioProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<RadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (...args: any[]) => void;
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<RadioProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentResolver } from 'unplugin-vue-components';
|
|
2
|
+
interface ResolverOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 组件前缀,默认是 "Sc"
|
|
5
|
+
*/
|
|
6
|
+
prefix?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 是否导入样式。可以是布尔、'css'、'scss',也可以是函数自定义判断
|
|
9
|
+
*/
|
|
10
|
+
importStyle?: boolean | 'css' | 'scss' | ((pathName: string) => boolean | 'css' | 'scss');
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ComponentsResolver: 用于按需加载组件及样式
|
|
14
|
+
*
|
|
15
|
+
* @param options {ResolverOptions} 配置项
|
|
16
|
+
*/
|
|
17
|
+
export declare const ComponentsResolver: (options?: ResolverOptions) => ComponentResolver;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SwiperNormalProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SwiperNormalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (...args: any[]) => void;
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<SwiperNormalProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
modelValue: number;
|
|
10
|
+
swiperOptions: import('swiper/types').SwiperOptions;
|
|
11
|
+
showIntro: boolean;
|
|
12
|
+
widthType: "middle" | "full";
|
|
13
|
+
indicatorType: "tab" | "image";
|
|
14
|
+
showIndicator: boolean;
|
|
15
|
+
indicatorPosition: "relative" | "absolute";
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
swiperRef: HTMLDivElement;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|