zydx-plus 1.35.561 → 1.35.563
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 +1 -1
- package/src/components/biz_header/src/bizHeader.vue +4 -1
- package/src/components/biz_header/src/button_name.js +4 -2
- package/src/components/choice/src/choice.vue +12 -0
- package/src/components/editor/src/editor.vue +2 -0
- package/src/components/editor2/src/editor.vue +26 -9
- package/src/components/seek/src/word.vue +4 -0
- package/src/components/tagging/src/tagging.css +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div class="headLevel">
|
|
17
17
|
<div v-for="(item, index) in nodeList" :key="index" class="borderBottom1cccccc padding0_10 box_sizing_border_box" v-show="getShow(item)">
|
|
18
18
|
<zydx-topic-dry :is_hide="true">
|
|
19
|
-
<template v-slot:title_slot><span class="fontSize16" :title="item.name" :class="'level'+item.level">{{item.name}}</span></template>
|
|
19
|
+
<template v-slot:title_slot><span class="fontSize16" :title="item.name" :class="'level'+item.level">{{item.name}}{{ item.suffixName? ':':'' }}</span><span v-if="item.suffixName" class="fontSize12">{{ item.suffixName }}</span></template>
|
|
20
20
|
<template v-slot:button_slot v-if="isShowBtn">
|
|
21
21
|
<template v-for="(buttonInfo, buttonIndex) in initConfig(item).buttonList[tabType]">
|
|
22
22
|
<template v-if="buttonInfo instanceof Object" v-for="(childButtonInfo, childButtonIndex) in buttonInfo">
|
|
@@ -300,4 +300,7 @@ export default {
|
|
|
300
300
|
box-sizing: border-box;
|
|
301
301
|
height: 30px;
|
|
302
302
|
}
|
|
303
|
+
.fontSize12{
|
|
304
|
+
font-size: 12px;
|
|
305
|
+
}
|
|
303
306
|
</style>
|
|
@@ -965,7 +965,8 @@ let buttonNames = {
|
|
|
965
965
|
buttonList: {
|
|
966
966
|
0: {
|
|
967
967
|
headLevel: {
|
|
968
|
-
default: "
|
|
968
|
+
default: "demand",
|
|
969
|
+
demand: '写作要求',
|
|
969
970
|
singletonClass: this.getCurrentPrefix(item) + '写作',
|
|
970
971
|
allClass: this.getPrefix(item) + '情况',
|
|
971
972
|
},
|
|
@@ -1912,7 +1913,8 @@ let buttonNames = {
|
|
|
1912
1913
|
buttonList: {
|
|
1913
1914
|
0: {
|
|
1914
1915
|
headLevel: {
|
|
1915
|
-
default: "
|
|
1916
|
+
default: "demand",
|
|
1917
|
+
demand: '写作要求',
|
|
1916
1918
|
singletonClass: this.getCurrentPrefix(item) + '写作',
|
|
1917
1919
|
allClass: this.getPrefix(item) + '情况',
|
|
1918
1920
|
},
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
<em>({{ text }})</em>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="choice-title-right">
|
|
10
|
+
<button class="sees-but" @click="createTips()" v-if="column.hasOwnProperty('select') && column.hasOwnProperty('textarea') && column.textarea.length > 0">创建提示</button>
|
|
10
11
|
<button class="sees-but" @click="add('correct')" v-if="!single">增正确项</button>
|
|
11
12
|
<button class="sees-but" @click="add('interfere')">增干扰项</button>
|
|
13
|
+
<button class="sees-but" v-html="'完  成'" @click="complete()"></button>
|
|
12
14
|
</div>
|
|
13
15
|
</div>
|
|
14
16
|
<div class="choice-list" v-for="(item,index) in list">
|
|
@@ -75,6 +77,10 @@ export default {
|
|
|
75
77
|
single: { // 是否单选
|
|
76
78
|
type: Boolean,
|
|
77
79
|
default: false
|
|
80
|
+
},
|
|
81
|
+
column: {
|
|
82
|
+
type: Object,
|
|
83
|
+
default: () => {}
|
|
78
84
|
}
|
|
79
85
|
},
|
|
80
86
|
watch: {
|
|
@@ -90,6 +96,12 @@ export default {
|
|
|
90
96
|
this.list = this.organize(this.value)
|
|
91
97
|
},
|
|
92
98
|
methods: {
|
|
99
|
+
complete () {
|
|
100
|
+
this.$emit('saveSelect')
|
|
101
|
+
},
|
|
102
|
+
createTips () {
|
|
103
|
+
this.$emit('createExplain')
|
|
104
|
+
},
|
|
93
105
|
addOption() {
|
|
94
106
|
const index = this.list.length
|
|
95
107
|
if(index === 8) return
|
|
@@ -1937,6 +1937,8 @@ export default {
|
|
|
1937
1937
|
},
|
|
1938
1938
|
// 粘贴文本处理
|
|
1939
1939
|
preventPaste(event) {
|
|
1940
|
+
// 删除选中的文本
|
|
1941
|
+
this.editor.chain().focus().deleteSelection().run()
|
|
1940
1942
|
const text = event.clipboardData.getData('text/plain');
|
|
1941
1943
|
const text2 = text.replace(/[\r\n]/g, '').replace(/\s*/g, '')
|
|
1942
1944
|
this.editor.chain().focus().insertContentAt(this.selection(), text2).run()
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<slot name='titleSuffix'></slot>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="ed-but" v-if="readOnly">
|
|
13
|
-
<div class="ed-head-but" v-for="(item,index) in
|
|
13
|
+
<div class="ed-head-but" v-for="(item,index) in toolbars" :key="index">
|
|
14
14
|
<button v-if="item.key === 'but'" class="buts" @click="item.onClick(item,info)"
|
|
15
15
|
:style="{color: (item.active)? '#4B0C77' :'#000'}">{{ item.title }}
|
|
16
16
|
</button>
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
:accept="(item.key === 'upImg')?'image/*':'.docx,.pptx,.pdf,.xlsx,.mp3,.mp4'" style="display: none;">
|
|
20
20
|
<span class="buts">{{ item.title }}</span>
|
|
21
21
|
</label>
|
|
22
|
+
<button v-else-if="item.key === 'paint'" class="buts" @click="toolTap('paint')">{{ item.title }}</button>
|
|
23
|
+
<button v-else-if="item.key === 'voice'" class="buts" @mousedown.stop="speechDown" @click="voice()"
|
|
24
|
+
:style="{color: (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
|
|
25
|
+
</button>
|
|
26
|
+
<button v-else-if="item.key === 'ai'" class="buts" @click="showAi">AI助手</button>
|
|
22
27
|
<button v-else class="buts" @click="toolTap(item.key)">{{ item.title }}</button>
|
|
23
28
|
</div>
|
|
24
|
-
<button v-if='isShowWhiteboarde' class="buts" @click="toolTap('paint')">手写记录</button>
|
|
25
|
-
<button v-if="voiceShow" class="buts" @mousedown.stop="speechDown" @click="voice()"
|
|
26
|
-
:style="{color: (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
|
|
27
|
-
</button>
|
|
28
|
-
<button v-if='isShowAiTool' class="buts" @click="showAi">AI助手</button>
|
|
29
29
|
<slot name='toolBtn'></slot>
|
|
30
30
|
<button v-if="butText !== '' && readOnly" class="buts" @click="complete">{{ butText }}</button>
|
|
31
31
|
</div>
|
|
@@ -372,12 +372,27 @@ export default {
|
|
|
372
372
|
})
|
|
373
373
|
},
|
|
374
374
|
deep: true
|
|
375
|
+
},
|
|
376
|
+
toolbar: {
|
|
377
|
+
handler: function (e, oldVal) {
|
|
378
|
+
let status = null
|
|
379
|
+
this.toolbars = []
|
|
380
|
+
e.forEach(x => {
|
|
381
|
+
if(x.key === 'but') {
|
|
382
|
+
status = x
|
|
383
|
+
}else {
|
|
384
|
+
this.toolbars.push(x)
|
|
385
|
+
}
|
|
386
|
+
})
|
|
387
|
+
if(this.isShowWhiteboarde) this.toolbars.push({key: 'paint', title: '插入手写'})
|
|
388
|
+
if(this.voiceShow) this.toolbars.push({key: 'voice', title: '语音输入'})
|
|
389
|
+
if(status) this.toolbars.push(status)
|
|
390
|
+
if(this.isShowAiTool) this.toolbars.push({key: 'ai', title: 'AI助手'})
|
|
391
|
+
},
|
|
392
|
+
immediate: true
|
|
375
393
|
}
|
|
376
394
|
},
|
|
377
395
|
mounted() {
|
|
378
|
-
// document.addEventListener('mouseup', this.getSelectedText)
|
|
379
|
-
|
|
380
|
-
|
|
381
396
|
let _this = this
|
|
382
397
|
this.uploadAttData = (this.data.enclosure === undefined || this.data.enclosure === null || this.data.enclosure === 'null') ? [] : this.enclosureAction(this.data.enclosure)
|
|
383
398
|
this.heightStyle = (this.height === '100%') ? {height: '100%'} : {'min-height': this.height}
|
|
@@ -535,6 +550,8 @@ export default {
|
|
|
535
550
|
},
|
|
536
551
|
// 粘贴文本处理
|
|
537
552
|
preventPaste(event) {
|
|
553
|
+
// 删除选中的文本
|
|
554
|
+
this.editor.chain().focus().deleteSelection().run()
|
|
538
555
|
const text = event.clipboardData.getData('text/plain');
|
|
539
556
|
const text2 = text.replace(/[\r\n]/g, '').replace(/\s*/g, '')
|
|
540
557
|
this.editor.chain().focus().insertContentAt(this.selection(), text2).run()
|