update
This commit is contained in:
@@ -8,22 +8,19 @@
|
||||
:mask-closable="false"
|
||||
title="测试用例文件生成器"
|
||||
>
|
||||
<TestPanel :files="files" />
|
||||
<File />
|
||||
</n-modal>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import Header from "./Header.vue"
|
||||
import Content from "./Content.vue"
|
||||
import TestPanel from "./TestPanel.vue"
|
||||
import File from "./File.vue"
|
||||
import { useMagicKeys, whenever } from "@vueuse/core"
|
||||
import { ref } from "vue"
|
||||
|
||||
const { alt_shift_p, ctrl_shift_p, ctrl_shift_z } = useMagicKeys()
|
||||
|
||||
const show = ref(false)
|
||||
const files = ref(
|
||||
Array.from({ length: 5 }).map(() => ({ in: "", out: "", error: false })),
|
||||
)
|
||||
|
||||
whenever(alt_shift_p, () => {
|
||||
show.value = true
|
||||
|
||||
Reference in New Issue
Block a user