eoss-ui 0.4.41 → 0.4.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/editor.js +90 -5
- package/lib/eoss-ui.common.js +115 -31
- package/lib/flow.js +8 -9
- package/lib/handle-user.js +4 -4
- package/lib/index.js +1 -1
- package/lib/theme-chalk/editor.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +3 -1
- package/packages/editor/src/editor.vue +11 -6
- package/packages/editor/src/main.vue +6 -2
- package/packages/flow/src/processForm.vue +2 -2
- package/packages/handle-user/src/main.vue +2 -2
- package/packages/theme-chalk/lib/editor.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/editor.scss +7 -0
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.42",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
"qrcode": "^1.5.1",
|
|
62
62
|
"qs": "^6.11.2",
|
|
63
63
|
"runtime-import": "^2.2.1",
|
|
64
|
+
"slate": "^0.100.0",
|
|
65
|
+
"slate-history": "^0.100.0",
|
|
64
66
|
"sm-crypto": "^0.3.11",
|
|
65
67
|
"sockjs-client": "^1.6.1",
|
|
66
68
|
"stompjs": "^2.3.3",
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<el-scrollbar class="es-editor-main-box" :style="_style" ref="scrollbar">
|
|
3
|
+
<div class="es-editor-main es-editor-contents" v-html="value"></div>
|
|
4
|
+
</el-scrollbar>
|
|
3
5
|
</template>
|
|
4
6
|
<script>
|
|
5
7
|
export default {
|
|
6
8
|
name: 'Editors',
|
|
7
9
|
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: String,
|
|
11
|
+
height: [String, Number]
|
|
12
|
+
},
|
|
13
|
+
computed: {
|
|
14
|
+
_style() {
|
|
15
|
+
let height = this.height ? parseInt(this.height, 10) + 'px' : '500px';
|
|
16
|
+
return { height };
|
|
17
|
+
}
|
|
12
18
|
},
|
|
13
|
-
computed: {},
|
|
14
19
|
data() {
|
|
15
20
|
return {};
|
|
16
21
|
},
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
v-html="model"
|
|
8
8
|
></div>
|
|
9
9
|
<template v-else>
|
|
10
|
-
<
|
|
10
|
+
<template v-if="cs">
|
|
11
|
+
<Toolbars></Toolbars>
|
|
12
|
+
<Editors v-model="model"></Editors>
|
|
13
|
+
</template>
|
|
11
14
|
<template v-else>
|
|
12
15
|
<Toolbar
|
|
13
16
|
class="es-editor-toolbar"
|
|
@@ -30,10 +33,11 @@
|
|
|
30
33
|
<script>
|
|
31
34
|
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
|
|
32
35
|
import Toolbars from './toolbar.vue';
|
|
36
|
+
import Editors from './editor.vue';
|
|
33
37
|
export default {
|
|
34
38
|
name: 'EsEditor',
|
|
35
39
|
inheritAttrs: false,
|
|
36
|
-
components: { Editor, Toolbar, Toolbars },
|
|
40
|
+
components: { Editor, Toolbar, Toolbars, Editors },
|
|
37
41
|
inject: {
|
|
38
42
|
elForm: {
|
|
39
43
|
default: ''
|
|
@@ -386,6 +386,7 @@ export default {
|
|
|
386
386
|
mounted() {
|
|
387
387
|
this.getStartFlow(this.processDefinitionId);
|
|
388
388
|
this.newOpinion = this.opinion;
|
|
389
|
+
|
|
389
390
|
},
|
|
390
391
|
methods: {
|
|
391
392
|
getIsShowNextUser(val) {
|
|
@@ -542,7 +543,6 @@ export default {
|
|
|
542
543
|
if (noticeType) {
|
|
543
544
|
newNoticeType = noticeType.join(',');
|
|
544
545
|
}
|
|
545
|
-
|
|
546
546
|
let params = {
|
|
547
547
|
processDefinitionId: this.processDefinitionId,
|
|
548
548
|
nextUserId: this.multiple ? newNextUser.join(',') : nextUser,
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
566
566
|
this.mixPresetList && this.mixPresetList.length > 0
|
|
567
567
|
? this.mixPresetList.join('|')
|
|
568
568
|
: presetReadUserId.join(','),
|
|
569
|
-
opinion: newOpinion
|
|
569
|
+
opinion: this.newOpinion || newOpinion
|
|
570
570
|
};
|
|
571
571
|
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
572
572
|
util
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<img :src="headImg" class="es-user-img" @click="handleClick" />
|
|
4
4
|
<div class="es-user-info" v-if="user">
|
|
5
5
|
<div class="es-user-name">{{ user.username || user.userName }}</div>
|
|
6
|
-
<template v-if="user.identityList.length">
|
|
6
|
+
<template v-if="user.identityList && user.identityList.length">
|
|
7
7
|
<div
|
|
8
8
|
v-if="user.identityList.length < 2"
|
|
9
9
|
class="es-user-job"
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
immediate: true,
|
|
64
64
|
deep: true,
|
|
65
65
|
handler(val) {
|
|
66
|
-
if (val) {
|
|
66
|
+
if (val && val.identityList) {
|
|
67
67
|
this.job = val.identityList.filter((item) => {
|
|
68
68
|
return item.id === val.identityId;
|
|
69
69
|
})[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-editor{border:1px solid #d9d9d9}.es-editor .es-editor-toolbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 4px;-ms-flex-wrap:wrap;flex-wrap:wrap;border-bottom:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box{height:40px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box+.es-editor-toolbar-item-box .es-editor-toolbar-item:first-child{border-left:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item{height:40px;padding:4px}.es-editor .es-editor-toolbar .es-editor-toolbar-item.es-last{border-right:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item .es-icon-text+.el-icon--right{width:auto}.es-editor .es-editor-toolbar .el-button--default{border:0;color:#595959}.es-editor .es-editor-toolbar .el-button--default:hover{color:#333;background-color:#f1f1f1}.es-editor .es-editor-toolbar .el-button--default.es-icon-right{padding-right:3px}.es-editor .es-editor-main{overflow:hidden}.es-icon-svg{width:14px;height:14px;fill:#595959;position:relative;top:3px}.es-icon-svg+.el-icon--right{width:auto}.es-editor-color li{border-radius:3px;cursor:pointer;display:inline-block;padding:2px;border:1px solid transparent}.es-editor-color li.active,.es-editor-color li:hover{border-color:#d9d9d9}.es-editor-color li .es-editor-color-block{border:1px solid #d9d9d9;height:17px;width:17px;border-radius:3px}.es-editor-color .es-editor-color-clear{line-height:1.5;margin-bottom:5px;width:100%}.es-editor-dropdown-item:not(.is-disabled).active{background-color:rgba(0,0,0,.04);color:#69c0ff}
|
|
1
|
+
@charset "UTF-8";.es-editor{border:1px solid #d9d9d9}.es-editor .es-editor-toolbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 4px;-ms-flex-wrap:wrap;flex-wrap:wrap;border-bottom:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box{height:40px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box+.es-editor-toolbar-item-box .es-editor-toolbar-item:first-child{border-left:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item{height:40px;padding:4px}.es-editor .es-editor-toolbar .es-editor-toolbar-item.es-last{border-right:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item .es-icon-text+.el-icon--right{width:auto}.es-editor .es-editor-toolbar .el-button--default{border:0;color:#595959}.es-editor .es-editor-toolbar .el-button--default:hover{color:#333;background-color:#f1f1f1}.es-editor .es-editor-toolbar .el-button--default.es-icon-right{padding-right:3px}.es-editor .es-editor-main{overflow:hidden;padding:0 12px}.es-icon-svg{width:14px;height:14px;fill:#595959;position:relative;top:3px}.es-icon-svg+.el-icon--right{width:auto}.es-editor-color li{border-radius:3px;cursor:pointer;display:inline-block;padding:2px;border:1px solid transparent}.es-editor-color li.active,.es-editor-color li:hover{border-color:#d9d9d9}.es-editor-color li .es-editor-color-block{border:1px solid #d9d9d9;height:17px;width:17px;border-radius:3px}.es-editor-color .es-editor-color-clear{line-height:1.5;margin-bottom:5px;width:100%}.es-editor-dropdown-item:not(.is-disabled).active{background-color:rgba(0,0,0,.04);color:#69c0ff}.es-editor-contents p{margin:12px 0;line-height:1.5}
|