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