在 CodeLaunchpad 里整一个关闭按钮
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
import CodeLaunchpadButton from '@renderer/components-code-launchpad/CodeLaunchpadButton.vue'
|
||||||
|
|
||||||
const activeKey = ref('/codeLaunchpad/IDEs')
|
const activeKey = ref('/codeLaunchpad/IDEs')
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -33,6 +34,7 @@ function handleUpdateValue(key: string): void {
|
|||||||
<div class="scrollarea">
|
<div class="scrollarea">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
|
<CodeLaunchpadButton />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { Close as CloseIcon } from '@vicons/ionicons5'
|
||||||
|
|
||||||
|
function close(): void {
|
||||||
|
window.api._closeCodeLaunchpad()
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<n-float-button-group :right="16" :top="16" shape="circle">
|
||||||
|
<n-float-button type="default" @click="close">
|
||||||
|
<n-icon>
|
||||||
|
<CloseIcon />
|
||||||
|
</n-icon>
|
||||||
|
</n-float-button>
|
||||||
|
</n-float-button-group>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
Reference in New Issue
Block a user