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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -196,8 +196,6 @@ watch(modelValue, () => {
196
196
  nextTick(() => {
197
197
  elFormItem?.validate?.('blur').catch()
198
198
  })
199
- }, {
200
- immediate: true
201
199
  })
202
200
  </script>
203
201
  <style lang="scss" scoped>
@@ -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
- callback()
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
  }