@zscreate/zhxy-app-component 1.0.301 → 1.0.303

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.
@@ -203,7 +203,7 @@
203
203
  <view class="evan-form-item-container__main--body" v-else>
204
204
  <uni-datetime-picker ref="datetime_picker" @change="dateChange" :hide-second="!widget.options.format.includes(':ss')" @click.native="isClickByUser = true" :type="widget.options.type"
205
205
  :format="formatTime()" :clearIcon="!widget.options.disabled && widget.options.clearable"
206
- v-model="dataModel" @maskClick="maskClick" :border="false" :disabled="widget.options.disabled">
206
+ :value="dataModel" @maskClick="maskClick" :border="false" :disabled="widget.options.disabled">
207
207
  <view class="option-font-size">
208
208
  {{ dataModel | filterDataModel(widget) }}
209
209
  </view>
@@ -1063,7 +1063,8 @@ export default {
1063
1063
  if (this.tableKey) {
1064
1064
  this.models[this.tableKey][this.tableIndex][this.widget.model] = val;
1065
1065
  } else {
1066
- this.models[this.widget.model] = val;
1066
+ this.dataModel = val;
1067
+ // this.models[this.widget.model] = val;
1067
1068
  }
1068
1069
  let rule = this.rules[this.widget.model]
1069
1070
  if (rule.length > 0) {
@@ -1003,11 +1003,13 @@ export default {
1003
1003
  return false
1004
1004
  })
1005
1005
  if (!hasRequiredConfig) {
1006
- rules[widget.model].push( {
1007
- required: flag,
1008
- trigger: 'change',
1009
- message: `${(widget.name || "").replaceAll(' ', '')}必须填写`,
1010
- })
1006
+ if(flag){
1007
+ rules[widget.model].push( {
1008
+ required: flag,
1009
+ trigger: 'change',
1010
+ message: `${(widget.name || "").replaceAll(' ', '')}必须填写`,
1011
+ })
1012
+ }
1011
1013
  }
1012
1014
  this.$set(widget.options, 'required', flag)
1013
1015
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.301",
3
+ "version": "1.0.303",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",