ai-error-assistant-pro 0.0.2 → 0.0.3

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.
@@ -2,9 +2,7 @@
2
2
  <div class="error-chat-contain">
3
3
  <div class="exercises-answer">
4
4
  <div class="exercises-answer-bg"></div>
5
- <p class="question-stem">
6
- {{ questionStem.title }}
7
- </p>
5
+ <p class="question-stem" v-html="questionStem.title"></p>
8
6
  <div class="answer-part" v-if="questionStem.type === 'single' || questionStem.type === 'multiple'">
9
7
  <div class="answer-list" v-for="(item, index) in questionStem.options" :key="index">
10
8
  <div class="check-content" style="width: 24px">
@@ -21,20 +19,21 @@
21
19
  v-if="questionStem.type === 'judge'">
22
20
  正确答案: <span style="margin-left: 8px">{{ questionStem.answer.join(',') }}</span>
23
21
  </div>
22
+ <!-- <div class="answer-part"-->
23
+ <!-- style="padding-bottom: 24px"-->
24
+ <!-- v-if="questionStem.type === 'gapfilling'">-->
25
+ <!-- 正确答案:-->
26
+ <!-- <span style="margin-left: 8px"-->
27
+ <!-- v-for="(item, index) in questionStem.answer"-->
28
+ <!-- :key="index">-->
29
+ <!-- {{ item }}<span v-if="index !== questionStem.answer.length - 1">,</span>-->
30
+ <!-- </span>-->
31
+ <!-- </div>-->
24
32
  <div class="answer-part"
25
33
  style="padding-bottom: 24px"
26
- v-if="questionStem.type === 'gapfilling'">
27
- 正确答案:
28
- <span style="margin-left: 8px"
29
- v-for="(item, index) in questionStem.answer"
30
- :key="index">
31
- {{ item }}<span v-if="index !== questionStem.answer.length - 1">,</span>
32
- </span>
33
- </div>
34
- <div class="answer-part"
35
- style="padding-bottom: 24px"
36
- v-if="questionStem.type === 'shortanswer'">
37
- 正确答案: <span style="margin-left: 8px">{{ questionStem.answer.join(',') }}</span>
34
+ v-if="questionStem.type === 'shortanswer' || questionStem.type === 'gapfilling'">
35
+ <span style="vertical-align: inherit; display: inline-block">正确答案:</span>
36
+ <span style="margin-left: 8px; display: inline-block; width: calc(100% - 82px); vertical-align: top;" v-html="questionStem.answer.join(',')"></span>
38
37
  </div>
39
38
  <div class="student-answer-part">
40
39
  <div class="check-content" style="width: 24px; margin-right: 16px">
@@ -50,14 +49,14 @@
50
49
  <div v-if="questionStem.type === 'judge'">
51
50
  <span style="margin-left: 8px">{{ questionStem.studentAnswer.join(',') }}</span>
52
51
  </div>
53
- <span style="margin-left: 8px"
54
- v-if="questionStem.type === 'gapfilling'"
55
- v-for="(item, index) in questionStem.studentAnswer"
56
- :key="index">
57
- {{ item }}<span v-if="index !== questionStem.studentAnswer.length - 1">,</span>
58
- </span>
59
- <div v-if="questionStem.type === 'shortanswer'">
60
- <span style="margin-left: 8px">{{ questionStem.studentAnswer.join(',') }}</span>
52
+ <!-- <span style="margin-left: 8px"-->
53
+ <!-- v-if="questionStem.type === 'gapfilling'"-->
54
+ <!-- v-for="(item, index) in questionStem.studentAnswer"-->
55
+ <!-- :key="index">-->
56
+ <!-- {{ item }}<span v-if="index !== questionStem.studentAnswer.length - 1">,</span>-->
57
+ <!-- </span>-->
58
+ <div v-if="questionStem.type === 'shortanswer' || questionStem.type === 'gapfilling'">
59
+ <span style="margin-left: 8px" v-html="questionStem.studentAnswer.join(',')"></span>
61
60
  </div>
62
61
  </div>
63
62
  </div>
@@ -11308,8 +11308,8 @@ var component = normalizeComponent(
11308
11308
  )
11309
11309
 
11310
11310
  /* harmony default export */ var chat_tools = (component.exports);
11311
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=template&id=2fd7df27&scoped=true
11312
- var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render() {
11311
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=template&id=1eee0b32&scoped=true
11312
+ var error_chatvue_type_template_id_1eee0b32_scoped_true_render = function render() {
11313
11313
  var _vm = this,
11314
11314
  _c = _vm._self._c;
11315
11315
  return _c('div', {
@@ -11319,8 +11319,11 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11319
11319
  }, [_c('div', {
11320
11320
  staticClass: "exercises-answer-bg"
11321
11321
  }), _c('p', {
11322
- staticClass: "question-stem"
11323
- }, [_vm._v(" " + _vm._s(_vm.questionStem.title) + " ")]), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', {
11322
+ staticClass: "question-stem",
11323
+ domProps: {
11324
+ "innerHTML": _vm._s(_vm.questionStem.title)
11325
+ }
11326
+ }), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', {
11324
11327
  staticClass: "answer-part"
11325
11328
  }, _vm._l(_vm.questionStem.options, function (item, index) {
11326
11329
  return _c('div', {
@@ -11351,28 +11354,27 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11351
11354
  staticStyle: {
11352
11355
  "margin-left": "8px"
11353
11356
  }
11354
- }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'gapfilling' ? _c('div', {
11357
+ }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'shortanswer' || _vm.questionStem.type === 'gapfilling' ? _c('div', {
11355
11358
  staticClass: "answer-part",
11356
11359
  staticStyle: {
11357
11360
  "padding-bottom": "24px"
11358
11361
  }
11359
- }, [_vm._v(" 正确答案: "), _vm._l(_vm.questionStem.answer, function (item, index) {
11360
- return _c('span', {
11361
- key: index,
11362
- staticStyle: {
11363
- "margin-left": "8px"
11364
- }
11365
- }, [_vm._v(" " + _vm._s(item)), index !== _vm.questionStem.answer.length - 1 ? _c('span', [_vm._v(",")]) : _vm._e()]);
11366
- })], 2) : _vm._e(), _vm.questionStem.type === 'shortanswer' ? _c('div', {
11367
- staticClass: "answer-part",
11362
+ }, [_c('span', {
11368
11363
  staticStyle: {
11369
- "padding-bottom": "24px"
11364
+ "vertical-align": "inherit",
11365
+ "display": "inline-block"
11370
11366
  }
11371
- }, [_vm._v(" 正确答案: "), _c('span', {
11367
+ }, [_vm._v("正确答案:")]), _c('span', {
11372
11368
  staticStyle: {
11373
- "margin-left": "8px"
11369
+ "margin-left": "8px",
11370
+ "display": "inline-block",
11371
+ "width": "calc(100% - 82px)",
11372
+ "vertical-align": "top"
11373
+ },
11374
+ domProps: {
11375
+ "innerHTML": _vm._s(_vm.questionStem.answer.join(','))
11374
11376
  }
11375
- }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _c('div', {
11377
+ })]) : _vm._e(), _c('div', {
11376
11378
  staticClass: "student-answer-part"
11377
11379
  }, [_vm._m(0), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', _vm._l(_vm.questionStem.studentAnswer, function (item, index) {
11378
11380
  return _c('span', {
@@ -11385,18 +11387,14 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11385
11387
  staticStyle: {
11386
11388
  "margin-left": "8px"
11387
11389
  }
11388
- }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e(), _vm._l(_vm.questionStem.studentAnswer, function (item, index) {
11389
- return _vm.questionStem.type === 'gapfilling' ? _c('span', {
11390
- key: index,
11391
- staticStyle: {
11392
- "margin-left": "8px"
11393
- }
11394
- }, [_vm._v(" " + _vm._s(item)), index !== _vm.questionStem.studentAnswer.length - 1 ? _c('span', [_vm._v(",")]) : _vm._e()]) : _vm._e();
11395
- }), _vm.questionStem.type === 'shortanswer' ? _c('div', [_c('span', {
11390
+ }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'shortanswer' || _vm.questionStem.type === 'gapfilling' ? _c('div', [_c('span', {
11396
11391
  staticStyle: {
11397
11392
  "margin-left": "8px"
11393
+ },
11394
+ domProps: {
11395
+ "innerHTML": _vm._s(_vm.questionStem.studentAnswer.join(','))
11398
11396
  }
11399
- }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e()], 2)]), _c('div', {
11397
+ })]) : _vm._e()])]), _c('div', {
11400
11398
  directives: [{
11401
11399
  name: "loading",
11402
11400
  rawName: "v-loading",
@@ -11448,7 +11446,7 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11448
11446
  }
11449
11447
  })], 1)]);
11450
11448
  };
11451
- var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [function () {
11449
+ var error_chatvue_type_template_id_1eee0b32_scoped_true_staticRenderFns = [function () {
11452
11450
  var _vm = this,
11453
11451
  _c = _vm._self._c;
11454
11452
  return _c('div', {
@@ -11467,7 +11465,7 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11467
11465
  })]);
11468
11466
  }];
11469
11467
 
11470
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=2fd7df27&scoped=true
11468
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=1eee0b32&scoped=true
11471
11469
 
11472
11470
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=script&lang=js
11473
11471
 
@@ -11582,10 +11580,10 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11582
11580
  });
11583
11581
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
11584
11582
  /* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
11585
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=style&index=0&id=2fd7df27&prod&lang=scss&scoped=true
11583
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=style&index=0&id=1eee0b32&prod&lang=scss&scoped=true
11586
11584
  // extracted by mini-css-extract-plugin
11587
11585
 
11588
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=2fd7df27&prod&lang=scss&scoped=true
11586
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=1eee0b32&prod&lang=scss&scoped=true
11589
11587
 
11590
11588
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
11591
11589
 
@@ -11598,11 +11596,11 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11598
11596
 
11599
11597
  var error_chat_component = normalizeComponent(
11600
11598
  src_error_chatvue_type_script_lang_js,
11601
- error_chatvue_type_template_id_2fd7df27_scoped_true_render,
11602
- error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns,
11599
+ error_chatvue_type_template_id_1eee0b32_scoped_true_render,
11600
+ error_chatvue_type_template_id_1eee0b32_scoped_true_staticRenderFns,
11603
11601
  false,
11604
11602
  null,
11605
- "2fd7df27",
11603
+ "1eee0b32",
11606
11604
  null
11607
11605
 
11608
11606
  )