element icon indicating copy to clipboard operation
element copied to clipboard

How is the column el-table-column of [Feature Request] table component type='selection'set disabled?

Open kangming007 opened this issue 9 years ago • 3 comments

Existing Component

是

Component Name

table

Description

table组件的el-table-column type=‘selection‘ 的这一列怎么设置禁用 使复选框默认不能被勾选 我按照el-button组件 加上disabled 这个属性 没有生效 正确的方式应该怎么设置求告知

kangming007 avatar Aug 23 '17 06:08 kangming007

Translation of this issue:

Existing Component

yes

Component Name

Table

Description

The table component of el-table-column type= 'selection' in the column that how to set the check box to disable the default cannot be checked in accordance with my el-button component with disabled this property did not come into the right way how to set up and inform

element-bot avatar Aug 23 '17 06:08 element-bot

type=''selection‘有一个方法可以的selectable,如下: <el-table-column type="selection" width="55" :selectable="selectFun"> selectFun中返回false就是不能被勾选的行

James-jun06 avatar Aug 29 '17 02:08 James-jun06

A proper translation of this feature. Reason: I stumbled on this page when i was trying to select all rows and pass the data.

By using this attribute, :selectable="YourFunction", you are able to know when the select all button is marked.

OlabodeAbesin avatar Nov 22 '18 14:11 OlabodeAbesin