el-select 循环展示,已存在的不能选择

<el-select v-model="scope.row.payChannel" 
	placeholder="请选择支付方式" 
	@change="() => {
	   payChange(scope.row);
	}">
    <el-option v-for="(item, index) in options" :key="index" :label="item.label"
        :value="item.value" :disabled="isSelect(item.value)" />
el-select>
const isSelect = (val: any) => {
    return tableData.value.some((item: any) => item.payChannel === val);
};

你可能感兴趣的:(vue.js,前端,javascript)