resolver-egretimp-plus 0.1.96 → 0.1.97
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/dist/h5/index.js +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/utils/render.jsx +1 -1
package/package.json
CHANGED
package/src/utils/render.jsx
CHANGED
|
@@ -821,7 +821,7 @@ function getFormItemRule(config, lang, params, compProps) {
|
|
|
821
821
|
return
|
|
822
822
|
}
|
|
823
823
|
const val = config?.refValue
|
|
824
|
-
const message = lang.indexOf('zh') > -1 ? `${config.metaNameZh}不能为空` : `${config.metaNameEn} can not be empty`
|
|
824
|
+
const message = lang.indexOf('zh') > -1 ? `${config.metaNameZh || ''}不能为空` : `${config.metaNameEn || ''} can not be empty`
|
|
825
825
|
if (!onlyRequiredFlag && required) {
|
|
826
826
|
if (val === '' || val === null || val === undefined || (Array.isArray(val) && !val.length)) {
|
|
827
827
|
callback(new Error(message))
|