Skip to content

Commit

Permalink
fix(editor): layout 组件中hasRight判断出错
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Dec 6, 2022
1 parent 51f7963 commit f6dca97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6dca97

Please sign in to comment.