@oinone/kunlun-vue-admin-base 6.3.6 → 6.3.8

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.
@@ -44434,10 +44434,10 @@ class FormStringFieldWidget extends FormInputAbstractFieldWidget {
44434
44434
  validateLength(realValue) {
44435
44435
  const length = !isNil(realValue) ? realValue.length : 0;
44436
44436
  const { minLength, maxLength } = this;
44437
- if (!isEmptyValue(realValue) && !isNil(maxLength) && length > maxLength) {
44437
+ if (!isEmptyValue(realValue) && !isNil(maxLength) && maxLength >= 0 && length > maxLength) {
44438
44438
  return this.validatorError(`${translateValueByKey('最大长度为')}${maxLength}`);
44439
44439
  }
44440
- if (!isEmptyValue(realValue) && !isNil(minLength) && length < minLength) {
44440
+ if (!isEmptyValue(realValue) && !isNil(minLength) && minLength >= 0 && length < minLength) {
44441
44441
  return this.validatorError(`${translateValueByKey('最小长度为')}${minLength}`);
44442
44442
  }
44443
44443
  return this.validatorSuccess();