提交 277609ba 编写于 作者: X xiaoyucoding

Merge branch 'dev' of github.com:dcloudio/uni-app into dev

...@@ -27,9 +27,13 @@ export default { ...@@ -27,9 +27,13 @@ export default {
name: 'uni://form-field', name: 'uni://form-field',
init (options, vm) { init (options, vm) {
if ( if (
!vm.constructor.options.props.name || !vm.constructor.options.props ||
!vm.constructor.options.props.name ||
!vm.constructor.options.props.value !vm.constructor.options.props.value
) { // 未初始化 props ) { // 未初始化 props
if (!vm.constructor.options.props) {
vm.constructor.options.props = {}
}
if (!vm.constructor.options.props.name) { if (!vm.constructor.options.props.name) {
vm.constructor.options.props.name = options.props.name = { vm.constructor.options.props.name = options.props.name = {
type: String type: String
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册