@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
|
-
|
|
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.
|
|
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
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
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
|
|