[修正] select的选择项items属性支持disabled禁用
This commit is contained in:
parent
8b4d0abd3c
commit
0be015e449
@ -178,7 +178,7 @@ export default {
|
||||
const items=ref([
|
||||
{label:'选项1',value:1,keyword:'选项xuanxiang1'},
|
||||
{label:'选项2',value:2,keyword:'选项xuanxiang2'},
|
||||
{label:'选项3',value:3,keyword:'选项xuanxiang3'},
|
||||
{label:'选项3',value:3,keyword:'选项xuanxiang3',disabled:true},
|
||||
])
|
||||
return {
|
||||
selected,items
|
||||
|
@ -239,6 +239,7 @@ provide("keyword", txt)
|
||||
:key="k"
|
||||
:value="v.value"
|
||||
:label="v.label"
|
||||
:disabled="v.disabled"
|
||||
:keyword="v.keyword"
|
||||
></lay-select-option>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user