Skip to content

Commit 7c7a68f

Browse files
committed
fix: splitpane error
1 parent c5b09f4 commit 7c7a68f

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

components/MainPlayground.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ const panelInitTerminal = computed(() => isMounted.value || {
9595
</Pane>
9696
<PaneSplitter />
9797
<Pane
98-
v-bind="terminalPaneProps" :style="panelInitTerminal"
98+
v-bind="terminalPaneProps"
99+
:style="panelInitTerminal"
99100
:class="ui.showTerminal ? '' : 'pane-hidden'"
100101
>
101102
<PanelTerminal />

patches/[email protected]

+15
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,18 @@ index 2354cb734b79a4109c2a511d5fc49d944372d8d0..50d37289adc60f94183c93d10896b30a
139139
+.default-theme .splitpanes--horizontal>.splitpanes__splitter:after {
140140
+ margin-top: 1px
141141
+}
142+
diff --git a/dist/splitpanes.es.js b/dist/splitpanes.es.js
143+
index 6a8e64363e592840123438b1a5959a580440b325..0b2ddee308cfbc48bef9351286b218d8cc1ace7b 100644
144+
--- a/dist/splitpanes.es.js
145+
+++ b/dist/splitpanes.es.js
146+
@@ -160,7 +160,9 @@ const M = {
147+
},
148+
requestUpdate({ target: e, ...i }) {
149+
const s = this.indexedPanes[e._.uid];
150+
- Object.entries(i).forEach(([n, t]) => s[n] = t);
151+
+ if (s) {
152+
+ Object.entries(i).forEach(([n, t]) => s[n] = t);
153+
+ }
154+
},
155+
onPaneAdd(e) {
156+
let i = -1;

pnpm-lock.yaml

+6-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)