摘要:        
概念 mixin 混入:可以把多个组件共用的配置提取成一个混入对象 提取混入对象 export const hunhe={ methods:{ show(){ console.log('show'); } }, data(){ return{ age:12 } } } 注册混入,全局注册(只要注册了    阅读全文
posted @ 2022-11-03 20:29
Sherwin_szw
阅读(33)
评论(0)
推荐(0)
        
            
        
        
摘要:        
定义 props是组件间通信,父传子,自定义属性时,子组件间中接收父组件中传入的数据使用的配置项 主 <script> import New from './components/NewComponents.vue' export default{ components:{ New, }, data    阅读全文
posted @ 2022-11-03 16:47
Sherwin_szw
阅读(119)
评论(0)
推荐(0)
        
 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号