@zykjcommon/questions 0.0.53 → 0.0.54
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.
|
@@ -21592,48 +21592,40 @@ const TextAreaEditor_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Tex
|
|
|
21592
21592
|
const Question_BriefAnswer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_BriefAnswervue_type_script_lang_js, [['render',Question_BriefAnswervue_type_template_id_ab96e51e_render]])
|
|
21593
21593
|
|
|
21594
21594
|
/* harmony default export */ var Question_BriefAnswer = (Question_BriefAnswer_exports_);
|
|
21595
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=template&id=
|
|
21595
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=template&id=ce78c582
|
|
21596
21596
|
|
|
21597
|
-
var
|
|
21597
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_1 = {
|
|
21598
21598
|
class: "zykjcommon-question"
|
|
21599
21599
|
};
|
|
21600
|
-
var
|
|
21600
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_2 = {
|
|
21601
21601
|
key: 0,
|
|
21602
21602
|
class: "question-type"
|
|
21603
21603
|
};
|
|
21604
|
-
var
|
|
21605
|
-
key: 0,
|
|
21606
|
-
class: "question-type-str"
|
|
21607
|
-
};
|
|
21608
|
-
var Question_FillBlankvue_type_template_id_62528820_hoisted_4 = {
|
|
21604
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_3 = {
|
|
21609
21605
|
key: 0
|
|
21610
21606
|
};
|
|
21611
|
-
var
|
|
21612
|
-
key: 1
|
|
21613
|
-
};
|
|
21614
|
-
var Question_FillBlankvue_type_template_id_62528820_hoisted_6 = {
|
|
21615
|
-
key: 2,
|
|
21607
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_4 = {
|
|
21608
|
+
key: 1,
|
|
21616
21609
|
class: "score fr"
|
|
21617
21610
|
};
|
|
21618
|
-
var
|
|
21611
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_5 = {
|
|
21619
21612
|
class: "question-box"
|
|
21620
21613
|
};
|
|
21621
|
-
var
|
|
21622
|
-
|
|
21614
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_6 = {
|
|
21615
|
+
key: 0,
|
|
21616
|
+
class: "question-hint"
|
|
21617
|
+
};
|
|
21618
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_7 = ["innerHTML"];
|
|
21619
|
+
function Question_FillBlankvue_type_template_id_ce78c582_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21623
21620
|
var _component_MediaLooker = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MediaLooker");
|
|
21624
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
21625
|
-
key: 0,
|
|
21626
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["question-hint", {
|
|
21627
|
-
'bold': !$props.showQuestionType
|
|
21628
|
-
}])
|
|
21629
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.questionInfo.htmlContent ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21621
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_1, [!$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.questionIndex) + "、" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.question_type_str), 1), $props.questionInfo.score !== 'null' && $props.showScore ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_FillBlankvue_type_template_id_ce78c582_hoisted_3, "(" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.score) + "分1111)", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_FillBlankvue_type_template_id_ce78c582_hoisted_4, "得分:" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.answerMap ? $props.questionInfo.answerMap.user_score : '-') + "分", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_5, [$props.questionInfo.hint && !$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.questionInfo.htmlContent ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21630
21622
|
key: 1,
|
|
21631
21623
|
class: "editor-content",
|
|
21632
21624
|
style: {
|
|
21633
21625
|
"line-height": "40px"
|
|
21634
21626
|
},
|
|
21635
21627
|
innerHTML: $props.questionInfo.htmlContent
|
|
21636
|
-
}, null, 8,
|
|
21628
|
+
}, null, 8, Question_FillBlankvue_type_template_id_ce78c582_hoisted_7)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), _ctx.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MediaLooker, {
|
|
21637
21629
|
key: 1,
|
|
21638
21630
|
visible: _ctx.visible,
|
|
21639
21631
|
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
@@ -21643,7 +21635,7 @@ function Question_FillBlankvue_type_template_id_62528820_render(_ctx, _cache, $p
|
|
|
21643
21635
|
mediaLookerList: _ctx.mediaLookerList
|
|
21644
21636
|
}, null, 8, ["visible", "mediaCount", "mediaLookerList"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
21645
21637
|
}
|
|
21646
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_FillBlank.vue?vue&type=template&id=
|
|
21638
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_FillBlank.vue?vue&type=template&id=ce78c582
|
|
21647
21639
|
|
|
21648
21640
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=script&lang=js
|
|
21649
21641
|
|
|
@@ -21691,18 +21683,6 @@ var filerRegs = [{
|
|
|
21691
21683
|
showScore: {
|
|
21692
21684
|
type: Boolean,
|
|
21693
21685
|
default: false
|
|
21694
|
-
},
|
|
21695
|
-
showQuestionType: {
|
|
21696
|
-
type: Boolean,
|
|
21697
|
-
default: true
|
|
21698
|
-
},
|
|
21699
|
-
showQuestionHint: {
|
|
21700
|
-
type: Boolean,
|
|
21701
|
-
default: true
|
|
21702
|
-
},
|
|
21703
|
-
showQuestionIndex: {
|
|
21704
|
-
type: Boolean,
|
|
21705
|
-
default: true
|
|
21706
21686
|
}
|
|
21707
21687
|
},
|
|
21708
21688
|
mounted: function mounted() {
|
|
@@ -21714,10 +21694,33 @@ var filerRegs = [{
|
|
|
21714
21694
|
_this.answerMap = nv.answerMap;
|
|
21715
21695
|
var fillBlank = jQuery(_this.$el).find('.fill-blank');
|
|
21716
21696
|
fillBlank.replaceWith(jQuery("<span class=\"fill-blank\" contenteditable=\"".concat(self.mode === 'exam' ? 'true' : 'false', "\"> </span>")));
|
|
21697
|
+
|
|
21698
|
+
//先解绑
|
|
21699
|
+
jQuery(_this.$el).find('.fill-blank').unbind('input');
|
|
21700
|
+
jQuery(_this.$el).find('.fill-blank').unbind('keydown');
|
|
21701
|
+
jQuery(_this.$el).find('.fill-blank').unbind('paste');
|
|
21702
|
+
jQuery(_this.$el).bind('keydown', function (e) {
|
|
21703
|
+
if (e.keyCode === 13) {
|
|
21704
|
+
e.preventDefault();
|
|
21705
|
+
}
|
|
21706
|
+
});
|
|
21707
|
+
jQuery(_this.$el).bind('paste', function (e) {
|
|
21708
|
+
// self.pasteMark = true
|
|
21709
|
+
e.preventDefault();
|
|
21710
|
+
});
|
|
21717
21711
|
jQuery(_this.$el).find('.fill-blank').bind('input', function (e) {
|
|
21718
21712
|
var ipt = jQuery(e.target);
|
|
21719
|
-
var iptValue = ipt.
|
|
21713
|
+
var iptValue = ipt.text();
|
|
21720
21714
|
iptValue = self.getIptValue(iptValue);
|
|
21715
|
+
console.log(iptValue, 123456);
|
|
21716
|
+
//黏贴后过滤掉格式,只留文本
|
|
21717
|
+
// if(self.pasteMark){
|
|
21718
|
+
// ipt.text(iptValue)
|
|
21719
|
+
// var selection = window.getSelection();
|
|
21720
|
+
// selection.selectAllChildren(ipt.get(0));
|
|
21721
|
+
// selection.collapseToEnd();
|
|
21722
|
+
// self.pasteMark = false
|
|
21723
|
+
// }
|
|
21721
21724
|
if (iptValue.length <= 0) {
|
|
21722
21725
|
ipt.html(' ');
|
|
21723
21726
|
}
|
|
@@ -21761,7 +21764,8 @@ var filerRegs = [{
|
|
|
21761
21764
|
data: function data() {
|
|
21762
21765
|
return _objectSpread2({
|
|
21763
21766
|
analyCorrectAnswer: '',
|
|
21764
|
-
answerMap: {}
|
|
21767
|
+
answerMap: {},
|
|
21768
|
+
pasteMark: false
|
|
21765
21769
|
}, JSON.parse(commonData));
|
|
21766
21770
|
},
|
|
21767
21771
|
watch: {},
|
|
@@ -21772,7 +21776,7 @@ var filerRegs = [{
|
|
|
21772
21776
|
var fillBlank = jQuery(this.$el).find('.fill-blank');
|
|
21773
21777
|
var gap_data = [];
|
|
21774
21778
|
fillBlank.each(function (index, item) {
|
|
21775
|
-
var iptValue = jQuery(item).
|
|
21779
|
+
var iptValue = jQuery(item).text();
|
|
21776
21780
|
iptValue = _this2.getIptValue(iptValue);
|
|
21777
21781
|
gap_data.push(iptValue);
|
|
21778
21782
|
});
|
|
@@ -21782,7 +21786,7 @@ var filerRegs = [{
|
|
|
21782
21786
|
},
|
|
21783
21787
|
isAnswered: function isAnswered() {
|
|
21784
21788
|
var answerResult = this.getAnswer().gap_data;
|
|
21785
|
-
var answered = answerResult.
|
|
21789
|
+
var answered = answerResult.every(function (item) {
|
|
21786
21790
|
return item !== '';
|
|
21787
21791
|
});
|
|
21788
21792
|
return answered;
|
|
@@ -21807,7 +21811,7 @@ var filerRegs = [{
|
|
|
21807
21811
|
|
|
21808
21812
|
|
|
21809
21813
|
;
|
|
21810
|
-
const Question_FillBlank_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_FillBlankvue_type_script_lang_js, [['render',
|
|
21814
|
+
const Question_FillBlank_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_FillBlankvue_type_script_lang_js, [['render',Question_FillBlankvue_type_template_id_ce78c582_render]])
|
|
21811
21815
|
|
|
21812
21816
|
/* harmony default export */ var Question_FillBlank = (Question_FillBlank_exports_);
|
|
21813
21817
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Programming.vue?vue&type=template&id=61b5ec79
|
|
@@ -21602,48 +21602,40 @@ const TextAreaEditor_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Tex
|
|
|
21602
21602
|
const Question_BriefAnswer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_BriefAnswervue_type_script_lang_js, [['render',Question_BriefAnswervue_type_template_id_ab96e51e_render]])
|
|
21603
21603
|
|
|
21604
21604
|
/* harmony default export */ var Question_BriefAnswer = (Question_BriefAnswer_exports_);
|
|
21605
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=template&id=
|
|
21605
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=template&id=ce78c582
|
|
21606
21606
|
|
|
21607
|
-
var
|
|
21607
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_1 = {
|
|
21608
21608
|
class: "zykjcommon-question"
|
|
21609
21609
|
};
|
|
21610
|
-
var
|
|
21610
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_2 = {
|
|
21611
21611
|
key: 0,
|
|
21612
21612
|
class: "question-type"
|
|
21613
21613
|
};
|
|
21614
|
-
var
|
|
21615
|
-
key: 0,
|
|
21616
|
-
class: "question-type-str"
|
|
21617
|
-
};
|
|
21618
|
-
var Question_FillBlankvue_type_template_id_62528820_hoisted_4 = {
|
|
21614
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_3 = {
|
|
21619
21615
|
key: 0
|
|
21620
21616
|
};
|
|
21621
|
-
var
|
|
21622
|
-
key: 1
|
|
21623
|
-
};
|
|
21624
|
-
var Question_FillBlankvue_type_template_id_62528820_hoisted_6 = {
|
|
21625
|
-
key: 2,
|
|
21617
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_4 = {
|
|
21618
|
+
key: 1,
|
|
21626
21619
|
class: "score fr"
|
|
21627
21620
|
};
|
|
21628
|
-
var
|
|
21621
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_5 = {
|
|
21629
21622
|
class: "question-box"
|
|
21630
21623
|
};
|
|
21631
|
-
var
|
|
21632
|
-
|
|
21624
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_6 = {
|
|
21625
|
+
key: 0,
|
|
21626
|
+
class: "question-hint"
|
|
21627
|
+
};
|
|
21628
|
+
var Question_FillBlankvue_type_template_id_ce78c582_hoisted_7 = ["innerHTML"];
|
|
21629
|
+
function Question_FillBlankvue_type_template_id_ce78c582_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21633
21630
|
var _component_MediaLooker = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MediaLooker");
|
|
21634
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
21635
|
-
key: 0,
|
|
21636
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["question-hint", {
|
|
21637
|
-
'bold': !$props.showQuestionType
|
|
21638
|
-
}])
|
|
21639
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.questionInfo.htmlContent ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21631
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_1, [!$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.questionIndex) + "、" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.question_type_str), 1), $props.questionInfo.score !== 'null' && $props.showScore ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_FillBlankvue_type_template_id_ce78c582_hoisted_3, "(" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.score) + "分1111)", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_FillBlankvue_type_template_id_ce78c582_hoisted_4, "得分:" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.answerMap ? $props.questionInfo.answerMap.user_score : '-') + "分", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_5, [$props.questionInfo.hint && !$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_FillBlankvue_type_template_id_ce78c582_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.questionInfo.htmlContent ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21640
21632
|
key: 1,
|
|
21641
21633
|
class: "editor-content",
|
|
21642
21634
|
style: {
|
|
21643
21635
|
"line-height": "40px"
|
|
21644
21636
|
},
|
|
21645
21637
|
innerHTML: $props.questionInfo.htmlContent
|
|
21646
|
-
}, null, 8,
|
|
21638
|
+
}, null, 8, Question_FillBlankvue_type_template_id_ce78c582_hoisted_7)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), _ctx.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MediaLooker, {
|
|
21647
21639
|
key: 1,
|
|
21648
21640
|
visible: _ctx.visible,
|
|
21649
21641
|
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
@@ -21653,7 +21645,7 @@ function Question_FillBlankvue_type_template_id_62528820_render(_ctx, _cache, $p
|
|
|
21653
21645
|
mediaLookerList: _ctx.mediaLookerList
|
|
21654
21646
|
}, null, 8, ["visible", "mediaCount", "mediaLookerList"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
21655
21647
|
}
|
|
21656
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_FillBlank.vue?vue&type=template&id=
|
|
21648
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_FillBlank.vue?vue&type=template&id=ce78c582
|
|
21657
21649
|
|
|
21658
21650
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_FillBlank.vue?vue&type=script&lang=js
|
|
21659
21651
|
|
|
@@ -21701,18 +21693,6 @@ var filerRegs = [{
|
|
|
21701
21693
|
showScore: {
|
|
21702
21694
|
type: Boolean,
|
|
21703
21695
|
default: false
|
|
21704
|
-
},
|
|
21705
|
-
showQuestionType: {
|
|
21706
|
-
type: Boolean,
|
|
21707
|
-
default: true
|
|
21708
|
-
},
|
|
21709
|
-
showQuestionHint: {
|
|
21710
|
-
type: Boolean,
|
|
21711
|
-
default: true
|
|
21712
|
-
},
|
|
21713
|
-
showQuestionIndex: {
|
|
21714
|
-
type: Boolean,
|
|
21715
|
-
default: true
|
|
21716
21696
|
}
|
|
21717
21697
|
},
|
|
21718
21698
|
mounted: function mounted() {
|
|
@@ -21724,10 +21704,33 @@ var filerRegs = [{
|
|
|
21724
21704
|
_this.answerMap = nv.answerMap;
|
|
21725
21705
|
var fillBlank = jQuery(_this.$el).find('.fill-blank');
|
|
21726
21706
|
fillBlank.replaceWith(jQuery("<span class=\"fill-blank\" contenteditable=\"".concat(self.mode === 'exam' ? 'true' : 'false', "\"> </span>")));
|
|
21707
|
+
|
|
21708
|
+
//先解绑
|
|
21709
|
+
jQuery(_this.$el).find('.fill-blank').unbind('input');
|
|
21710
|
+
jQuery(_this.$el).find('.fill-blank').unbind('keydown');
|
|
21711
|
+
jQuery(_this.$el).find('.fill-blank').unbind('paste');
|
|
21712
|
+
jQuery(_this.$el).bind('keydown', function (e) {
|
|
21713
|
+
if (e.keyCode === 13) {
|
|
21714
|
+
e.preventDefault();
|
|
21715
|
+
}
|
|
21716
|
+
});
|
|
21717
|
+
jQuery(_this.$el).bind('paste', function (e) {
|
|
21718
|
+
// self.pasteMark = true
|
|
21719
|
+
e.preventDefault();
|
|
21720
|
+
});
|
|
21727
21721
|
jQuery(_this.$el).find('.fill-blank').bind('input', function (e) {
|
|
21728
21722
|
var ipt = jQuery(e.target);
|
|
21729
|
-
var iptValue = ipt.
|
|
21723
|
+
var iptValue = ipt.text();
|
|
21730
21724
|
iptValue = self.getIptValue(iptValue);
|
|
21725
|
+
console.log(iptValue, 123456);
|
|
21726
|
+
//黏贴后过滤掉格式,只留文本
|
|
21727
|
+
// if(self.pasteMark){
|
|
21728
|
+
// ipt.text(iptValue)
|
|
21729
|
+
// var selection = window.getSelection();
|
|
21730
|
+
// selection.selectAllChildren(ipt.get(0));
|
|
21731
|
+
// selection.collapseToEnd();
|
|
21732
|
+
// self.pasteMark = false
|
|
21733
|
+
// }
|
|
21731
21734
|
if (iptValue.length <= 0) {
|
|
21732
21735
|
ipt.html(' ');
|
|
21733
21736
|
}
|
|
@@ -21771,7 +21774,8 @@ var filerRegs = [{
|
|
|
21771
21774
|
data: function data() {
|
|
21772
21775
|
return _objectSpread2({
|
|
21773
21776
|
analyCorrectAnswer: '',
|
|
21774
|
-
answerMap: {}
|
|
21777
|
+
answerMap: {},
|
|
21778
|
+
pasteMark: false
|
|
21775
21779
|
}, JSON.parse(commonData));
|
|
21776
21780
|
},
|
|
21777
21781
|
watch: {},
|
|
@@ -21782,7 +21786,7 @@ var filerRegs = [{
|
|
|
21782
21786
|
var fillBlank = jQuery(this.$el).find('.fill-blank');
|
|
21783
21787
|
var gap_data = [];
|
|
21784
21788
|
fillBlank.each(function (index, item) {
|
|
21785
|
-
var iptValue = jQuery(item).
|
|
21789
|
+
var iptValue = jQuery(item).text();
|
|
21786
21790
|
iptValue = _this2.getIptValue(iptValue);
|
|
21787
21791
|
gap_data.push(iptValue);
|
|
21788
21792
|
});
|
|
@@ -21792,7 +21796,7 @@ var filerRegs = [{
|
|
|
21792
21796
|
},
|
|
21793
21797
|
isAnswered: function isAnswered() {
|
|
21794
21798
|
var answerResult = this.getAnswer().gap_data;
|
|
21795
|
-
var answered = answerResult.
|
|
21799
|
+
var answered = answerResult.every(function (item) {
|
|
21796
21800
|
return item !== '';
|
|
21797
21801
|
});
|
|
21798
21802
|
return answered;
|
|
@@ -21817,7 +21821,7 @@ var filerRegs = [{
|
|
|
21817
21821
|
|
|
21818
21822
|
|
|
21819
21823
|
;
|
|
21820
|
-
const Question_FillBlank_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_FillBlankvue_type_script_lang_js, [['render',
|
|
21824
|
+
const Question_FillBlank_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_FillBlankvue_type_script_lang_js, [['render',Question_FillBlankvue_type_template_id_ce78c582_render]])
|
|
21821
21825
|
|
|
21822
21826
|
/* harmony default export */ var Question_FillBlank = (Question_FillBlank_exports_);
|
|
21823
21827
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Programming.vue?vue&type=template&id=61b5ec79
|