25 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| @Component
 | |
| export default struct  EndPopup {
 | |
|   constructor() {
 | |
|     super()
 | |
|   }
 | |
| 
 | |
|   private title:string = ''
 | |
|   private cancelFn:(event?: ClickEvent) => void
 | |
|   private confirmFn:(event?: ClickEvent) => void
 | |
| 
 | |
|   build(){
 | |
|     Column(){
 | |
|       Column(){
 | |
|         Text(this.title).fontSize(34).margin({bottom:20})
 | |
|         Row(){}.height(100)
 | |
|         Row(){
 | |
|           Text('取消').backgroundImage($rawfile('judge/end-btn.png'),ImageRepeat.NoRepeat).backgroundImageSize({width:'100%',height:'100%'}).width(240).height(90).fontSize(30).fontColor('#FFF').textAlign(TextAlign.Center).onClick(this.cancelFn)
 | |
|           Text('确定').backgroundImage($rawfile('judge/end-btn.png'),ImageRepeat.NoRepeat).backgroundImageSize({width:'100%',height:'100%'}).width(240).height(90).fontSize(30).fontColor('#FFF').textAlign(TextAlign.Center).margin({left:45}).onClick(this.confirmFn)
 | |
|         }
 | |
|       }.width('50%').height('50%').backgroundColor('#E6E3DF').borderRadius(38).position({y:'25%',x:'25%'}).justifyContent(FlexAlign.Center)
 | |
| 
 | |
|     }.width('100%').height('100%').position({y:0}).backgroundColor('rgba(0,0,0,0.7)')
 | |
|   }
 | |
| } |