Skip to content

Commit

Permalink
fix: searchbar 组件slot修改 (jd-opensource#2043)
Browse files Browse the repository at this point in the history
* fix: collapse 组件slot修改

* fix: searchbar 组件slot修改
  • Loading branch information
Ymm0008 authored Jan 11, 2023
1 parent 41a04e5 commit 813d6ad
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/packages/__VUE/searchbar/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<h2>{{ translate('basic7') }}</h2>
<nut-searchbar v-model="searchValue6">
<template v-slot:clearIcon>
<template v-slot:clear-icon>
<img :src="icon" style="width: 20px; height: 20px" />
</template>
</nut-searchbar>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/searchbar/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
```html
<template>
<nut-searchbar v-model="searchValue">
<template v-slot:clearIcon>
<template v-slot:clear-icon>
<img :src="icon" style="width: 10px; height: 10px" />
</template>
</nut-searchbar>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/searchbar/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
```html
<template>
<nut-searchbar v-model="searchValue">
<template v-slot:clearIcon>
<template v-slot:clear-icon>
<img :src="icon" style="width: 10px; height: 10px" />
</template>
</nut-searchbar>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/searchbar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ app.use(Searchbar);
```html
<template>
<nut-searchbar v-model="searchValue">
<template v-slot:clearIcon>
<template v-slot:clear-icon>
<img :src="icon" style="width: 10px; height: 10px" />
</template>
</nut-searchbar>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/searchbar/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
v-if="clearable"
v-show="String(modelValue).length > 0"
>
<template v-if="$slots.clearIcon">
<slot name="clearIcon"></slot>
<template v-if="$slots['clear-icon']">
<slot name="clear-icon"></slot>
</template>
<component :is="renderIcon(clearIcon)" v-else></component>
</view>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/searchbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
v-if="clearable"
v-show="String(modelValue).length > 0"
>
<template v-if="$slots.clearIcon">
<slot name="clearIcon"></slot>
<template v-if="$slots['clear-icon']">
<slot name="clear-icon"></slot>
</template>
<component :is="renderIcon(clearIcon)" v-else></component>
</view>
Expand Down

0 comments on commit 813d6ad

Please sign in to comment.