mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: 对齐 getConfig 的实现
fix: 修复回退/重做后, 选中态丢失的问题
This commit is contained in:
parent
116dea168d
commit
7b551fb5b8
@ -172,7 +172,10 @@ hotkey.bind(['command+z', 'ctrl+z'], (e) => {
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
const selection = focusing.focusDesigner?.currentSelection;
|
||||
const curSelected = Array.from(selection?.selected!);
|
||||
his.back();
|
||||
selection?.selectAll(curSelected);
|
||||
});
|
||||
|
||||
// command + shift + z redo
|
||||
@ -183,8 +186,10 @@ hotkey.bind(['command+y', 'ctrl+y', 'command+shift+z'], (e) => {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
|
||||
const selection = focusing.focusDesigner?.currentSelection;
|
||||
const curSelected = Array.from(selection?.selected!);
|
||||
his.forward();
|
||||
selection?.selectAll(curSelected);
|
||||
});
|
||||
|
||||
// sibling selection
|
||||
|
||||
@ -119,7 +119,10 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
||||
|
||||
// ======= compatibles for vision ======
|
||||
|
||||
getConfig(): FieldConfig {
|
||||
getConfig<K extends keyof FieldConfig>(configName?: K): FieldConfig[K] | FieldConfig {
|
||||
if (configName) {
|
||||
return this.config[configName];
|
||||
}
|
||||
return this._config;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user