使用npm命令1.Element-UI安装命令npminstallelement-ui-SglobalreferenceimportVuefrom'vue';importAppfrom'./App.vue';importElementUIfrom'element-ui';import'element-ui/lib/theme-chalk/index.css';//useVue.use(ElementUI);newVue({el:'#app',render:h=>h(App)});使用组件参与官网:https://element.eleme.cn/#/zh-CN/component/installation2.mavonEditor安装命令npminstallmavon-editor--savereferenceimportVuefrom'vue'importmavonEditorfrom'mavon-inmain.jseditor'import'mavon-editor/dist/css/index.css'//useVue.use(mavonEditor)newVue({'el':'#main',data(){//这个data()可以不写return{value:''}}})组件被使用并放在页面上:
