mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
refactor(Common): adjust props type (#2842)
This commit is contained in:
parent
25705fdee5
commit
3a52bb0ba0
@ -101,6 +101,15 @@ function VantComponent<Data, Props, Methods>(
|
|||||||
options.behaviors.push('wx://form-field');
|
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
|
// add default options
|
||||||
options.options = {
|
options.options = {
|
||||||
multipleSlots: true,
|
multipleSlots: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user