yks-element 1.0.318 → 1.0.319
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/packages/Topic/src/attachment.vue +2 -3
- package/packages/Topic/src/audioFrequency.vue +3 -3
- package/packages/Topic/src/clozeFillInBlanks.vue +3 -3
- package/packages/Topic/src/compound.vue +1 -1
- package/packages/Topic/src/fillInBlanks.vue +3 -3
- package/packages/Topic/src/judgment.vue +2 -2
- package/packages/Topic/src/multiple.vue +3 -3
- package/packages/Topic/src/pictureAnswer.vue +3 -3
- package/packages/Topic/src/shortAnswer.vue +3 -3
- package/packages/Topic/src/single.vue +3 -3
- package/packages/assets/mixins/topic.js +1 -2
- package/packages/index.js +1 -1
- package/packages/Topic/src/config.js +0 -133
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:toolbar="toolbar"
|
|
24
24
|
:plugins="plugins"
|
|
25
25
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
28
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
29
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
:toolbar="toolbar"
|
|
40
40
|
:plugins="plugins"
|
|
41
41
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
42
|
-
:externalPlugins="externalPlugins"
|
|
43
42
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
44
43
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
45
44
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:toolbar="toolbar"
|
|
24
24
|
:plugins="plugins"
|
|
25
25
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
28
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
29
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
:toolbar="toolbar"
|
|
40
40
|
:plugins="plugins"
|
|
41
41
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
44
44
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
45
45
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:toolbar="toolbar"
|
|
9
9
|
:plugins="plugins"
|
|
10
10
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
13
13
|
menubar=""
|
|
14
14
|
height="200px"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
:toolbar="toolbarSpare"
|
|
39
39
|
:plugins="plugins"
|
|
40
40
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
43
43
|
inline
|
|
44
44
|
height="60px"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
:toolbar="toolbar"
|
|
96
96
|
:plugins="plugins"
|
|
97
97
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
100
100
|
menubar=""
|
|
101
101
|
height="200px"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:toolbar="toolbar"
|
|
9
9
|
:plugins="plugins"
|
|
10
10
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
13
13
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
14
14
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
:toolbar="toolbarSpare"
|
|
41
41
|
:plugins="plugins"
|
|
42
42
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
45
45
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
46
46
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
:toolbar="toolbar"
|
|
100
100
|
:plugins="plugins"
|
|
101
101
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
102
|
-
|
|
102
|
+
|
|
103
103
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
104
104
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
105
105
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
:toolbar="toolbar"
|
|
33
33
|
:plugins="plugins"
|
|
34
34
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
37
37
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
38
38
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
:toolbar="toolbar"
|
|
35
35
|
:plugins="plugins"
|
|
36
36
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
39
39
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
40
40
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
:toolbar="toolbar"
|
|
65
65
|
:plugins="plugins"
|
|
66
66
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
69
69
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
70
70
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:toolbar="toolbar"
|
|
24
24
|
:plugins="plugins"
|
|
25
25
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
28
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
29
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
:toolbar="toolbar"
|
|
40
40
|
:plugins="plugins"
|
|
41
41
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
44
44
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
45
45
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:toolbar="toolbar"
|
|
24
24
|
:plugins="plugins"
|
|
25
25
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
28
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
29
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
:toolbar="toolbar"
|
|
50
50
|
:plugins="plugins"
|
|
51
51
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
54
54
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
55
55
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
:toolbar="toolbar"
|
|
35
35
|
:plugins="plugins"
|
|
36
36
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
39
39
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
40
40
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
:toolbar="toolbar"
|
|
65
65
|
:plugins="plugins"
|
|
66
66
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
69
69
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
70
70
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toolbar, plugins,
|
|
1
|
+
import { toolbar, plugins, toolbarSpare } from '../utils/topic'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
model: {
|
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
toolbar: toolbar,
|
|
32
32
|
toolbarSpare: toolbarSpare,
|
|
33
33
|
plugins: plugins,
|
|
34
|
-
externalPlugins: externalPlugins,
|
|
35
34
|
topic: {
|
|
36
35
|
single: '单项选择题',
|
|
37
36
|
multiple: '多项选择题',
|
package/packages/index.js
CHANGED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* uploadRecording 录音
|
|
3
|
-
* uploadVideo 视频
|
|
4
|
-
* uploadAudio 音频
|
|
5
|
-
* uploadFile 文件
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export const toolbar = [
|
|
9
|
-
'bold underline italic strikethrough | kityformula-editor subscript superscript charmap | link image | table | removeformat | uploadRecording uploadVideo uploadAudio uploadFile'
|
|
10
|
-
]
|
|
11
|
-
|
|
12
|
-
/* 选项、填空等 */
|
|
13
|
-
export const toolbarSpare = ['kityformula-editor subscript superscript charmap']
|
|
14
|
-
|
|
15
|
-
/* 插件 */
|
|
16
|
-
export const plugins = ['kityformula-editor powerpaste lists image media table charmap imagetools']
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* 选项字符 */
|
|
20
|
-
export const letter = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N']
|
|
21
|
-
|
|
22
|
-
/* 自定义添加菜单项(录音、上传视频、上传音乐、上传文件):题干 / 标题 - 类型 */
|
|
23
|
-
export const stemItemType = {
|
|
24
|
-
recording: 'stem_voiceRecord',
|
|
25
|
-
video: 'stem_video',
|
|
26
|
-
audio: 'stem_audio',
|
|
27
|
-
file: 'stem_document'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* 自定义添加菜单项(录音、上传视频、上传音乐、上传文件): 标准答案 - 类型 */
|
|
31
|
-
export const shortItemType = {
|
|
32
|
-
recording: 'answer_voiceRecord',
|
|
33
|
-
video: 'answer_video',
|
|
34
|
-
audio: 'answer_audio',
|
|
35
|
-
file: 'answer_document'
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* 自定义添加菜单项(录音、上传视频、上传音乐、上传文件): 选项 - 类型 */
|
|
39
|
-
export const optionItemType = {
|
|
40
|
-
recording: 'option_voiceRecord',
|
|
41
|
-
video: 'option_video',
|
|
42
|
-
audio: 'option_audio',
|
|
43
|
-
file: 'option_document'
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* 自定义添加菜单项(录音、上传视频、上传音乐、上传文件): 答案解析 - 类型 */
|
|
47
|
-
export const analysisItemType = {
|
|
48
|
-
recording: 'description_voiceRecord',
|
|
49
|
-
video: 'description_video',
|
|
50
|
-
audio: 'description_audio',
|
|
51
|
-
file: 'description_document'
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* 获取题类型
|
|
56
|
-
* @param {string} type
|
|
57
|
-
* @return {Object}
|
|
58
|
-
*/
|
|
59
|
-
export const getFileType = (type, data) => {
|
|
60
|
-
if (data) {
|
|
61
|
-
let params = {}
|
|
62
|
-
switch (type) {
|
|
63
|
-
case 'stem':
|
|
64
|
-
params = {
|
|
65
|
-
stem_voiceRecord: 'recording',
|
|
66
|
-
stem_video: 'video',
|
|
67
|
-
stem_audio: 'audio',
|
|
68
|
-
stem_document: 'file'
|
|
69
|
-
}
|
|
70
|
-
break
|
|
71
|
-
case 'answer':
|
|
72
|
-
params = {
|
|
73
|
-
answer_voiceRecord: 'recording',
|
|
74
|
-
answer_video: 'video',
|
|
75
|
-
answer_audio: 'audio',
|
|
76
|
-
answer_document: 'file'
|
|
77
|
-
}
|
|
78
|
-
break
|
|
79
|
-
case 'option':
|
|
80
|
-
params = {
|
|
81
|
-
option_voiceRecord: 'recording',
|
|
82
|
-
option_video: 'video',
|
|
83
|
-
option_audio: 'audio',
|
|
84
|
-
option_document: 'file'
|
|
85
|
-
}
|
|
86
|
-
break
|
|
87
|
-
case 'analysis':
|
|
88
|
-
params = {
|
|
89
|
-
description_voiceRecord: 'recording',
|
|
90
|
-
description_video: 'video',
|
|
91
|
-
description_audio: 'audio',
|
|
92
|
-
description_document: 'file'
|
|
93
|
-
}
|
|
94
|
-
break
|
|
95
|
-
}
|
|
96
|
-
const fileType = params[data.type]
|
|
97
|
-
|
|
98
|
-
return {
|
|
99
|
-
...data,
|
|
100
|
-
fileType
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return false
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export const itemDataLists = () => {
|
|
107
|
-
return [
|
|
108
|
-
{
|
|
109
|
-
optionName: 'A',
|
|
110
|
-
content: '',
|
|
111
|
-
optionAttrs: [],
|
|
112
|
-
score: ''
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
optionName: 'B',
|
|
116
|
-
content: '',
|
|
117
|
-
optionAttrs: [],
|
|
118
|
-
score: ''
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
optionName: 'C',
|
|
122
|
-
content: '',
|
|
123
|
-
optionAttrs: [],
|
|
124
|
-
score: ''
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
optionName: 'D',
|
|
128
|
-
content: '',
|
|
129
|
-
optionAttrs: [],
|
|
130
|
-
score: ''
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
}
|