refactor: 大屏分组锁定时,内部组件同步锁定

This commit is contained in:
wangjiahao 2023-12-25 20:23:14 +08:00
parent fd21624d20
commit 21069a148f

View File

@ -9,10 +9,20 @@ export const lockStore = defineStore('lock', {
actions: {
lock() {
curComponent.value.isLock = true
if (curComponent.value.component === 'Group') {
curComponent.value.propValue.forEach(component => {
component.isLock = true
})
}
},
unlock() {
curComponent.value.isLock = false
if (curComponent.value.component === 'Group') {
curComponent.value.propValue.forEach(component => {
component.isLock = false
})
}
}
}
})