vue prpos

匹配某些值中的一个

type: {
    validator: function(value) {
        return ["success", "warning", "danger"].includes(value);
    }
}

对象或数组默认值必须从一个工厂函数获取

list: {
    type: Array,
    default: () => []
}
posted @ 2019-04-18 10:07  conglvse  阅读(347)  评论(0编辑  收藏  举报