JavaScript/vue.js/props

来自康健生活

引言

props 接收值的时候需要定义默认格式,eq:

  props: {
    hotAnswerList: {
      type: Array,
      default: () => []
    }
  }