From eaad94050218bc6bf61f74940331f5439233e6e0 Mon Sep 17 00:00:00 2001
From: panliang <1163816051@qq.com>
Date: Fri, 22 Sep 2023 09:46:23 +0800
Subject: [PATCH] add editor
---
public/nginx.conf | 5 +-
src/components/README.md | 85 +++
src/components/colorPicker.vue | 289 +++++++++++
src/components/cu-editor.vue | 245 +--------
src/components/robin-editor/editor-icon.css | 236 +++++++++
src/components/robin-editor/editor-icon.ttf | Bin 0 -> 12016 bytes
src/components/robin-editor/editor.vue | 488 ++++++++++++++++++
src/components/robin-editor/header.vue | 57 ++
src/components/uni-popup/uni-popup.vue | 273 ++++++++++
.../uni-transition/uni-transition.vue | 279 ++++++++++
src/package.json | 11 +
src/pages/index/welcome.vue | 4 +
src/pages/patient/form.vue | 6 +-
src/utils/request.js | 3 +
14 files changed, 1756 insertions(+), 225 deletions(-)
create mode 100644 src/components/README.md
create mode 100644 src/components/colorPicker.vue
create mode 100644 src/components/robin-editor/editor-icon.css
create mode 100644 src/components/robin-editor/editor-icon.ttf
create mode 100644 src/components/robin-editor/editor.vue
create mode 100644 src/components/robin-editor/header.vue
create mode 100644 src/components/uni-popup/uni-popup.vue
create mode 100644 src/components/uni-transition/uni-transition.vue
create mode 100644 src/package.json
diff --git a/public/nginx.conf b/public/nginx.conf
index fe21bdd..5dd0c44 100644
--- a/public/nginx.conf
+++ b/public/nginx.conf
@@ -1,4 +1,3 @@
-location ^~ /h5/ {
- root h5
- try_files $uri $uri/ /index.html
+location /h5 {
+ try_files $uri $uri/h5 /h5/index.html?$query_string;
}
\ No newline at end of file
diff --git a/src/components/README.md b/src/components/README.md
new file mode 100644
index 0000000..5ec0dcf
--- /dev/null
+++ b/src/components/README.md
@@ -0,0 +1,85 @@
+# 富文本编辑器插件
+uniapp 富文本编辑器插件
+
+## 兼容性
+|微信小程序|H5|APP|
+|:--:|:--:|:--:|
+|√|√ |x|
+
+## 使用方式
+在 `script` 中引用组件
+```js
+import myeditor from "@/components/robin-editor/editor.vue"
+export default {
+ components: {myeditor}
+}
+```
+在 `template` 中使用组件
+```html
+
+
+```
+
+## Demo
+https://github.com/health901/uniapp-editor-demo
+
+## 属性说明
+|属性|类型|默认值|说明|
+|--|--|--|--|
+|v-model|String| |富文本,双向绑定|
+|imageUploader|function(img,callback)| |上传图片处理函数 接受参数 img:本地图片地址,callback:上传成功回调传入图片链接|
+|muiltImage|Boolean|false|是否支持多图上传|
+|compressImage|Boolean|true|图片上传是否压缩|
+|previewMode|Boolean|false|预览模式,不可编辑|
+|autoHideToolbar|Boolean|false|失去焦点时自动隐藏工具栏|
+|tools|Array|['bold', 'italic', 'underline', 'strike', 'align-left', 'align-center', 'align-right', 'remove', 'font', 'color', 'backgroundColor','image', 'clear', 'preview']|工具栏|
+
+### 工具栏
+|名称|值|
+|--|--|
+|加粗|`bold`|
+|斜体|`italic`|
+|下划线|`underline`|
+|删除线|`strike`|
+|右对齐|`align-left`|
+|居中|`align-center`|
+|左对齐|`align-right`|
+|清除格式|`remove`|
+|字体大小|`font`|
+|字体颜色|`color`|
+|背景色|`backgroundColor`|
+|插入图片|`image`|
+|清空|`clear`|
+|预览|`preview`|
+|插入日期|`date`|
+|列表|`list-check`,`list-ordered`,`list-bullet`|
+|上下标|`sub`,`super`|
+|撤销,恢复撤销|`undo`,`redo`|
+|缩进|`indent`,`outdent`|
+|分割线|`divider`|
+|标题|`h1`,`h2`,`h3`,`h4`,`h5`,`h6`|
+|书写方向|`rtl`|
+
+## 事件说明
+|事件|说明|参数|
+|--|--|--|
+|cancel|点击取消按钮|
+|save|点击保存按钮|e={html,text,delta}|
+
+## 依赖
+|组件|链接|备注|
+|---|--|--|
+|Popup 弹出层[[1]](#注)|https://ext.dcloud.net.cn/plugin?id=329|uni-ui库|
+|Transition动画|https://ext.dcloud.net.cn/plugin?id=1231|uni-ui库,Popup依赖|
+|颜色选择器ColorPicker[[2]](#注)|https://ext.dcloud.net.cn/plugin?id=1237|字体颜色,背景色|
+
+
+## 注
+
+1. 修改:新增动画结束事件
+2. 修改:添加按钮,支持预设颜色值
diff --git a/src/components/colorPicker.vue b/src/components/colorPicker.vue
new file mode 100644
index 0000000..1a01304
--- /dev/null
+++ b/src/components/colorPicker.vue
@@ -0,0 +1,289 @@
+
+
+
+
+ {{ colorName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/cu-editor.vue b/src/components/cu-editor.vue
index 374ceb6..982367f 100644
--- a/src/components/cu-editor.vue
+++ b/src/components/cu-editor.vue
@@ -1,86 +1,19 @@
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
- {{ btn.name }}
-
- {{ item.name }}
-
-
-
-
-
-
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/components/robin-editor/editor-icon.css b/src/components/robin-editor/editor-icon.css
new file mode 100644
index 0000000..8e21561
--- /dev/null
+++ b/src/components/robin-editor/editor-icon.css
@@ -0,0 +1,236 @@
+@font-face {
+ font-family: "iconfont";
+ src: url('~./editor-icon.ttf') format('truetype');
+}
+
+.iconfont {
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-redo:before {
+ content: "\e627";
+}
+
+.icon-undo:before {
+ content: "\e633";
+}
+
+.icon-indent:before {
+ content: "\eb28";
+}
+
+.icon-outdent:before {
+ content: "\e6e8";
+}
+
+.icon-fontsize:before {
+ content: "\e6fd";
+}
+
+.icon-format-header-1:before {
+ content: "\e860";
+}
+
+.icon-format-header-4:before {
+ content: "\e863";
+}
+
+.icon-format-header-5:before {
+ content: "\e864";
+}
+
+.icon-format-header-6:before {
+ content: "\e865";
+}
+
+.icon-clearup:before {
+ content: "\e64d";
+}
+
+.icon-preview:before {
+ content: "\e631";
+}
+
+.icon-date:before {
+ content: "\e63e";
+}
+
+.icon-fontbgcolor:before {
+ content: "\e678";
+}
+
+.icon-clearedformat:before {
+ content: "\e67e";
+}
+
+.icon-font:before {
+ content: "\e684";
+}
+
+.icon-723bianjiqi_duanhouju:before {
+ content: "\e65f";
+}
+
+.icon-722bianjiqi_duanqianju:before {
+ content: "\e660";
+}
+
+.icon-text_color:before {
+ content: "\e72c";
+}
+
+.icon-format-header-2:before {
+ content: "\e75c";
+}
+
+.icon-format-header-3:before {
+ content: "\e75d";
+}
+
+.icon--checklist:before {
+ content: "\e664";
+}
+
+.icon-baocun:before {
+ content: "\ec09";
+}
+
+.icon-line-height:before {
+ content: "\e7f8";
+}
+
+.icon-quanping:before {
+ content: "\ec13";
+}
+
+.icon-direction-rtl:before {
+ content: "\e66e";
+}
+
+.icon-direction-ltr:before {
+ content: "\e66d";
+}
+
+.icon-selectall:before {
+ content: "\e62b";
+}
+
+.icon-fuzhi:before {
+ content: "\ec7a";
+}
+
+.icon-shanchu:before {
+ content: "\ec7b";
+}
+
+.icon-bianjisekuai:before {
+ content: "\ec7c";
+}
+
+.icon-fengexian:before {
+ content: "\ec7f";
+}
+
+.icon-dianzan:before {
+ content: "\ec80";
+}
+
+.icon-charulianjie:before {
+ content: "\ec81";
+}
+
+.icon-charutupian:before {
+ content: "\ec82";
+}
+
+.icon-wuxupailie:before {
+ content: "\ec83";
+}
+
+.icon-juzhongduiqi:before {
+ content: "\ec84";
+}
+
+.icon-yinyong:before {
+ content: "\ec85";
+}
+
+.icon-youxupailie:before {
+ content: "\ec86";
+}
+
+.icon-youduiqi:before {
+ content: "\ec87";
+}
+
+.icon-zitidaima:before {
+ content: "\ec88";
+}
+
+.icon-xiaolian:before {
+ content: "\ec89";
+}
+
+.icon-zitijiacu:before {
+ content: "\ec8a";
+}
+
+.icon-zitishanchuxian:before {
+ content: "\ec8b";
+}
+
+.icon-zitishangbiao:before {
+ content: "\ec8c";
+}
+
+.icon-zitibiaoti:before {
+ content: "\ec8d";
+}
+
+.icon-zitixiahuaxian:before {
+ content: "\ec8e";
+}
+
+.icon-zitixieti:before {
+ content: "\ec8f";
+}
+
+.icon-zitiyanse:before {
+ content: "\ec90";
+}
+
+.icon-zuoduiqi:before {
+ content: "\ec91";
+}
+
+.icon-zitiyulan:before {
+ content: "\ec92";
+}
+
+.icon-zitixiabiao:before {
+ content: "\ec93";
+}
+
+.icon-zuoyouduiqi:before {
+ content: "\ec94";
+}
+
+.icon-duigoux:before {
+ content: "\ec9e";
+}
+
+.icon-guanbi:before {
+ content: "\eca0";
+}
+
+.icon-shengyin_shiti:before {
+ content: "\eca5";
+}
+
+.icon-Character-Spacing:before {
+ content: "\e964";
+}
diff --git a/src/components/robin-editor/editor-icon.ttf b/src/components/robin-editor/editor-icon.ttf
new file mode 100644
index 0000000000000000000000000000000000000000..98af97e2f54fe81ca3efa2a4c8c9c207b866f4fd
GIT binary patch
literal 12016
zcmd^ldw5&Nb?2P9050Aj-V`a3coCFH@dbc@MM)&|@PmpZQ?e)~wqubdL5dPzqDWa*
zTnkRD#8zWRZk)7f8jF#wjS|HhZQN~}Cb8Js>G#EnAN5L3+@v;}$dI~0yiVI~94~RX
zzquEXNZDWd*!`p5R{&@3JkQLWIp@qd=YkPq%)+uvV$C<-*1hqZ^2{$8qZ?4W@z&d#
zV(U(B{{qVQp}f0)v~S{);fR$n{%4How+xNkJNVZx{MEM@GahCv@K1X)eFL6dp7ZEC
z2T1Nkg>j3n2Kny*B6~-t4qqBwSOC5YC|?>G@9%r}vy{Ym9m-RqeTOG#EBi9q%TW%D
z^^IoQcPYQa*s2lCIXW?ZaO#_7CqKnl{ZAQ_oD6H1vI|*ur*32cAKi$kS@Kz<)}S{1
zoGG}+vF?8}i38rU8{xJU`YCoer=@%?U7|WSn
zLhT29x(06?VCh_K{KcG9sJ~YJfIO)CTici5`;XBVOVR@beO7DB
z~(O#6>SOD9s$kpcRb1k`eu06Lc*P9#2jpYvK?$14#yOJwh
zUVZtam*2h8dnNPt1HV|AH|5>=`|^+HpUBVTPYb?XGIkHfjxHH{r#iO(>ewUsqu0h_
z1^=E8Vcm)1NhzT}%`;=B3k_ZBv(eg!{NLbf@xf(~WO$-JzBEn_xjXAV$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>g#-41*cX;ex6fF0S
zU+rK-UTriT8J-#*=o=pGGh&i)fmW^BH{91h?GTN{Rf#3oO64Ieaoj9QA~Q8?7g_Y!
zJKZPxsTd9qXQqbL+`WBc2Q$Va)8p4>ycbGi%u*aBa9Ge>T9b@^Ls+X}2vod#*nV&?
eXn;-ZIk*?oI5%Pcef?A5pxY+;`axus^ZzeJvrZrY
literal 0
HcmV?d00001
diff --git a/src/components/robin-editor/editor.vue b/src/components/robin-editor/editor.vue
new file mode 100644
index 0000000..6fc3273
--- /dev/null
+++ b/src/components/robin-editor/editor.vue
@@ -0,0 +1,488 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/robin-editor/header.vue b/src/components/robin-editor/header.vue
new file mode 100644
index 0000000..7153405
--- /dev/null
+++ b/src/components/robin-editor/header.vue
@@ -0,0 +1,57 @@
+
+
+ {{labelCancel}}
+ {{labelConfirm}}
+
+
+
+
+
+
diff --git a/src/components/uni-popup/uni-popup.vue b/src/components/uni-popup/uni-popup.vue
new file mode 100644
index 0000000..655b114
--- /dev/null
+++ b/src/components/uni-popup/uni-popup.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
diff --git a/src/components/uni-transition/uni-transition.vue b/src/components/uni-transition/uni-transition.vue
new file mode 100644
index 0000000..908a939
--- /dev/null
+++ b/src/components/uni-transition/uni-transition.vue
@@ -0,0 +1,279 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/package.json b/src/package.json
new file mode 100644
index 0000000..2e58142
--- /dev/null
+++ b/src/package.json
@@ -0,0 +1,11 @@
+{
+ "id": "robin-editor",
+ "name": "微信小程序富文本编辑器",
+ "version": "1.1.6",
+ "description": "基于原生editor组件的富文本编辑器组件,支持颜色选择,插入图片",
+ "keywords": [
+ "编辑器",
+ "富文本",
+ "小程序"
+ ]
+}
\ No newline at end of file
diff --git a/src/pages/index/welcome.vue b/src/pages/index/welcome.vue
index 06ef403..366ecd5 100644
--- a/src/pages/index/welcome.vue
+++ b/src/pages/index/welcome.vue
@@ -12,6 +12,10 @@ export default {
uni.reLaunch({
url: '/pages/index/index'
})
+ } else if (e.reLaunch) {
+ uni.reLaunch({
+ url: e.reLaunch
+ })
} else {
uni.reLaunch({
url: '/pages/login/login'
diff --git a/src/pages/patient/form.vue b/src/pages/patient/form.vue
index 5f9d75e..1d4ac05 100644
--- a/src/pages/patient/form.vue
+++ b/src/pages/patient/form.vue
@@ -232,10 +232,6 @@ export default {
.page {
padding: 0 20px;
background: white;
- position: absolute;
- height: 100%;
- width: 100%;
- box-sizing: border-box;
}
.input-text {
color: #303133;
@@ -251,6 +247,6 @@ export default {
}
.button {
width: 100%;
- margin-top: 20px;
+ margin: 20px 0;
}
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index aeea0ea..9869767 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -4,6 +4,9 @@ module.exports = () => {
// 全局配置
uni.$u.http.setConfig((config) => {
config.baseURL = process.env.VUE_APP_BASE_API
+ config.custom = {
+ toast: true
+ }
return config
})