“2cfb2928dbe1b3c6848e9c4a8d187c3e1e4245ca”上不存在“python/paddle/git@gitcode.net:s920243400/PaddleDetection.git”
提交 69cd7af9 编写于 作者: E ester.zhou
上级 85865b48
...@@ -108,6 +108,11 @@ struct CustomDialogUser { ...@@ -108,6 +108,11 @@ struct CustomDialogUser {
customStyle: false customStyle: false
}) })
aboutToDisappear() {
delete this.dialogController,
this.dialogController = undefined
}
onCancel() { onCancel() {
console.info('Callback when the first button is clicked') console.info('Callback when the first button is clicked')
} }
...@@ -124,7 +129,9 @@ struct CustomDialogUser { ...@@ -124,7 +129,9 @@ struct CustomDialogUser {
Column() { Column() {
Button(this.inputValue) Button(this.inputValue)
.onClick(() => { .onClick(() => {
if (this.dialogController != undefined) {
this.dialogController.open() this.dialogController.open()
}
}).backgroundColor(0x317aff) }).backgroundColor(0x317aff)
}.width('100%').margin({ top: 5 }) }.width('100%').margin({ top: 5 })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册