resolver-egretimp-plus 0.1.51 → 0.1.52
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.
package/package.json
CHANGED
package/src/utils/render.jsx
CHANGED
|
@@ -809,7 +809,7 @@ function getFormItemRule(config, lang, params, compProps) {
|
|
|
809
809
|
const rules = [{
|
|
810
810
|
// required,
|
|
811
811
|
validator: (rule, value, callback) => {
|
|
812
|
-
if (compProps?.disabled && config.alongValidate != '1') {
|
|
812
|
+
if ((compProps?.disabled || isPlainColumn(config, compProps?.disabled)) && config.alongValidate != '1') {
|
|
813
813
|
callback()
|
|
814
814
|
return
|
|
815
815
|
}
|
|
@@ -859,8 +859,8 @@ function getFormItemRule(config, lang, params, compProps) {
|
|
|
859
859
|
if (regexPattern?.length) {
|
|
860
860
|
rules.push({
|
|
861
861
|
validator: (rule, value, callback) => {
|
|
862
|
-
if (compProps?.disabled && config.alongValidate != '1') {
|
|
863
|
-
|
|
862
|
+
if ((compProps?.disabled || isPlainColumn(config, compProps?.disabled)) && config.alongValidate != '1') {
|
|
863
|
+
callback()
|
|
864
864
|
return
|
|
865
865
|
}
|
|
866
866
|
if (isChainHidden({ config })) {
|
|
@@ -897,7 +897,7 @@ function getFormItemRule(config, lang, params, compProps) {
|
|
|
897
897
|
if (isFunction(validator)) {
|
|
898
898
|
rules.push({
|
|
899
899
|
validator: (rule, value, callback) => {
|
|
900
|
-
if (compProps?.disabled && config.alongValidate != '1') {
|
|
900
|
+
if ((compProps?.disabled || isPlainColumn(config, compProps?.disabled)) && config.alongValidate != '1') {
|
|
901
901
|
callback()
|
|
902
902
|
return
|
|
903
903
|
}
|