zydx-plus 1.32.308 → 1.32.310
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 -4
- package/src/components/editor/src/editor.vue +15 -5
- package/src/components/editor2/src/editor.vue +12 -2
- package/src/components/seek/src/word.vue +2 -1
- package/src/components/tab/src/tab.vue +6 -3
- package/src/components/word/src/word.vue +2 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<template>
|
|
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
|
-
<zydx-topic-dry>
|
|
18
|
+
<zydx-topic-dry :is_hide="true">
|
|
19
19
|
<template v-slot:title_slot><span class="fontSize16" :title="item.name" :class="'level'+item.level">{{item.name}}</span></template>
|
|
20
20
|
<template v-slot:button_slot v-if="isShowBtn">
|
|
21
21
|
<template v-for="(buttonInfo, buttonIndex) in initConfig(item).buttonList[tabType]">
|
|
@@ -166,9 +166,9 @@ export default {
|
|
|
166
166
|
this.recursionNode(node.catalogId)
|
|
167
167
|
this.nodeList = this.nodeList.reverse()
|
|
168
168
|
// 资源去掉节级
|
|
169
|
-
if (this .headerType === 0) {
|
|
170
|
-
|
|
171
|
-
}
|
|
169
|
+
// if (this .headerType === 0) {
|
|
170
|
+
// this.nodeList = this.nodeList.filter(item => item.level !== 2)
|
|
171
|
+
// }
|
|
172
172
|
},
|
|
173
173
|
// 递归节点
|
|
174
174
|
recursionNode: function (catalogId) {
|
|
@@ -104,6 +104,7 @@ import {signId} from "./extend/sign-id";
|
|
|
104
104
|
import {Contenteditable} from "./extend/contenteditable";
|
|
105
105
|
import {titleId} from "./extend/title-id";
|
|
106
106
|
import {dataUrl} from "./extend/data-url";
|
|
107
|
+
import Mess from '../../tipBox/index'
|
|
107
108
|
|
|
108
109
|
export default {
|
|
109
110
|
name: 'zydx-editor',
|
|
@@ -749,7 +750,16 @@ export default {
|
|
|
749
750
|
xhr.onreadystatechange = () => {
|
|
750
751
|
if (xhr.readyState === 4) {
|
|
751
752
|
if (xhr.status === 200) {
|
|
752
|
-
|
|
753
|
+
const text = JSON.parse(xhr.responseText)
|
|
754
|
+
if(text.code === '200') {
|
|
755
|
+
rl(text)
|
|
756
|
+
}else {
|
|
757
|
+
Mess({
|
|
758
|
+
type: 'text',
|
|
759
|
+
cancelShow: false,
|
|
760
|
+
promptContent: text.msg
|
|
761
|
+
})
|
|
762
|
+
}
|
|
753
763
|
}
|
|
754
764
|
}
|
|
755
765
|
}
|
|
@@ -845,25 +855,25 @@ export default {
|
|
|
845
855
|
}else {
|
|
846
856
|
this.butDataName('titleMenu',`字体 ${key.name}`)
|
|
847
857
|
}
|
|
848
|
-
this.editor.commands.setFontFamily(key.key)
|
|
858
|
+
this.editor.commands.setFontFamily(key.key).run()
|
|
849
859
|
}
|
|
850
860
|
// 正文
|
|
851
861
|
if (data.key === 'textMenu') {
|
|
852
862
|
this.menuStast = 'textMenu'
|
|
853
863
|
this.butDataName('textMenu',`字号 ${key.name}`)
|
|
854
|
-
this.editor.commands.setFontSize(key.key)
|
|
864
|
+
this.editor.commands.setFontSize(key.key).run()
|
|
855
865
|
}
|
|
856
866
|
// 大纲级别
|
|
857
867
|
if (data.key === 'outlineMenu') {
|
|
858
868
|
if (key.key === 'text') {
|
|
859
869
|
this.editor.commands.setTitleId(key.key)
|
|
860
870
|
this.editor.commands.unsetSignId()
|
|
861
|
-
this.editor.chain().focus().unsetBold().run()
|
|
871
|
+
this.editor.chain().focus().unsetBold().setTextAlign('left').run()
|
|
862
872
|
}else {
|
|
863
873
|
const t = key.key.split('-')[0]
|
|
864
874
|
this.editor.commands.setSignId(key.key)
|
|
865
875
|
this.editor.commands.setTitleId(`${t} ${this.randomId()}`)
|
|
866
|
-
this.editor.chain().focus().setBold().run()
|
|
876
|
+
this.editor.chain().focus().setBold().setTextAlign('left').run()
|
|
867
877
|
}
|
|
868
878
|
}
|
|
869
879
|
// 作者
|
|
@@ -112,6 +112,7 @@ import {FontSize} from "./font-size";
|
|
|
112
112
|
import {titleId} from "./title-id";
|
|
113
113
|
import {Contenteditable} from "./contenteditable";
|
|
114
114
|
import svgs from "./level";
|
|
115
|
+
import Mess from '../../tipBox/index'
|
|
115
116
|
|
|
116
117
|
export default {
|
|
117
118
|
name: 'zydx-xiao-editor',
|
|
@@ -434,7 +435,7 @@ export default {
|
|
|
434
435
|
this.voiceShows = this.voiceStatus
|
|
435
436
|
this.appID()
|
|
436
437
|
}, () => {
|
|
437
|
-
|
|
438
|
+
Mess({
|
|
438
439
|
type: 'text',
|
|
439
440
|
cancelShow: false,
|
|
440
441
|
promptContent: '录音失败,请检查麦克风是否可用'
|
|
@@ -576,7 +577,16 @@ export default {
|
|
|
576
577
|
xhr.onreadystatechange = () => {
|
|
577
578
|
if (xhr.readyState === 4) {
|
|
578
579
|
if (xhr.status === 200) {
|
|
579
|
-
|
|
580
|
+
const text = JSON.parse(xhr.responseText)
|
|
581
|
+
if(text.code === '200') {
|
|
582
|
+
rl(text)
|
|
583
|
+
}else {
|
|
584
|
+
Mess({
|
|
585
|
+
type: 'text',
|
|
586
|
+
cancelShow: false,
|
|
587
|
+
promptContent: text.msg
|
|
588
|
+
})
|
|
589
|
+
}
|
|
580
590
|
}
|
|
581
591
|
}
|
|
582
592
|
}
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
<input class="choice-input" style="display: none;" :disabled="disabled" :checked="ts.checked"
|
|
31
31
|
@change="answerChange($event,item,`${id}${index}`,ts)" :type="ques(item.quesType)? 'radio': 'checkbox'"
|
|
32
32
|
:name="`${id}${index}`"/>
|
|
33
|
-
<svgs v-if="chooseAnswer" :radio="ques(item.quesType)" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs
|
|
33
|
+
<!-- <svgs v-if="chooseAnswer" :radio="ques(item.quesType)" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs>-->
|
|
34
|
+
<svgs v-if="chooseAnswer" :radio="false" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs>
|
|
34
35
|
<span :class="{'choice-span': chooseAnswer}">{{
|
|
35
36
|
ts.index
|
|
36
37
|
}}. {{ ts.content[0] }}</span>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tabs cl">
|
|
2
|
+
<div class="tabs cl" ref="tabs" :style="{'text-align': heiStart? 'left': 'center'}">
|
|
3
3
|
<div class="tabs-li" :class="{'tab-active': actives === index}" @click="listTap(index)"
|
|
4
4
|
v-for="(item,index) in list" :key="index">{{ item[column[0]] }}
|
|
5
5
|
</div>
|
|
@@ -13,7 +13,8 @@ export default {
|
|
|
13
13
|
name: "zydx-tab",
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
|
-
actives: 0
|
|
16
|
+
actives: 0,
|
|
17
|
+
heiStart: false
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
props: {
|
|
@@ -67,6 +68,8 @@ export default {
|
|
|
67
68
|
this.actives = index
|
|
68
69
|
}
|
|
69
70
|
})
|
|
71
|
+
this.heiStart = this.$refs.tabs.offsetHeight > 60
|
|
72
|
+
|
|
70
73
|
},
|
|
71
74
|
listTap(index) {
|
|
72
75
|
this.actives = index
|
|
@@ -109,12 +112,12 @@ export default {
|
|
|
109
112
|
background-size: 100%;
|
|
110
113
|
cursor: pointer;
|
|
111
114
|
margin: 3px 6px;
|
|
112
|
-
float: left;
|
|
113
115
|
text-align: center;
|
|
114
116
|
line-height: 26px;
|
|
115
117
|
color: #333;
|
|
116
118
|
font-size: 14px;
|
|
117
119
|
user-select: none;
|
|
120
|
+
display: inline-block;
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
.tabs-li:hover {
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
<input class="choice-input" style="display: none;" :disabled="disabled" :checked="ts.checked"
|
|
76
76
|
@change="answerChange($event,item,`${id}${index}`,ts)" :type="ques(item.quesType)? 'radio': 'checkbox'"
|
|
77
77
|
:name="`${id}${index}`"/>
|
|
78
|
-
<svgs v-if="chooseAnswer" :radio="ques(item.quesType)" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs
|
|
78
|
+
<!-- <svgs v-if="chooseAnswer" :radio="ques(item.quesType)" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs>-->
|
|
79
|
+
<svgs v-if="chooseAnswer" :radio="false" :select="ts.checked" :disabled="disabled" :state="stateFun(ts,item)"></svgs>
|
|
79
80
|
<span :class="{'choice-span': chooseAnswer}">{{
|
|
80
81
|
ts.index
|
|
81
82
|
}}. {{ ts.content[0] }}</span>
|