perf(picker): shorten template code (#3973)

This commit is contained in:
rex 2021-01-19 11:09:40 +08:00 committed by GitHub
parent 600e189aa0
commit 5e1c65e52a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,4 @@
<template name="toolbar">
<view
wx:if="{{ showToolbar }}"
class="van-picker__toolbar toolbar-class"
>
<view wx:if="{{ showToolbar }}" class="van-picker__toolbar toolbar-class">
<view
class="van-picker__cancel"
hover-class="van-picker__cancel--hover"
@ -25,4 +21,3 @@
{{ confirmButtonText }}
</view>
</view>
</template>