vue使用組件時,須要給傳遞的props屬性默認值細節

2019獨角獸企業重金招聘Python工程師標準>>> 數組 Vue.component('my-component', { props: { // 基礎的類型檢查 (`null` 匹配任何類型) propA: Number, // 多個可能的類型 propB: [String, Number], // 必填的字符串 propC: {
相關文章
相關標籤/搜索