fix: bug菜单管理按钮样式
This commit is contained in:
parent
e17ead51c3
commit
d7198a7ad1
|
@ -131,7 +131,6 @@ const permission = reactive({
|
||||||
const newProp = props.value.filter(
|
const newProp = props.value.filter(
|
||||||
(item) => item.permission !== row.id,
|
(item) => item.permission !== row.id,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (newValue.length === row.options.length) {
|
if (newValue.length === row.options.length) {
|
||||||
row.checkAll = true;
|
row.checkAll = true;
|
||||||
row.indeterminate = false;
|
row.indeterminate = false;
|
||||||
|
@ -146,6 +145,8 @@ const permission = reactive({
|
||||||
permission: row.id,
|
permission: row.id,
|
||||||
actions: newValue,
|
actions: newValue,
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
row.indeterminate = false
|
||||||
}
|
}
|
||||||
|
|
||||||
emits('update:value', newProp);
|
emits('update:value', newProp);
|
||||||
|
|
Loading…
Reference in New Issue