This commit is contained in:
2024-06-27 05:50:16 +00:00
parent ce34d80179
commit db030b5869
14 changed files with 511 additions and 430 deletions

View File

@@ -30,6 +30,7 @@ function copy() {
<template #1>
<CodeEditor
label="代码区"
icon="streamline-emojis:lemon"
:font-size="size"
v-model="code.value"
:language="code.language"
@@ -48,7 +49,12 @@ function copy() {
:max="3 / 5"
>
<template #1>
<CodeEditor label="输入框" :font-size="size" v-model="input">
<CodeEditor
icon="streamline-emojis:four-leaf-clover"
label="输入框"
:font-size="size"
v-model="input"
>
<template #actions>
<n-button
quaternary
@@ -63,6 +69,7 @@ function copy() {
</template>
<template #2>
<CodeEditor
icon="streamline-emojis:hibiscus"
label="输出框"
v-model="output"
readonly

View File

@@ -3,6 +3,7 @@ import { size, run, loading, share } from "../composables/code"
import ThemeButton from "../components/ThemeButton.vue"
import SelectLanguage from "../components/SelectLanguage.vue"
import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue"
const message = useMessage()
@@ -15,7 +16,10 @@ function handleShare() {
<template>
<n-layout-header bordered class="header">
<n-flex justify="space-between" align="center">
<div class="title">徐越的自测猫</div>
<n-flex align="center">
<Icon icon="streamline-emojis:cat" :width="30" :height="30"></Icon>
<div class="title">徐越的自测猫</div>
</n-flex>
<n-flex>
<n-button @click="handleShare">分享</n-button>
<ThemeButton />