mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-25 19:59:24 +08:00
feat(editor): 修改默人属性面板宽度
This commit is contained in:
parent
97a722579d
commit
ed9805f2b4
@ -25,6 +25,9 @@ import type { GetColumnWidth, SetColumnWidth, StageRect, UiState } from '@editor
|
||||
|
||||
import BaseService from './BaseService';
|
||||
|
||||
const DEFAULT_LEFT_COLUMN_WIDTH = 310;
|
||||
const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
|
||||
|
||||
const state = reactive<UiState>({
|
||||
uiSelectMode: false,
|
||||
showSrc: false,
|
||||
@ -38,9 +41,9 @@ const state = reactive<UiState>({
|
||||
height: 817,
|
||||
},
|
||||
columnWidth: {
|
||||
left: 310,
|
||||
center: globalThis.document.body.clientWidth - 310 - 400,
|
||||
right: 400,
|
||||
left: DEFAULT_LEFT_COLUMN_WIDTH,
|
||||
center: globalThis.document.body.clientWidth - DEFAULT_LEFT_COLUMN_WIDTH - DEFAULT_RIGHT_COLUMN_WIDTH,
|
||||
right: DEFAULT_RIGHT_COLUMN_WIDTH,
|
||||
},
|
||||
showGuides: true,
|
||||
showRule: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user