feat:Input add password property
This commit is contained in:
@@ -2711,6 +2711,10 @@ var Input = /** @class */ (function (_super) {
|
||||
Property,
|
||||
__metadata$a("design:type", Number)
|
||||
], Input.prototype, "maxLength", void 0);
|
||||
__decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", Boolean)
|
||||
], Input.prototype, "password", void 0);
|
||||
return Input;
|
||||
}(View));
|
||||
(function (InputType) {
|
||||
|
@@ -2101,6 +2101,10 @@ __decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", Number)
|
||||
], Input.prototype, "maxLength", void 0);
|
||||
__decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", Boolean)
|
||||
], Input.prototype, "password", void 0);
|
||||
(function (InputType) {
|
||||
InputType[InputType["Default"] = 0] = "Default";
|
||||
InputType[InputType["Number"] = 1] = "Number";
|
||||
|
@@ -3590,6 +3590,10 @@ __decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", Number)
|
||||
], Input.prototype, "maxLength", void 0);
|
||||
__decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", Boolean)
|
||||
], Input.prototype, "password", void 0);
|
||||
(function (InputType) {
|
||||
InputType[InputType["Default"] = 0] = "Default";
|
||||
InputType[InputType["Number"] = 1] = "Number";
|
||||
|
1
doric-js/index.d.ts
vendored
1
doric-js/index.d.ts
vendored
@@ -744,6 +744,7 @@ declare module 'doric/lib/src/widget/input' {
|
||||
onTextChange?: (text: string) => void;
|
||||
onFocusChange?: (focused: boolean) => void;
|
||||
maxLength?: number;
|
||||
password?: boolean;
|
||||
getText(context: BridgeContext): Promise<string>;
|
||||
setSelection(context: BridgeContext, start: number, end?: number): Promise<string>;
|
||||
requestFocus(context: BridgeContext): Promise<any>;
|
||||
|
1
doric-js/lib/src/widget/input.d.ts
vendored
1
doric-js/lib/src/widget/input.d.ts
vendored
@@ -14,6 +14,7 @@ export declare class Input extends View {
|
||||
onTextChange?: (text: string) => void;
|
||||
onFocusChange?: (focused: boolean) => void;
|
||||
maxLength?: number;
|
||||
password?: boolean;
|
||||
getText(context: BridgeContext): Promise<string>;
|
||||
setSelection(context: BridgeContext, start: number, end?: number): Promise<string>;
|
||||
requestFocus(context: BridgeContext): Promise<any>;
|
||||
|
@@ -87,6 +87,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Number)
|
||||
], Input.prototype, "maxLength", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], Input.prototype, "password", void 0);
|
||||
export var InputType;
|
||||
(function (InputType) {
|
||||
InputType[InputType["Default"] = 0] = "Default";
|
||||
|
@@ -53,6 +53,9 @@ export class Input extends View {
|
||||
|
||||
@Property
|
||||
maxLength?: number
|
||||
|
||||
@Property
|
||||
password?: boolean
|
||||
|
||||
getText(context: BridgeContext) {
|
||||
return this.nativeChannel(context, 'getText')() as Promise<string>
|
||||
|
Reference in New Issue
Block a user