Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up-search修改样式问题 #648

Open
chaoyang915506 opened this issue Feb 27, 2025 · 1 comment · May be fixed by #649
Open

up-search修改样式问题 #648

chaoyang915506 opened this issue Feb 27, 2025 · 1 comment · May be fixed by #649

Comments

@chaoyang915506
Copy link

chaoyang915506 commented Feb 27, 2025

up-search 当我修改了placeholderColor后发现只有当我输入文字后才会发生改变 或者默认值不为空颜色也会正确
"uview-plus": "^3.3.40"

  • 开发者工具版本:微信开发者工具1.06.2412050
    安卓
    我的配置项
    <up-search
    v-model="pageParams.queryCondition"
    placeholder="搜索用户名/手机号"
    @search="handleSearch"
    :clearabled="true"
    bgColor="transparent"
    borderColor="#fff"
    searchIconColor="#fff"
    color="#fff"
    placeholderColor="#fff"
    actionStyle="color:#fff"
    @Custom="handleSearch"
    :inputStyle="{ color: '#fff' }"
    >

Image

@xiuxiumomo
Copy link
Contributor

这个组件源码写死了,你可以加一个全局样式去覆盖。<style lang="scss">
.u-search__content__input--placeholder {
color: red !important;
}
</style>

xiuxiumomo added a commit to xiuxiumomo/uview-plus that referenced this issue Feb 28, 2025
新增props,placeholderClass让用户可以自定义样式

✅ Closes: ijry#648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants