提交 552d58de 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(dialogPage): 调整方法命名

上级 2c589160
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
// 自动化测试 // 自动化测试
setLifeCycleNum(state.lifeCycleNum + 1) setLifeCycleNum(state.lifeCycleNum + 1)
const currentPages = getCurrentPages() const currentPages = getCurrentPages()
const parentPage = this.$getParentPage()! const parentPage = this.getParentPage()!
const grandParentPage = parentPage.$getParentPage() const grandParentPage = parentPage.getParentPage()
const dialogPages = parentPage.$getDialogPages() const dialogPages = parentPage.getDialogPages()
const dialogPage = this.$dialogPage! const dialogPage = this.$dialogPage!
if ( if (
currentPages.length == 1 && currentPages.length == 1 &&
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
console.log('dialogPage1 be triggered fnOnce', options) console.log('dialogPage1 be triggered fnOnce', options)
setLifeCycleNum(state.lifeCycleNum + 1) setLifeCycleNum(state.lifeCycleNum + 1)
} }
dialogPage.on('fn1', fn1) dialogPage.on('fn1', fn1)
dialogPage.on('fn1', fn11) dialogPage.on('fn1', fn11)
dialogPage.on('fn2', fn2) dialogPage.on('fn2', fn2)
dialogPage.once('fnOnce', fnOnce) dialogPage.once('fnOnce', fnOnce)
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
}) })
}, },
closeSpecifiedDialog(index: number) { closeSpecifiedDialog(index: number) {
const dialogPages = this.$getDialogPages() const dialogPages = this.getDialogPages()
uni.closeDialogPage({ uni.closeDialogPage({
dialogPage: dialogPages[index], dialogPage: dialogPages[index],
success(res) { success(res) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册