2024-01-05 11:11:15 +08:00
|
|
|
|
|
|
|
|
@Component
|
2024-07-02 10:02:22 +08:00
|
|
|
export default struct EndPopup {
|
2024-01-05 11:11:15 +08:00
|
|
|
constructor() {
|
|
|
|
|
super()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private title:string = ''
|
|
|
|
|
private cancelFn:(event?: ClickEvent) => void
|
|
|
|
|
private confirmFn:(event?: ClickEvent) => void
|
|
|
|
|
|
|
|
|
|
build(){
|
|
|
|
|
Column(){
|
|
|
|
|
Column(){
|
2024-12-05 18:31:06 +08:00
|
|
|
Text(this.title).fontSize(34).margin({bottom:20})
|
2024-05-15 16:22:48 +08:00
|
|
|
Row(){}.height(100)
|
2024-01-05 11:11:15 +08:00
|
|
|
Row(){
|
2024-12-05 18:31:06 +08:00
|
|
|
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)
|
2024-01-05 11:11:15 +08:00
|
|
|
}
|
2024-11-26 15:35:05 +08:00
|
|
|
}.width('50%').height('50%').backgroundColor('#E6E3DF').borderRadius(38).position({y:'25%',x:'25%'}).justifyContent(FlexAlign.Center)
|
2024-01-05 11:11:15 +08:00
|
|
|
|
|
|
|
|
}.width('100%').height('100%').position({y:0}).backgroundColor('rgba(0,0,0,0.7)')
|
|
|
|
|
}
|
2024-07-02 10:02:22 +08:00
|
|
|
}
|