Skip to content

Commit 1d4946e

Browse files
committed
line fixes
1 parent 3be85e7 commit 1d4946e

File tree

2 files changed

+42
-27
lines changed

2 files changed

+42
-27
lines changed

App.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<vn-view>
33
<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>
712
</vn-view>
813
</vn-view>
914
</template>

Hero.vue

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,44 @@
11
<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>
717
</template>
818

919
<script>
1020
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+
}
1828
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+
}
2434
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;
3139
}
40+
`
3241
}
42+
}
3343
}
34-
</script>
44+
</script>

0 commit comments

Comments
 (0)