当然按照步骤的引入的策略几乎和对应的react的逻辑是一样的;这一次需要加入一些新的东西;比如对应webpack5是否已经足够稳定去做一些事情了 ;typeScript是不是添加了代码量级;新的VUE的机制都需要哪些的新的耦合逻辑;
<template><div class="demo"></div></template><script lang="ts">import ThreeJs from "./index";import { defineComponent, onMounted } from "vue";export default defineComponent({name: "Demo01",props: {},setup() {onMounted(() => {new ThreeJs();});},});</script><style scoped lang="scss"></style>
