mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): layout 组件中hasRight判断出错
This commit is contained in:
parent
51f7963197
commit
f6dca97442
@ -48,7 +48,7 @@ const props = withDefaults(
|
||||
const el = ref<HTMLElement>();
|
||||
|
||||
const hasLeft = computed(() => typeof props.left !== 'undefined');
|
||||
const hasRight = computed(() => typeof props.left !== 'undefined');
|
||||
const hasRight = computed(() => typeof props.right !== 'undefined');
|
||||
|
||||
const getCenterWidth = (clientWidth: number, left: number, right: number) => {
|
||||
let center = clientWidth - left - right;
|
||||
|
Loading…
x
Reference in New Issue
Block a user