@wg-npm/survey-response 0.5.194 → 0.5.201
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/dist/survey-response.esm.js +148 -105
- package/package.json +5 -5
- package/src/components/more-survey-response.vue +2 -2
- package/src/components/question/type/fill-blank.vue +21 -1
- package/src/components/question/type/quill-rich-text.vue +41 -22
- package/src/components/question/type/short-answer.vue +19 -0
- package/src/components/survey-response.vue +2 -2
- package/src/locale/lang/en-US.ts +5 -0
- package/src/locale/lang/zh-CN.ts +5 -0
|
@@ -16961,6 +16961,14 @@ var script$f = Vue.extend({
|
|
|
16961
16961
|
videoScreenShotButtonName: {
|
|
16962
16962
|
type: String,
|
|
16963
16963
|
default: "获取视频截图"
|
|
16964
|
+
},
|
|
16965
|
+
uploadImageExceedLimit: {
|
|
16966
|
+
type: String,
|
|
16967
|
+
default: "图片数量超过限制"
|
|
16968
|
+
},
|
|
16969
|
+
maxLengthHint: {
|
|
16970
|
+
type: String,
|
|
16971
|
+
default: "字数超过限制"
|
|
16964
16972
|
}
|
|
16965
16973
|
},
|
|
16966
16974
|
mounted() {
|
|
@@ -16969,9 +16977,20 @@ var script$f = Vue.extend({
|
|
|
16969
16977
|
EventBus.$on("screen-shot-urls", this.handleScreenShotUrl);
|
|
16970
16978
|
this.componentId = this.generateRandomId();
|
|
16971
16979
|
},
|
|
16980
|
+
computed: {
|
|
16981
|
+
imageCount() {
|
|
16982
|
+
let imgTagRegex = /<img\s[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/g;
|
|
16983
|
+
let matches = this.editorContent.match(imgTagRegex);
|
|
16984
|
+
return matches ? matches.length : 0;
|
|
16985
|
+
}
|
|
16986
|
+
},
|
|
16972
16987
|
methods: {
|
|
16973
16988
|
handleScreenShotUrl(screenData) {
|
|
16974
16989
|
if (this.componentId === screenData.messageId) {
|
|
16990
|
+
if (this.imageCount > 20) {
|
|
16991
|
+
this.$Message.error(this.uploadImageExceedLimit);
|
|
16992
|
+
return;
|
|
16993
|
+
}
|
|
16975
16994
|
for (let url of screenData.urls) {
|
|
16976
16995
|
let range = this.quill.getSelection();
|
|
16977
16996
|
if (!range) {
|
|
@@ -16980,7 +16999,7 @@ var script$f = Vue.extend({
|
|
|
16980
16999
|
length: 0
|
|
16981
17000
|
};
|
|
16982
17001
|
}
|
|
16983
|
-
const imgTag = `<img src="${url}" alt="image load fail" >`;
|
|
17002
|
+
const imgTag = `<img src="${url}" alt="image load fail" width="400px" height="auto" >`;
|
|
16984
17003
|
this.quill.clipboard.dangerouslyPasteHTML(range.index, imgTag);
|
|
16985
17004
|
this.quill.setSelection(range.index + 1);
|
|
16986
17005
|
}
|
|
@@ -17004,19 +17023,17 @@ var script$f = Vue.extend({
|
|
|
17004
17023
|
}
|
|
17005
17024
|
},
|
|
17006
17025
|
initQuill() {
|
|
17007
|
-
let toolbarOptions = [["bold", "italic", "underline", "strike"
|
|
17026
|
+
let toolbarOptions = [["bold", "italic", "underline", "strike", {
|
|
17008
17027
|
list: "ordered"
|
|
17009
17028
|
}, {
|
|
17010
17029
|
list: "bullet"
|
|
17011
|
-
}
|
|
17030
|
+
}, {
|
|
17012
17031
|
color: []
|
|
17013
17032
|
}, {
|
|
17014
17033
|
background: []
|
|
17015
|
-
}
|
|
17016
|
-
// dropdown with defaults from theme
|
|
17017
|
-
[{
|
|
17034
|
+
}, {
|
|
17018
17035
|
align: []
|
|
17019
|
-
}
|
|
17036
|
+
}, "clean"]];
|
|
17020
17037
|
if (this.showVideoScreenShotButton) {
|
|
17021
17038
|
toolbarOptions.push([{
|
|
17022
17039
|
"video-screen-shot": "video-screen-shot"
|
|
@@ -17040,12 +17057,13 @@ var script$f = Vue.extend({
|
|
|
17040
17057
|
this.quill.on("text-change", this.handleTextChange);
|
|
17041
17058
|
},
|
|
17042
17059
|
handleTextChange() {
|
|
17043
|
-
|
|
17060
|
+
this.editorContent = this.quill.root.innerHTML;
|
|
17044
17061
|
let text = this.quill.getText();
|
|
17045
|
-
if (text.length > this.
|
|
17046
|
-
this.
|
|
17062
|
+
if (text.length > this.maxlength) {
|
|
17063
|
+
this.$Message.error(this.maxLengthHint);
|
|
17064
|
+
this.quill.deleteText(this.maxlength, text.trim().length);
|
|
17047
17065
|
}
|
|
17048
|
-
this.$emit("input",
|
|
17066
|
+
this.$emit("input", this.editorContent);
|
|
17049
17067
|
},
|
|
17050
17068
|
customVideoScreenShot() {
|
|
17051
17069
|
//获取视频截图
|
|
@@ -17058,7 +17076,8 @@ var script$f = Vue.extend({
|
|
|
17058
17076
|
data() {
|
|
17059
17077
|
return {
|
|
17060
17078
|
quill: null,
|
|
17061
|
-
componentId: null
|
|
17079
|
+
componentId: null,
|
|
17080
|
+
editorContent: ""
|
|
17062
17081
|
};
|
|
17063
17082
|
},
|
|
17064
17083
|
watch: {
|
|
@@ -17070,7 +17089,6 @@ var script$f = Vue.extend({
|
|
|
17070
17089
|
},
|
|
17071
17090
|
beforeDestroy() {
|
|
17072
17091
|
// 移除事件监听器
|
|
17073
|
-
this.quill.root.removeEventListener("paste", this.handlePaste);
|
|
17074
17092
|
EventBus.$off("screen-shot-urls", this.handleScreenShotUrl);
|
|
17075
17093
|
}
|
|
17076
17094
|
});
|
|
@@ -17085,8 +17103,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
17085
17103
|
/* style */
|
|
17086
17104
|
const __vue_inject_styles__$f = function (inject) {
|
|
17087
17105
|
if (!inject) return
|
|
17088
|
-
inject("data-v-3988eed0_0", { source: "/*!\n * Quill Editor v2.0.2\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre{margin:0;padding:0}@supports (counter-set:none){.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor p{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor p{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked]>.ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:0}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor .ql-code-block-container,.ql-snow .ql-editor code{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}", map: undefined, media: undefined })
|
|
17089
|
-
,inject("data-v-
|
|
17106
|
+
inject("data-v-39252a46_0", { source: "/*!\n * Quill Editor v2.0.2\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre{margin:0;padding:0}@supports (counter-set:none){.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor p{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor p{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked]>.ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:0}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor .ql-code-block-container,.ql-snow .ql-editor code{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}", map: undefined, media: undefined })
|
|
17107
|
+
,inject("data-v-39252a46_1", { source: ".ql-editor img{max-height:200px;width:auto}", map: undefined, media: undefined });
|
|
17090
17108
|
|
|
17091
17109
|
};
|
|
17092
17110
|
/* scoped */
|
|
@@ -17123,6 +17141,7 @@ var script$e = Vue.extend({
|
|
|
17123
17141
|
QuillRichText,
|
|
17124
17142
|
FormItem,
|
|
17125
17143
|
},
|
|
17144
|
+
inject: ["$rootComponent"],
|
|
17126
17145
|
props: {
|
|
17127
17146
|
question: {
|
|
17128
17147
|
type: Object,
|
|
@@ -17176,17 +17195,26 @@ const __vue_script__$e = script$e;
|
|
|
17176
17195
|
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.readonly || _vm.question.options.disabled)?_c('div',{staticClass:"processed-answer",domProps:{"innerHTML":_vm._s(_vm.decodeHTML(_vm.value))}}):_c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
17177
17196
|
required: _vm.question.options.required,
|
|
17178
17197
|
message: _vm.t('survey_response.question.question_required'),
|
|
17179
|
-
}}},[_c('quill-rich-text',{attrs:{"disabled":_vm.question.options.readonly,"placeholder":_vm.placeholder,"maxlength":_vm.question.options.wordLimit
|
|
17198
|
+
}}},[_c('quill-rich-text',{attrs:{"disabled":_vm.question.options.readonly,"placeholder":_vm.placeholder,"maxlength":_vm.question.options.wordLimit,"video-screen-shot-button-name":_vm.t(
|
|
17199
|
+
'survey_response.common.tips.get_screen_shot_name',
|
|
17200
|
+
_vm.$rootComponent.currentLanguage
|
|
17201
|
+
),"upload-image-exceed-limit":_vm.t(
|
|
17202
|
+
'survey_response.common.tips.upload_image_exceed_the_limit',
|
|
17203
|
+
_vm.$rootComponent.currentLanguage
|
|
17204
|
+
),"max-length-hint":_vm.t(
|
|
17205
|
+
'survey_response.common.tips.max-length-hint ',
|
|
17206
|
+
_vm.$rootComponent.currentLanguage
|
|
17207
|
+
)},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"value.answer"}}),_vm._v(" "),_c('div')],1)],1)};
|
|
17180
17208
|
var __vue_staticRenderFns__$e = [];
|
|
17181
17209
|
|
|
17182
17210
|
/* style */
|
|
17183
17211
|
const __vue_inject_styles__$e = function (inject) {
|
|
17184
17212
|
if (!inject) return
|
|
17185
|
-
inject("data-v-
|
|
17213
|
+
inject("data-v-3fc94f91_0", { source: ".processed-answer[data-v-3fc94f91]{background-color:#f3f3f3;opacity:1;cursor:not-allowed;color:#ccc;width:100%;min-height:94px;border:1px solid #dcdee2;border-radius:4px;padding:4px 8px;line-height:1.5}", map: undefined, media: undefined });
|
|
17186
17214
|
|
|
17187
17215
|
};
|
|
17188
17216
|
/* scoped */
|
|
17189
|
-
const __vue_scope_id__$e = "data-v-
|
|
17217
|
+
const __vue_scope_id__$e = "data-v-3fc94f91";
|
|
17190
17218
|
/* module identifier */
|
|
17191
17219
|
const __vue_module_identifier__$e = undefined;
|
|
17192
17220
|
/* functional template */
|
|
@@ -17537,13 +17565,98 @@ var __vue_staticRenderFns__$b = [];
|
|
|
17537
17565
|
|
|
17538
17566
|
var TextTitle = __vue_component__$b;
|
|
17539
17567
|
|
|
17568
|
+
var defaultLang = {
|
|
17569
|
+
survey_response: {
|
|
17570
|
+
locale: "zh-CN",
|
|
17571
|
+
common: {
|
|
17572
|
+
back: "返回",
|
|
17573
|
+
save: "保存",
|
|
17574
|
+
submit: "提交",
|
|
17575
|
+
cancel: "取消",
|
|
17576
|
+
languages: {
|
|
17577
|
+
"zh-CN": "简体中文",
|
|
17578
|
+
"zh-TW": "繁体中文",
|
|
17579
|
+
"en-US": "English",
|
|
17580
|
+
},
|
|
17581
|
+
tips: {
|
|
17582
|
+
get_screen_shot_name: "获取视频截图",
|
|
17583
|
+
upload_image_exceed_the_limit: "图片数量超过限制",
|
|
17584
|
+
max_length_hint: "字数超过限制",
|
|
17585
|
+
}
|
|
17586
|
+
},
|
|
17587
|
+
question: {
|
|
17588
|
+
please_enter: "请填写",
|
|
17589
|
+
question_required: "此题必填",
|
|
17590
|
+
survey_confirm_content: "确认要提交问卷?",
|
|
17591
|
+
noQuestion: "还未添加题目!",
|
|
17592
|
+
input_text_limit: "输入项字数不少于{0}字",
|
|
17593
|
+
choice_required: "此项必填",
|
|
17594
|
+
},
|
|
17595
|
+
},
|
|
17596
|
+
};
|
|
17597
|
+
|
|
17598
|
+
let lang = defaultLang;
|
|
17599
|
+
let merged = false;
|
|
17600
|
+
let i18nHandler = function (...args) {
|
|
17601
|
+
const vuei18n = Object.getPrototypeOf(this || Vue).$t;
|
|
17602
|
+
if (typeof vuei18n === "function" && !!Vue.locale) {
|
|
17603
|
+
if (!merged) {
|
|
17604
|
+
merged = true;
|
|
17605
|
+
Vue.locale(Vue.config.lang, deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true }));
|
|
17606
|
+
}
|
|
17607
|
+
return vuei18n.apply(this, args);
|
|
17608
|
+
}
|
|
17609
|
+
};
|
|
17610
|
+
const t = function (...args) {
|
|
17611
|
+
let value = i18nHandler.apply(this, args);
|
|
17612
|
+
if (value !== null && typeof value !== "undefined") {
|
|
17613
|
+
return value;
|
|
17614
|
+
}
|
|
17615
|
+
const array = args[0].split(".");
|
|
17616
|
+
let current = lang;
|
|
17617
|
+
for (let i = 0, len = array.length; i < len; i++) {
|
|
17618
|
+
const property = array[i];
|
|
17619
|
+
value = current[property];
|
|
17620
|
+
if (i === len - 1) {
|
|
17621
|
+
return value;
|
|
17622
|
+
}
|
|
17623
|
+
else if (!value) {
|
|
17624
|
+
return "";
|
|
17625
|
+
}
|
|
17626
|
+
current = value;
|
|
17627
|
+
}
|
|
17628
|
+
return "";
|
|
17629
|
+
};
|
|
17630
|
+
const use = function (l) {
|
|
17631
|
+
lang = l || lang;
|
|
17632
|
+
};
|
|
17633
|
+
const i18n = function (fn) {
|
|
17634
|
+
i18nHandler = fn || i18nHandler;
|
|
17635
|
+
};
|
|
17636
|
+
function currentLang() {
|
|
17637
|
+
return lang;
|
|
17638
|
+
}
|
|
17639
|
+
var locale = { use, t, i18n, currentLang };
|
|
17640
|
+
|
|
17641
|
+
var LocaleMixin = Vue.extend({
|
|
17642
|
+
methods: {
|
|
17643
|
+
t(...args) {
|
|
17644
|
+
return t.apply(this, args);
|
|
17645
|
+
},
|
|
17646
|
+
i18nText(obj, prettyMath = true) {
|
|
17647
|
+
return translate(obj, this.$surveyLanguage, prettyMath);
|
|
17648
|
+
},
|
|
17649
|
+
},
|
|
17650
|
+
});
|
|
17651
|
+
|
|
17540
17652
|
var script$a = Vue.extend({
|
|
17541
17653
|
name: "fill-blank",
|
|
17542
17654
|
components: {
|
|
17543
17655
|
FormItem,
|
|
17544
17656
|
QuillRichText,
|
|
17545
17657
|
},
|
|
17546
|
-
|
|
17658
|
+
inject: ["$rootComponent"],
|
|
17659
|
+
mixins: [QuestionMixin, LocaleMixin],
|
|
17547
17660
|
props: {
|
|
17548
17661
|
question: {
|
|
17549
17662
|
type: Object,
|
|
@@ -17597,17 +17710,26 @@ const __vue_script__$a = script$a;
|
|
|
17597
17710
|
var __vue_render__$a = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.readonly || _vm.question.options.disabled)?_c('div',{staticClass:"processed-answer",domProps:{"innerHTML":_vm._s(_vm.decodeHTML(_vm.value))}}):_c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
17598
17711
|
required: _vm.question.options.required,
|
|
17599
17712
|
message: _vm.t('survey_response.question.question_required'),
|
|
17600
|
-
}}},[_c('quill-rich-text',{attrs:{"placeholder":_vm.placeholder,"disabled":_vm.question.options.readonly
|
|
17713
|
+
}}},[_c('quill-rich-text',{attrs:{"placeholder":_vm.placeholder,"disabled":_vm.question.options.readonly,"video-screen-shot-button-name":_vm.t(
|
|
17714
|
+
'survey_response.common.tips.get_screen_shot_name',
|
|
17715
|
+
_vm.$rootComponent.currentLanguage
|
|
17716
|
+
),"upload-image-exceed-limit":_vm.t(
|
|
17717
|
+
'survey_response.common.tips.upload_image_exceed_the_limit',
|
|
17718
|
+
_vm.$rootComponent.currentLanguage
|
|
17719
|
+
),"max-length-hint":_vm.t(
|
|
17720
|
+
'survey_response.common.tips.max-length-hint ',
|
|
17721
|
+
_vm.$rootComponent.currentLanguage
|
|
17722
|
+
)},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"value.answer"}})],1)],1)};
|
|
17601
17723
|
var __vue_staticRenderFns__$a = [];
|
|
17602
17724
|
|
|
17603
17725
|
/* style */
|
|
17604
17726
|
const __vue_inject_styles__$a = function (inject) {
|
|
17605
17727
|
if (!inject) return
|
|
17606
|
-
inject("data-v-
|
|
17728
|
+
inject("data-v-f81aecb8_0", { source: ".processed-answer[data-v-f81aecb8]{background-color:#f3f3f3;opacity:1;cursor:not-allowed;color:#ccc;width:100%;min-height:32px;border:1px solid #dcdee2;border-radius:4px;padding:4px 8px;line-height:1.5}", map: undefined, media: undefined });
|
|
17607
17729
|
|
|
17608
17730
|
};
|
|
17609
17731
|
/* scoped */
|
|
17610
|
-
const __vue_scope_id__$a = "data-v-
|
|
17732
|
+
const __vue_scope_id__$a = "data-v-f81aecb8";
|
|
17611
17733
|
/* module identifier */
|
|
17612
17734
|
const __vue_module_identifier__$a = undefined;
|
|
17613
17735
|
/* functional template */
|
|
@@ -17633,85 +17755,6 @@ var __vue_staticRenderFns__$a = [];
|
|
|
17633
17755
|
|
|
17634
17756
|
var FillBlank = __vue_component__$a;
|
|
17635
17757
|
|
|
17636
|
-
var defaultLang = {
|
|
17637
|
-
survey_response: {
|
|
17638
|
-
locale: "zh-CN",
|
|
17639
|
-
common: {
|
|
17640
|
-
back: "返回",
|
|
17641
|
-
save: "保存",
|
|
17642
|
-
submit: "提交",
|
|
17643
|
-
cancel: "取消",
|
|
17644
|
-
languages: {
|
|
17645
|
-
"zh-CN": "简体中文",
|
|
17646
|
-
"zh-TW": "繁体中文",
|
|
17647
|
-
"en-US": "English",
|
|
17648
|
-
},
|
|
17649
|
-
},
|
|
17650
|
-
question: {
|
|
17651
|
-
please_enter: "请填写",
|
|
17652
|
-
question_required: "此题必填",
|
|
17653
|
-
survey_confirm_content: "确认要提交问卷?",
|
|
17654
|
-
noQuestion: "还未添加题目!",
|
|
17655
|
-
input_text_limit: "输入项字数不少于{0}字",
|
|
17656
|
-
choice_required: "此项必填",
|
|
17657
|
-
},
|
|
17658
|
-
},
|
|
17659
|
-
};
|
|
17660
|
-
|
|
17661
|
-
let lang = defaultLang;
|
|
17662
|
-
let merged = false;
|
|
17663
|
-
let i18nHandler = function (...args) {
|
|
17664
|
-
const vuei18n = Object.getPrototypeOf(this || Vue).$t;
|
|
17665
|
-
if (typeof vuei18n === "function" && !!Vue.locale) {
|
|
17666
|
-
if (!merged) {
|
|
17667
|
-
merged = true;
|
|
17668
|
-
Vue.locale(Vue.config.lang, deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true }));
|
|
17669
|
-
}
|
|
17670
|
-
return vuei18n.apply(this, args);
|
|
17671
|
-
}
|
|
17672
|
-
};
|
|
17673
|
-
const t = function (...args) {
|
|
17674
|
-
let value = i18nHandler.apply(this, args);
|
|
17675
|
-
if (value !== null && typeof value !== "undefined") {
|
|
17676
|
-
return value;
|
|
17677
|
-
}
|
|
17678
|
-
const array = args[0].split(".");
|
|
17679
|
-
let current = lang;
|
|
17680
|
-
for (let i = 0, len = array.length; i < len; i++) {
|
|
17681
|
-
const property = array[i];
|
|
17682
|
-
value = current[property];
|
|
17683
|
-
if (i === len - 1) {
|
|
17684
|
-
return value;
|
|
17685
|
-
}
|
|
17686
|
-
else if (!value) {
|
|
17687
|
-
return "";
|
|
17688
|
-
}
|
|
17689
|
-
current = value;
|
|
17690
|
-
}
|
|
17691
|
-
return "";
|
|
17692
|
-
};
|
|
17693
|
-
const use = function (l) {
|
|
17694
|
-
lang = l || lang;
|
|
17695
|
-
};
|
|
17696
|
-
const i18n = function (fn) {
|
|
17697
|
-
i18nHandler = fn || i18nHandler;
|
|
17698
|
-
};
|
|
17699
|
-
function currentLang() {
|
|
17700
|
-
return lang;
|
|
17701
|
-
}
|
|
17702
|
-
var locale = { use, t, i18n, currentLang };
|
|
17703
|
-
|
|
17704
|
-
var LocaleMixin = Vue.extend({
|
|
17705
|
-
methods: {
|
|
17706
|
-
t(...args) {
|
|
17707
|
-
return t.apply(this, args);
|
|
17708
|
-
},
|
|
17709
|
-
i18nText(obj, prettyMath = true) {
|
|
17710
|
-
return translate(obj, this.$surveyLanguage, prettyMath);
|
|
17711
|
-
},
|
|
17712
|
-
},
|
|
17713
|
-
});
|
|
17714
|
-
|
|
17715
17758
|
var script$9 = Vue.extend({
|
|
17716
17759
|
name: "star",
|
|
17717
17760
|
mixins: [LocaleMixin],
|
|
@@ -18741,8 +18784,8 @@ var script$1 = Vue.extend({
|
|
|
18741
18784
|
watch: {
|
|
18742
18785
|
screenshotData: {
|
|
18743
18786
|
deep: true,
|
|
18744
|
-
handler(newValue
|
|
18745
|
-
if (
|
|
18787
|
+
handler(newValue) {
|
|
18788
|
+
if (Array.isArray(newValue.urls) && Array.isArray(newValue.urls) && newValue.urls.length > 0) {
|
|
18746
18789
|
EventBus.$emit("screen-shot-urls", newValue);
|
|
18747
18790
|
}
|
|
18748
18791
|
},
|
|
@@ -18919,8 +18962,8 @@ var script = Vue.extend({
|
|
|
18919
18962
|
watch: {
|
|
18920
18963
|
screenshotData: {
|
|
18921
18964
|
deep: true,
|
|
18922
|
-
handler(newValue
|
|
18923
|
-
if (
|
|
18965
|
+
handler(newValue) {
|
|
18966
|
+
if (Array.isArray(newValue.urls) && newValue.urls.length > 0) {
|
|
18924
18967
|
EventBus.$emit("screen-shot-urls", newValue);
|
|
18925
18968
|
}
|
|
18926
18969
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-response",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.201",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.5.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
15
|
+
"@wg-npm/survey-core": "0.5.201",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.5.201",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"deepmerge": "^4.2.2",
|
|
19
19
|
"lodash": "^4.17.15",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@typescript-eslint/parser": "^3.6.0",
|
|
35
35
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
36
36
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
37
|
-
"@wg-npm/survey-core": "0.5.
|
|
38
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
37
|
+
"@wg-npm/survey-core": "0.5.201",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.5.201",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -124,8 +124,8 @@ export default Vue.extend({
|
|
|
124
124
|
watch: {
|
|
125
125
|
screenshotData: {
|
|
126
126
|
deep: true,
|
|
127
|
-
handler(newValue
|
|
128
|
-
if (
|
|
127
|
+
handler(newValue) {
|
|
128
|
+
if (Array.isArray(newValue.urls) && newValue.urls.length > 0) {
|
|
129
129
|
EventBus.$emit("screen-shot-urls", newValue);
|
|
130
130
|
}
|
|
131
131
|
},
|
|
@@ -17,6 +17,24 @@
|
|
|
17
17
|
v-model.trim="value.answer"
|
|
18
18
|
:placeholder="placeholder"
|
|
19
19
|
:disabled="question.options.readonly"
|
|
20
|
+
:video-screen-shot-button-name="
|
|
21
|
+
t(
|
|
22
|
+
'survey_response.common.tips.get_screen_shot_name',
|
|
23
|
+
$rootComponent.currentLanguage
|
|
24
|
+
)
|
|
25
|
+
"
|
|
26
|
+
:upload-image-exceed-limit="
|
|
27
|
+
t(
|
|
28
|
+
'survey_response.common.tips.upload_image_exceed_the_limit',
|
|
29
|
+
$rootComponent.currentLanguage
|
|
30
|
+
)
|
|
31
|
+
"
|
|
32
|
+
:max-length-hint="
|
|
33
|
+
t(
|
|
34
|
+
'survey_response.common.tips.max-length-hint ',
|
|
35
|
+
$rootComponent.currentLanguage
|
|
36
|
+
)
|
|
37
|
+
"
|
|
20
38
|
></quill-rich-text>
|
|
21
39
|
</FormItem>
|
|
22
40
|
</div>
|
|
@@ -26,6 +44,7 @@
|
|
|
26
44
|
import Vue from "vue";
|
|
27
45
|
import { FormItem } from "view-design";
|
|
28
46
|
import QuestionMixin from "../../../mixins/question-mixin";
|
|
47
|
+
import LocalMixin from "../../../mixins/locale-mixin";
|
|
29
48
|
import QuillRichText from "./quill-rich-text.vue";
|
|
30
49
|
|
|
31
50
|
export default Vue.extend({
|
|
@@ -34,7 +53,8 @@ export default Vue.extend({
|
|
|
34
53
|
FormItem,
|
|
35
54
|
QuillRichText,
|
|
36
55
|
},
|
|
37
|
-
|
|
56
|
+
inject: ["$rootComponent"],
|
|
57
|
+
mixins: [QuestionMixin, LocalMixin],
|
|
38
58
|
props: {
|
|
39
59
|
question: {
|
|
40
60
|
type: Object,
|
|
@@ -37,6 +37,14 @@ export default Vue.extend({
|
|
|
37
37
|
type: String,
|
|
38
38
|
default: "获取视频截图",
|
|
39
39
|
},
|
|
40
|
+
uploadImageExceedLimit: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "图片数量超过限制",
|
|
43
|
+
},
|
|
44
|
+
maxLengthHint: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "字数超过限制",
|
|
47
|
+
},
|
|
40
48
|
},
|
|
41
49
|
mounted() {
|
|
42
50
|
this.initQuill();
|
|
@@ -44,15 +52,26 @@ export default Vue.extend({
|
|
|
44
52
|
EventBus.$on("screen-shot-urls", this.handleScreenShotUrl);
|
|
45
53
|
this.componentId = this.generateRandomId();
|
|
46
54
|
},
|
|
55
|
+
computed: {
|
|
56
|
+
imageCount() {
|
|
57
|
+
let imgTagRegex = /<img\s[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/g;
|
|
58
|
+
let matches = this.editorContent.match(imgTagRegex);
|
|
59
|
+
return matches ? matches.length : 0;
|
|
60
|
+
},
|
|
61
|
+
},
|
|
47
62
|
methods: {
|
|
48
63
|
handleScreenShotUrl(screenData) {
|
|
49
64
|
if (this.componentId === screenData.messageId) {
|
|
65
|
+
if (this.imageCount > 20) {
|
|
66
|
+
this.$Message.error(this.uploadImageExceedLimit);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
50
69
|
for (let url of screenData.urls) {
|
|
51
70
|
let range = this.quill.getSelection();
|
|
52
71
|
if (!range) {
|
|
53
72
|
range = { index: this.quill.getLength(), length: 0 };
|
|
54
73
|
}
|
|
55
|
-
const imgTag = `<img src="${url}" alt="image load fail" >`;
|
|
74
|
+
const imgTag = `<img src="${url}" alt="image load fail" width="400px" height="auto" >`;
|
|
56
75
|
this.quill.clipboard.dangerouslyPasteHTML(range.index, imgTag);
|
|
57
76
|
this.quill.setSelection(range.index + 1);
|
|
58
77
|
}
|
|
@@ -79,11 +98,18 @@ export default Vue.extend({
|
|
|
79
98
|
},
|
|
80
99
|
initQuill() {
|
|
81
100
|
let toolbarOptions = [
|
|
82
|
-
[
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
101
|
+
[
|
|
102
|
+
"bold",
|
|
103
|
+
"italic",
|
|
104
|
+
"underline",
|
|
105
|
+
"strike",
|
|
106
|
+
{ list: "ordered" },
|
|
107
|
+
{ list: "bullet" },
|
|
108
|
+
{ color: [] },
|
|
109
|
+
{ background: [] },
|
|
110
|
+
{ align: [] },
|
|
111
|
+
"clean",
|
|
112
|
+
],
|
|
87
113
|
];
|
|
88
114
|
if (this.showVideoScreenShotButton) {
|
|
89
115
|
toolbarOptions.push([{ "video-screen-shot": "video-screen-shot" }]);
|
|
@@ -107,12 +133,13 @@ export default Vue.extend({
|
|
|
107
133
|
this.quill.on("text-change", this.handleTextChange);
|
|
108
134
|
},
|
|
109
135
|
handleTextChange() {
|
|
110
|
-
|
|
136
|
+
this.editorContent = this.quill.root.innerHTML;
|
|
111
137
|
let text = this.quill.getText();
|
|
112
|
-
if (text.length > this.
|
|
113
|
-
this.
|
|
138
|
+
if (text.length > this.maxlength) {
|
|
139
|
+
this.$Message.error(this.maxLengthHint);
|
|
140
|
+
this.quill.deleteText(this.maxlength, text.trim().length);
|
|
114
141
|
}
|
|
115
|
-
this.$emit("input",
|
|
142
|
+
this.$emit("input", this.editorContent);
|
|
116
143
|
},
|
|
117
144
|
customVideoScreenShot() {
|
|
118
145
|
//获取视频截图
|
|
@@ -126,6 +153,7 @@ export default Vue.extend({
|
|
|
126
153
|
return {
|
|
127
154
|
quill: null,
|
|
128
155
|
componentId: null,
|
|
156
|
+
editorContent: "",
|
|
129
157
|
};
|
|
130
158
|
},
|
|
131
159
|
watch: {
|
|
@@ -137,7 +165,6 @@ export default Vue.extend({
|
|
|
137
165
|
},
|
|
138
166
|
beforeDestroy() {
|
|
139
167
|
// 移除事件监听器
|
|
140
|
-
this.quill.root.removeEventListener("paste", this.handlePaste);
|
|
141
168
|
EventBus.$off("screen-shot-urls", this.handleScreenShotUrl);
|
|
142
169
|
},
|
|
143
170
|
});
|
|
@@ -145,16 +172,8 @@ export default Vue.extend({
|
|
|
145
172
|
<style src="quill/dist/quill.snow.css"></style>
|
|
146
173
|
<style>
|
|
147
174
|
/* Quill的基本样式已经包含在引入的CSS文件中,如有需要,可以在这里添加额外的样式 */
|
|
148
|
-
.ql-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
width: 72px;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
display: flex;
|
|
155
|
-
color: rgb(105, 140, 208);
|
|
156
|
-
border: 1px solid rgb(105, 140, 208); /* 可选:添加边框 */
|
|
157
|
-
border-radius: 4px; /* 可选:添加圆角 */
|
|
158
|
-
padding: 2px; /* 设置内边距 */
|
|
175
|
+
.ql-editor img {
|
|
176
|
+
max-height: 200px; /* 设置图片的最大高度为 200px */
|
|
177
|
+
width: auto; /* 保持宽度自动调整 */
|
|
159
178
|
}
|
|
160
179
|
</style>
|
|
@@ -18,6 +18,24 @@
|
|
|
18
18
|
:disabled="question.options.readonly"
|
|
19
19
|
:placeholder="placeholder"
|
|
20
20
|
:maxlength="question.options.wordLimit"
|
|
21
|
+
:video-screen-shot-button-name="
|
|
22
|
+
t(
|
|
23
|
+
'survey_response.common.tips.get_screen_shot_name',
|
|
24
|
+
$rootComponent.currentLanguage
|
|
25
|
+
)
|
|
26
|
+
"
|
|
27
|
+
:upload-image-exceed-limit="
|
|
28
|
+
t(
|
|
29
|
+
'survey_response.common.tips.upload_image_exceed_the_limit',
|
|
30
|
+
$rootComponent.currentLanguage
|
|
31
|
+
)
|
|
32
|
+
"
|
|
33
|
+
:max-length-hint="
|
|
34
|
+
t(
|
|
35
|
+
'survey_response.common.tips.max-length-hint ',
|
|
36
|
+
$rootComponent.currentLanguage
|
|
37
|
+
)
|
|
38
|
+
"
|
|
21
39
|
></quill-rich-text>
|
|
22
40
|
<div></div>
|
|
23
41
|
</FormItem>
|
|
@@ -37,6 +55,7 @@ export default Vue.extend({
|
|
|
37
55
|
QuillRichText,
|
|
38
56
|
FormItem,
|
|
39
57
|
},
|
|
58
|
+
inject: ["$rootComponent"],
|
|
40
59
|
props: {
|
|
41
60
|
question: {
|
|
42
61
|
type: Object,
|
|
@@ -82,8 +82,8 @@ export default Vue.extend({
|
|
|
82
82
|
watch: {
|
|
83
83
|
screenshotData: {
|
|
84
84
|
deep: true,
|
|
85
|
-
handler(newValue
|
|
86
|
-
if (
|
|
85
|
+
handler(newValue) {
|
|
86
|
+
if (Array.isArray(newValue.urls) && Array.isArray(newValue.urls) && newValue.urls.length > 0) {
|
|
87
87
|
EventBus.$emit("screen-shot-urls", newValue);
|
|
88
88
|
}
|
|
89
89
|
},
|
package/src/locale/lang/en-US.ts
CHANGED
|
@@ -11,6 +11,11 @@ export default {
|
|
|
11
11
|
"zh-TW": "Traditional Chinese",
|
|
12
12
|
"en-US": "English",
|
|
13
13
|
},
|
|
14
|
+
tips: {
|
|
15
|
+
get_screen_shot_name: "Get Video Screenshots",
|
|
16
|
+
upload_image_exceed_the_limit: "The number of images exceeded the limit",
|
|
17
|
+
max_length_hint: "The word limit is exceeded",
|
|
18
|
+
}
|
|
14
19
|
},
|
|
15
20
|
question: {
|
|
16
21
|
please_enter: "Please Enter",
|
package/src/locale/lang/zh-CN.ts
CHANGED