!317 新增edittext组件

Merge pull request !317 from 郝烁/master
This commit is contained in:
openharmony_ci
2022-08-09 03:32:58 +00:00
committed by Gitee
2 changed files with 6 additions and 2 deletions
@@ -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) {
@@ -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': {