js: add h & v scroll bar enable for input

This commit is contained in:
王劲鹏
2021-07-29 16:29:01 +08:00
committed by osborn
parent fc28d3b90d
commit 729952fe2a
8 changed files with 297 additions and 41 deletions

View File

@@ -28,6 +28,8 @@ export declare class Input extends View {
editable?: boolean;
returnKeyType?: ReturnKeyType;
onSubmitEditing?: (text: string) => void;
enableHorizontalScrollBar?: boolean;
enableVerticalScrollBar?: boolean;
/**
* Called before text is changed
* @param editing: text already in box

View File

@@ -123,6 +123,14 @@ __decorate([
Property,
__metadata("design:type", Function)
], Input.prototype, "onSubmitEditing", void 0);
__decorate([
Property,
__metadata("design:type", Boolean)
], Input.prototype, "enableHorizontalScrollBar", void 0);
__decorate([
Property,
__metadata("design:type", Boolean)
], Input.prototype, "enableVerticalScrollBar", void 0);
__decorate([
Property,
__metadata("design:type", Function)