feat: 引入naive-ui

This commit is contained in:
lanyeeee
2025-07-08 20:56:59 +08:00
parent b1b50d6b3f
commit 06b01dcbf8
6 changed files with 542 additions and 1 deletions
+7
View File
@@ -9,6 +9,10 @@ async function greet() {
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
greetMsg.value = await invoke('greet', { name: name.value })
}
function test() {
console.log('test')
}
</script>
<template>
@@ -33,6 +37,7 @@ async function greet() {
<button type="submit">Greet</button>
</form>
<p>{{ greetMsg }}</p>
<n-button @click="test">测试</n-button>
</main>
</template>
@@ -122,6 +127,7 @@ button {
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
@@ -151,6 +157,7 @@ button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}