forked from github/dataease
refactor: 大屏分组锁定时,内部组件同步锁定
This commit is contained in:
parent
fd21624d20
commit
21069a148f
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user