[修正] select的选择项items属性支持disabled禁用

This commit is contained in:
castleiMac 2022-04-03 17:49:08 +08:00
parent 8b4d0abd3c
commit 0be015e449
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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>