欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vue - props 聲明數(shù)組和對象操作

 更新時(shí)間:2020年07月30日 11:42:51   作者:idomyway  
這篇文章主要介紹了vue - props 聲明數(shù)組和對象操作,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧

我就廢話不多說了,大家還是直接看代碼吧~

props: {
  array: {
    type: Array,
    default () {
      return []
    }
  },
  object: {
    type: Object,
    default () {
      return {}
    }
  }
}

補(bǔ)充知識:Vue項(xiàng)目中,要保證某個(gè)部分的高度,應(yīng)該怎么設(shè)置

看代碼吧~

.icons
  overflow: hidden
  height: 0
  padding-bottom: 50%
  background: green

以上這篇vue - props 聲明數(shù)組和對象操作就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論