1. vue init webpack torow-notes (vue-cli 脚手架安装)
2. cd torow-notes
npm run dev (运行项目)
3. npm install --save iview (安装iview)
4. 在main.js 中导入iview
import iView from 'iview'
import 'iview/dist/styles/iview.css'
Vue.use(iView)
5. 富文本编辑器mavon-editor(按需安装)
npm install mavon-editor --save
main.js 中添加
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)
网友评论