我要在用户选择或选择供应商后禁用选择选项。仅当用户删除表上的所有行后才能启用。我怎样才能做到这一点?有人可以帮我解决我的问题吗?
//Select options
<select v-model="supplier" class="form-control form-control-sm d-inline-
block" id="supplier" style="width: auto;">
<option disabled value="" selected>Select Category</option>
<option v-for="supplier in suppliers" :disabled="!supplier.supplier_id"
v-bind:value="supplier.supplier_id">{{supplier.name}}</option>
</select>
//Delete rows
removeItemToCart : function(index) {
this.purchase.splice(index, 1);
},