fix: 视频优化
This commit is contained in:
		
							parent
							
								
									690f28381f
								
							
						
					
					
						commit
						796c4c4171
					
				| @ -1,7 +1,7 @@ | |||||||
| import { VideoConfig } from '../../model'; | import { VideoConfig } from '../../model'; | ||||||
| import CheckboxComponent from './CheckBox'; | import CheckboxComponent from './CheckBox'; | ||||||
| import LabelComponent from './Label'; | import LabelComponent from './Label'; | ||||||
| import routeSettingComponent from './RouteSetting'; | import RouteSettingComponent from './RouteSetting'; | ||||||
| import TextInputComponent from './TextInput'; | import TextInputComponent from './TextInput'; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -131,13 +131,13 @@ export default struct VideoConfigComponent { | |||||||
|           }.width("75%") |           }.width("75%") | ||||||
| 
 | 
 | ||||||
|           Column() { |           Column() { | ||||||
|             routeSettingComponent({ |             RouteSettingComponent({ | ||||||
|               videoConfig: this.videoConfig, |               videoConfig: this.videoConfig, | ||||||
|               change: (value: VideoConfig) => { |               change: (value: VideoConfig) => { | ||||||
|                 this.videoConfig = value; |                 this.videoConfig = value; | ||||||
|               }, |               }, | ||||||
|             }) |             }) | ||||||
|             routeSettingComponent({ |             RouteSettingComponent({ | ||||||
|               title: "视频遮挡", |               title: "视频遮挡", | ||||||
|               videoConfig: this.videoConfig, |               videoConfig: this.videoConfig, | ||||||
|               change: (value: VideoConfig) => { |               change: (value: VideoConfig) => { | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ import LabelComponent from './Label' | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @Component | @Component | ||||||
| export default struct routeSettingComponent { | export default struct RouteSettingComponent { | ||||||
|   @State title: string = "录像范围" |   @State title: string = "录像范围" | ||||||
|   @Prop videoConfig: VideoConfig |   @Prop videoConfig: VideoConfig | ||||||
|   change?: (value: VideoConfig) => void |   change?: (value: VideoConfig) => void | ||||||
|  | |||||||
| @ -16,6 +16,8 @@ export default struct HeaderComponent { | |||||||
|   @State shortLogo: boolean = true |   @State shortLogo: boolean = true | ||||||
|   @State time: string = "" |   @State time: string = "" | ||||||
|   @State timer: number = 0 |   @State timer: number = 0 | ||||||
|  |   @State shouBackArea: boolean = false | ||||||
|  |   @State customizeReturnArea: boolean = false | ||||||
|   // 自定义返回区域 |   // 自定义返回区域 | ||||||
|   @BuilderParam |   @BuilderParam | ||||||
|   backAreaBuilder?: () => void = this.customBuilder |   backAreaBuilder?: () => void = this.customBuilder | ||||||
| @ -66,16 +68,14 @@ export default struct HeaderComponent { | |||||||
|           left: 10 |           left: 10 | ||||||
|         }) |         }) | ||||||
|       } |       } | ||||||
|       if (this.shortLogo) { |       if (this.customizeReturnArea && this.backAreaBuilder) { | ||||||
|         if (this.backAreaBuilder) { |  | ||||||
|         this.backAreaBuilder() |         this.backAreaBuilder() | ||||||
|       } else { |       } else { | ||||||
|  |         if (this.shouBackArea) { | ||||||
|           Image($r('app.media.topB_back')).height(100).onClick(() => { |           Image($r('app.media.topB_back')).height(100).onClick(() => { | ||||||
|             router.back() |             router.back() | ||||||
|           }) |           }) | ||||||
|         } |  | ||||||
|         } else { |         } else { | ||||||
| 
 |  | ||||||
|           Row() { |           Row() { | ||||||
|             Image($r('app.media.btn_setting')).height(100).onClick(() => { |             Image($r('app.media.btn_setting')).height(100).onClick(() => { | ||||||
|               console.log("点击设置") |               console.log("点击设置") | ||||||
| @ -104,6 +104,8 @@ export default struct HeaderComponent { | |||||||
|             }) |             }) | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|     }.width("100%") |     }.width("100%") | ||||||
|     .height(100) |     .height(100) | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user