ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.63k forks source link

[Bug Report] Auto-check for default value of Element Table Multiple select not working. #8071

Closed ragamuffinguil closed 7 years ago

ragamuffinguil commented 7 years ago

Element UI version

2.0.3

OS/Browsers version

Google Chrome Latest

Vue version

2.5.3

Reproduction Link

https://jsfiddle.net/66s1rLpq/

Steps to reproduce

Default data of mutipleselection must be auto check in the table also

What is Expected?

first data of the table must be selected

What is actually happening?

autocheck is not happening

Leopoldthecoder commented 7 years ago

Table itself doesn't know the existence of multipleSelection (there is nowhere to pass multipleSelection to <el-table>). So to init Table's checkboxes, you can simply execute toggleRowSelection when it's loaded.