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

更改placeholder似乎无法改变选中星星的样式 #5

Open
Bmongo opened this issue Mar 26, 2020 · 1 comment
Open

更改placeholder似乎无法改变选中星星的样式 #5

Bmongo opened this issue Mar 26, 2020 · 1 comment

Comments

@Bmongo
Copy link

Bmongo commented Mar 26, 2020

<view class="rate__item--icon icon{{value > 0 ? '':'-placeholder'}}-{{iconClassMap[item]}}">

这行代码中的 value > 0让我很疑惑,这边我想您的意思是更改选中星星的不同样子把?但是这个应该和value没有关系把,以下是我修改后的代码,不知道是不是更符合一些

<view class="rate__item--icon icon{{placeholder === 0 ? '':'-placeholder'}}-{{iconClassMap[item]}}">
@Bmongo Bmongo changed the title index 更改placeholder似乎无法改变选中星星的样式 Mar 26, 2020
@callmesoul
Copy link

callmesoul commented Mar 29, 2021

@Bmongo
我自己写了个高可定制的
https://github.com/callmesoul/wechat-miniprogram-rate-plugin

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

No branches or pull requests

2 participants