1
1
<template >
2
- <n-card item-responsive =" true" style =" background :gainsboro ; margin-bottom :5px " title =" 网址导航" >
2
+ <n-card item-responsive =" true" style =" background :lightcoral ; margin-bottom :5px " title =" 网址导航" >
3
3
<n-grid :x-gap =" 12" :y-gap =" 8" cols =" 4" >
4
4
<!-- 分组 -->
5
- <n-grid-item v-for =" item in websites " >
6
- <n-button size =" small" style =" background :cadetblue ; " type = " success "
5
+ <n-grid-item v-for =" item in webJp " >
6
+ <n-button size =" small" style =" background :lightblue ; "
7
7
@click =" open_webview(item.url)" >
8
8
{{ item.title }}
9
9
</n-button >
10
10
</n-grid-item >
11
11
</n-grid >
12
+ <br >
13
+ <n-grid :x-gap =" 12" :y-gap =" 8" cols =" 4" >
14
+ <!-- 分组 -->
15
+ <n-grid-item v-for =" item in webDocs" >
16
+ <n-button size =" small" style =" background :greenyellow ;"
17
+ @click =" open_webview(item.url)" >
18
+ {{ item.title }}
19
+ </n-button >
20
+ </n-grid-item >
21
+ </n-grid >
22
+ <br >
23
+ <n-grid :x-gap =" 12" :y-gap =" 8" cols =" 4" >
24
+ <!-- 分组 -->
25
+ <n-grid-item v-for =" item in webSearch" >
26
+ <n-button size =" small" style =" background :yellow ;"
27
+ @click =" open_webview(item.url)" >
28
+ {{ item.title }}
29
+ </n-button >
30
+ </n-grid-item >
31
+ </n-grid >
32
+
33
+
12
34
</n-card >
13
35
</template >
14
36
@@ -19,15 +41,23 @@ import {defineComponent, getCurrentInstance, ref} from 'vue'
19
41
import {WebviewWindow } from ' @tauri-apps/api/window' ;
20
42
21
43
// 数据: 需要注册到下面
22
- const websites = ref ([
44
+ const webDocs = ref ([
45
+ {title: ' Tauri 官网' , url: " https://tauri.app/zh-cn/" },
46
+ {title: ' Tauri Docs' , url: " https://tauri.app/v1/api/js/" },
47
+ {title: ' NaiveUI Docs' , url: " https://www.naiveui.com/zh-CN/light/components/button" },
48
+ {title: ' Vue Docs' , url: " https://cn.vuejs.org/guide/essentials/list.html#v-for" },
49
+ ]);
50
+ const webSearch = ref ([
23
51
{title: ' Google' , url: " https://google.com" },
24
52
{title: ' Bing' , url: " https://bing.com" },
25
53
{title: ' Github' , url: " https://github.com" },
26
54
27
- //
28
- {title: ' NaiveUI Docs' , url: " https://www.naiveui.com/zh-CN/light/components/button" },
29
- {title: ' Tauri Docs' , url: " https://tauri.app/v1/api/js/" },
30
- {title: ' Vue Docs' , url: " https://cn.vuejs.org/guide/essentials/list.html#v-for" },
55
+ ]);
56
+ const webJp = ref ([
57
+ {title: ' NHK 日语教程' , url: " https://www.nhk.or.jp/lesson/zh/letters/hiragana.html" },
58
+ {title: ' 日语五十音' , url: " https://inihongo.github.io/Japanese_syllabary_learning/index.html" },
59
+ {title: ' 新华字典' , url: " https://zd.hwxnet.com/" },
60
+
31
61
])
32
62
33
63
@@ -37,7 +67,9 @@ export default defineComponent({
37
67
props: [' waited' ],
38
68
39
69
data : () => ({
40
- websites ,
70
+ webDocs ,
71
+ webJp ,
72
+ webSearch ,
41
73
toggle: false ,
42
74
counter: 0 ,
43
75
}),
0 commit comments