diff --git a/package.json b/package.json index 8fd1a0eb6449e5c801032a92d6aa4431770e5888..2e39bb16e44587f9dcacdc1cf7cfc23d56c51f6c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@form-create/element-ui": "^3.1.17", "@iconify/iconify": "^3.1.0", "@videojs-player/vue": "^1.0.0", + "@vueup/vue-quill": "^1.1.1", "@vueuse/core": "^9.13.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.10", diff --git a/src/views/mp/components/wx-editor/WxEditor.vue b/src/views/mp/components/wx-editor/WxEditor.vue new file mode 100644 index 0000000000000000000000000000000000000000..e5082d9c2343c47914cb9eddc437105a73b376b3 --- /dev/null +++ b/src/views/mp/components/wx-editor/WxEditor.vue @@ -0,0 +1,229 @@ + + + + + + + + + + + + + diff --git a/src/views/mp/components/wx-editor/options.js b/src/views/mp/components/wx-editor/options.js new file mode 100644 index 0000000000000000000000000000000000000000..c44888855e3b9ded1847ea17df08b86785e64160 --- /dev/null +++ b/src/views/mp/components/wx-editor/options.js @@ -0,0 +1,16 @@ +export const toolbarOptions = [ + ['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线 + ['blockquote', 'code-block'], // 引用 代码块 + [{ header: 1 }, { header: 2 }], // 1、2 级标题 + [{ list: 'ordered' }, { list: 'bullet' }], // 有序、无序列表 + [{ script: 'sub' }, { script: 'super' }], // 上标/下标 + [{ indent: '-1' }, { indent: '+1' }], // 缩进 + // [{'direction': 'rtl'}], // 文本方向 + [{ size: ['small', false, 'large', 'huge'] }], // 字体大小 + [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题 + [{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色 + [{ font: [] }], // 字体种类 + [{ align: [] }], // 对齐方式 + ['clean'], // 清除文本格式 + ['link', 'image', 'video'] // 链接、图片、视频 +] diff --git a/src/views/mp/draft/index.vue b/src/views/mp/draft/index.vue index 497f72ec1bed5c413a670537b1f68a1e386fd31c..c025e27a473254a45945570598c6e334326f1f35 100644 --- a/src/views/mp/draft/index.vue +++ b/src/views/mp/draft/index.vue @@ -1,3 +1,835 @@ - 开发中 + + + + + + + + + + + + 搜索 + 重置 + + + + + + + 新增 + + + + + + + + + + + + + 发布 + + + + + + + + + + + + + + + + + + + {{ news.title }} + + + 下移 + 删除 + + + + + + {{ news.title }} + + + + + + 下移 + + 上移 + 删除 + + + + + + + + + + + + + + + + + + + + + + 封面和摘要: + + + + + + + + 本地上传 + + 素材库选择 + + 支持 bmp/png/jpeg/jpg/gif 格式,大小不超过 2M + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/mp/freePublish/index.vue b/src/views/mp/freePublish/index.vue index 565d2da5ec7b8de5779978d7c1ca86065b53dd6f..338b80c517ab38c3e04a4c1b49c75cb96f2eed97 100644 --- a/src/views/mp/freePublish/index.vue +++ b/src/views/mp/freePublish/index.vue @@ -21,8 +21,8 @@ - 搜索 - 重置 + 搜索 + 重置