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

rater支持unicode字符 #2182

Closed
zhump opened this issue Nov 9, 2017 · 3 comments
Closed

rater支持unicode字符 #2182

zhump opened this issue Nov 9, 2017 · 3 comments

Comments

@zhump
Copy link
Contributor

zhump commented Nov 9, 2017

 <rater v-model="data5" star="&#xe603;" active-color="#FF9900" :margin="1"></rater>

star传的是字符串

如果用v-html支持传入的star,就可以用字体图标来实现了。

  <span class="vux-rater-inner" v-html="star">

但是改节点下还有

 <span class="vux-rater-outer" :style="{color: activeColor, width: cutPercent + '%'}" v-if="cutPercent > 0 && cutIndex === i-1">{{star}}</span>

可能要调整一下结构了。

@airyland
Copy link
Owner

airyland commented Nov 9, 2017

可 pr

@zhump
Copy link
Contributor Author

zhump commented Nov 9, 2017

#2183 就改了一行代码。不知道

Some checks were not successful

啥意思。哪里不对吗

@virus578
Copy link

virus578 commented Sep 5, 2018

1.使用unicode字符
image
这样他是会占位不会显示
2.用了楼主说的 v-html 也会有问题
image
依旧不显示
3.试试用icon-font字体图标就成功了
image
待我去看看源码 先占坑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants