mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): type collisions with namespace (#8809)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { Label as LabelDefinition } from '.';
|
||||
import { TextBase, WhiteSpace, whiteSpaceProperty } from '../text-base';
|
||||
import { TextBase, whiteSpaceProperty } from '../text-base';
|
||||
import { profile } from '../../profiling';
|
||||
import { CSSType } from '../core/view';
|
||||
import { booleanConverter } from '../core/view-base';
|
||||
import { Enums } from '../enums';
|
||||
|
||||
export * from '../text-base';
|
||||
|
||||
@@ -40,7 +41,7 @@ export class Label extends TextBase implements LabelDefinition {
|
||||
textView.setEllipsize(android.text.TextUtils.TruncateAt.END);
|
||||
}
|
||||
|
||||
[whiteSpaceProperty.setNative](value: WhiteSpace) {
|
||||
[whiteSpaceProperty.setNative](value: Enums.WhiteSpaceType) {
|
||||
// Label initial value is no-wrap. set in initNativeView
|
||||
const newValue = value === 'initial' ? 'nowrap' : value;
|
||||
super[whiteSpaceProperty.setNative](newValue);
|
||||
|
||||
Reference in New Issue
Block a user