fix(core): type collisions with namespace (#8809)

This commit is contained in:
Nathan Walker
2021-02-25 21:03:07 -08:00
parent a67fb69687
commit 733050995c
110 changed files with 1882 additions and 1827 deletions

View File

@@ -6,7 +6,6 @@ The following CSS rule changes the font size of all UI
components that have the btn class name.
*/
.btn-view-demo {
font-size: 18;
background-color: #65ADF1;
border-radius: 5;
font-size: 17;

View File

@@ -1,6 +1,6 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="Dev Toolbox" icon="" class="action-bar">
<ActionBar title="Box Shadow" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>
@@ -16,7 +16,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
>
<Label text="StackLayout"></Label>
@@ -29,7 +29,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
>
<Label text="GridLayout"></Label>
@@ -42,7 +42,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
>
<Label text="AbsoluteLayout"></Label>
@@ -55,7 +55,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
>
<Label text="DockLayout"></Label>
@@ -68,7 +68,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
>
<Label text="FlexboxLayout"></Label>
@@ -90,7 +90,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
text="Label"></Label>
@@ -109,7 +109,7 @@
boxShadow="{{ appliedBoxShadow }}"
borderWidth="{{ borderWidth }}"
borderRadius="{{ borderRadius }}"
background="{{ background }}"
backgroundColor="{{ background }}"
tap="{{ toggleAnimation }}"
text="button"
></Button>

View File

@@ -1,4 +1,4 @@
import { Observable, Frame } from '@nativescript/core';
import { Observable, Frame, StackLayout } from '@nativescript/core';
export class HelloWorldModel extends Observable {
viewDemo(args) {

View File

@@ -1,5 +1,5 @@
import { EventData, Page, Observable, RootLayoutOptions, getRootLayout, StackLayout, View } from '@nativescript/core';
import { AnimationCurve } from '@nativescript/core/ui/enums';
import { Enums } from '@nativescript/core';
export function navigatingTo(args: EventData) {
const page = <Page>args.object;
@@ -78,7 +78,7 @@ export class BoxShadowModel extends Observable {
rotate: 180,
opacity: 0,
duration: 300,
curve: AnimationCurve.spring,
curve: Enums.AnimationCurve.spring,
},
},
},

View File

@@ -1,6 +1,6 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="Dev Toolbox" icon="" class="action-bar">
<ActionBar title="RootLayout" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>