zydx-plus 1.35.602 → 1.35.604

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.35.602",
3
+ "version": "1.35.604",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -15,11 +15,14 @@
15
15
  <button v-if="item.key === 'but'" class="buts" @click="item.onClick(item,info)" :disabled="disabled"
16
16
  :style="{color: (disabled) ? '#ccc' : (item.active)? '#4B0C77' :'#000'}">{{ item.title }}
17
17
  </button>
18
- <label v-else-if="item.key === 'upImg' || item.key === 'uploadAtt'">
18
+ <label v-else-if="item.key === 'upImg'">
19
19
  <input type="file" @change="upload($event,item.key)" :disabled="disabled"
20
20
  :accept="(item.key === 'upImg')?'image/*':'.docx,.pptx,.pdf,.xlsx,.mp3,.mp4'" style="display: none;"/>
21
21
  <span class="buts" :style="{color: ( disabled) ? '#ccc':'#000'}">{{ item.title }}</span>
22
22
  </label >
23
+ <button v-else-if="item.key === 'uploadAtt'" class="buts" @click="item.onClick(item,info)" :disabled="disabled"
24
+ :style="{color: (disabled) ? '#ccc' : (item.active)? '#4B0C77' :'#000'}">{{ item.title }}
25
+ </button>
23
26
  <button v-else-if="item.key === 'paint'" class="buts" @click="toolTap('paint')" :disabled="disabled">{{ item.title }}</button>
24
27
  <button v-else-if="item.key === 'voice'" class="buts" @mousedown.stop="speechDown" :disabled="disabled" @click="voice()"
25
28
  :style="{color: (disabled) ? '#ccc' : (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
@@ -33,9 +36,12 @@
33
36
  </div>
34
37
  <zydx-chat v-model='isShowAi' :apiPrefix="apiPrefix"></zydx-chat>
35
38
  <div class="ed-cont" :style="heightStyleCont">
36
- <div :style="{'border': (borderShow)? '1px solid #ccc': '0'}" v-if="editorShow">
37
- <editor-content @paste.native.capture.prevent="preventPaste" ref="editorRef" class="editor" :editor="editor"
38
- :style="heightStyleCont"/>
39
+ <div :style="{'border': (borderShow)? '1px solid #ccc': '0'}" v-if="editorShow">
40
+ <div v-if="!readOnly&&dataChange(this.data).html.length === 0" class="editor-no">暂无数据</div>
41
+ <template v-else>
42
+ <editor-content @paste.native.capture.prevent="preventPaste" ref="editorRef" class="editor" :editor="editor"
43
+ :style="heightStyleCont"/>
44
+ </template>
39
45
  <bubble-menu
40
46
  :editor="editor"
41
47
  :tippy-options="{ duration: 100}"
@@ -1357,5 +1363,9 @@ export default {
1357
1363
  width: 100%;
1358
1364
  height: 100%;
1359
1365
  }
1360
-
1366
+ .editor-no{
1367
+ text-indent: 2em;
1368
+ color: #666;
1369
+ line-height: 30px;
1370
+ }
1361
1371
  </style>
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.602',
90
+ version: '1.35.604',
91
91
  install,
92
92
  Calendar,
93
93
  Message,