Skip to content

Commit 2d8f3cd

Browse files
committed
refactor(Tag): 修改 bind:tap 为 mut-bind:tap
1 parent 46af60f commit 2d8f3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tag/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<view style="display:flex">
22
<view class="l-tag {{type==='touch'?'l-tag-touch':''}} {{plain?'l-tag-plain-'+ size:'l-tag-'+size}} {{disable?'l-tag-disable':''}} {{select?'select l-select-class':'l-class'}} {{plain?'l-tag-plain':''}} {{'l-tag-'+size+'-'+ shape}}" style="{{height?'line-height:'+height+'rpx;height:'+height+'rpx;':''}}{{plain?'color:'+fontColor+';border-color:'+fontColor:'background-color:'+bgColor+';color:'+fontColor}}"
3-
bindtap="handleTap">
3+
mut-bind:tap="handleTap">
44
<view class="{{location==='left'?'content':'content-l'}}" style="{{iconName?'line-height:0':''}}">
55
<l-icon wx:if="{{icon}}" style="{{location==='left'?'margin-right:5rpx':'margin-left:5rpx'}}" name="{{icon}}" size="{{iconSize}}" color="{{iconColor}}" />
66
<image style="{{location==='left'?'margin-right:5rpx':'margin-left:5rpx'}}" wx:if="{{image}}" src="{{image}}" class="{{'tag-image-'+size}} l-image-class"></image>

0 commit comments

Comments
 (0)