Skip to content

Commit

Permalink
perf: 优化自定义校验正则表达式部分逻辑 @0.9.4-10
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed May 19, 2021
1 parent 6d9b27f commit f9c43fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.9.4-9",
"version": "0.9.4-10",
"author": "BoBo<[email protected]>",
"main": "lib/pro-crud.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/component/form-designer/src/WidgetConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export default {
// eslint-disable-next-line prefer-destructuring
message = this.elementConfig.options.message;
}
this.validator.pattern = { pattern: new RegExp(val), message };
this.validator.pattern = { pattern: new RegExp(val), message, trigger: 'blur' };
} else {
this.validator.pattern = null;
}
Expand Down

0 comments on commit f9c43fb

Please sign in to comment.