@hook 父组件监听子组件的生命周期方法

  1. //父组件中这样写
  2. <GroupTitle
  3. :value="40"
  4. @hook:mounted="handleChildMounted"
  5. />
  6. // 子组件中不用写东西
  7. mounted () {
  8. },
  1. computed:{
  2. fvalue(){
  3. return this.fpplaceholder
  4. },
  5. tvalue(){
  6. return this.tplaceholder
  7. }
  8. },