From b253d319ed8627698f16c0a1265f5ccd25858a6c Mon Sep 17 00:00:00 2001 From: lancer <591320480@qq.com> Date: Mon, 18 Jul 2022 16:30:30 +0800 Subject: [PATCH] Description: edittext component IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5AD4A Feature or Bugfix: Feature Binary Source:No Signed-off-by: lancer --- ace-loader/plugin/templater/component_validator.js | 2 +- ace-loader/plugin/templater/lite_component_map.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ace-loader/plugin/templater/component_validator.js b/ace-loader/plugin/templater/component_validator.js index 93ca88b..becd803 100644 --- a/ace-loader/plugin/templater/component_validator.js +++ b/ace-loader/plugin/templater/component_validator.js @@ -656,7 +656,7 @@ function inputLite(tagName, domNodeAttrs, domNodeAttrName, log, nodeLoc) { } function isMatchChange(typeValue, nodeAttrName) { - return !['checkbox', 'radio'].includes(typeValue) && (nodeAttrName.includes('onchange') || nodeAttrName.includes('@change')) + return !['checkbox', 'password', 'radio', 'text'].includes(typeValue) && (nodeAttrName.includes('onchange') || nodeAttrName.includes('@change')) } function ismatchIfAndFor(nodeAttrName) { diff --git a/ace-loader/plugin/templater/lite_component_map.js b/ace-loader/plugin/templater/lite_component_map.js index 3d7089c..fd59686 100644 --- a/ace-loader/plugin/templater/lite_component_map.js +++ b/ace-loader/plugin/templater/lite_component_map.js @@ -212,10 +212,14 @@ const litewearableTag = { enum: ['false', 'true'], }, type: { - enum: ['button', 'checkbox', 'radio'], + enum: ['button', 'checkbox', 'password', 'radio', 'text'], }, name: {}, value: {}, + placeholder: {}, + maxlength: { + checkFunc: 'number', + }, }, }, 'slider': {