给vue组件传递对象或是数组

给vue组件传递对象或是数组,参考下面语法:

props: {
            prop_object: {
                type: Object,
                default: () => ({}) 
            },
            prop_array: {
                type: Array,
                default: () => []
            }
        }
Source Code
原文地址:https://www.cnblogs.com/insus/p/14432114.html