一、UI框架
成都創(chuàng)新互聯(lián)長期為上千余家客戶提供的網(wǎng)站建設服務,團隊從業(yè)經(jīng)驗10年,關注不同地域、不同群體,并針對不同對象提供差異化的產品和服務;打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為新城企業(yè)提供專業(yè)的成都網(wǎng)站設計、成都做網(wǎng)站,新城網(wǎng)站改版等技術服務。擁有10年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。
推薦 Elemnet ui
二、圖表
vue-schart
npm install vue-schart -S
<template> <div id="app"> <schart :canvasId="canvasId" :type="type" :width="width" :height="height" :data="data" :options="options" ></schart> </div> </template> <script> import Schart from 'vue-schart'; export default { data() { return { canvasId: 'myCanvas', type: 'bar', width: 500, height: 400, data: [ {name: '2014', value: 1342}, {name: '2015', value: 2123}, {name: '2016', value: 1654}, {name: '2017', value: 1795}, ], options: { title: 'Total sales of stores in recent years' } } }, components:{ Schart } } </script>
三、富文本編輯器
vue-quill-editor
npm install vue-quill-editor
npm install quill
import Vue from 'vue' import VueQuillEditor from 'vue-quill-editor' import 'quill/dist/quill.core.css' import 'quill/dist/quill.snow.css' import 'quill/dist/quill.bubble.css' Vue.use(VueQuillEditor) <template> <div class="edit_container"> <quill-editor v-model="content" ref="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"> </quill-editor> <button v-on:click="saveHtml">保存</button> </div> </template> <script> export default { name: 'App', data(){ return { content: `<p>hello world</p>`, editorOption: {} } },computed: { editor() { return this.$refs.myQuillEditor.quill; }, },methods: { onEditorReady(editor) { // 準備編輯器 }, onEditorBlur(){}, // 失去焦點事件 onEditorFocus(){}, // 獲得焦點事件 onEditorChange(){}, // 內容改變事件 saveHtml:function(event){ alert(this.content); } } } </script> <style> #app { font-family: 'Avenir', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } </style>
四、markdown編輯器
npm install mavon-editor --save
<template> <div> <mavon-editor ref="editor" v-model="doc"> </mavon-editor> </div> </template> <script> import {mavonEditor} from "mavon-editor"; import "mavon-editor/dist/css/index.css"; export default { name: "Create", components: {mavonEditor}, data(){ return { doc: '', } } } </script>
總結
以上所述是小編給大家介紹的Vue搭建后臺系統(tǒng)需要注意的問題,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對創(chuàng)新互聯(lián)網(wǎng)站的支持!
如果你覺得本文對你有幫助,歡迎轉載,煩請注明出處,謝謝!
本文題目:Vue搭建后臺系統(tǒng)需要注意的問題
網(wǎng)站地址:http://bm7419.com/article22/igddcc.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、商城網(wǎng)站、企業(yè)網(wǎng)站制作、網(wǎng)站建設、靜態(tài)網(wǎng)站、動態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)