Element: [Bug Report] menu组件加入router属性后控制台报错

Created on 27 Mar 2017  ·  2Comments  ·  Source: ElemeFE/element

Element UI version

1.2.4

OS/Browsers version

win10 / chrome 56.0.2924.87

Vue version

2.1.8

Reproduction Link

http://jsfiddle.net/ncnzerg1/

Steps to reproduce

  1. 打开官网提供的[menu组件示例(http://jsfiddle.net/api/post/library/pure/)
  2. 在第四行加入 router="true"router=truerouter="false"属性,见重现链接

What is Expected?

控制台无报错

What is actually happening?

控制台报错

[Vue warn]: Invalid prop: type check failed for prop "router". Expected Boolean, got String. 
(found in <ElMenu>)

Most helpful comment

Write it like this:
:router="true"

All 2 comments

Write it like this:
:router="true"

参考楼上。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akaylh picture akaylh  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

no5no6 picture no5no6  ·  3Comments

fscardua picture fscardua  ·  3Comments

PanJiaChen picture PanJiaChen  ·  3Comments