This commit is contained in:
2024-10-04 19:12:51 +08:00
parent a95b61ae7a
commit beeb65d3b8
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ function copy() {
>
<template #actions>
<n-button quaternary type="primary" @click="copy">复制</n-button>
<n-button quaternary @click="reset">重置</n-button>
<n-button quaternary @click="reset">清空</n-button>
</template>
</CodeEditor>
</template>

View File

@@ -12,7 +12,7 @@ import {
<template>
<n-flex vertical>
<n-flex>
<n-button @click="reset">重置</n-button>
<n-button @click="reset">清空</n-button>
<n-button @click="addFive">增加5个</n-button>
<n-button @click="run">先运行</n-button>
<n-button @click="download">再下载</n-button>

View File

@@ -23,7 +23,7 @@ function handleShare() {
const menu: DropdownOption[] = [
{ label: "复制", key: "copy", props: { onClick: copy } },
{ label: "重置", key: "reset", props: { onClick: reset } },
{ label: "清空", key: "reset", props: { onClick: reset } },
{ label: "分享", key: "share", props: { onClick: handleShare } },
]
</script>