From 2699c4c00323563fd15717830ded34135ae91cc5 Mon Sep 17 00:00:00 2001 From: LiAn Date: Mon, 25 Jul 2022 08:22:47 +0000 Subject: [PATCH] update zh-cn/application-dev/ui/ui-js-components-input.md. Signed-off-by: LiAn --- zh-cn/application-dev/ui/ui-js-components-input.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/ui/ui-js-components-input.md b/zh-cn/application-dev/ui/ui-js-components-input.md index a94be31635..cd79ee5c45 100644 --- a/zh-cn/application-dev/ui/ui-js-components-input.md +++ b/zh-cn/application-dev/ui/ui-js-components-input.md @@ -10,7 +10,7 @@ Input是交互式组件,用于接收用户数据。其类型可设置为日期 ```
- Please enter the content + Please enter the content
``` @@ -212,9 +212,9 @@ import prompt from '@system.prompt' }, buttonClick(e){ if(this.value.length > 6){ - this.$element("input").showError({ error: 'Up to 6 characters are allowed.' }); + this.$element("input").showError({error: 'Up to 6 characters are allowed.'}); }else if(this.value.length == 0){ - this.$element("input").showError({ error:this.value + 'This field cannot be left empty.' }); + this.$element("input").showError({error:this.value + 'This field cannot be left empty.'}); }else{ prompt.showToast({ message: "success " @@ -318,4 +318,4 @@ export default { 针对Input开发,有以下相关实例可供参考: -- [input、label(JS)](https://gitee.com/openharmony/codelabs/tree/master/JSUI/InputApplication) +- [input、label(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/JSUI/InputApplication) -- GitLab