|
1 | 1 | <template>
|
2 | 2 | <Page>
|
3 | 3 | <StackLayout>
|
4 |
| - <CollectionView width="100%" height="50%" rowHeight="80" ref="listView" :items="itemList" @itemTap="onItemTap" itemIdGenerator="index"> |
5 |
| - <v-template> |
6 |
| - <GridLayout margin="4" borderRightWidth="20" borderRightColor="white" backgroundColor="darkgray"> |
7 |
| - <Label color="blue" fontSize="38" verticalAlignment="middle" paddingLeft="20" fontStyle="italic" textWrap> |
8 |
| - <Span :text="item.text1" fontWeight="bold" /> |
9 |
| - <Span :text="'\n' + item.text2" color="#ccc" fontSize="16" fontStyle="normal" /> |
10 |
| - <Span :text="item.text2" color="#eee" fontFamily="Lato-Regular" fontSize="16" fontStyle="normal" /> |
11 |
| - </Label> |
12 |
| - <Label color="white" fontSize="12" verticalAlignment="bottom" paddingLeft="20" paddingBottom="1" textWrap> |
13 |
| - <Span :text="item.icon1" fontSize="20" color="green" :fontFamily="mdiFontFamily" /> |
14 |
| - <Span :text="' ' + item.texticon1" verticalTextAlignment="center" /> |
15 |
| - <Span :text="' ' + item.icon2" fontSize="20" color="red" :fontFamily="mdiFontFamily" /> |
16 |
| - <Span :text="' ' + item.texticon2" verticalTextAlignment="center" /> |
17 |
| - <Span :text="' ' + item.icon3" fontSize="20" color="yellow" :fontFamily="mdiFontFamily" /> |
18 |
| - <Span :text="' ' + item.icon3" verticalTextAlignment="center" /> |
19 |
| - </Label> |
20 |
| - <Label fontSize="12" verticalAlignment="middle" horizontalAlignment="center" textAlignment="right" paddingRight="20" color="brown" width="60" textWrap> |
21 |
| - <span :text="item.icon1" fontSize="14" :fontFamily="mdiFontFamily" /> |
22 |
| - <Span :text="'\n' + item.texticon1" paddingRight="10" /> |
23 |
| - </Label> |
24 |
| - <Label fontFamily="arial" :text="item.text4" color="red" fontSize="14" textAlignment="right" paddingRight="20" paddingTop="4" verticalAlignment="center"/> |
25 |
| - </GridLayout> |
26 |
| - </v-template> |
27 |
| - </CollectionView> |
28 |
| - <CollectionView width="100%" height="50%" rowHeight="80" ref="listView" :items="itemList" @itemTap="onItemTap" itemIdGenerator="index"> |
29 |
| - <v-template> |
30 |
| - <GridLayout> |
31 |
| - <CanvasLabel id="canvaslabel" fontSize="10" color="white" backgroundColor="darkgray" margin="4" borderRightWidth="20" borderRightColor="white"> |
32 |
| - <CGroup id="group1" color="blue" fontSize="38" verticalAlignment="middle" paddingLeft="20" fontStyle="italic"> |
33 |
| - <CSpan id="text1" :text="item.text1" fontWeight="bold" /> |
34 |
| - <CSpan id="text2" :text="'\n' + item.text2" color="#ccc" fontSize="16" fontStyle="normal" /> |
35 |
| - <CSpan id="text3" :text="item.text2" color="#eee" fontFamily="Lato-Regular" fontSize="16" fontStyle="normal" /> |
36 |
| - </CGroup> |
37 |
| - <CGroup id="group2" fontSize="12" verticalAlignment="bottom" paddingLeft="20" paddingBottom="1"> |
38 |
| - <CSpan id="icon1" :text="item.icon1" fontSize="20" color="green" :fontFamily="mdiFontFamily" /> |
39 |
| - <CSpan id="texticon1" :text="' ' + item.texticon1" verticalTextAlignment="center" /> |
40 |
| - <CSpan id="icon2" :text="' ' + item.icon2" fontSize="20" color="red" :fontFamily="mdiFontFamily" /> |
41 |
| - <CSpan id="texticon2" :text="' ' + item.texticon2" verticalTextAlignment="center" /> |
42 |
| - <CSpan id="icon3" :text="' ' + item.icon3" fontSize="20" color="yellow" :fontFamily="mdiFontFamily" /> |
43 |
| - <CSpan id="icon3" :text="' ' + item.icon3" verticalTextAlignment="center" /> |
44 |
| - </CGroup> |
45 |
| - |
46 |
| - <CGroup id="group3" fontSize="12" verticalAlignment="middle" horizontalAlignment="center" textAlignment="right" paddingRight="20" color="brown" width="60"> |
47 |
| - <CSpan id="icon12" :text="item.icon1" fontSize="14" :fontFamily="mdiFontFamily" /> |
48 |
| - <CSpan id="texticon12" :text="'\n' + item.texticon1" paddingRight="10" /> |
49 |
| - </CGroup> |
50 |
| - <CSpan id="text4" fontFamily="arial" :text="item.text4" color="red" fontSize="14" textAlignment="right" paddingRight="20" paddingTop="4" verticalAlignment="center"/> |
51 |
| - <!-- <CGroup id="group1" fontSize="12" verticalAlignment="bottom" paddingLeft="20" paddingBottom="1" color="white" verticalTextAlignment="top"> |
52 |
| - <CSpan id="span1" text="test1" margin="2" backgroundColor="green" borderRadius="4" verticalTextAlignment="super" /> |
53 |
| - <CSpan id="span2" text="testtest2" backgroundColor="red" borderRadius="4" fontSize="24" /> |
54 |
| - <CGroup id="group2" backgroundColor="green" borderRadius="4"> |
55 |
| - <CSpan id="span3" text="mdi-access-point" fontSize="20" color="yellow" :fontFamily="mdiFontFamily" /> |
56 |
| - <CSpan id="span4" text="test2" margin="2" /> |
57 |
| - </CGroup> |
58 |
| - </CGroup> --> |
59 |
| - <!-- <CGroup> |
60 |
| - <CSpan fontSize="20" text="test1" margin="2" color="red" backgroundColor="green" borderRadius="10" @linkTap="onLinkTapped('test1')" /> |
61 |
| - </CGroup> --> |
62 |
| - <!-- <CSpan |
63 |
| - width="44" |
64 |
| - height="44" |
65 |
| - horizontalAlignment="right" |
66 |
| - verticalAlignment="bottom" |
67 |
| - textAlignment="center" |
68 |
| - verticalTextAlignment="center" |
69 |
| - text="mdi-access-point" |
70 |
| - fontSize="20" |
71 |
| - color="yellow" |
72 |
| - :fontFamily="mdiFontFamily" |
73 |
| - backgroundColor="blue" |
74 |
| - borderRadius="4" |
75 |
| - shadow="0 1 4 red" |
76 |
| - /> --> |
77 |
| - </CanvasLabel> |
78 |
| - </GridLayout> |
79 |
| - </v-template> |
80 |
| - </CollectionView> |
| 4 | + <canvaslabel backgroundColor="red" rippleColor="green" borderRadius="10" paddingTop="0" height="80" widht="80"> |
| 5 | + <CGroup verticalAlignment="middle" textAlignment="center"> |
| 6 | + <cspan :fontFamily="mdiFontFamily" text="mdi-cellphone-screenshot" fontSize="30" /> |
| 7 | + <cspan :text="'\n' + 'share screenshot'" fontSize="12" /> |
| 8 | + </CGroup> |
| 9 | + </canvaslabel> |
| 10 | + <canvaslabel backgroundColor="yellow" rippleColor="green" borderRadius="10" paddingTop="0" height="80" width="80" lineBreak="middle"> |
| 11 | + <CGroup> |
| 12 | + <cspan text="this is a tesxt to test lineBreak" fontSize="12" /> |
| 13 | + <cspan :text="'\n' + 'another piece of text which is going to be ellipsized'" fontSize="16" /> |
| 14 | + </CGroup> |
| 15 | + </canvaslabel> |
| 16 | + <label backgroundColor="green" rippleColor="green" borderRadius="10" paddingTop="0" height="80" width="80" lineBreak="end" > |
| 17 | + <span text="this is a tesxt to test lineBreak" fontSize="12" /> |
| 18 | + <span :text="'\n' + 'another piece of text which is going to be ellipsized'" fontSize="16" /> |
| 19 | + </label> |
| 20 | + <HTMLLabel backgroundColor="blue" rippleColor="green" borderRadius="10" paddingTop="0" height="80" width="80" lineBreak="end" maxLines="4"> |
| 21 | + <span text="this is a tesxt to test lineBreak" fontSize="12" /> |
| 22 | + <span :text="'\n' + 'another piece of text which is going to be ellipsized'" fontSize="16" /> |
| 23 | + </HTMLLabel> |
| 24 | + |
81 | 25 | </StackLayout>
|
82 | 26 | </Page>
|
83 | 27 | </template>
|
|
0 commit comments