npm i -D floor-structure
1、在main.js中注册组件
import floorStructure from "floor-structure"; import "floor-structure/floor-structure.css"; Vue.use(floorStructure);
2、 在指定容器中引入组件
<template> <floor-structure> <!-- 你的内容 --> </floor-structure> </template>