From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/VideoPlayer/config.ts | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/VideoPlayer/config.ts b/src/components/DiyEditor/components/mobile/VideoPlayer/config.ts
new file mode 100644
index 0000000..02f0374
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/VideoPlayer/config.ts
@@ -0,0 +1,37 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 瑙嗛鎾斁灞炴�� */
+export interface VideoPlayerProperty {
+ // 瑙嗛閾炬帴
+ videoUrl: string
+ // 灏侀潰閾炬帴
+ posterUrl: string
+ // 鏄惁鑷姩鎾斁
+ autoplay: boolean
+ // 缁勪欢鏍峰紡
+ style: VideoPlayerStyle
+}
+
+// 瑙嗛鎾斁鏍峰紡
+export interface VideoPlayerStyle extends ComponentStyle {
+ // 瑙嗛楂樺害
+ height: number
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'VideoPlayer',
+ name: '瑙嗛鎾斁',
+ icon: 'ep:video-play',
+ property: {
+ videoUrl: '',
+ posterUrl: '',
+ autoplay: false,
+ style: {
+ bgType: 'color',
+ bgColor: '#fff',
+ marginBottom: 8,
+ height: 300
+ } as VideoPlayerStyle
+ }
+} as DiyComponent<VideoPlayerProperty>
--
Gitblit v1.8.0