Skip to content

Commit ffa4b87

Browse files
author
farfromrefuge
committed
chore: demo
1 parent 5c34149 commit ffa4b87

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

demo-vue/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
compressionLevel: mixed

demo-vue/app/views/Home.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22
<Page>
33
<ActionBar title="Material Vue">
44
</ActionBar>
5-
<GridLayout>
6-
<ListView ref="listView" itemRowHeight="80" for="example in examples" separatorColor="transparent" @itemTap="goToExample">
5+
<GridLayout rows="auto,*">
6+
<StackLayout>
7+
<HTMLLabel :text="nativeText" backgroundColor='yellow'/>
8+
<HTMLLabel html='<span style="font-size:16;font-weight:bold">test</span><span style="color:red;font-size:14">hello</span>' backgroundColor='yellow'/>
9+
<HTMLLabel backgroundColor='pink'>
10+
<Span fontSize="16" fontWeight="bold" text="test"/>
11+
</HTMLLabel>
12+
<HTMLLabel fontSize="16" fontWeight="bold" text="test"/>
13+
<Label fontSize="16" fontWeight="bold" text="test"/>
14+
<Label text="test" fontWeight="bold" fontSize="16"/>
15+
</StackLayout>
16+
<ListView ref="listView" itemRowHeight="80" for="example in examples" separatorColor="transparent" @itemTap="goToExample" row="1">
717
<v-template>
818
<StackLayout class="item" orientation="horizontal">
9-
<Label :text="example.title" class="title" verticalAlignment="center" />
19+
<HTMLLabel fontSize="16" :text="example.title" verticalAlignment="center" />
1020
</StackLayout>
1121
</v-template>
1222
</ListView>
@@ -19,6 +29,9 @@ import Vue from 'vue';
1929
import BottomSheetInnerVue from './BottomSheetInner.vue';
2030
import { NativeScriptVue } from 'nativescript-vue';
2131
32+
import { createNativeAttributedString } from '@nativescript-community/ui-label';
33+
34+
2235
export default Vue.extend({
2336
name: 'Home',
2437
data() {

demo-vue/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'",
3131
"run.android.production": "devns run android --release --clean --key-store-path ./certs/upload.keystore --key-store-password nativescript --key-store-alias nativescript --key-store-alias-password nativescript",
3232
"run.android.timeline": "devns run android --config=nativescript.config.timeline.js --release --clean --key-store-path ./certs/upload.keystore --key-store-password nativescript --key-store-alias nativescript --key-store-alias-password nativescript --env.timeline"
33+
},
34+
"resolutions": {
35+
"@nativescript-community/text": "portal:/home/mguillon/dev/nativescript/text/packages/text"
3336
}
3437
}

0 commit comments

Comments
 (0)