mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import { Button as ButtonDefinition } from ".";
|
||||
import { TextBase } from "../text-base";
|
||||
import { CSSType } from "../core/view";
|
||||
import { booleanConverter } from "../core/view-base";
|
||||
import { Button as ButtonDefinition } from '.';
|
||||
import { TextBase } from '../text-base';
|
||||
import { CSSType } from '../core/view';
|
||||
import { booleanConverter } from '../core/view-base';
|
||||
|
||||
@CSSType("Button")
|
||||
@CSSType('Button')
|
||||
export abstract class ButtonBase extends TextBase implements ButtonDefinition {
|
||||
public static tapEvent = "tap";
|
||||
public static tapEvent = 'tap';
|
||||
|
||||
get textWrap(): boolean {
|
||||
return this.style.whiteSpace === "normal";
|
||||
}
|
||||
set textWrap(value: boolean) {
|
||||
if (typeof value === "string") {
|
||||
value = booleanConverter(value);
|
||||
}
|
||||
get textWrap(): boolean {
|
||||
return this.style.whiteSpace === 'normal';
|
||||
}
|
||||
set textWrap(value: boolean) {
|
||||
if (typeof value === 'string') {
|
||||
value = booleanConverter(value);
|
||||
}
|
||||
|
||||
this.style.whiteSpace = value ? "normal" : "nowrap";
|
||||
}
|
||||
this.style.whiteSpace = value ? 'normal' : 'nowrap';
|
||||
}
|
||||
}
|
||||
|
||||
ButtonBase.prototype.recycleNativeView = "auto";
|
||||
ButtonBase.prototype.recycleNativeView = 'auto';
|
||||
|
||||
Reference in New Issue
Block a user