update
This commit is contained in:
@@ -37,7 +37,7 @@ function copy() {
|
|||||||
>
|
>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<n-button quaternary type="primary" @click="copy">复制</n-button>
|
<n-button quaternary type="primary" @click="copy">复制</n-button>
|
||||||
<n-button quaternary @click="reset">重置</n-button>
|
<n-button quaternary @click="reset">清空</n-button>
|
||||||
</template>
|
</template>
|
||||||
</CodeEditor>
|
</CodeEditor>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
<template>
|
<template>
|
||||||
<n-flex vertical>
|
<n-flex vertical>
|
||||||
<n-flex>
|
<n-flex>
|
||||||
<n-button @click="reset">重置</n-button>
|
<n-button @click="reset">清空</n-button>
|
||||||
<n-button @click="addFive">增加5个</n-button>
|
<n-button @click="addFive">增加5个</n-button>
|
||||||
<n-button @click="run">先运行</n-button>
|
<n-button @click="run">先运行</n-button>
|
||||||
<n-button @click="download">再下载</n-button>
|
<n-button @click="download">再下载</n-button>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function handleShare() {
|
|||||||
|
|
||||||
const menu: DropdownOption[] = [
|
const menu: DropdownOption[] = [
|
||||||
{ label: "复制", key: "copy", props: { onClick: copy } },
|
{ label: "复制", key: "copy", props: { onClick: copy } },
|
||||||
{ label: "重置", key: "reset", props: { onClick: reset } },
|
{ label: "清空", key: "reset", props: { onClick: reset } },
|
||||||
{ label: "分享", key: "share", props: { onClick: handleShare } },
|
{ label: "分享", key: "share", props: { onClick: handleShare } },
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user