mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
chore: Nx 12 + fix ui app + TS 4.1 updates (#9359)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { EventData, TextBase } from '@nativescript/core';
|
||||
import { EventData, TextBase, parseCSSShadow } from '@nativescript/core';
|
||||
|
||||
// prettier-ignore
|
||||
const possibleValues = [
|
||||
@ -22,10 +22,10 @@ export function buttonTap(args: EventData) {
|
||||
let newIndex = currentIndex++ % possibleValues.length;
|
||||
let newValue = possibleValues[newIndex];
|
||||
|
||||
lbl.textShadow = newValue;
|
||||
btn.textShadow = newValue;
|
||||
textField.textShadow = newValue;
|
||||
textView.textShadow = newValue;
|
||||
lbl.textShadow = parseCSSShadow(newValue);
|
||||
btn.textShadow = parseCSSShadow(newValue);
|
||||
textField.textShadow = parseCSSShadow(newValue);
|
||||
textView.textShadow = parseCSSShadow(newValue);
|
||||
|
||||
if (lbl.text === 'Change text') {
|
||||
lbl.text = btn.text = textField.text = textView.text = 'Text changed';
|
||||
|
Reference in New Issue
Block a user