mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
cl-switch 默认值问题
This commit is contained in:
parent
893e88157f
commit
a04dfc925e
@ -41,15 +41,16 @@ export default defineComponent({
|
||||
status.value = val;
|
||||
|
||||
if (val !== undefined) {
|
||||
// 调整值类型
|
||||
if (isBoolean(val)) {
|
||||
activeValue.value = true;
|
||||
inactiveValue.value = false;
|
||||
} else {
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
activeValue.value = props.activeValue;
|
||||
inactiveValue.value = props.inactiveValue;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
|
Loading…
Reference in New Issue
Block a user