@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,79 @@
1
+ import { SwiperOptions } from 'swiper/types';
2
+ import { VideoProps } from '../video/type';
3
+ export interface SwiperNormalData {
4
+ title: string;
5
+ desc?: string;
6
+ type: 'img' | 'video';
7
+ poster?: string;
8
+ playable?: boolean;
9
+ url: string;
10
+ alt?: string;
11
+ /**
12
+ * 部分视频亮度太高会导致指示器不清晰,通过图片遮罩来调整亮度
13
+ */
14
+ mask?: boolean;
15
+ }
16
+ export interface SwiperNormalProps {
17
+ modelValue?: number;
18
+ /**
19
+ * 数据列表
20
+ */
21
+ dataList: SwiperNormalData[];
22
+ /**
23
+ * swiper 选项
24
+ */
25
+ swiperOptions?: SwiperOptions;
26
+ /**
27
+ * swiper常用设置:effect
28
+ *
29
+ * 它的优先级不如 swiperOptions
30
+ *
31
+ * @default 'slide'
32
+ */
33
+ effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | 'creative' | 'cards';
34
+ /**
35
+ * 是否显示介绍
36
+ */
37
+ showIntro?: boolean;
38
+ /**
39
+ * 视频属性
40
+ */
41
+ videoProps?: VideoProps;
42
+ /**
43
+ * 自定义指示器类名
44
+ */
45
+ indicatorClass?: string;
46
+ /**
47
+ * 指示器距离底部的距离
48
+ *
49
+ * 不设置时为relative定位
50
+ * 设置后为absolute定位
51
+ *
52
+ * @default undefined
53
+ */
54
+ tabIndicatorBottom?: string | number;
55
+ /**
56
+ * 内容宽度类型,居中(1400px)或全屏
57
+ *
58
+ * @default 'full'
59
+ */
60
+ widthType?: 'middle' | 'full';
61
+ /**
62
+ * 指示器类型
63
+ */
64
+ indicatorType?: 'tab' | 'image';
65
+ /**
66
+ * 是否显示指示器
67
+ *
68
+ * @default true
69
+ */
70
+ showIndicator?: boolean;
71
+ /**
72
+ * 指示器位置
73
+ *
74
+ * 设置为'absolute'时,指示器会相对于swiper的父元素定位,距离底部80px
75
+ *
76
+ * @default 'relative'
77
+ */
78
+ indicatorPosition?: 'relative' | 'absolute';
79
+ }
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './swiper-vehicle.vue';
3
+ export * from './type';
4
+ export declare const ScSwiperVehicle: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,15 @@
1
+ import { SwiperVehicleProps } from './type';
2
+ declare const _default: import('vue').DefineComponent<SwiperVehicleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ "update:modelValue": (...args: any[]) => void;
4
+ change: (...args: any[]) => void;
5
+ }, string, import('vue').PublicProps, Readonly<SwiperVehicleProps> & 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
+ effect: "slide" | "fade" | "cube" | "coverflow" | "flip" | "creative" | "cards";
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
13
+ swiperRef: HTMLDivElement;
14
+ }, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { SwiperOptions } from 'swiper/types';
2
+ export interface SwiperVehicleData {
3
+ url: string;
4
+ color: string;
5
+ text: string;
6
+ alt?: string;
7
+ }
8
+ export interface SwiperVehicleProps {
9
+ modelValue?: number;
10
+ backgroundImgUrl?: string;
11
+ backgroundImgAlt?: string;
12
+ /**
13
+ * 数据列表
14
+ */
15
+ dataList: SwiperVehicleData[];
16
+ /**
17
+ * 背景图的高度在移动端是否撑满
18
+ * 通常用于移动端想要查看局部内容时
19
+ *
20
+ * @default false
21
+ */
22
+ imgFullHeightInMobile?: boolean;
23
+ /**
24
+ * swiper 选项
25
+ */
26
+ swiperOptions?: SwiperOptions;
27
+ /**
28
+ * swiper常用设置:effect
29
+ *
30
+ * 它的优先级不如 swiperOptions
31
+ *
32
+ * @default 'fade'
33
+ */
34
+ effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | 'creative' | 'cards';
35
+ /**
36
+ * 自定义指示器类名
37
+ */
38
+ indicatorClass?: string;
39
+ /**
40
+ * 指示器距离底部的距离
41
+ *
42
+ * 不设置时为relative定位
43
+ * 设置后为absolute定位
44
+ *
45
+ * @default undefined
46
+ */
47
+ tabIndicatorBottom?: string | number;
48
+ /**
49
+ * 是否显示文字背景
50
+ *
51
+ * @default false
52
+ */
53
+ showTextBackground?: boolean;
54
+ }
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './tab-indicator.vue';
3
+ export * from './type';
4
+ export declare const ScTabIndicator: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,15 @@
1
+ import { TabIndicatorProps } from './type';
2
+ declare const _default: import('vue').DefineComponent<TabIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ "update:modelValue": (...args: any[]) => void;
4
+ change: (...args: any[]) => void;
5
+ }, string, import('vue').PublicProps, Readonly<TabIndicatorProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
7
+ onChange?: ((...args: any[]) => any) | undefined;
8
+ }>, {
9
+ modelValue: number;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
+ scrollRef: HTMLDivElement;
12
+ indicatorItemRef: HTMLDivElement[];
13
+ introItemRef: HTMLParagraphElement[];
14
+ }, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,28 @@
1
+ export interface TabIndicatorData {
2
+ title: string;
3
+ desc?: string;
4
+ }
5
+ export interface TabIndicatorProps {
6
+ modelValue?: number;
7
+ /**
8
+ * 数据列表
9
+ */
10
+ dataList: TabIndicatorData[];
11
+ /**
12
+ * 是否显示介绍
13
+ */
14
+ showIntro?: boolean;
15
+ /**
16
+ * 是否是独立的,没有和其他组件一起使用
17
+ * 独立的颜色是金色
18
+ * @default false
19
+ */
20
+ isSeparate?: boolean;
21
+ /**
22
+ * 是否适配文字宽度
23
+ * true时下方的滚动条会只有文字的宽度
24
+ *
25
+ * @default false
26
+ */
27
+ adapt2TextWidth?: boolean;
28
+ }
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './video.vue';
3
+ export * from './type';
4
+ export declare const ScVideo: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,38 @@
1
+ import { CSSProperties } from 'vue';
2
+ export interface VideoProps {
3
+ /**
4
+ * 组件类名
5
+ */
6
+ class?: string;
7
+ /**
8
+ * 组件样式
9
+ */
10
+ style?: string | CSSProperties;
11
+ /**
12
+ * 播放器按钮类名
13
+ */
14
+ playerButtonClass?: string;
15
+ /**
16
+ * 播放器按钮文字
17
+ */
18
+ playerButtonText?: string;
19
+ /**
20
+ * 播放器封面图
21
+ */
22
+ poster?: string;
23
+ /**
24
+ * 视频地址
25
+ */
26
+ url?: string;
27
+ /**
28
+ * 自动播放
29
+ */
30
+ autoPlay?: boolean;
31
+ /**
32
+ * 是否可播放
33
+ */
34
+ playable?: boolean;
35
+ }
36
+ export interface VideoExpose {
37
+ play: () => void;
38
+ }
@@ -0,0 +1,33 @@
1
+ import { VideoProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ close?(_: {}): any;
6
+ };
7
+ refs: {
8
+ videoRef: HTMLVideoElement;
9
+ };
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<VideoProps, {
14
+ play: () => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VideoProps> & Readonly<{}>, {
16
+ style: string | import('vue').CSSProperties;
17
+ class: string;
18
+ url: string;
19
+ playerButtonClass: string;
20
+ playerButtonText: string;
21
+ poster: string;
22
+ autoPlay: boolean;
23
+ playable: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ videoRef: HTMLVideoElement;
26
+ }, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,183 @@
1
+ import { VideoProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ play?(_: {}): any;
6
+ };
7
+ refs: {
8
+ btnRef: HTMLButtonElement;
9
+ vwRef: ({
10
+ $: import('vue').ComponentInternalInstance;
11
+ $data: {};
12
+ $props: {
13
+ readonly class?: string | undefined;
14
+ readonly style?: (string | import('vue').CSSProperties) | undefined;
15
+ readonly playerButtonClass?: string | undefined;
16
+ readonly playerButtonText?: string | undefined;
17
+ readonly poster?: string | undefined;
18
+ readonly url?: string | undefined;
19
+ readonly autoPlay?: boolean | undefined;
20
+ readonly playable?: boolean | undefined;
21
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
22
+ $attrs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $refs: {
26
+ [x: string]: unknown;
27
+ } & {
28
+ videoRef: HTMLVideoElement;
29
+ };
30
+ $slots: Readonly<{
31
+ [name: string]: import('vue').Slot<any> | undefined;
32
+ }>;
33
+ $root: import('vue').ComponentPublicInstance | null;
34
+ $parent: import('vue').ComponentPublicInstance | null;
35
+ $host: Element | null;
36
+ $emit: (event: string, ...args: any[]) => void;
37
+ $el: HTMLDivElement;
38
+ $options: import('vue').ComponentOptionsBase<Readonly<VideoProps> & Readonly<{}>, {
39
+ play: () => void;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
41
+ style: string | import('vue').CSSProperties;
42
+ class: string;
43
+ url: string;
44
+ playerButtonClass: string;
45
+ playerButtonText: string;
46
+ poster: string;
47
+ autoPlay: boolean;
48
+ playable: boolean;
49
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
50
+ beforeCreate?: (() => void) | (() => void)[];
51
+ created?: (() => void) | (() => void)[];
52
+ beforeMount?: (() => void) | (() => void)[];
53
+ mounted?: (() => void) | (() => void)[];
54
+ beforeUpdate?: (() => void) | (() => void)[];
55
+ updated?: (() => void) | (() => void)[];
56
+ activated?: (() => void) | (() => void)[];
57
+ deactivated?: (() => void) | (() => void)[];
58
+ beforeDestroy?: (() => void) | (() => void)[];
59
+ beforeUnmount?: (() => void) | (() => void)[];
60
+ destroyed?: (() => void) | (() => void)[];
61
+ unmounted?: (() => void) | (() => void)[];
62
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
63
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
64
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
65
+ };
66
+ $forceUpdate: () => void;
67
+ $nextTick: typeof import('vue').nextTick;
68
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
69
+ } & Readonly<{
70
+ style: string | import('vue').CSSProperties;
71
+ class: string;
72
+ url: string;
73
+ playerButtonClass: string;
74
+ playerButtonText: string;
75
+ poster: string;
76
+ autoPlay: boolean;
77
+ playable: boolean;
78
+ }> & Omit<Readonly<VideoProps> & Readonly<{}>, "play" | ("style" | "class" | "url" | "playerButtonClass" | "playerButtonText" | "poster" | "autoPlay" | "playable")> & import('vue').ShallowUnwrapRef<{
79
+ play: () => void;
80
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
81
+ $slots: {
82
+ close?(_: {}): any;
83
+ };
84
+ }) | null;
85
+ };
86
+ rootEl: any;
87
+ };
88
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
89
+ declare const __VLS_component: import('vue').DefineComponent<VideoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VideoProps> & Readonly<{}>, {
90
+ style: string | import('vue').CSSProperties;
91
+ class: string;
92
+ url: string;
93
+ playerButtonClass: string;
94
+ playerButtonText: string;
95
+ poster: string;
96
+ autoPlay: boolean;
97
+ playable: boolean;
98
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
99
+ btnRef: HTMLButtonElement;
100
+ vwRef: ({
101
+ $: import('vue').ComponentInternalInstance;
102
+ $data: {};
103
+ $props: {
104
+ readonly class?: string | undefined;
105
+ readonly style?: (string | import('vue').CSSProperties) | undefined;
106
+ readonly playerButtonClass?: string | undefined;
107
+ readonly playerButtonText?: string | undefined;
108
+ readonly poster?: string | undefined;
109
+ readonly url?: string | undefined;
110
+ readonly autoPlay?: boolean | undefined;
111
+ readonly playable?: boolean | undefined;
112
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
113
+ $attrs: {
114
+ [x: string]: unknown;
115
+ };
116
+ $refs: {
117
+ [x: string]: unknown;
118
+ } & {
119
+ videoRef: HTMLVideoElement;
120
+ };
121
+ $slots: Readonly<{
122
+ [name: string]: import('vue').Slot<any> | undefined;
123
+ }>;
124
+ $root: import('vue').ComponentPublicInstance | null;
125
+ $parent: import('vue').ComponentPublicInstance | null;
126
+ $host: Element | null;
127
+ $emit: (event: string, ...args: any[]) => void;
128
+ $el: HTMLDivElement;
129
+ $options: import('vue').ComponentOptionsBase<Readonly<VideoProps> & Readonly<{}>, {
130
+ play: () => void;
131
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
132
+ style: string | import('vue').CSSProperties;
133
+ class: string;
134
+ url: string;
135
+ playerButtonClass: string;
136
+ playerButtonText: string;
137
+ poster: string;
138
+ autoPlay: boolean;
139
+ playable: boolean;
140
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
141
+ beforeCreate?: (() => void) | (() => void)[];
142
+ created?: (() => void) | (() => void)[];
143
+ beforeMount?: (() => void) | (() => void)[];
144
+ mounted?: (() => void) | (() => void)[];
145
+ beforeUpdate?: (() => void) | (() => void)[];
146
+ updated?: (() => void) | (() => void)[];
147
+ activated?: (() => void) | (() => void)[];
148
+ deactivated?: (() => void) | (() => void)[];
149
+ beforeDestroy?: (() => void) | (() => void)[];
150
+ beforeUnmount?: (() => void) | (() => void)[];
151
+ destroyed?: (() => void) | (() => void)[];
152
+ unmounted?: (() => void) | (() => void)[];
153
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
154
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
155
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
156
+ };
157
+ $forceUpdate: () => void;
158
+ $nextTick: typeof import('vue').nextTick;
159
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
160
+ } & Readonly<{
161
+ style: string | import('vue').CSSProperties;
162
+ class: string;
163
+ url: string;
164
+ playerButtonClass: string;
165
+ playerButtonText: string;
166
+ poster: string;
167
+ autoPlay: boolean;
168
+ playable: boolean;
169
+ }> & Omit<Readonly<VideoProps> & Readonly<{}>, "play" | ("style" | "class" | "url" | "playerButtonClass" | "playerButtonText" | "poster" | "autoPlay" | "playable")> & import('vue').ShallowUnwrapRef<{
170
+ play: () => void;
171
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
172
+ $slots: {
173
+ close?(_: {}): any;
174
+ };
175
+ }) | null;
176
+ }, any>;
177
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
178
+ export default _default;
179
+ type __VLS_WithTemplateSlots<T, S> = T & {
180
+ new (): {
181
+ $slots: S;
182
+ };
183
+ };
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@seresweb/website-component",
3
+ "version": "2.0.0",
4
+ "author": "Seres",
5
+ "license": "UNLICENSED",
6
+ "description": "官方网站类的组件",
7
+ "scripts": {
8
+ "dev": "tsx ./scripts/dev",
9
+ "build": "tsx ./scripts/build"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://gitlab.seres.cn/lib/website-component.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://gitlab.seres.cn/lib/website-component/-/issues"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "type": "module",
22
+ "types": "./dist/types/components/index.d.ts",
23
+ "main": "./dist/cjs/index.cjs",
24
+ "module": "./dist/es/index.mjs",
25
+ "devDependencies": {
26
+ "@types/node": "^22.9.1",
27
+ "@types/postcss-pxtorem": "^6.1.0",
28
+ "@vavt/vite-plugin-auto-export-components": "^2.0.0",
29
+ "@vavt/vite-plugin-generate-global-types": "^2.0.0",
30
+ "@vitejs/plugin-vue": "^5.2.3",
31
+ "glob": "^11.0.2",
32
+ "postcss-pxtorem": "^6.1.0",
33
+ "sass": "^1.87.0",
34
+ "tsx": "^4.19.4",
35
+ "typescript": "^5.8.3",
36
+ "unplugin-vue-components": "^28.5.0",
37
+ "vite": "^6.3.3",
38
+ "vite-plugin-dts": "^4.5.3",
39
+ "vue": "^3.5.13"
40
+ },
41
+ "peerDependencies": {
42
+ "vue": ">=3.5.3"
43
+ },
44
+ "dependencies": {
45
+ "@vavt/util": "^2.1.0",
46
+ "swiper": "^11.2.6"
47
+ }
48
+ }