目录一、前言介绍 二、需求分析2.1系统功能结构 2.2功能模块设计三、系统详细设计3.1系统登录界面 3.2用户首页模块 3.3参与投票模块四、管理员功能模块4.1主界面如下图所示 4.2用户管理
顺晟科技
2021-08-04 10:53:26
307
cnpm i vue-ueditor-wrap -S
下载最新的 UEditor 资源文件放入你项目的静态资源目录中(比如 static 或者 public,这取决于你项目的配置)。
VueUeditorWrap
组件import VueUeditorWrap from \'vue-ueditor-wrap\'
components: { VueUeditorWrap } // 或者在 main.js 里将它注册为全局组件 Vue.component(\'vue-ueditor-wrap\', VueUeditorWrap)
v-model
绑定数据<vue-ueditor-wrap v-model="msg"></vue-ueditor-wrap>
<template> <div class="hello"> <vue-ueditor-wrap ref="ueditor" v-model="msg" :destroy="false" :config="config" style="width: 600px;margin: 0 auto;"></vue-ueditor-wrap> <button @click="showData" class="preview">保存内容</button> </div> </template> <script> import VueUeditorWrap from \'vue-ueditor-wrap\' // ES6 Module export default { name: \'HelloWorld\', components: { VueUeditorWrap }, data () { return { msg: \'请输入内容\', config: { // 编辑器不自动被内容撑高 autoHeightEnabled: true, // 初始容器高度 initialFrameHeight: 240, elementPathEnabled: false, wordCount: false, enableAutoSave: false, // 初始容器宽度 initialFrameWidth: \'\', serverUrl: \'\' } } }, mounted () { }, methods: { showData () { console.log(this.msg) } } } </script>
详细的配置可参考UEditor富文本编辑器官网。
19
2022-10
23
2022-09
23
2022-09
13
2022-09
13
2022-09
13
2022-09