@wg-npm/survey-response 0.5.149 → 0.5.150

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.
@@ -1570,14 +1570,17 @@ var script$4 = Vue.extend({
1570
1570
  },
1571
1571
  data() {
1572
1572
  return {
1573
- inputValue: null,
1573
+ sliderValue: this.value,
1574
+ inputNumberValue: this.value,
1574
1575
  };
1575
1576
  },
1576
1577
  methods: {
1577
1578
  onSliderChange(value) {
1579
+ this.inputNumberValue = value;
1578
1580
  this.$emit("input", value);
1579
1581
  },
1580
1582
  onInputChange(value) {
1583
+ this.sliderValue = value;
1581
1584
  this.$emit("input", value);
1582
1585
  },
1583
1586
  },
@@ -1587,21 +1590,21 @@ var script$4 = Vue.extend({
1587
1590
  const __vue_script__$4 = script$4;
1588
1591
 
1589
1592
  /* template */
1590
- var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"slider-container"},[_c('Slider',{staticClass:"slider",attrs:{"min":_vm.min,"max":_vm.max,"step":_vm.sliderStep,"show-tips":"always","disabled":_vm.disabled},on:{"on-change":_vm.onSliderChange},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v;},expression:"inputValue"}}),_vm._v(" "),_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":_vm.formItemProp,"rules":[
1593
+ var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"slider-container"},[_c('Slider',{staticClass:"slider",attrs:{"min":_vm.min,"max":_vm.max,"step":_vm.sliderStep,"show-tips":"always","disabled":_vm.disabled},on:{"on-change":_vm.onSliderChange},model:{value:(_vm.sliderValue),callback:function ($$v) {_vm.sliderValue=$$v;},expression:"sliderValue"}}),_vm._v(" "),_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":_vm.formItemProp,"rules":[
1591
1594
  {
1592
1595
  required: _vm.required,
1593
1596
  message: _vm.requiredDesc,
1594
- } ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.precision,"min":_vm.min,"max":_vm.max,"readonly":_vm.disabled},on:{"on-change":_vm.onInputChange},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v;},expression:"inputValue"}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showLabel),expression:"showLabel"}],staticClass:"text-desc"},[_c('span',[_vm._v(_vm._s(_vm.minLabel))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.maxLabel))])])])};
1597
+ } ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.precision,"min":_vm.min,"max":_vm.max,"readonly":_vm.disabled},on:{"on-change":_vm.onInputChange},model:{value:(_vm.inputNumberValue),callback:function ($$v) {_vm.inputNumberValue=$$v;},expression:"inputNumberValue"}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showLabel),expression:"showLabel"}],staticClass:"text-desc"},[_c('span',[_vm._v(_vm._s(_vm.minLabel))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.maxLabel))])])])};
1595
1598
  var __vue_staticRenderFns__$4 = [];
1596
1599
 
1597
1600
  /* style */
1598
1601
  const __vue_inject_styles__$4 = function (inject) {
1599
1602
  if (!inject) return
1600
- inject("data-v-5a931538_0", { source: ".slider-container[data-v-5a931538]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-5a931538] .ivu-form-item{margin-bottom:unset}.slider[data-v-5a931538]{width:100%;margin-left:16px;margin-right:16px}.text-desc[data-v-5a931538]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
1603
+ inject("data-v-171b6ab8_0", { source: ".slider-container[data-v-171b6ab8]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-171b6ab8] .ivu-form-item{margin-bottom:unset}.slider[data-v-171b6ab8]{width:100%;margin-left:16px;margin-right:16px}.text-desc[data-v-171b6ab8]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
1601
1604
 
1602
1605
  };
1603
1606
  /* scoped */
1604
- const __vue_scope_id__$4 = "data-v-5a931538";
1607
+ const __vue_scope_id__$4 = "data-v-171b6ab8";
1605
1608
  /* module identifier */
1606
1609
  const __vue_module_identifier__$4 = undefined;
1607
1610
  /* functional template */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.5.149",
3
+ "version": "0.5.150",
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.149",
16
- "@wg-npm/survey-service-api": "0.5.149",
15
+ "@wg-npm/survey-core": "0.5.150",
16
+ "@wg-npm/survey-service-api": "0.5.150",
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.149",
38
- "@wg-npm/survey-service-api": "0.5.149",
37
+ "@wg-npm/survey-core": "0.5.150",
38
+ "@wg-npm/survey-service-api": "0.5.150",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -3,7 +3,7 @@
3
3
  <div class="slider-container">
4
4
  <Slider
5
5
  class="slider"
6
- v-model="inputValue"
6
+ v-model="sliderValue"
7
7
  :min="min"
8
8
  :max="max"
9
9
  :step="sliderStep"
@@ -23,7 +23,7 @@
23
23
  >
24
24
  <InputNumber
25
25
  style="float: left"
26
- v-model="inputValue"
26
+ v-model="inputNumberValue"
27
27
  :precision="precision"
28
28
  :min="min"
29
29
  :max="max"
@@ -97,14 +97,17 @@ export default Vue.extend({
97
97
  },
98
98
  data() {
99
99
  return {
100
- inputValue: null,
100
+ sliderValue: this.value,
101
+ inputNumberValue: this.value,
101
102
  };
102
103
  },
103
104
  methods: {
104
105
  onSliderChange(value) {
106
+ this.inputNumberValue = value;
105
107
  this.$emit("input", value);
106
108
  },
107
109
  onInputChange(value) {
110
+ this.sliderValue = value;
108
111
  this.$emit("input", value);
109
112
  },
110
113
  },