fix(editor): layout 组件中hasRight判断出错

This commit is contained in:
roymondchen 2022-12-06 16:54:39 +08:00
parent 51f7963197
commit f6dca97442

View File

@ -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;