1
1
<template >
2
- <!-- todo x: style="justify-content: center"-->
3
- <div style =" " >
4
- <n-space justify =" space-between" >
5
- <n-card v-for =" d in dw" :key =" d" :title =" d.title" style =" min-width : 300px ; align-items : center " >
6
- <n-flex vertical >
7
- <n-button secondary size =" large" strong type =" success" @click =" download(d.url)"
8
- >{{ d.dl }}
2
+ <!-- todo x: style="justify-content: center"-->
3
+ <div style =" " >
4
+ <n-space justify =" space-between" >
5
+ <n-card
6
+ v-for =" d in dw"
7
+ :key =" d"
8
+ :title =" d.title"
9
+ style =" min-width : 300px ; align-items : center "
10
+ >
11
+ <n-flex vertical >
12
+ <n-button
13
+ secondary
14
+ size =" large"
15
+ strong
16
+ type =" success"
17
+ @click =" download(d.url)"
18
+ >{{ d.dl }}
9
19
10
- <template #icon >
11
- <n-icon :color =" d.color" size =" 30px" >
12
- <Icon :icon =" d.icon" />
13
- </n-icon >
14
- </template >
15
- </n-button >
20
+ <template #icon >
21
+ <n-icon :color =" d.color" size =" 30px" >
22
+ <Icon :icon =" d.icon" />
23
+ </n-icon >
24
+ </template >
25
+ </n-button >
16
26
17
- <!-- version -->
18
- <n-gradient-text type =" success" >
19
- Latest Version:
20
- <n-gradient-text type =" info" >{{ d.version }}</n-gradient-text >
21
- </n-gradient-text >
22
- </n-flex >
23
- </n-card >
24
- </n-space >
25
- </div >
27
+ <!-- version -->
28
+ <n-gradient-text type =" success" >
29
+ Latest Version:
30
+ <n-gradient-text type =" info" >{{ d.version }}</n-gradient-text >
31
+ </n-gradient-text >
32
+ </n-flex >
33
+ </n-card >
34
+ </n-space >
35
+ </div >
36
+
37
+ <div >
38
+ <q-card >
39
+ <q-btn color =" primary" outline >Hello Quasar</q-btn >
40
+
41
+ <br />
42
+
43
+ <q-btn color =" red" type =" success" >test</q-btn >
44
+
45
+ <div class =" q-pa-md q-gutter-sm" >
46
+ <q-btn color =" white" label =" Standard" text-color =" black" />
47
+ <q-btn color =" primary" label =" Primary" />
48
+ <q-btn color =" secondary" label =" Secondary" />
49
+ <q-btn color =" amber" glossy label =" Amber" />
50
+ <q-btn color =" brown-5" label =" Brown 5" />
51
+ <q-btn color =" deep-orange" glossy label =" Deep Orange" />
52
+ <q-btn color =" purple" label =" Purple" />
53
+ <q-btn color =" black" label =" Black" />
54
+ </div >
55
+
56
+ <q-tree ></q-tree >
57
+ </q-card >
58
+ </div >
26
59
</template >
27
60
28
61
<script lang="ts" setup>
@@ -34,53 +67,53 @@ import { Icon } from '@iconify/vue'
34
67
const message = useMessage ()
35
68
36
69
const props = defineProps ({
37
- downloads: {
38
- type: Array ,
39
- },
70
+ downloads: {
71
+ type: Array ,
72
+ },
40
73
})
41
74
42
75
//
43
76
// ref: https://icon-sets.iconify.design/?category=General
44
77
//
45
78
const dw = [
46
- {
47
- title: ' Windows' ,
48
- icon: ' iconoir:windows' , // <Icon icon="iconoir:windows" />
49
- color: ' blue' ,
50
- dl: ' Download for Windows' ,
51
- url: ' https://github.com/naive-ui/naive-ui/releases' ,
52
- version: ' 1.0.0' ,
53
- },
54
- {
55
- title: ' macOS' ,
56
- icon: ' iconoir:apple-mac' , // <Icon icon="iconoir:apple-mac" />
57
- color: ' white' ,
58
- dl: ' Download for macOS' ,
59
- url: ' https://github.com/naive-ui/naive-ui/releases' ,
60
- version: ' 1.0.0' ,
61
- },
62
- {
63
- title: ' Linux' ,
64
- icon: ' uil:linux' , // <Icon icon="uil:linux" />
65
- color: ' orange' ,
66
- dl: ' Download for Linux' ,
67
- url: ' https://github.com/naive-ui/naive-ui/releases' ,
68
- version: ' 1.0.0' ,
69
- },
79
+ {
80
+ title: ' Windows' ,
81
+ icon: ' iconoir:windows' , // <Icon icon="iconoir:windows" />
82
+ color: ' blue' ,
83
+ dl: ' Download for Windows' ,
84
+ url: ' https://github.com/naive-ui/naive-ui/releases' ,
85
+ version: ' 1.0.0' ,
86
+ },
87
+ {
88
+ title: ' macOS' ,
89
+ icon: ' iconoir:apple-mac' , // <Icon icon="iconoir:apple-mac" />
90
+ color: ' white' ,
91
+ dl: ' Download for macOS' ,
92
+ url: ' https://github.com/naive-ui/naive-ui/releases' ,
93
+ version: ' 1.0.0' ,
94
+ },
95
+ {
96
+ title: ' Linux' ,
97
+ icon: ' uil:linux' , // <Icon icon="uil:linux" />
98
+ color: ' orange' ,
99
+ dl: ' Download for Linux' ,
100
+ url: ' https://github.com/naive-ui/naive-ui/releases' ,
101
+ version: ' 1.0.0' ,
102
+ },
70
103
]
71
104
72
105
function download(url : string ) {
73
- const msg = ' downloading... ' + url
106
+ const msg = ' downloading... ' + url
74
107
75
- message .success (msg , {
76
- duration: 3000 ,
77
- })
108
+ message .success (msg , {
109
+ duration: 3000 ,
110
+ })
78
111
}
79
112
80
113
function info() {
81
- message .info (" I don't know why nobody told you how to unfold your love" , {
82
- keepAliveOnHover: true ,
83
- })
114
+ message .info (" I don't know why nobody told you how to unfold your love" , {
115
+ keepAliveOnHover: true ,
116
+ })
84
117
}
85
118
</script >
86
119
0 commit comments