1.组件封装

Vue——组件封装引用

2.页面复用

<template>
    <div>
        <!-- HTML引用组件 -->
        <Protograph></Protograph>
    </div>
</template>

<script>
    // JS引用文件(路径根据实际情况而定)
    import Protograph from "../pages/Protograph.vue";
    components: {
            Protograph: Protograph
        },
        data() {
            return {

            };
        },
        methods: {

        }
</script>

<style>
</style>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-12-19
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2019-01-07
  • 2021-04-21
  • 2022-12-23
  • 2021-08-14
  • 2021-10-28
  • 2021-09-29
相关资源
相似解决方案