diff --git a/packages/common/component.ts b/packages/common/component.ts index fad853cd..82aafb9a 100644 --- a/packages/common/component.ts +++ b/packages/common/component.ts @@ -101,6 +101,15 @@ function VantComponent( options.behaviors.push('wx://form-field'); } + if (options.properties) { + Object.keys(options.properties).forEach(name => { + if (Array.isArray(options.properties[name])) { + // miniprogram do not allow multi type + options.properties[name] = null; + } + }); + } + // add default options options.options = { multipleSlots: true,