@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.
Files changed (125) hide show
  1. package/README.md +144 -0
  2. package/dist/_vars-BV4QQF-p.js +4 -0
  3. package/dist/_vars-CyrPevgT.cjs +1 -0
  4. package/dist/cjs/Input.cjs +1 -0
  5. package/dist/cjs/accordion-info-panel.cjs +1 -0
  6. package/dist/cjs/animated-number.cjs +1 -0
  7. package/dist/cjs/drawer.cjs +1 -0
  8. package/dist/cjs/dropdown.cjs +1 -0
  9. package/dist/cjs/gradual-highlight.cjs +1 -0
  10. package/dist/cjs/horizontal-viewer.cjs +1 -0
  11. package/dist/cjs/image-indicator.cjs +1 -0
  12. package/dist/cjs/index.cjs +1 -0
  13. package/dist/cjs/layz-image.cjs +1 -0
  14. package/dist/cjs/parameter-box.cjs +1 -0
  15. package/dist/cjs/radio.cjs +1 -0
  16. package/dist/cjs/swiper-normal.cjs +1 -0
  17. package/dist/cjs/swiper-vehicle.cjs +1 -0
  18. package/dist/cjs/tab-indicator.cjs +1 -0
  19. package/dist/cjs/video.cjs +1 -0
  20. package/dist/css/accordion-info-panel.css +1 -0
  21. package/dist/css/drawer.css +1 -0
  22. package/dist/css/dropdown.css +1 -0
  23. package/dist/css/gradual-highlight.css +1 -0
  24. package/dist/css/horizontal-viewer.css +1 -0
  25. package/dist/css/image-indicator.css +1 -0
  26. package/dist/css/input.css +1 -0
  27. package/dist/css/layz-image.css +1 -0
  28. package/dist/css/parameter-box.css +1 -0
  29. package/dist/css/radio.css +1 -0
  30. package/dist/css/swiper-normal.css +1 -0
  31. package/dist/css/swiper-vehicle.css +1 -0
  32. package/dist/css/tab-indicator.css +1 -0
  33. package/dist/css/video.css +1 -0
  34. package/dist/es/Input.mjs +70 -0
  35. package/dist/es/accordion-info-panel.mjs +145 -0
  36. package/dist/es/animated-number.mjs +72 -0
  37. package/dist/es/drawer.mjs +174 -0
  38. package/dist/es/dropdown.mjs +62 -0
  39. package/dist/es/gradual-highlight.mjs +90 -0
  40. package/dist/es/horizontal-viewer.mjs +4 -0
  41. package/dist/es/image-indicator.mjs +4 -0
  42. package/dist/es/index.mjs +60 -0
  43. package/dist/es/layz-image.mjs +51 -0
  44. package/dist/es/parameter-box.mjs +115 -0
  45. package/dist/es/radio.mjs +56 -0
  46. package/dist/es/swiper-normal.mjs +4 -0
  47. package/dist/es/swiper-vehicle.mjs +4 -0
  48. package/dist/es/tab-indicator.mjs +184 -0
  49. package/dist/es/video.mjs +246 -0
  50. package/dist/global.d.ts +22 -0
  51. package/dist/index-BgNMAlW8.js +536 -0
  52. package/dist/index-BrggpRcU.js +5287 -0
  53. package/dist/index-DrnEpWXW.cjs +5 -0
  54. package/dist/index-LswhGmG3.cjs +1 -0
  55. package/dist/index.css +1 -0
  56. package/dist/scss/_animate.scss +132 -0
  57. package/dist/scss/_vars.scss +1 -0
  58. package/dist/scss/accordion-info-panel.scss +104 -0
  59. package/dist/scss/drawer.scss +64 -0
  60. package/dist/scss/dropdown.scss +21 -0
  61. package/dist/scss/gradual-highlight.scss +26 -0
  62. package/dist/scss/horizontal-viewer.scss +161 -0
  63. package/dist/scss/image-indicator.scss +79 -0
  64. package/dist/scss/index.scss +17 -0
  65. package/dist/scss/input.scss +46 -0
  66. package/dist/scss/layz-image.scss +11 -0
  67. package/dist/scss/parameter-box.scss +94 -0
  68. package/dist/scss/radio.scss +70 -0
  69. package/dist/scss/swiper-normal.scss +117 -0
  70. package/dist/scss/swiper-vehicle.scss +123 -0
  71. package/dist/scss/tab-indicator.scss +148 -0
  72. package/dist/scss/video.scss +169 -0
  73. package/dist/types/components/Input/Input.vue.d.ts +26 -0
  74. package/dist/types/components/Input/index.d.ts +6 -0
  75. package/dist/types/components/Input/type.d.ts +9 -0
  76. package/dist/types/components/_utils.d.ts +1 -0
  77. package/dist/types/components/_vars.d.ts +1 -0
  78. package/dist/types/components/accordion-info-panel/accordion-info-panel.vue.d.ts +5 -0
  79. package/dist/types/components/accordion-info-panel/index.d.ts +6 -0
  80. package/dist/types/components/accordion-info-panel/type.d.ts +26 -0
  81. package/dist/types/components/animated-number/animated-number.vue.d.ts +12 -0
  82. package/dist/types/components/animated-number/index.d.ts +6 -0
  83. package/dist/types/components/animated-number/type.d.ts +50 -0
  84. package/dist/types/components/drawer/drawer.vue.d.ts +37 -0
  85. package/dist/types/components/drawer/index.d.ts +6 -0
  86. package/dist/types/components/drawer/type.d.ts +43 -0
  87. package/dist/types/components/drawer/u.d.ts +1 -0
  88. package/dist/types/components/dropdown/dropdown.vue.d.ts +18 -0
  89. package/dist/types/components/dropdown/index.d.ts +5 -0
  90. package/dist/types/components/gradual-highlight/gradual-highlight.vue.d.ts +10 -0
  91. package/dist/types/components/gradual-highlight/index.d.ts +6 -0
  92. package/dist/types/components/gradual-highlight/type.d.ts +17 -0
  93. package/dist/types/components/horizontal-viewer/horizontal-viewer.vue.d.ts +5 -0
  94. package/dist/types/components/horizontal-viewer/index.d.ts +6 -0
  95. package/dist/types/components/horizontal-viewer/mb-viewer.vue.d.ts +5 -0
  96. package/dist/types/components/horizontal-viewer/pc-viewer.vue.d.ts +15 -0
  97. package/dist/types/components/horizontal-viewer/type.d.ts +15 -0
  98. package/dist/types/components/image-indicator/image-indicator.vue.d.ts +11 -0
  99. package/dist/types/components/image-indicator/index.d.ts +6 -0
  100. package/dist/types/components/image-indicator/type.d.ts +18 -0
  101. package/dist/types/components/index.d.ts +21 -0
  102. package/dist/types/components/layz-image/index.d.ts +6 -0
  103. package/dist/types/components/layz-image/layz-image.vue.d.ts +3 -0
  104. package/dist/types/components/layz-image/type.d.ts +35 -0
  105. package/dist/types/components/parameter-box/index.d.ts +6 -0
  106. package/dist/types/components/parameter-box/parameter-box.vue.d.ts +6 -0
  107. package/dist/types/components/parameter-box/type.d.ts +46 -0
  108. package/dist/types/components/radio/index.d.ts +6 -0
  109. package/dist/types/components/radio/radio.vue.d.ts +9 -0
  110. package/dist/types/components/radio/type.d.ts +8 -0
  111. package/dist/types/components/resolver.d.ts +18 -0
  112. package/dist/types/components/swiper-normal/index.d.ts +6 -0
  113. package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +19 -0
  114. package/dist/types/components/swiper-normal/type.d.ts +79 -0
  115. package/dist/types/components/swiper-vehicle/index.d.ts +6 -0
  116. package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +15 -0
  117. package/dist/types/components/swiper-vehicle/type.d.ts +54 -0
  118. package/dist/types/components/tab-indicator/index.d.ts +6 -0
  119. package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +15 -0
  120. package/dist/types/components/tab-indicator/type.d.ts +28 -0
  121. package/dist/types/components/video/index.d.ts +6 -0
  122. package/dist/types/components/video/type.d.ts +38 -0
  123. package/dist/types/components/video/video-wrapper.vue.d.ts +33 -0
  124. package/dist/types/components/video/video.vue.d.ts +183 -0
  125. 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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './Input.vue';
3
+ export * from './type';
4
+ export declare const ScInput: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,9 @@
1
+ export interface InputProps {
2
+ modelValue: string | number;
3
+ id?: string;
4
+ name?: string;
5
+ placeholder?: string;
6
+ maxlength?: number;
7
+ type?: 'text' | 'email' | 'tel';
8
+ autocomplete?: 'on' | 'off';
9
+ }
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './accordion-info-panel.vue';
3
+ export * from './type';
4
+ export declare const ScAccordionInfoPanel: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './animated-number.vue';
3
+ export * from './type';
4
+ export declare const ScAnimatedNumber: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './drawer.vue';
3
+ export * from './type';
4
+ export declare const ScDrawer: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,5 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './dropdown.vue';
3
+ export declare const ScDropdown: typeof Component & {
4
+ install: (app: App) => App;
5
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './gradual-highlight.vue';
3
+ export * from './type';
4
+ export declare const ScGradualHighlight: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './horizontal-viewer.vue';
3
+ export * from './type';
4
+ export declare const ScHorizontalViewer: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './image-indicator.vue';
3
+ export * from './type';
4
+ export declare const ScImageIndicator: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './layz-image.vue';
3
+ export * from './type';
4
+ export declare const ScLayzImage: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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 { App } from 'vue';
2
+ import { default as Component } from './parameter-box.vue';
3
+ export * from './type';
4
+ export declare const ScParameterBox: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './radio.vue';
3
+ export * from './type';
4
+ export declare const ScRadio: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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,8 @@
1
+ export interface RadioProps {
2
+ modelValue: string | number | boolean;
3
+ value: string | number | boolean;
4
+ label?: string;
5
+ disabled?: boolean;
6
+ id?: string;
7
+ name?: string;
8
+ }
@@ -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,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './swiper-normal.vue';
3
+ export * from './type';
4
+ export declare const ScSwiperNormal: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -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;