升级uni-ui到最新版本1.4.23

This commit is contained in:
RuoYi
2022-12-28 10:03:07 +08:00
parent 9bca5bebd5
commit 55fb5c5f61
52 changed files with 2907 additions and 2542 deletions

View File

@@ -181,7 +181,7 @@
(value, oldVal) => {
const isEqual = this.form._isEqual(value, oldVal)
// 简单判断前后值的变化,只有发生变化才会发生校验
// TODO 如果 oldVal = undefined ,那么大概率是源数据里没有值导致 ,这个情况不哦校验 ,可能不严谨 ,需要在做观察
// TODO 如果 oldVal = undefined ,那么大概率是源数据里没有值导致 ,这个情况不哦校验 ,可能不严谨 ,需要在做观察
// fix by mehaotian 暂时取消 && oldVal !== undefined 如果formData 中不存在,可能会不校验
if (!isEqual) {
const val = this.itemSetValue(value)
@@ -386,10 +386,14 @@
},
// 是否显示星号
_isRequired() {
if (this.form) {
return this.required || this.form._isRequiredField(this.itemRules.rules || [])
}
_isRequired() {
// TODO 不根据规则显示 星号,考虑后续兼容
// if (this.form) {
// if (this.form._isRequiredField(this.itemRules.rules || []) && this.required) {
// return true
// }
// return false
// }
return this.required
},
@@ -479,7 +483,7 @@
height: 36px;
padding: 0 12px 0 0;
/* #ifndef APP-NVUE */
vertical-align: middle;
vertical-align: middle;
flex-shrink: 0;
/* #endif */
@@ -624,4 +628,4 @@
border-width: 0;
/* #endif */
}
</style>
</style>