Skip to content

Commit 570803d

Browse files
committed
chore: demo
1 parent da7c13d commit 570803d

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

demo-vue/app/views/Home.vue

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,35 @@
33
<ActionBar title="Material Vue">
44
</ActionBar>
55
<GridLayout rows="auto,auto,auto,*">
6-
<HTMLLabel id="formattedText" padding="10 20 30 36" :autoFontSize="false" :autoFontSizeStep="4" maxFontSize="38" fontSize="30" maxLines="2" height="140" width="100%" :color="color" backgroundColor="blue" fontFamily="Montserrat,montserrat-regular">
7-
<Span :text="'collect' + '\n'"/>
8-
<Span :text="counter + ' '" color="red" fontWeight="bold" />
9-
<Span :text="'dabbas'"/>
10-
</HTMLLabel>
11-
<HTMLLabel class="test"
12-
row="1"
13-
padding="0 20 0 36"
14-
maxLines="2"
15-
verticalTextAlignment='center'
16-
height="140"
17-
fontSize="20"
18-
width="100%"
19-
backgroundColor="yellow"
20-
letterSpacing="-0.4"
21-
text="af"/>
22-
<StackLayout row="2" orientation="horizontal">
23-
<Button text="up" @tap="counter+=1"/>
24-
<Button text="color" @tap="color='green'"/>
25-
</StackLayout>
26-
<Button text="bottomsheet" @tap="showBottomSheet"/>
6+
<GridLayout rows="50, 50, 50, 50">
7+
<HTMLLabel text="This is a test" color="#ff0000" row="0"/>
8+
9+
<HTMLLabel html="This is a test" color="#ff0000" row="1"/>
10+
11+
<HTMLLabel
12+
:html="someBindedUrl"
13+
@linkTap="()=>{}"
14+
linkColor="#ff0000"
15+
linkUnderline="false"
16+
fontFamily="OpenSans"
17+
fontSize="16"
18+
margin="2 5 5 5"
19+
textWrap="true"
20+
row="2"
21+
></HTMLLabel>
22+
23+
<HTMLLabel
24+
:html="someBindedUrl"
25+
@linkTap="()=>{}"
26+
linkColor="#ff0000"
27+
fontFamily="OpenSans"
28+
fontSize="16"
29+
margin="2 5 5 5"
30+
textWrap="true"
31+
row="3"
32+
></HTMLLabel>
33+
</GridLayout>
34+
2735
<ListView row="3" ref="listView" itemRowHeight="80" for="example in examples" separatorColor="transparent" @itemTap="goToExample">
2836
<v-template>
2937
<StackLayout class="item" orientation="horizontal">
@@ -45,6 +53,7 @@ export default Vue.extend({
4553
data() {
4654
return {
4755
counter:0,
56+
someBindedUrl: '<a href=\"https://youtube.com\">Open Youtube.com</a>',
4857
color:'yellow',
4958
examples: getExamples()
5059
};

0 commit comments

Comments
 (0)