Browse Source

image 在设置 disable 无法点击

master
lqq 6 years ago
parent
commit
d230688eed
  1. 2
      components/image-button/index.wxml

2
components/image-button/index.wxml

@ -1,5 +1,5 @@
<!--components/image-botton/index.wxml-->
<view class="image-button" bindtap="onTap">
<view class="image-button" bindtap="{{disable ? '' : 'onTap'}}">
<image class="image-btn-bg" src="{{disable ? 'images/btn_bg_disable.png':'images/btn_bg.png'}}"></image>
{{title}}
</view>

Loading…
Cancel
Save