Update PaneTitleBar.vue
This commit is contained in:
@@ -20,7 +20,6 @@ const layoutStore = useLayoutStore();
|
|||||||
// --- Methods ---
|
// --- Methods ---
|
||||||
const closePane = () => {
|
const closePane = () => {
|
||||||
console.log(`[PaneTitleBar] Requesting to close pane: ${props.paneName}`);
|
console.log(`[PaneTitleBar] Requesting to close pane: ${props.paneName}`);
|
||||||
// layoutStore.setPaneVisibility(props.paneName, false);
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -28,7 +27,7 @@ const closePane = () => {
|
|||||||
<div class="pane-title-bar">
|
<div class="pane-title-bar">
|
||||||
<span class="title">{{ title }}</span>
|
<span class="title">{{ title }}</span>
|
||||||
<button class="close-button" @click="closePane" :title="`关闭 ${title}`">
|
<button class="close-button" @click="closePane" :title="`关闭 ${title}`">
|
||||||
× <!-- 使用 HTML 实体 '×' -->
|
×
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user