js: font style for input

This commit is contained in:
王劲鹏
2023-01-12 11:09:22 +08:00
committed by osborn
parent 956cf7583e
commit 81c519dcdf
20 changed files with 1129 additions and 836 deletions

View File

@@ -21,6 +21,7 @@ export declare class Input extends View {
hintTextColor?: Color;
multiline?: boolean;
textAlignment?: Gravity;
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
onTextChange?: (text?: string) => void;
onFocusChange?: (focused: boolean) => void;
maxLength?: number;

View File

@@ -95,6 +95,10 @@ __decorate([
Property,
__metadata("design:type", Gravity)
], Input.prototype, "textAlignment", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Input.prototype, "fontStyle", void 0);
__decorate([
Property,
__metadata("design:type", Function)