@zscreate/zhxy-app-component 1.0.340 → 1.0.341

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.
@@ -71,7 +71,8 @@
71
71
  <view v-if="widget.options.disabled" class="form-input cover-text" style="height: initial;line-break: anywhere;">
72
72
  {{ dataModel }}
73
73
  </view>
74
- <textarea v-else maxlength="-1" class="form-input cover-text form-input-placeholder-textarea" v-model="dataModel"
74
+ <textarea v-else maxlength="-1" class="form-input cover-text form-input-placeholder-textarea" :value="dataModel" @input="textareaInputChange"
75
+ @blur="textareaBlurChange"
75
76
  :style="{ height: (widget.options.height || 100) * 2 + 'px'}"
76
77
  placeholder-class="form-input-placeholder form-input-placeholder-textarea"
77
78
  :placeholder="widget.options.placeholder" :disabled="widget.options.disabled">
@@ -868,6 +869,7 @@ export default {
868
869
  kssj: [],//开始时间
869
870
  jssj: [],//借宿时间
870
871
  },
872
+ textareaValue: '',
871
873
  }
872
874
  },
873
875
  mounted() {
@@ -938,6 +940,12 @@ export default {
938
940
  uni.$off(this.widget.model);
939
941
  },
940
942
  methods: {
943
+ textareaInputChange(e) {
944
+ this.textareaValue = e.detail.value
945
+ },
946
+ textareaBlurChange() {
947
+ this.dataModel = this.textareaValue
948
+ },
941
949
  //复选框改变
942
950
  checkboxChange(e) {
943
951
  if (this.tableKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.340",
3
+ "version": "1.0.341",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",