resolver-egretimp-plus 0.0.127 → 0.0.128

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.0.127",
3
+ "version": "0.0.128",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -27,6 +27,9 @@ export default {
27
27
  if (props.config?.icon) {
28
28
  ret.suffixIcon = props.config?.icon
29
29
  }
30
+ if (props.config?.maxLength) {
31
+ ret.maxlength = parseInt(props.config.maxLength)
32
+ }
30
33
  return ret
31
34
  })
32
35
  const normalInputProps = computed(() => {
@@ -164,6 +167,7 @@ export default {
164
167
  {
165
168
  polyfillInputWrap(
166
169
  <div v-else class="input-wrap" ref={(e) => inputWrapRef.value = e}>
170
+ maxlength: {normalInputProps.maxlength}
167
171
  <ElInput {...vmodelProps.value} {...{...normalAttrs.value, ...normalInputProps.value}}>
168
172
  {
169
173
  getInputSolts()
@@ -746,7 +746,7 @@ function getFormItemRule(config, lang, params) {
746
746
  return
747
747
  }
748
748
  const val = (config.bindValue === null || config.bindValue === undefined) ? '' : config.bindValue
749
-
749
+ if (!val) callback() // 为空不进行正则校验
750
750
  for (let i = 0; i < regexPattern.length; i++) {
751
751
  const validInfo = regexPattern[i]
752
752
  const { reg, tip, tipEn } = validInfo