Skip to content

Commit

Permalink
fix: 警告问题 #13
Browse files Browse the repository at this point in the history
  • Loading branch information
haixin-fang committed May 20, 2024
1 parent 812a32a commit 4364ee2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/editor/src/layouts/Framework.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<resizer type="left"></resizer>
<div
class="starfish-editor-framework-center"
:style="`width:${centerWidth}px`"
>
<slot name="navlist"></slot>
<slot name="workspace"></slot>
Expand Down Expand Up @@ -58,13 +57,7 @@ export default defineComponent({
);
const leftClose: any = computed(() => uiControl?.get("leftClose"));
const rightClose: any = computed(() => uiControl?.get("rightClose"));
const centerWidth: any = computed(() => {
const center =
(leftClose.value ? columnWidth.value.left : 0) +
centerWidth.value +
(rightClose.value ? columnWidth.value.right : 0);
return center;
});
function onLeftArrow() {
uiControl?.set("leftClose", !leftClose.value);
}
Expand Down

0 comments on commit 4364ee2

Please sign in to comment.