ElemeFE / element-react

Element UI
https://elemefe.github.io/element-react/index
MIT License
2.83k stars 443 forks source link

[Bug Report]Table Component will show the useless warning when rowKey is string. #936

Closed Emiya0306 closed 5 years ago

Emiya0306 commented 5 years ago

Description

Table Component will show the warning that Invalid prop 'rowKey' of type 'string' supplied to 'TableStore', expected 'function'. But this prop truly support string type.

Reproduce Steps

  1. Set <Table rowKey="name" />
  2. Open the console, you will see the warning.

Error Trace (if possible)

wx20190221-114904 2x

Solution

https://github.com/ElemeFE/element-react/pull/935

Additional Information

Is element-react has jsfiddle issue template? I would like to paste jsfiddle link, but element-react seem not support jsfiddle.