From e43be9d6b5ddffdf3d9c7d89411a2b7f72e0ed40 Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Tue, 7 May 2024 16:03:36 +0800 Subject: [PATCH] =?UTF-8?q?textarea=E7=BB=84=E4=BB=B6=E6=B7=BB=E5=8A=A0con?= =?UTF-8?q?firm-type=E5=B1=9E=E6=80=A7=E7=9A=84=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/textarea/textarea.uvue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 18cab9f5..c0519222 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -13,9 +13,11 @@ export default { default_value:"1\n2\n3\n4\n5\n6", maxlength:-1, inputmode_enum: [{"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"},{"value":0,"name":"none"}] as ItemType[], + confirm_type_list: [{"value":0,"name":"return"},{"value":1,"name":"done"},{"value":2,"name":"send"},{"value":3,"name":"search"},{"value":4,"name":"next"},{"value":5,"name":"go"}] as ItemType[], cursor_color: "#3393E2", cursor: 0, inputmode_enum_current: 0, + confirm_type_current: 0, placeholder_value: "请输入" } }, @@ -42,7 +44,8 @@ export default { change_focus_boolean(checked : boolean) { this.focus_boolean = checked }, change_auto_focus_boolean(checked : boolean) { this.auto_focus_boolean = checked }, change_cursor_color_boolean(checked : boolean) { if(checked){ this.cursor_color = "transparent"} else {this.cursor_color = "#3393E2"}}, - radio_change_inputmode_enum(checked : number) { this.inputmode_enum_current = checked } + radio_change_inputmode_enum(checked : number) { this.inputmode_enum_current = checked }, + radio_change_confirm_type(checked : number) { this.confirm_type_current = checked } } } @@ -66,6 +69,7 @@ export default { :cursor="cursor" :placeholder="placeholder_value" :inputmode="inputmode_enum[inputmode_enum_current].name" + :confirm-type="confirm_type_list[confirm_type_current].name" :maxlength="maxlength" @click="textarea_click" @touchstart="textarea_touchstart" @@ -128,6 +132,11 @@ export default { :items="inputmode_enum" title="是一个枚举属性,它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。(仅限 Web 平台符合条件的高版本浏览器或webview)。" @change="radio_change_inputmode_enum" + > + -- GitLab