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

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

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