From 5180b4b5186918b26b52605d8ca689c5f4c52975 Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Tue, 7 May 2024 16:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=B4=E9=80=89=20textarea=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0confirm-type=E5=B1=9E=E6=80=A7=E7=9A=84?= =?UTF-8?q?=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 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 2bddb798..0312643a 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -13,8 +13,12 @@ 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[], - cursor_color: "#3393E2", - inputmode_enum_current: 0 + 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: "请输入" } }, @@ -40,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 } } } @@ -62,6 +67,7 @@ export default { :adjust-position="adjust_position_boolean" :cursor-color="cursor_color" :inputmode="inputmode_enum[inputmode_enum_current].name" + :confirm-type="confirm_type_list[confirm_type_current].name" :maxlength="maxlength" @click="textarea_click" @touchstart="textarea_touchstart" @@ -124,6 +130,11 @@ export default { :items="inputmode_enum" title="是一个枚举属性,它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。(仅限 Web 平台符合条件的高版本浏览器或webview)。" @change="radio_change_inputmode_enum" + > + -- GitLab