# articlemanger-frontend
**Repository Path**: ww24kobe/articlemanger-frontend
## Basic Information
- **Project Name**: articlemanger-frontend
- **Description**: 后台前端页面
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-04-22
- **Last Updated**: 2024-04-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue后台文章管理系统课堂笔记
# 仓库地址:
后端:https://gitee.com/ww24kobe/article-manger-backend
前端:https://gitee.com/ww24kobe/articlemanger-frontend
# 封装附件管理组件
效果如下:

使用:
```
外部的checkID:{{ checkID }}
hello world
') // 获取内容 editor.getHtml() ``` - 工具栏配置 ``` data() { return { // 工具栏配置 toolbarConfig: { toolbarKeys: ['bold', '|'], // 显示哪些菜单 excludeKeys: ['italic'], // 排除哪些菜单 }, } }, ``` 获取所有的菜单key: ``` // 查看所有的配置菜单key console.log(this.editor.getAllMenuKeys()) ``` - 编辑区配置 ``` data() { return { // 编辑器配置 editorConfig: { placeholder: '请输入内容...', readOnly: false, maxLength: 20, }, } }, ``` 组件: ``` ``` ## 上传图片 ``` // 编辑器配置 editorConfig: { placeholder: '请输入内容...', readOnly: false, maxLength: 20, MENU_CONF: { lineHeight: ['1', '1.5', '2', '2.5', '3.5'], uploadImage: { server: 'http://127.0.0.1:3000/upload', fieldName: 'file', maxFileSize: 2 * 1024 * 1024, // 2m maxNumberOfFiles: 3, allowedFileTypes: ['image/*'], headers: { token: this.$store.state.token, }, onBeforeUpload(file) { console.log('上传之前') return file }, onSuccess(file, res) { console.log(`${file.name} 上传成功`, res) }, onError(file, err, res) { console.log(`${file.name} 上传出错`, err, res) }, customInsert(res, insertFn) { console.log('customInsert', res) let { path } = res path = 'http://127.0.0.1:3000/' + path insertFn(path) }, }, }, }, ``` # echart图表的基本使用 配置项:https://echarts.apache.org/zh/option.html#title ```js