From 685a97d9c8de5a05a52297eaacdfa1932afb4073 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 19 Jun 2019 16:43:22 +0800 Subject: [PATCH] fix(mp): uni://form-field props type #481 --- src/core/runtime/wrapper/util.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index 6f73dc4b3..1b82efcde 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -157,8 +157,14 @@ export function initBehaviors (vueOptions, initBehavior) { vueProps.push('name') vueProps.push('value') } else { - vueProps['name'] = String - vueProps['value'] = null + vueProps['name'] = { + type: String, + default: '' + } + vueProps['value'] = { + type: [String, Number, Boolean, Array, Object, Date], + default: '' + } } } }) -- GitLab