|
1 | 1 | <template> |
2 | 2 | <Page> |
3 | 3 | <StackLayout> |
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" > |
| 4 | + <!-- <canvaslabel backgroundColor="red" rippleColor="green" borderRadius="10" paddingTop="0" height="80" widht="80" color="black"> |
| 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="end" color="red"> |
| 11 | + <CGroup> |
| 12 | + <cspan :text="'this is a tesxt to test lineBreak' +'\n' +'test'" fontSize="12" color="blue"/> |
| 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" color="black"> |
17 | 17 | <span text="this is a tesxt to test lineBreak" fontSize="12" /> |
18 | 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"> |
| 19 | + </label> |
| 20 | + <HTMLLabel backgroundColor="blue" rippleColor="green" borderRadius="10" paddingTop="0" height="80" width="80" lineBreak="end" maxLines="4" color="black"> |
21 | 21 | <span text="this is a tesxt to test lineBreak" fontSize="12" /> |
22 | 22 | <span :text="'\n' + 'another piece of text which is going to be ellipsized'" fontSize="16" /> |
23 | | - </HTMLLabel> |
24 | | - |
| 23 | + </HTMLLabel> |
25 | 24 | </StackLayout> |
26 | 25 | </Page> |
27 | 26 | </template> |
@@ -64,7 +63,7 @@ export default { |
64 | 63 | return { |
65 | 64 | mdiFontFamily: 'materialdesignicons-webfont,Material Design Icons', |
66 | 65 | itemList: items, |
67 | | - item:null |
| 66 | + item: null |
68 | 67 | }; |
69 | 68 | }, |
70 | 69 | methods: { |
|
0 commit comments