0
我想在那裏我有以下代碼如何禁用動態地Vuejs
<div class="col-sm-6">
<label class="col-sm-6 control-label">With client*:</label>
<div class="radio col-sm-3">
<input type="radio" name="with_client" v-model="withClient" value="1" checked="">
<label>
Yes
</label>
</div>
<div class="radio col-sm-3">
<input type="radio" name="with_client" v-model="withClient" value="0">
<label>
No
</label>
</div>
</div>
我想禁用v-select
元素,如果即http://sagalbot.github.io/vue-select/v-model
withClient = 0
,使建立在VueJs 2.0
應用V-選擇選項withClient= 1
<v-select multiple :options="contacts" :on-search="getOptions" placeholder="Contact name" v-model="contactParticipants"></v-select>
'v-select'是什麼?這是:http://sagalbot.github.io/vue-select/? – thanksd
@thanksd是的,它是 –
目前,它看起來像禁用組件不是一個選項。但是,有一個拉的請求它https://github.com/sagalbot/vue-select/pull/118/files?diff=split – thanksd