Ant-Design官网
a-select
中是没有 readOnly
属性的,这时只能用disabled
示例:
1 2 3 4 5
| <a-select v-decorator="[ 'errorStatus', {}]" placeholder="错误状态" :disabled="!!detail.id"> <a-select-option :value="0">正常</a-select-option> <a-select-option :value="1">异常</a-select-option> </a-select>
|
本文地址: https://github.com/maxzhao-it/blog/post/25881/