update demo

This commit is contained in:
pengfei.zhou
2020-06-13 11:58:24 +08:00
committed by osborn
parent 4a788eb4bb
commit 662909438b
9 changed files with 63 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ export declare class Input extends View {
export declare enum InputType {
Default = 0,
Number = 1,
NumberSigned = 2,
Decimal = 2,
Alphabet = 3,
Phone = 4
}

View File

@@ -60,6 +60,10 @@ let Input = /** @class */ (() => {
Property,
__metadata("design:type", String)
], Input.prototype, "hintText", void 0);
__decorate([
Property,
__metadata("design:type", Number)
], Input.prototype, "inputType", void 0);
__decorate([
Property,
__metadata("design:type", Color)
@@ -87,6 +91,14 @@ let Input = /** @class */ (() => {
return Input;
})();
export { Input };
export var InputType;
(function (InputType) {
InputType[InputType["Default"] = 0] = "Default";
InputType[InputType["Number"] = 1] = "Number";
InputType[InputType["Decimal"] = 2] = "Decimal";
InputType[InputType["Alphabet"] = 3] = "Alphabet";
InputType[InputType["Phone"] = 4] = "Phone";
})(InputType || (InputType = {}));
export function input(config) {
const ret = new Input;
ret.layoutConfig = layoutConfig().just();