Element: [Bug Report] rate's value does't support array??(The score-template value of the rate component does not support arrays)

Created on 23 Jul 2019  ·  5Comments  ·  Source: ElemeFE/element

Element UI version

2.10.1

OS/Browsers version

谷歌浏览器

Vue version

2.6.10

Reproduction Link

https://codepen.io/iamhanson/pen/XvXJPp

Steps to reproduce

https://codepen.io/iamhanson/pen/XvXJPp

(如果是常规变量,没有问题,但是如果使用数据,无法正常渲染。之前用的1.x是可以的,后来升级之后遇到了这个问题)

What is Expected?

display score(显示分数)

What is actually happening?

variable is shown (显示了变量名)

Most helpful comment

  • score-template="{value}" 正常显示 3.7
  • score-template="爱心{value}" 显示 爱心3.7

明白了吧

All 5 comments

Translation of this issue:

Element UI version

2.10.1

OS/Browsers version

Chrome

Vue version

2.6.10

Reproduction Link

Https://codepen.io/iamhanson/pen/XvXJPp

Steps to reproduce

Https://codepen.io/iamhanson/pen/XvXJPp

(If it's a regular variable, no problem, but if you use data, it won't render properly. It was possible to use 1.x before, but this problem was encountered after the upgrade.

What is Expected?

Display score

What is actually happening?

Variable is shown (showing variable names)

waiting

这个{value} 里的value是个关键字,不是value那个变量。跟占位符差不多。

  • score-template="{value}" 正常显示 3.7
  • score-template="爱心{value}" 显示 爱心3.7

明白了吧

感谢 @qingdengyue @xrkffgg 两位的回答。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gengxuelei picture gengxuelei  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

chao-hua picture chao-hua  ·  3Comments

no5no6 picture no5no6  ·  3Comments

fscardua picture fscardua  ·  3Comments