乐趣区

关于javascript:Day-78100-vue3-父组件调用子组件方法

<!--
 * @Author: ArdenZhao
 * @Date: 2022-05-31 16:32:38
 * @LastEditTime: 2022-06-01 18:28:40
 * @FilePath: /ocr/src/components/sum/DataSum.vue
 * @Description: file information
-->
<template>
 <projectProgress ref="projectProgressItem"></projectProgress>
</template>
<script lang="ts">
import {ref} from 'vue'

import projectProgress from './Process.vue'

export default defineComponent({
  components: {projectProgress},
  setup () {const projectProgressItem = ref(null)

    const loadData = () => {projectProgressItem.value.loadData()
    }

    return {projectProgressItem}
  }
})
</script>

写在最初的话

学习路上,经常会懈怠

《有想学技术须要监督的同学嘛~》
https://mp.weixin.qq.com/s/Fy…

退出移动版