File tree Expand file tree Collapse file tree 6 files changed +11
-8
lines changed
image-viewer/__test__/__virtualHostSnapshot__ Expand file tree Collapse file tree 6 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -104,4 +104,6 @@ bindchooseavatar | Eventhandle | - | 获取用户头像回调,open-type=choose
104104
105105名称 | 参数 | 描述
106106-- | -- | --
107- tap | ` event ` | 点击按钮,当按钮不为加载或禁用状态时触发
107+ tap | ` event ` | (即将废弃,建议使用 ` click ` )点击按钮,当按钮不为加载或禁用状态时触发
108+ click | ` event ` | 点击按钮,当按钮不为加载或禁用状态时触发
109+
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ export default class Button extends SuperComponent {
9494 handleTap ( e ) {
9595 if ( this . data . disabled || this . data . loading ) return ;
9696
97+ this . triggerEvent ( 'click' , e ) ;
9798 this . triggerEvent ( 'tap' , e ) ;
9899 } ,
99100 } ;
Original file line number Diff line number Diff line change 1818 send-message-img="{{sendMessageImg}}"
1919 app-parameter="{{appParameter}}"
2020 show-message-card="{{showMessageCard}}"
21- catch :tap="handleTap"
21+ bind :tap="handleTap"
2222 bind:getuserinfo="getuserinfo"
2323 bind:contact="contact"
2424 bind:getphonenumber="getphonenumber"
Original file line number Diff line number Diff line change @@ -771,7 +771,7 @@ exports[`calendar :base 1`] = `
771771 bind:getuserinfo="getuserinfo"
772772 bind:launchapp="launchapp"
773773 bind:opensetting="opensetting"
774- catch :tap="handleTap"
774+ bind :tap="handleTap"
775775 >
776776 <wx-view
777777 class = " t-button__content"
Original file line number Diff line number Diff line change @@ -771,7 +771,7 @@ exports[`calendar :base 1`] = `
771771 bind:getuserinfo="getuserinfo"
772772 bind:launchapp="launchapp"
773773 bind:opensetting="opensetting"
774- catch :tap="handleTap"
774+ bind :tap="handleTap"
775775 >
776776 <wx-view
777777 class = " t-button__content"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ exports[`ImageViewer ImageViewer base demo works fine 1`] = `
77 size = " large"
88 theme = " primary"
99 variant = " outline"
10- bind:tap="clickHandle "
10+ bind:tap="onClick "
1111 >
1212 基础图片预览
1313 </t-button >
@@ -34,12 +34,12 @@ exports[`ImageViewer ImageViewer delete demo works fine 1`] = `
3434 size = " large"
3535 theme = " primary"
3636 variant = " outline"
37- bind:tap="clickHandle "
37+ bind:tap="onClick "
3838 >
3939 带操作图片预览
4040 </t-button >
41- <t-toast
42- id = " t-toast "
41+ <t-action-sheet
42+ id = " t-action-sheet "
4343 />
4444 <t-image-viewer
4545 closeBtn = " {{false}}"
You can’t perform that action at this time.
0 commit comments