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

31次阅读

共计 576 个字符,预计需要花费 2 分钟才能阅读完成。

<!--
 * @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…

正文完
 0