zydx-plus 1.33.416 → 1.33.418
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/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :style="heightStyle" class="edit">
|
|
3
|
-
<div class="ed-head">
|
|
4
|
-
<div
|
|
3
|
+
<div :class="{'ed-head': !titleVertical, 'ed-head-vertical': titleVertical}">
|
|
4
|
+
<div v-if="titleShow && titleVertical" :style="titleStyle" v-html="title"></div>
|
|
5
|
+
<div class="ed-title" v-if="titleShow && !titleVertical" :style="titleStyle" v-html="title"></div>
|
|
5
6
|
<div class="ed-but" v-if="readOnly">
|
|
6
7
|
<div class="ed-head-but" v-for="(item,index) in toolbar">
|
|
7
8
|
<button v-if="item.key === 'but'" class="buts" @click="item.onClick(item,info)"
|
|
8
|
-
:style="{color: (item.active)? '#
|
|
9
|
+
:style="{color: (item.active)? '#4B0C77' :'#000'}">{{ item.title }}
|
|
9
10
|
</button>
|
|
10
11
|
<label v-else-if="item.key === 'upImg' || item.key === 'uploadAtt'">
|
|
11
12
|
<input type="file" @change="upload($event,item.key)"
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
<button v-else class="buts" @click="toolTap(item.key)">{{ item.title }}</button>
|
|
16
17
|
</div>
|
|
17
18
|
<button v-if="voiceShow" class="buts" @mousedown.stop="speechDown" @click="voice()"
|
|
18
|
-
:style="{color: (voiceStatus)? '#
|
|
19
|
+
:style="{color: (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
|
|
19
20
|
</button>
|
|
20
21
|
</div>
|
|
21
22
|
</div>
|
|
@@ -207,6 +208,10 @@ export default {
|
|
|
207
208
|
this.ws = null
|
|
208
209
|
},
|
|
209
210
|
props: {
|
|
211
|
+
titleVertical: {
|
|
212
|
+
type: Boolean,
|
|
213
|
+
default: false
|
|
214
|
+
},
|
|
210
215
|
data: {
|
|
211
216
|
type: Object,
|
|
212
217
|
default: () => {
|
|
@@ -984,7 +989,12 @@ export default {
|
|
|
984
989
|
.ed-head-but label span {
|
|
985
990
|
line-height: 16px !important;
|
|
986
991
|
}
|
|
987
|
-
|
|
992
|
+
.ed-head-vertical{
|
|
993
|
+
overflow: hidden;
|
|
994
|
+
}
|
|
995
|
+
.ed-head-vertical .ed-but{
|
|
996
|
+
float: right;
|
|
997
|
+
}
|
|
988
998
|
.ed-title {
|
|
989
999
|
flex: 1;
|
|
990
1000
|
text-align: left;
|
|
@@ -1053,7 +1063,6 @@ export default {
|
|
|
1053
1063
|
.ed-head {
|
|
1054
1064
|
text-align: right;
|
|
1055
1065
|
}
|
|
1056
|
-
|
|
1057
1066
|
.buts {
|
|
1058
1067
|
margin-left: 1px;
|
|
1059
1068
|
font-size: 12px;
|