@zykjcommon/questions 0.0.47 → 0.0.49

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykjcommon/questions",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "main": "src/components/questions/entry.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -25,11 +25,17 @@ $greenItemFontSize:0.13em;
25
25
  color: #666666;
26
26
  font-weight: normal;
27
27
  }
28
+ .question-type-str{
29
+ display: inline-block;
30
+ }
28
31
  }
29
32
  .question-hint{
30
33
  margin-bottom: 20px;
31
34
  font-size: 16px;
32
35
  color: #333333;
36
+ &.bold{
37
+ font-weight: bold;
38
+ }
33
39
  }
34
40
  .question-box{
35
41
  padding-left: 30px;
@@ -369,7 +375,7 @@ $greenItemFontSize:0.13em;
369
375
  }
370
376
  .box-item{
371
377
  width: 4em;
372
- height: 4.4em;
378
+ height: 4.45em;
373
379
  display: flex;
374
380
  flex-direction: column;
375
381
  /*background: url("../../img/classify-boxitem-bg.png") no-repeat center;*/
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type" v-if="!isSub">
4
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
5
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
6
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
7
  </div>
6
8
  <div class="question-box">
7
- <div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
9
+ <div class="question-hint"
10
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
8
11
  <div class="editor-content" v-html="questionInfo.htmlContent"></div>
9
12
 
10
13
  <!-- <div class="editor-tit">样例输入</div>
@@ -78,6 +81,18 @@ export default {
78
81
  showScore: {
79
82
  type: Boolean,
80
83
  default: false
84
+ },
85
+ showQuestionType: {
86
+ type: Boolean,
87
+ default: true
88
+ },
89
+ showQuestionHint: {
90
+ type: Boolean,
91
+ default: true
92
+ },
93
+ showQuestionIndex: {
94
+ type: Boolean,
95
+ default: true
81
96
  }
82
97
  },
83
98
  mounted() {
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type" v-if="!isSub">
4
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
5
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
6
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
7
  </div>
6
8
  <div class="question-box">
7
- <div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
9
+ <div class="question-hint"
10
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
8
11
  <div class="editor-content"
9
12
  style="line-height: 40px;"
10
13
  v-if="questionInfo.htmlContent" v-html="questionInfo.htmlContent"></div>
@@ -58,6 +61,18 @@ export default {
58
61
  showScore: {
59
62
  type: Boolean,
60
63
  default: false
64
+ },
65
+ showQuestionType: {
66
+ type: Boolean,
67
+ default: true
68
+ },
69
+ showQuestionHint: {
70
+ type: Boolean,
71
+ default: true
72
+ },
73
+ showQuestionIndex: {
74
+ type: Boolean,
75
+ default: true
61
76
  }
62
77
  },
63
78
  mounted() {
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type" v-if="!isSub">
4
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
5
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
6
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
7
  </div>
6
8
  <div class="question-box">
7
- <div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
9
+ <div class="question-hint"
10
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
8
11
  <div class="editor-content" v-if="!isSub" v-html="questionInfo.htmlContent"></div>
9
12
 
10
13
  <div class="question-stem" v-if="isSub"><span v-if="questionInfo.hint">{{questionInfo.questionIndex2}}、</span>{{questionInfo.hint}}</div>
@@ -101,6 +104,18 @@ export default {
101
104
  showScore: {
102
105
  type: Boolean,
103
106
  default: false
107
+ },
108
+ showQuestionType: {
109
+ type: Boolean,
110
+ default: true
111
+ },
112
+ showQuestionHint: {
113
+ type: Boolean,
114
+ default: true
115
+ },
116
+ showQuestionIndex: {
117
+ type: Boolean,
118
+ default: true
104
119
  }
105
120
  },
106
121
  mounted() {
@@ -1,10 +1,15 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type" v-show="!isEnterCodeByInit" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type"
4
+ v-show="!isEnterCodeByInit"
5
+ v-if="!isSub">
6
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
7
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
8
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
9
  </div>
6
10
  <div class="question-box" v-show="!isEnterCodeByInit">
7
- <div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
11
+ <div class="question-hint"
12
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
8
13
  <div class="editor-content" v-html="questionInfo.htmlContent"></div>
9
14
  <button class="bcdt-btn"
10
15
  v-if="(mode==='exam' && !oss_temp_url) || mode==='review'"
@@ -107,6 +112,18 @@ export default {
107
112
  showScore: {
108
113
  type: Boolean,
109
114
  default: false
115
+ },
116
+ showQuestionType: {
117
+ type: Boolean,
118
+ default: true
119
+ },
120
+ showQuestionHint: {
121
+ type: Boolean,
122
+ default: true
123
+ },
124
+ showQuestionIndex: {
125
+ type: Boolean,
126
+ default: true
110
127
  }
111
128
  },
112
129
  mounted() {
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type">
4
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
5
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
6
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
7
  </div>
6
8
  <div class="question-box">
7
- <div class="question-hint" v-if="questionInfo.hint">{{ questionInfo.hint }}</div>
9
+ <div class="question-hint"
10
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint">{{ questionInfo.hint }}</div>
8
11
  <div class="editor-content editor-content-bor" v-html="questionInfo.htmlContent"></div>
9
12
  <div class="question-tabs">
10
13
  <div class="question-tab-item"
@@ -67,6 +70,18 @@ export default {
67
70
  showScore: {
68
71
  type: Boolean,
69
72
  default: false
73
+ },
74
+ showQuestionType: {
75
+ type: Boolean,
76
+ default: true
77
+ },
78
+ showQuestionHint: {
79
+ type: Boolean,
80
+ default: true
81
+ },
82
+ showQuestionIndex: {
83
+ type: Boolean,
84
+ default: true
70
85
  }
71
86
  },
72
87
  created() {
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="zykjcommon-question">
3
- <div class="question-type" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
3
+ <div class="question-type" v-if="!isSub">
4
+ <div class="question-type-str" v-if="showQuestionType"><span v-if="showQuestionIndex">{{questionInfo.questionIndex}}、</span>{{ questionInfo.question_type_str }}</div>
5
+ <span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
4
6
  <span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
5
7
  </div>
6
8
  <div class="question-box">
7
- <div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
9
+ <div class="question-hint"
10
+ :class="{'bold':!showQuestionType}" v-if="showQuestionHint && questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
8
11
  <div class="editor-content" v-if="!isSub" v-html="questionInfo.htmlContent"></div>
9
12
 
10
13
  <div class="question-stem" v-if="isSub"><span v-if="questionInfo.hint">{{questionInfo.questionIndex2}}、</span>{{questionInfo.hint}}</div>
@@ -109,6 +112,18 @@ export default {
109
112
  showScore: {
110
113
  type: Boolean,
111
114
  default: false
115
+ },
116
+ showQuestionType: {
117
+ type: Boolean,
118
+ default: true
119
+ },
120
+ showQuestionHint: {
121
+ type: Boolean,
122
+ default: true
123
+ },
124
+ showQuestionIndex: {
125
+ type: Boolean,
126
+ default: true
112
127
  }
113
128
  },
114
129
  mounted() {