Pageページでカスタムコンポーネントインスタンスを取得する
1667 ワード
:
vant-weapp Dialog , 'confirm' , , ' '。
( ...),Dialog 2 :
1>
2>
'confirm' loading , 'Dialog.stopLoading() - 。
' '
issues :
https://github.com/youzan/vant-weapp/issues?utf8=%E2%9C%93&q=dialog+%E7%BB%84%E4%BB%B6stopLoading
:
this.selectComponent('#id') Dialog , stopLoading()
:
this.selectComponent('#id').stopLoading()
:
this.selectComponent('#id'), :
this.selectComponent is not a function
, selectComponent:
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Component.html
, :
selectComponent - , ( wx://component-export )
selectAllComponents - ,
page( ) , , 、 , :
https://developers.weixin.qq.com/community/develop/doc/000e02ed5307c0cdfcc8501975b400?jumpto=qcomment&commentid=00064c6b7f8520bef4c89c8025b0
, page( ) this.selectComponent('#id')
wepy , wepy issues :
https://github.com/Tencent/wepy/issues?utf8=%E2%9C%93&q=selectComponent
:
this.$wxpage.selectComponent()
:
:
:
this.selectComponent('#id')
wepy :
this.$wxpage.selectComponent()
mpvue :
self.$mp.page.selectComponent("#submitCaseDialog").stopLoading()
( mpvue ):
https://github.com/Meituan-Dianping/mpvue/issues/605