当前位置:网站首页>one billion two hundred and twelve million three hundred and twelve thousand three hundred and twenty-one

one billion two hundred and twelve million three hundred and twelve thousand three hundred and twenty-one

2022-06-26 05:34:00 Beyond Xiaoming

 Parent component :
computed: {
    

showFooter() {
    
      return (this.componentName === 'firstLink' && !this.hideBtn) || this.componentName === 'survey' || (this.componentName === 'form' && !this.disabled);
    },
}

methods: {
    
     //  How to make this showFooter  Received this this.hideBtn The value changes ?
      showBtn(params) {
    
      if (params) {
    
        this.$set(this, 'hideBtn', true);
      } else {
    
        this.$set(this, 'hideBtn', false);
      }
    },
}

 From the sub assembly 
contactVisible(newVal) {
    
      this.$emit('showBtn', newVal);
  }
原网站

版权声明
本文为[Beyond Xiaoming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260526302156.html