vue 组件继承方法

var childComponent = Vue.extend(
    {
        extends: baseComp, // 继承基础组件方法
        template:template,
        waitTimeLeft:0,
        waitTimer:null,
        created:function(){
        },
        methods:{
            baseCompHandel(){ // 父组件统一调用
                alert('baseCompHandel')
            },
        },
        data:function(){}
    }
)

 



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-11-02
相关资源
相似解决方案