Select:add closable prop to option

pull/21554/head
chunyu.ma 2021-12-16 10:29:01 +08:00
parent 55bac06f0f
commit 4a67f8f279
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@
disabled: {
type: Boolean,
default: false
},
closable: {
type: Boolean,
default: true
}
},

View File

@ -32,7 +32,7 @@
<el-tag
v-for="item in selected"
:key="getValueKey(item)"
:closable="!selectDisabled"
:closable="!selectDisabled && item.closable"
:size="collapseTagSize"
:hit="item.hitState"
type="info"