zydx-plus 1.35.562 → 1.35.564
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
|
@@ -826,26 +826,26 @@ let buttonNames = {
|
|
|
826
826
|
}
|
|
827
827
|
},
|
|
828
828
|
action_lesson_homework: {
|
|
829
|
-
actionName: '
|
|
829
|
+
actionName: '学习思考',
|
|
830
830
|
buttonList: {
|
|
831
831
|
0: {
|
|
832
832
|
headLevel: {
|
|
833
833
|
default: "demand",
|
|
834
|
-
demand: '
|
|
834
|
+
demand: '思考要求',
|
|
835
835
|
quest:'全课题目',
|
|
836
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
836
|
+
singletonClass: this.getCurrentPrefix(item) + '任务',
|
|
837
837
|
allClass: this.getPrefix(item) + '情况',
|
|
838
838
|
},
|
|
839
839
|
otherLevel: {
|
|
840
840
|
default: "singletonClass",
|
|
841
841
|
quest:'全章题目',
|
|
842
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
842
|
+
singletonClass: this.getCurrentPrefix(item) + '任务',
|
|
843
843
|
allClass: this.getPrefix(item) + '情况',
|
|
844
844
|
},
|
|
845
845
|
lowLevel: {
|
|
846
846
|
default: "singletonClass",
|
|
847
847
|
quest:'全节题目',
|
|
848
|
-
singletonClass: '
|
|
848
|
+
singletonClass: '思考任务',
|
|
849
849
|
score: '成绩报告',
|
|
850
850
|
analysis: '统计分析',
|
|
851
851
|
power: '学习动力'
|
|
@@ -854,17 +854,17 @@ let buttonNames = {
|
|
|
854
854
|
2: {
|
|
855
855
|
headLevel: {
|
|
856
856
|
default: "singletonClass",
|
|
857
|
-
singletonClass: this.getPrefix(item) + '
|
|
857
|
+
singletonClass: this.getPrefix(item) + '任务',
|
|
858
858
|
allClass: this.getPrefix(item) + '情况',
|
|
859
859
|
},
|
|
860
860
|
otherLevel: {
|
|
861
861
|
default: "singletonClass",
|
|
862
|
-
singletonClass: this.getPrefix(item) + '
|
|
862
|
+
singletonClass: this.getPrefix(item) + '任务',
|
|
863
863
|
allClass: this.getPrefix(item) + '情况',
|
|
864
864
|
},
|
|
865
865
|
lowLevel: {
|
|
866
866
|
default: "singletonClass",
|
|
867
|
-
singletonClass: '
|
|
867
|
+
singletonClass: '思考任务',
|
|
868
868
|
score: '成绩报告',
|
|
869
869
|
analysis: '统计分析',
|
|
870
870
|
power: '学习动力'
|
|
@@ -1834,23 +1834,23 @@ let buttonNames = {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
},
|
|
1836
1836
|
action_lesson_homework: {
|
|
1837
|
-
actionName: '
|
|
1837
|
+
actionName: '学习思考',
|
|
1838
1838
|
buttonList: {
|
|
1839
1839
|
0: {
|
|
1840
1840
|
headLevel: {
|
|
1841
1841
|
default: "demand",
|
|
1842
|
-
demand: '
|
|
1843
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1842
|
+
demand: '思考要求',
|
|
1843
|
+
singletonClass: this.getCurrentPrefix(item) + '任务',
|
|
1844
1844
|
allClass: this.getPrefix(item) + '情况',
|
|
1845
1845
|
},
|
|
1846
1846
|
otherLevel: {
|
|
1847
1847
|
default: "singletonClass",
|
|
1848
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1848
|
+
singletonClass: this.getCurrentPrefix(item) + '任务',
|
|
1849
1849
|
allClass: this.getPrefix(item) + '情况',
|
|
1850
1850
|
},
|
|
1851
1851
|
lowLevel: {
|
|
1852
1852
|
default: "singletonClass",
|
|
1853
|
-
singletonClass: '
|
|
1853
|
+
singletonClass: '思考任务',
|
|
1854
1854
|
score: '成绩报告',
|
|
1855
1855
|
analysis: '统计分析',
|
|
1856
1856
|
power: '学习动力'
|
|
@@ -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()
|