props接收参数定义

Posted 青袂婉梦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了props接收参数定义相关的知识,希望对你有一定的参考价值。

  props: {
    dzpImgList: {  //字符串
      type: String,
      default: ''
    },
    dzpImgList: {  //数值
      type: Number,
      default: 0
    },
    dzpImgList: {  //布尔值
      type: Boolean,
      default: true
    },
    dzpImgList: {  //数组
      type: Array,
      default: () => []
    },
    dzpImgList: {  //对象
      type: Object,
      default: () => ({})
    },
    dzpImgList: {  //方法
      type: Function,
      default: function () { }
    }
  },

以上是关于props接收参数定义的主要内容,如果未能解决你的问题,请参考以下文章