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,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.33.416",
3
+ "version": "1.33.418",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,11 +1,12 @@
1
1
  <template>
2
2
  <div :style="heightStyle" class="edit">
3
- <div class="ed-head">
4
- <div class="ed-title" v-if="titleShow" :style="titleStyle" v-html="title"></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)? '#00ff00' :'#000'}">{{ item.title }}
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)? '#00ff00' :'#000'}">{{ 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;
@@ -164,7 +164,7 @@ export default {
164
164
  border-bottom: 1px #cccccc dashed;
165
165
  }
166
166
  .active {
167
- color: rgba(21, 212, 97, 1);
167
+ color: #4B0C77;
168
168
  }
169
169
  .ellipse {
170
170
  text-overflow: ellipsis;
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.416',
86
+ version: '1.33.418',
87
87
  install,
88
88
  Calendar,
89
89
  Message,