diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index dc97a1e478313c75f5f9b85408cf5b9cd00247af..b8472b67058341331c646db19c8721213c2f5241 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -73,16 +73,4 @@ describe('component-native-textarea', () => { await page.waitFor(500) } }) - - it("confirm-type", async () => { - const inputmodeEnum = await page.data("confirm_type_enum") - for (var i = 0; i < inputmodeEnum.length; i++) { - var x = inputmodeEnum[i] - console.log(x['value'], x['name']) - await page.callMethod("radio_change_confirm_type_enum", x['value']); - await page.waitFor(500) - expect(await textarea.property("confirm-type")).toEqual(x['name']) - await page.waitFor(500) - } - }) }); diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 3ac2f94ccdf450d8ec3be1ed9c4609bbc0cccfb7..38c7ba2cf3c6d9b2b823d4d02effb17a1d2ff5e2 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -12,8 +12,6 @@ export default { auto_focus_boolean: false, default_value:"", maxlength:-1, - confirm_type_enum: [{"value":0,"name":"send"},{"value":1,"name":"search"},{"value":2,"name":"next"},{"value":3,"name":"go"},{"value":4,"name":"done"}] as ItemType[], - confirm_type_enum_current: 0, inputmode_enum: [{"value":0,"name":"none"},{"value":1,"name":"text"},{"value":2,"name":"decimal"},{"value":3,"name":"numeric"},{"value":4,"name":"tel"},{"value":5,"name":"search"},{"value":6,"name":"email"},{"value":7,"name":"url"}] as ItemType[], inputmode_enum_current: 0 } @@ -40,7 +38,6 @@ export default { change_confirm_hold_boolean(checked : boolean) { this.confirm_hold_boolean = checked }, change_focus_boolean(checked : boolean) { this.focus_boolean = checked }, change_auto_focus_boolean(checked : boolean) { this.auto_focus_boolean = checked }, - radio_change_confirm_type_enum(checked : number) { this.confirm_type_enum_current = checked }, radio_change_inputmode_enum(checked : number) { this.inputmode_enum_current = checked } } } @@ -53,7 +50,6 @@ export default { class="uni-textarea" :auto-focus="auto_focus_boolean" :focus="focus_boolean" - :confirm-type="confirm_type_enum[confirm_type_enum_current].name" :confirm-hold="confirm_hold_boolean" :auto-height="auto_height_boolean" :fixed="fixed_boolean" @@ -119,11 +115,6 @@ export default { title="自动获取焦点" @change="change_auto_focus_boolean" > -