@wg-npm/survey-response 0.5.167 → 0.5.169
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.
|
@@ -217,22 +217,27 @@ var script$h = Vue.component("question-title-dynamic", {
|
|
|
217
217
|
render(createElement) {
|
|
218
218
|
let childArr = [];
|
|
219
219
|
const self = this;
|
|
220
|
-
console.log(typeof Input);
|
|
221
220
|
_.forEach(this.splitedTitles, (title, index) => {
|
|
222
221
|
if (CUSTOM_INPUT_REG.test(title)) {
|
|
223
222
|
let corespondTitle = _.find(self.customFilledTitle, (title) => {
|
|
224
223
|
return title.index === index;
|
|
225
224
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
225
|
+
if (corespondTitle !== undefined) {
|
|
226
|
+
childArr.push(createElement("input", {
|
|
227
|
+
attrs: {
|
|
228
|
+
class: "ivu-input ivu-input-default",
|
|
229
|
+
style: "width:172px"
|
|
230
|
+
},
|
|
231
|
+
domProps: {
|
|
232
|
+
value: corespondTitle.title
|
|
233
|
+
},
|
|
234
|
+
on: {
|
|
235
|
+
input: function (value) {
|
|
236
|
+
corespondTitle.title = value;
|
|
237
|
+
}
|
|
233
238
|
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
236
241
|
}
|
|
237
242
|
else {
|
|
238
243
|
childArr.push(title);
|
|
@@ -250,11 +255,11 @@ const __vue_script__$h = script$h;
|
|
|
250
255
|
/* style */
|
|
251
256
|
const __vue_inject_styles__$h = function (inject) {
|
|
252
257
|
if (!inject) return
|
|
253
|
-
inject("data-v-
|
|
258
|
+
inject("data-v-a4f4a924_0", { source: "[data-v-a4f4a924] .ivu-input-wrapper{width:auto}", map: undefined, media: undefined });
|
|
254
259
|
|
|
255
260
|
};
|
|
256
261
|
/* scoped */
|
|
257
|
-
const __vue_scope_id__$h = "data-v-
|
|
262
|
+
const __vue_scope_id__$h = "data-v-a4f4a924";
|
|
258
263
|
/* module identifier */
|
|
259
264
|
const __vue_module_identifier__$h = undefined;
|
|
260
265
|
/* functional template */
|
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.169",
|
|
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.169",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.5.169",
|
|
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.169",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.5.169",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -1,56 +1,59 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import Vue, { CreateElement } from "vue";
|
|
3
|
-
import { Input } from "view-design";
|
|
4
|
-
import _ from "lodash";
|
|
5
|
-
import { CUSTOM_INPUT_REG } from "@wg-npm/survey-core";
|
|
6
|
-
import {Component} from "vue/types/options";
|
|
2
|
+
import Vue, { CreateElement } from "vue";
|
|
3
|
+
import { Input } from "view-design";
|
|
4
|
+
import _ from "lodash";
|
|
5
|
+
import { CUSTOM_INPUT_REG } from "@wg-npm/survey-core";
|
|
6
|
+
import {Component} from "vue/types/options";
|
|
7
7
|
|
|
8
|
-
export default Vue.component("question-title-dynamic", {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
export default Vue.component("question-title-dynamic", {
|
|
9
|
+
components: { Input },
|
|
10
|
+
props: {
|
|
11
|
+
splitedTitles: {
|
|
12
|
+
type: Array,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
customFilledTitle: {
|
|
16
|
+
type: Array,
|
|
17
|
+
required: false,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
render(createElement: CreateElement) {
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
let childArr: Array<any> = [];
|
|
23
|
+
const self = this;
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
_.forEach(this.splitedTitles, (title: string, index: number) => {
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
if(CUSTOM_INPUT_REG.test(title)) {
|
|
28
|
+
let corespondTitle = _.find(self.customFilledTitle, (title) => {
|
|
29
|
+
return title.index === index;
|
|
30
|
+
});
|
|
31
|
+
if(corespondTitle!==undefined){
|
|
32
|
+
childArr.push(createElement("input" as Component, {
|
|
33
|
+
attrs:{
|
|
34
|
+
class:"ivu-input ivu-input-default",
|
|
35
|
+
style:"width:172px"
|
|
36
|
+
},
|
|
37
|
+
domProps: {
|
|
38
|
+
value: corespondTitle.title
|
|
39
|
+
},
|
|
40
|
+
on: {
|
|
41
|
+
input: function (value) {
|
|
42
|
+
corespondTitle.title = value;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}));}
|
|
46
|
+
} else {
|
|
47
|
+
childArr.push(title);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return createElement("div", { class: "content pl-sm"}, childArr);
|
|
51
|
+
}
|
|
46
52
|
});
|
|
47
|
-
return createElement("div", { class: "content pl-sm"}, childArr);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
53
|
</script>
|
|
51
54
|
|
|
52
55
|
<style scoped lang="less">
|
|
53
|
-
/deep/ .ivu-input-wrapper {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
56
|
+
/deep/ .ivu-input-wrapper {
|
|
57
|
+
width: auto;
|
|
58
|
+
}
|
|
59
|
+
</style>
|