@wg-npm/survey-response 0.3.16 → 0.3.480-5.release
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.
|
@@ -177,6 +177,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
177
177
|
undefined
|
|
178
178
|
);
|
|
179
179
|
|
|
180
|
+
var EmptyQuestion = __vue_component__$e;
|
|
181
|
+
|
|
180
182
|
var script$d = Vue.extend({
|
|
181
183
|
name: "question-title",
|
|
182
184
|
components: { Icon },
|
|
@@ -240,6 +242,8 @@ var __vue_staticRenderFns__$d = [];
|
|
|
240
242
|
undefined
|
|
241
243
|
);
|
|
242
244
|
|
|
245
|
+
var QuestionTitle = __vue_component__$d;
|
|
246
|
+
|
|
243
247
|
var OptionLayoutMixin = Vue.extend({
|
|
244
248
|
methods: {
|
|
245
249
|
isMobile() {
|
|
@@ -346,6 +350,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
346
350
|
undefined
|
|
347
351
|
);
|
|
348
352
|
|
|
353
|
+
var MultiSelection = __vue_component__$c;
|
|
354
|
+
|
|
349
355
|
var script$b = Vue.extend({
|
|
350
356
|
name: "short-answer",
|
|
351
357
|
components: {
|
|
@@ -418,6 +424,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
418
424
|
undefined
|
|
419
425
|
);
|
|
420
426
|
|
|
427
|
+
var ShortAnswer = __vue_component__$b;
|
|
428
|
+
|
|
421
429
|
var script$a = Vue.extend({
|
|
422
430
|
name: "single-selection",
|
|
423
431
|
components: {
|
|
@@ -525,6 +533,8 @@ var __vue_staticRenderFns__$a = [];
|
|
|
525
533
|
undefined
|
|
526
534
|
);
|
|
527
535
|
|
|
536
|
+
var SingleSelection = __vue_component__$a;
|
|
537
|
+
|
|
528
538
|
var script$9 = Vue.extend({
|
|
529
539
|
name: "matrix",
|
|
530
540
|
mixins: [OptionLayoutMixin],
|
|
@@ -632,6 +642,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
632
642
|
undefined
|
|
633
643
|
);
|
|
634
644
|
|
|
645
|
+
var Matrix = __vue_component__$9;
|
|
646
|
+
|
|
635
647
|
var script$8 = Vue.extend({});
|
|
636
648
|
|
|
637
649
|
/* script */
|
|
@@ -670,6 +682,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
670
682
|
undefined
|
|
671
683
|
);
|
|
672
684
|
|
|
685
|
+
var TextTitle = __vue_component__$8;
|
|
686
|
+
|
|
673
687
|
var script$7 = Vue.extend({
|
|
674
688
|
name: "fill-blank",
|
|
675
689
|
components: {
|
|
@@ -742,6 +756,8 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
742
756
|
undefined
|
|
743
757
|
);
|
|
744
758
|
|
|
759
|
+
var FillBlank = __vue_component__$7;
|
|
760
|
+
|
|
745
761
|
var defaultLang = {
|
|
746
762
|
survey_response: {
|
|
747
763
|
locale: 'zh-CN',
|
|
@@ -877,6 +893,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
877
893
|
undefined
|
|
878
894
|
);
|
|
879
895
|
|
|
896
|
+
var Star = __vue_component__$6;
|
|
897
|
+
|
|
880
898
|
class ExprEvaluationQuestion {
|
|
881
899
|
questions;
|
|
882
900
|
scope;
|
|
@@ -1091,6 +1109,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
1091
1109
|
undefined
|
|
1092
1110
|
);
|
|
1093
1111
|
|
|
1112
|
+
var If = __vue_component__$5;
|
|
1113
|
+
|
|
1094
1114
|
var script$4 = Vue.extend({
|
|
1095
1115
|
name: "expr-else",
|
|
1096
1116
|
mixins: [LocaleMixin],
|
|
@@ -1137,6 +1157,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
1137
1157
|
undefined
|
|
1138
1158
|
);
|
|
1139
1159
|
|
|
1160
|
+
var Else = __vue_component__$4;
|
|
1161
|
+
|
|
1140
1162
|
var script$3 = Vue.extend({
|
|
1141
1163
|
name: "expr",
|
|
1142
1164
|
props: {
|
|
@@ -1146,8 +1168,8 @@ var script$3 = Vue.extend({
|
|
|
1146
1168
|
}
|
|
1147
1169
|
},
|
|
1148
1170
|
components: {
|
|
1149
|
-
IF:
|
|
1150
|
-
ELSE:
|
|
1171
|
+
IF: If,
|
|
1172
|
+
ELSE: Else
|
|
1151
1173
|
}
|
|
1152
1174
|
});
|
|
1153
1175
|
|
|
@@ -1187,6 +1209,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
1187
1209
|
undefined
|
|
1188
1210
|
);
|
|
1189
1211
|
|
|
1212
|
+
var Expr = __vue_component__$3;
|
|
1213
|
+
|
|
1190
1214
|
var script$2 = Vue.extend({
|
|
1191
1215
|
name: "Evaluation",
|
|
1192
1216
|
components: {
|
|
@@ -1194,8 +1218,9 @@ var script$2 = Vue.extend({
|
|
|
1194
1218
|
Col,
|
|
1195
1219
|
Card,
|
|
1196
1220
|
Icon,
|
|
1197
|
-
|
|
1198
|
-
|
|
1221
|
+
Tooltip,
|
|
1222
|
+
STAR: Star,
|
|
1223
|
+
EXPR: Expr
|
|
1199
1224
|
},
|
|
1200
1225
|
mixins: [LocaleMixin],
|
|
1201
1226
|
inject: ["$rootComponent"],
|
|
@@ -1227,7 +1252,7 @@ var script$2 = Vue.extend({
|
|
|
1227
1252
|
const __vue_script__$2 = script$2;
|
|
1228
1253
|
|
|
1229
1254
|
/* template */
|
|
1230
|
-
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"evaluation-item",attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Card',{class:_vm.cardClasses(item.id),attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":_vm.iconType(item.id),"size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm.i18nText(item.text)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1255
|
+
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"evaluation-item",attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Card',{class:_vm.cardClasses(item.id),attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":_vm.iconType(item.id),"size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('Tooltip',{attrs:{"max-width":"200"}},[_c('p',{attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm.i18nText(item.text)))]),_vm._v(" "),_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm.i18nText(item.text)))])]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1231
1256
|
var __vue_staticRenderFns__$2 = [];
|
|
1232
1257
|
|
|
1233
1258
|
/* style */
|
|
@@ -1259,15 +1284,17 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
1259
1284
|
undefined
|
|
1260
1285
|
);
|
|
1261
1286
|
|
|
1287
|
+
var Evaluation = __vue_component__$2;
|
|
1288
|
+
|
|
1262
1289
|
var script$1 = Vue.extend({
|
|
1263
1290
|
components: {
|
|
1264
|
-
MULTI_SELECTION:
|
|
1265
|
-
SHORT_ANSWER:
|
|
1266
|
-
FILL_BLANK:
|
|
1267
|
-
TEXT_TITLE:
|
|
1268
|
-
SINGLE_SELECTION:
|
|
1269
|
-
MATRIX:
|
|
1270
|
-
EVALUATION:
|
|
1291
|
+
MULTI_SELECTION: MultiSelection,
|
|
1292
|
+
SHORT_ANSWER: ShortAnswer,
|
|
1293
|
+
FILL_BLANK: FillBlank,
|
|
1294
|
+
TEXT_TITLE: TextTitle,
|
|
1295
|
+
SINGLE_SELECTION: SingleSelection,
|
|
1296
|
+
MATRIX: Matrix,
|
|
1297
|
+
EVALUATION: Evaluation
|
|
1271
1298
|
},
|
|
1272
1299
|
name: "question-body",
|
|
1273
1300
|
props: {
|
|
@@ -1325,12 +1352,14 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
1325
1352
|
undefined
|
|
1326
1353
|
);
|
|
1327
1354
|
|
|
1355
|
+
var QuestionBody = __vue_component__$1;
|
|
1356
|
+
|
|
1328
1357
|
var script = Vue.extend({
|
|
1329
1358
|
name: "SurveyResponse",
|
|
1330
1359
|
components: {
|
|
1331
|
-
QuestionTitle
|
|
1332
|
-
QuestionBody
|
|
1333
|
-
EmptyQuestion
|
|
1360
|
+
QuestionTitle,
|
|
1361
|
+
QuestionBody,
|
|
1362
|
+
EmptyQuestion,
|
|
1334
1363
|
Form
|
|
1335
1364
|
},
|
|
1336
1365
|
provide() {
|
|
@@ -1483,6 +1512,8 @@ var __vue_staticRenderFns__ = [];
|
|
|
1483
1512
|
undefined
|
|
1484
1513
|
);
|
|
1485
1514
|
|
|
1515
|
+
var SurveyResponse = __vue_component__;
|
|
1516
|
+
|
|
1486
1517
|
class Constants {
|
|
1487
1518
|
constructor() {
|
|
1488
1519
|
this.STATUS_ENABLED = "ENABLED";
|
|
@@ -1500,9 +1531,8 @@ class SurveyResponsePlugin {
|
|
|
1500
1531
|
locale.use(options.locale);
|
|
1501
1532
|
locale.i18n(options.i18n);
|
|
1502
1533
|
Vue.mixin(LocaleMixin);
|
|
1503
|
-
vue.component("survey-response",
|
|
1534
|
+
vue.component("survey-response", SurveyResponse);
|
|
1504
1535
|
}
|
|
1505
1536
|
}
|
|
1506
1537
|
|
|
1507
|
-
export default
|
|
1508
|
-
export { __vue_component__ as SurveyResponse, SurveyResponseOptions, locale };
|
|
1538
|
+
export { SurveyResponse, SurveyResponseOptions, SurveyResponsePlugin as default, locale };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-response",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4805.release",
|
|
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.3.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
15
|
+
"@wg-npm/survey-core": "0.3.4805.release",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.4805.release",
|
|
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.3.
|
|
38
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
37
|
+
"@wg-npm/survey-core": "0.3.4805.release",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.3.4805.release",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
<Icon class="icon" :type="iconType(item.id)" :size="36" />
|
|
22
22
|
</div>
|
|
23
23
|
<div class="card-content">
|
|
24
|
-
<
|
|
24
|
+
<Tooltip max-width="200">
|
|
25
|
+
<p slot="content">{{ i18nText(item.text) }}</p>
|
|
26
|
+
<p class="text">{{ i18nText(item.text) }}</p>
|
|
27
|
+
</Tooltip>
|
|
25
28
|
<component
|
|
26
29
|
:is="question.options.evaluationType"
|
|
27
30
|
:item="item"
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
|
|
36
39
|
<script lang="ts">
|
|
37
40
|
import Vue from "vue";
|
|
38
|
-
import { Col, Row, Card, Icon } from "view-design";
|
|
41
|
+
import { Col, Row, Card, Icon, Tooltip } from "view-design";
|
|
39
42
|
import LocaleMixin from "../../../mixins/locale-mixin";
|
|
40
43
|
import { QuestionEvaluationModel } from "@wg-npm/survey-core";
|
|
41
44
|
import Star from "./evaluation/star.vue";
|
|
@@ -48,6 +51,7 @@ export default Vue.extend({
|
|
|
48
51
|
Col,
|
|
49
52
|
Card,
|
|
50
53
|
Icon,
|
|
54
|
+
Tooltip,
|
|
51
55
|
STAR: Star,
|
|
52
56
|
EXPR: Expr
|
|
53
57
|
},
|
|
@@ -96,10 +96,20 @@
|
|
|
96
96
|
.card-content {
|
|
97
97
|
text-align: center;
|
|
98
98
|
|
|
99
|
+
.ivu-tooltip {
|
|
100
|
+
display: unset;
|
|
101
|
+
}
|
|
102
|
+
.ivu-tooltip-rel{
|
|
103
|
+
display: unset;
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
p.text {
|
|
100
107
|
font-weight: 500;
|
|
101
108
|
font-size: 18px;
|
|
102
109
|
padding: 10px;
|
|
110
|
+
white-space: nowrap;/*把文本强制显示在一行*/
|
|
111
|
+
overflow: hidden;/*隐藏超出部分的文字*/
|
|
112
|
+
text-overflow: ellipsis;/*超出显示省略号*/
|
|
103
113
|
}
|
|
104
114
|
|
|
105
115
|
.desc {
|