File tree 2 files changed +42
-27
lines changed
2 files changed +42
-27
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<vn-view >
3
3
<hero />
4
- <vn-view id =" counter" :styleSheet =" counterStyle" >
5
- <vn-text >Counter: {{count}}</vn-text >
6
- <vn-button @clicked =" inc" >Inc</vn-button >
4
+ <vn-view
5
+ id =" counter"
6
+ :styleSheet =" counterStyle"
7
+ >
8
+ <vn-text >Counter: {{ count }}</vn-text >
9
+ <vn-button @clicked =" inc" >
10
+ Inc
11
+ </vn-button >
7
12
</vn-view >
8
13
</vn-view >
9
14
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <vn-view id =" hero" :styleSheet =" viewStyle" >
3
- <vn-image id =" img" src =" https://docs.nodegui.org/img/logox200.png" />
4
- <vn-text id =" heading" >Vue nodegui</vn-text >
5
- <vn-text id =" text" >Powered by Vue3 🌈 and Qt 💚</vn-text >
6
- </vn-view >
2
+ <vn-view
3
+ id =" hero"
4
+ :styleSheet =" viewStyle"
5
+ >
6
+ <vn-image
7
+ id =" img"
8
+ src =" https://docs.nodegui.org/img/logox200.png"
9
+ />
10
+ <vn-text id =" heading" >
11
+ Vue nodegui
12
+ </vn-text >
13
+ <vn-text id =" text" >
14
+ Powered by Vue3 🌈 and Qt 💚
15
+ </vn-text >
16
+ </vn-view >
7
17
</template >
8
18
9
19
<script >
10
20
export default {
11
- setup () {
12
- return {
13
- viewStyle: `
14
- #hero {
15
- background-color: white;
16
- padding: 20px;
17
- }
21
+ setup () {
22
+ return {
23
+ viewStyle: `
24
+ #hero {
25
+ background-color: white;
26
+ padding: 20px;
27
+ }
18
28
19
- #heading {
20
- color: black;
21
- font-size: 24px;
22
- qproperty-alignment: AlignCenter;
23
- }
29
+ #heading {
30
+ color: black;
31
+ font-size: 24px;
32
+ qproperty-alignment: AlignCenter;
33
+ }
24
34
25
- #text {
26
- color: black;
27
- font-size: 18px;
28
- qproperty-alignment: AlignCenter;
29
- }
30
- `
35
+ #text {
36
+ color: black;
37
+ font-size: 18px;
38
+ qproperty-alignment: AlignCenter;
31
39
}
40
+ `
32
41
}
42
+ }
33
43
}
34
- </script >
44
+ </script >
You can’t perform that action at this time.
0 commit comments