提交 3e9a4485 编写于 作者: D DCloud_LXH

fix(mp): rewrite behaviors name/value #4257

上级 b3fdbba4
......@@ -59,13 +59,17 @@ function initDefaultProps(
if (options.behaviors) {
// wx://form-field
if (options.behaviors.includes('__GLOBAL__://form-field')) {
properties.name = {
type: null,
value: '',
if (!options.properties || !options.properties.name) {
properties.name = {
type: null,
value: '',
}
}
properties.value = {
type: null,
value: '',
if (!options.properties || !options.properties.value) {
properties.value = {
type: null,
value: '',
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册