From 21069a148fab38ff10995fcc7ec32fde597d29b6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 25 Dec 2023 20:23:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=A7=E5=B1=8F=E5=88=86?= =?UTF-8?q?=E7=BB=84=E9=94=81=E5=AE=9A=E6=97=B6,=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=90=8C=E6=AD=A5=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/lock.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/core-frontend/src/store/modules/data-visualization/lock.ts b/core/core-frontend/src/store/modules/data-visualization/lock.ts index 59aa854f7d..4ab0b44014 100644 --- a/core/core-frontend/src/store/modules/data-visualization/lock.ts +++ b/core/core-frontend/src/store/modules/data-visualization/lock.ts @@ -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 + }) + } } } })