Optimize SUI core to copy json-attr- to the prop in newJitComponentSel function

This commit is contained in:
Max 2024-07-27 10:14:13 +08:00
parent 40ecbde86b
commit 99a77fdd8e

View file

@ -266,6 +266,7 @@ func (parser *TemplateParser) parseElementComponent(sel *goquery.Selection) {
if _, exist := sel.Attr("json-attr-" + attr.Key); exist {
val = ValueJSON(attr.Val)
}
key = ToCamelCase(key)
props[key] = val
}
}