Merge pull request #7342 from dataease/pr@dev-v2@refactor_style

Pr@dev v2@refactor style
This commit is contained in:
王嘉豪 2023-12-25 20:45:56 +08:00 committed by GitHub
commit 810576b1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -8,7 +8,7 @@ i18n_menu.template=\u6A21\u7248
i18n_menu.application=\u5E94\u7528
i18n_menu.system=\u7CFB\u7EDF\u7BA1\u7406
i18n_menu.template-market=\u6A21\u7248\u5E02\u573A
i18n_menu.template-setting=\u6A21\u7248\u7BA1\u7406
i18n_menu.template-setting=\u6a21\u677f\u7ba1\u7406
i18n_menu.view=\u6570\u636E\u5C55\u793A
i18n_menu.data=\u6570\u636E\u51C6\u5907
i18n_menu.panel=\u4EEA\u8868\u677F

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
})
}
}
}
})