feat(editor): 修改默人属性面板宽度

This commit is contained in:
roymondchen 2022-04-02 19:20:42 +08:00 committed by jia000
parent 97a722579d
commit ed9805f2b4

View File

@ -25,6 +25,9 @@ import type { GetColumnWidth, SetColumnWidth, StageRect, UiState } from '@editor
import BaseService from './BaseService'; import BaseService from './BaseService';
const DEFAULT_LEFT_COLUMN_WIDTH = 310;
const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
const state = reactive<UiState>({ const state = reactive<UiState>({
uiSelectMode: false, uiSelectMode: false,
showSrc: false, showSrc: false,
@ -38,9 +41,9 @@ const state = reactive<UiState>({
height: 817, height: 817,
}, },
columnWidth: { columnWidth: {
left: 310, left: DEFAULT_LEFT_COLUMN_WIDTH,
center: globalThis.document.body.clientWidth - 310 - 400, center: globalThis.document.body.clientWidth - DEFAULT_LEFT_COLUMN_WIDTH - DEFAULT_RIGHT_COLUMN_WIDTH,
right: 400, right: DEFAULT_RIGHT_COLUMN_WIDTH,
}, },
showGuides: true, showGuides: true,
showRule: true, showRule: true,