From a3ee0ce8e9538698bc2bb7f9d0c57f3f32c06c5e Mon Sep 17 00:00:00 2001 From: taohebin Date: Wed, 13 Dec 2023 15:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20textarea=E5=8E=BB=E6=8E=89confirm-type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/textarea/textarea.test.js | 12 ------------ pages/component/textarea/textarea.uvue | 9 --------- 2 files changed, 21 deletions(-) diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index dc97a1e4..b8472b67 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 3ac2f94c..38c7ba2c 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" > -