mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
修复无reset下 search 展示 (#210)
This commit is contained in:
@@ -79,7 +79,7 @@ Tips: 在 `van-search` 外层增加 form 标签,并且 action 不为空,即
|
||||
:show-action="true"
|
||||
@search="goSlotSearch">
|
||||
<template slot="action">
|
||||
<p class="demo-search-action" @click="goSlotSearch">搜索</p>
|
||||
<div class="demo-search-action" @click="goSlotSearch">搜索</div>
|
||||
</template>
|
||||
</van-search>
|
||||
```
|
||||
|
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
<div class="van-search__action" v-if="showAction">
|
||||
<slot name="action">
|
||||
<p class="van-search__action-text" @click="handleBack">取消</p>
|
||||
<div class="van-search__action-text" @click="handleBack">取消</div>
|
||||
</slot>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user