Skip to content

Commit 40565d1

Browse files
fix: 🐛 修复 Search placeholder 样式丢失的问题 (#857)
Closes: #856
1 parent c70a8a2 commit 40565d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uni_modules/wot-design-uni/components/wd-search/wd-search.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<view class="wd-search__field">
66
<view v-if="!placeholderLeft" :style="coverStyle" class="wd-search__cover" @click="closeCover">
77
<wd-icon name="search" custom-class="wd-search__search-icon"></wd-icon>
8-
<text class="wd-search__placeholder-txt">{{ placeholder || translate('search') }}</text>
8+
<text :class="`wd-search__placeholder-txt ${placeholderClass}`">{{ placeholder || translate('search') }}</text>
99
</view>
1010
<wd-icon v-if="showInput || str || placeholderLeft" name="search" custom-class="wd-search__search-left-icon"></wd-icon>
1111
<input
1212
v-if="showInput || str || placeholderLeft"
1313
:placeholder="placeholder || translate('search')"
14-
:placeholder-class="`wd-search__placeholder-txt', ${placeholderClass}`"
14+
:placeholder-class="`wd-search__placeholder-txt ${placeholderClass}`"
1515
:placeholder-style="placeholderStyle"
1616
confirm-type="search"
1717
v-model="str"

0 commit comments

Comments
 (0)