mirror of
https://github.com/lanyeeee/bilibili-video-downloader.git
synced 2026-09-08 00:56:51 +08:00
feat: 引入vue-jsx
This commit is contained in:
+11
-1
@@ -1,4 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
<script setup lang="tsx">
|
||||
import { ref } from 'vue'
|
||||
import { commands } from './bindings.ts'
|
||||
|
||||
@@ -18,6 +18,15 @@ async function test() {
|
||||
console.log(result2)
|
||||
}
|
||||
}
|
||||
|
||||
function TestComponent() {
|
||||
return (
|
||||
<div>
|
||||
<h2>Test Component</h2>
|
||||
<p>This is a test component.</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -43,6 +52,7 @@ async function test() {
|
||||
</form>
|
||||
<p class="text-red">{{ greetMsg }}</p>
|
||||
<n-button @click="test">测试</n-button>
|
||||
<TestComponent />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user