ElemeFE / element

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

[feature request] cascade selector props problem #19604

Open BenXi630 opened 4 years ago

BenXi630 commented 4 years ago

Existing Component

Component Name

Cascader

Description

<el-cascader style="width: 260px" clearable filterable v-loading="classifyLoading" :disabled="classifyLoading" v-model="searchValue" :options="searchOptions" :props="{ label: 'name', value: 'id', disabled: 'flag' }" placeholder="请选择服装分类"></el-cascader>

上面的代码里通过props设置了disabled对应的字段,如果disabled想取反怎么操作,不改变原数据的情况下

element-bot commented 4 years ago

Translation of this issue:

Existing Component

yes

Component Name

Cascader

Description

< El cascade style = "width: 260px" clear filterable v-loading = "classifyloading": Disabled = "classifyloading" V-model = "SearchValue": options = "searchoptions": props = "{label: 'name', value: 'ID', disabled: 'flag'}" placeholder = "please select clothing classification" > < El cascade >

In the above code, the corresponding field of disabled is set through props. If the disabled wants to reverse the operation, the original data will not be changed

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.