Vue3中动态绑定:disabled element-plus使用方法
•
前端
@change=”whetherFlag($event)” 根据value值判断是否禁用 :disabled=”isShow”
取 消
确 定
初始值为禁用状态
const isShow = ref(true);
const isShow = ref(true);
根据value的值判断是否禁用
// 状态判断
const whetherFlag = (value: string) => {
if( value === "1" ) {
isShow.value = false;
console.log( isShow.value," isShow.value");
}else {
isShow.value = true;
}
}
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/959bee9467.html
