yks-element 1.0.320 → 1.0.323
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/lib/yks.css +1 -1
- package/package.json +1 -1
- package/packages/Tinymce/src/index.vue +0 -4
- package/packages/Topic/index.js +23 -9
- package/packages/Topic/src/attachment.vue +4 -6
- package/packages/Topic/src/audioFrequency.vue +4 -7
- package/packages/Topic/src/clozeFillInBlanks.vue +4 -7
- package/packages/Topic/src/compound.vue +2 -3
- package/packages/Topic/src/fillInBlanks.vue +4 -7
- package/packages/Topic/src/judgment.vue +3 -5
- package/packages/Topic/src/multiple.vue +4 -7
- package/packages/Topic/src/pictureAnswer.vue +4 -7
- package/packages/Topic/src/shortAnswer.vue +4 -7
- package/packages/Topic/src/single.vue +4 -7
- package/packages/index.js +5 -24
package/package.json
CHANGED
package/packages/Topic/index.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import Single from './src/single'
|
|
2
|
+
import Multiple from './src/multiple'
|
|
3
|
+
import Judgment from './src/judgment'
|
|
4
|
+
import FillInBlanks from './src/fillInBlanks'
|
|
5
|
+
import ShortAnswer from './src/shortAnswer'
|
|
6
|
+
import PictureAnswer from './src/pictureAnswer'
|
|
7
|
+
import Compound from './src/compound'
|
|
8
|
+
import AudioFrequency from './src/audioFrequency'
|
|
9
|
+
import Attachment from './src/attachment'
|
|
10
|
+
|
|
11
|
+
const components = [
|
|
12
|
+
Single,
|
|
13
|
+
Multiple,
|
|
14
|
+
Judgment,
|
|
15
|
+
FillInBlanks,
|
|
16
|
+
ShortAnswer,
|
|
17
|
+
PictureAnswer,
|
|
18
|
+
Compound,
|
|
19
|
+
AudioFrequency,
|
|
20
|
+
Attachment
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
export default components
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -19,11 +18,10 @@
|
|
|
19
18
|
<div class="single-stem__label required__label">标准答案</div>
|
|
20
19
|
<yks-tinymce
|
|
21
20
|
key="answer"
|
|
22
|
-
|
|
21
|
+
v-model="fromData.answer"
|
|
23
22
|
:toolbar="toolbar"
|
|
24
23
|
:plugins="plugins"
|
|
25
24
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
27
25
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
26
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
27
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -35,7 +33,7 @@
|
|
|
35
33
|
<div class="single-stem__label">答案解析</div>
|
|
36
34
|
<yks-tinymce
|
|
37
35
|
key="description"
|
|
38
|
-
|
|
36
|
+
v-model="fromData.description"
|
|
39
37
|
:toolbar="toolbar"
|
|
40
38
|
:plugins="plugins"
|
|
41
39
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
@@ -55,7 +53,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
55
53
|
import { stemItemType, shortItemType, analysisItemType } from './config'
|
|
56
54
|
|
|
57
55
|
export default {
|
|
58
|
-
name: '
|
|
56
|
+
name: 'YksAttachment',
|
|
59
57
|
components: { YksTinymce },
|
|
60
58
|
mixins: [TopicMixins],
|
|
61
59
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -19,11 +18,10 @@
|
|
|
19
18
|
<div class="single-stem__label required__label">标准答案</div>
|
|
20
19
|
<yks-tinymce
|
|
21
20
|
key="answer"
|
|
22
|
-
|
|
21
|
+
v-model="fromData.answer"
|
|
23
22
|
:toolbar="toolbar"
|
|
24
23
|
:plugins="plugins"
|
|
25
24
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
27
25
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
26
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
27
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -35,11 +33,10 @@
|
|
|
35
33
|
<div class="single-stem__label">答案解析</div>
|
|
36
34
|
<yks-tinymce
|
|
37
35
|
key="description"
|
|
38
|
-
|
|
36
|
+
v-model="fromData.description"
|
|
39
37
|
:toolbar="toolbar"
|
|
40
38
|
:plugins="plugins"
|
|
41
39
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
42
|
-
|
|
43
40
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
44
41
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
45
42
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -56,7 +53,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
56
53
|
import { stemItemType, shortItemType, analysisItemType } from './config'
|
|
57
54
|
|
|
58
55
|
export default {
|
|
59
|
-
name: '
|
|
56
|
+
name: 'YksAudiofrequency',
|
|
60
57
|
components: { YksTinymce },
|
|
61
58
|
mixins: [TopicMixins],
|
|
62
59
|
methods: {
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
ref="stemTinymceEdit"
|
|
6
6
|
key="itemContent"
|
|
7
|
-
|
|
7
|
+
v-model="fromData.itemContent"
|
|
8
8
|
:toolbar="toolbar"
|
|
9
9
|
:plugins="plugins"
|
|
10
10
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
11
|
-
|
|
12
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
13
12
|
menubar=""
|
|
14
13
|
height="200px"
|
|
@@ -34,11 +33,10 @@
|
|
|
34
33
|
<span class="yks-w_60 yks-mr10">填空{{ index + 1 }}</span>
|
|
35
34
|
<yks-tinymce
|
|
36
35
|
key="content"
|
|
37
|
-
|
|
36
|
+
v-model="item.content"
|
|
38
37
|
:toolbar="toolbarSpare"
|
|
39
38
|
:plugins="plugins"
|
|
40
39
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
41
|
-
|
|
42
40
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
43
41
|
inline
|
|
44
42
|
height="60px"
|
|
@@ -91,11 +89,10 @@
|
|
|
91
89
|
<div class="single-stem__label">答案解析</div>
|
|
92
90
|
<yks-tinymce
|
|
93
91
|
key="description"
|
|
94
|
-
|
|
92
|
+
v-model="fromData.description"
|
|
95
93
|
:toolbar="toolbar"
|
|
96
94
|
:plugins="plugins"
|
|
97
95
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
98
|
-
|
|
99
96
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
100
97
|
menubar=""
|
|
101
98
|
height="200px"
|
|
@@ -110,7 +107,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
110
107
|
import { stemItemType, optionItemType, analysisItemType } from './config'
|
|
111
108
|
|
|
112
109
|
export default {
|
|
113
|
-
name: '
|
|
110
|
+
name: 'YksClozefillinblanks',
|
|
114
111
|
components: { YksTinymce },
|
|
115
112
|
mixins: [TopicMixins],
|
|
116
113
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -83,7 +82,7 @@ import { analysisItemType, stemItemType, itemDataLists } from './config'
|
|
|
83
82
|
import { Single, Multiple, Judgment, ShortAnswer } from '../index'
|
|
84
83
|
|
|
85
84
|
export default {
|
|
86
|
-
name: '
|
|
85
|
+
name: 'YksCompound',
|
|
87
86
|
components: { YksTinymce, Single, Multiple, Judgment, ShortAnswer },
|
|
88
87
|
mixins: [TopicMixins],
|
|
89
88
|
methods: {
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
ref="stemTinymceEdit"
|
|
6
6
|
key="itemContent"
|
|
7
|
-
|
|
7
|
+
v-model="fromData.itemContent"
|
|
8
8
|
:toolbar="toolbar"
|
|
9
9
|
:plugins="plugins"
|
|
10
10
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
11
|
-
|
|
12
11
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
13
12
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
14
13
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -36,11 +35,10 @@
|
|
|
36
35
|
<span class="yks-w_60 yks-mr10">填空{{ index + 1 }}</span>
|
|
37
36
|
<yks-tinymce
|
|
38
37
|
key="content"
|
|
39
|
-
|
|
38
|
+
v-model="item.content"
|
|
40
39
|
:toolbar="toolbarSpare"
|
|
41
40
|
:plugins="plugins"
|
|
42
41
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
43
|
-
|
|
44
42
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
45
43
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
46
44
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -95,11 +93,10 @@
|
|
|
95
93
|
<div class="single-stem__label">答案解析</div>
|
|
96
94
|
<yks-tinymce
|
|
97
95
|
key="description"
|
|
98
|
-
|
|
96
|
+
v-model="fromData.description"
|
|
99
97
|
:toolbar="toolbar"
|
|
100
98
|
:plugins="plugins"
|
|
101
99
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
102
|
-
|
|
103
100
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
104
101
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
105
102
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -116,7 +113,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
116
113
|
import { stemItemType, optionItemType, analysisItemType } from './config'
|
|
117
114
|
|
|
118
115
|
export default {
|
|
119
|
-
name: '
|
|
116
|
+
name: 'YksFillinblanks',
|
|
120
117
|
components: { YksTinymce },
|
|
121
118
|
mixins: [TopicMixins],
|
|
122
119
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -28,11 +27,10 @@
|
|
|
28
27
|
<div class="single-stem__label">答案解析</div>
|
|
29
28
|
<yks-tinymce
|
|
30
29
|
key="description"
|
|
31
|
-
|
|
30
|
+
v-model="fromData.description"
|
|
32
31
|
:toolbar="toolbar"
|
|
33
32
|
:plugins="plugins"
|
|
34
33
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
35
|
-
|
|
36
34
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
37
35
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
38
36
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -49,7 +47,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
49
47
|
import { letter, stemItemType, analysisItemType } from './config'
|
|
50
48
|
|
|
51
49
|
export default {
|
|
52
|
-
name: '
|
|
50
|
+
name: 'YksJudgment',
|
|
53
51
|
components: { YksTinymce },
|
|
54
52
|
mixins: [TopicMixins],
|
|
55
53
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -30,11 +29,10 @@
|
|
|
30
29
|
<el-checkbox :label="item.optionName" class="yks-w_60 yks-mr10"></el-checkbox>
|
|
31
30
|
<yks-tinymce
|
|
32
31
|
:key="`itemList${index}`"
|
|
33
|
-
|
|
32
|
+
v-model="item.content"
|
|
34
33
|
:toolbar="toolbar"
|
|
35
34
|
:plugins="plugins"
|
|
36
35
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
37
|
-
|
|
38
36
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
39
37
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
40
38
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -60,11 +58,10 @@
|
|
|
60
58
|
<div class="single-stem__label">答案解析</div>
|
|
61
59
|
<yks-tinymce
|
|
62
60
|
key="description"
|
|
63
|
-
|
|
61
|
+
v-model="fromData.description"
|
|
64
62
|
:toolbar="toolbar"
|
|
65
63
|
:plugins="plugins"
|
|
66
64
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
67
|
-
|
|
68
65
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
69
66
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
70
67
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -81,7 +78,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
81
78
|
import { letter, stemItemType, optionItemType, analysisItemType } from './config'
|
|
82
79
|
|
|
83
80
|
export default {
|
|
84
|
-
name: '
|
|
81
|
+
name: 'YksMultiple',
|
|
85
82
|
components: { YksTinymce },
|
|
86
83
|
mixins: [TopicMixins],
|
|
87
84
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -19,11 +18,10 @@
|
|
|
19
18
|
<div class="single-stem__label required__label">标准答案</div>
|
|
20
19
|
<yks-tinymce
|
|
21
20
|
key="answer"
|
|
22
|
-
|
|
21
|
+
v-model="fromData.answer"
|
|
23
22
|
:toolbar="toolbar"
|
|
24
23
|
:plugins="plugins"
|
|
25
24
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
27
25
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
26
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
27
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -35,11 +33,10 @@
|
|
|
35
33
|
<div class="single-stem__label">答案解析</div>
|
|
36
34
|
<yks-tinymce
|
|
37
35
|
key="description"
|
|
38
|
-
|
|
36
|
+
v-model="fromData.description"
|
|
39
37
|
:toolbar="toolbar"
|
|
40
38
|
:plugins="plugins"
|
|
41
39
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
42
|
-
|
|
43
40
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
44
41
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
45
42
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -56,7 +53,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
56
53
|
import { stemItemType, shortItemType, analysisItemType } from './config'
|
|
57
54
|
|
|
58
55
|
export default {
|
|
59
|
-
name: '
|
|
56
|
+
name: 'YksPictureanswer',
|
|
60
57
|
components: { YksTinymce },
|
|
61
58
|
mixins: [TopicMixins],
|
|
62
59
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -19,11 +18,10 @@
|
|
|
19
18
|
<div class="single-stem__label required__label">标准答案</div>
|
|
20
19
|
<yks-tinymce
|
|
21
20
|
key="answer"
|
|
22
|
-
|
|
21
|
+
v-model="fromData.answer"
|
|
23
22
|
:toolbar="toolbar"
|
|
24
23
|
:plugins="plugins"
|
|
25
24
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
26
|
-
|
|
27
25
|
:fileParams="getFileTypes('answer', fromData.answerAttrs)"
|
|
28
26
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
29
27
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -45,11 +43,10 @@
|
|
|
45
43
|
<div class="single-stem__label">答案解析</div>
|
|
46
44
|
<yks-tinymce
|
|
47
45
|
key="description"
|
|
48
|
-
|
|
46
|
+
v-model="fromData.description"
|
|
49
47
|
:toolbar="toolbar"
|
|
50
48
|
:plugins="plugins"
|
|
51
49
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
52
|
-
|
|
53
50
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
54
51
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
55
52
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -66,7 +63,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
66
63
|
import { stemItemType, shortItemType, analysisItemType } from './config'
|
|
67
64
|
|
|
68
65
|
export default {
|
|
69
|
-
name: '
|
|
66
|
+
name: 'YksShortanswer',
|
|
70
67
|
components: { YksTinymce },
|
|
71
68
|
mixins: [TopicMixins],
|
|
72
69
|
methods: {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
<div class="single-stem__label required__label">题干</div>
|
|
4
4
|
<yks-tinymce
|
|
5
5
|
key="itemContent"
|
|
6
|
-
|
|
6
|
+
v-model="fromData.itemContent"
|
|
7
7
|
:toolbar="toolbar"
|
|
8
8
|
:plugins="plugins"
|
|
9
9
|
:charLimit="topicDataExtent.itemContentLength || 20000"
|
|
10
|
-
|
|
11
10
|
:fileParams="getFileTypes('stem', fromData.stemAttrs)"
|
|
12
11
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
13
12
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -30,11 +29,10 @@
|
|
|
30
29
|
<el-radio :label="item.optionName" class="yks-w_60 yks-mr10"></el-radio>
|
|
31
30
|
<yks-tinymce
|
|
32
31
|
:key="`itemList${index}`"
|
|
33
|
-
|
|
32
|
+
v-model="item.content"
|
|
34
33
|
:toolbar="toolbar"
|
|
35
34
|
:plugins="plugins"
|
|
36
35
|
:charLimit="topicDataExtent.answerLength || 5000"
|
|
37
|
-
|
|
38
36
|
:fileParams="getFileTypes('option', item.optionAttrs)"
|
|
39
37
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
40
38
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -60,11 +58,10 @@
|
|
|
60
58
|
<div class="single-stem__label">答案解析</div>
|
|
61
59
|
<yks-tinymce
|
|
62
60
|
key="description"
|
|
63
|
-
|
|
61
|
+
v-model="fromData.description"
|
|
64
62
|
:toolbar="toolbar"
|
|
65
63
|
:plugins="plugins"
|
|
66
64
|
:charLimit="topicDataExtent.descriptionLength || 20000"
|
|
67
|
-
|
|
68
65
|
:fileParams="getFileTypes('analysis', fromData.descriptionAttrs)"
|
|
69
66
|
:uploadFileToHwCloud="uploadFileToHwCloud"
|
|
70
67
|
:uploadFileFunction="uploadFileFunction"
|
|
@@ -81,7 +78,7 @@ import TopicMixins from '../../assets/mixins/topic'
|
|
|
81
78
|
import { letter, stemItemType, optionItemType, analysisItemType } from './config'
|
|
82
79
|
|
|
83
80
|
export default {
|
|
84
|
-
name: '
|
|
81
|
+
name: 'YksSingle',
|
|
85
82
|
components: { YksTinymce },
|
|
86
83
|
mixins: [TopicMixins],
|
|
87
84
|
methods: {
|
package/packages/index.js
CHANGED
|
@@ -92,19 +92,8 @@ import YksScrollbar from './Scrollbar'
|
|
|
92
92
|
import YksTable from './Table'
|
|
93
93
|
import YksUploadfile from './UploadFile'
|
|
94
94
|
import YksVideo from './Video'
|
|
95
|
-
import YksOption from './option
|
|
96
|
-
|
|
97
|
-
import {
|
|
98
|
-
Single,
|
|
99
|
-
Multiple,
|
|
100
|
-
Judgment,
|
|
101
|
-
FillInBlanks,
|
|
102
|
-
ShortAnswer,
|
|
103
|
-
PictureAnswer,
|
|
104
|
-
Compound,
|
|
105
|
-
AudioFrequency,
|
|
106
|
-
Attachment
|
|
107
|
-
} from './Topic/index'
|
|
95
|
+
import YksOption from './option'
|
|
96
|
+
import YksTopic from './Topic'
|
|
108
97
|
|
|
109
98
|
import locale from 'element-ui/src/locale'
|
|
110
99
|
const components = [
|
|
@@ -118,7 +107,8 @@ const components = [
|
|
|
118
107
|
YksTable,
|
|
119
108
|
YksUploadfile,
|
|
120
109
|
YksOption,
|
|
121
|
-
YksVideo
|
|
110
|
+
YksVideo,
|
|
111
|
+
...YksTopic
|
|
122
112
|
]
|
|
123
113
|
const install = function (Vue, opts = {}) {
|
|
124
114
|
locale.use(opts.locale)
|
|
@@ -148,19 +138,10 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
148
138
|
install(window.Vue)
|
|
149
139
|
}
|
|
150
140
|
export default {
|
|
151
|
-
version: '1.0.
|
|
141
|
+
version: '1.0.323',
|
|
152
142
|
locale: locale.use,
|
|
153
143
|
i18n: locale.i18n,
|
|
154
144
|
install,
|
|
155
|
-
Single,
|
|
156
|
-
Multiple,
|
|
157
|
-
Judgment,
|
|
158
|
-
FillInBlanks,
|
|
159
|
-
ShortAnswer,
|
|
160
|
-
PictureAnswer,
|
|
161
|
-
Compound,
|
|
162
|
-
AudioFrequency,
|
|
163
|
-
Attachment,
|
|
164
145
|
/* element-ui */
|
|
165
146
|
Pagination,
|
|
166
147
|
Dialog,
|