【更新】优化表单必填方法的参数名称

pull/60/head
xlzy 2022-11-23 23:32:25 +08:00
parent 304fa3e315
commit 0c91118e09
1 changed files with 3 additions and 3 deletions

View File

@ -8,10 +8,10 @@
* 5.不可二次分发开源参与同类竞品如有想法可联系团队xiaonuobase@qq.com商议合作
* 6.若您的项目无法满足以上几点需要更多功能代码获取Snowy商业授权许可请在官网购买授权地址为 https://www.xiaonuo.vip
*/
export const required = (text, method = ['blur', 'change']) => ({
export const required = (message, trigger = ['blur', 'change']) => ({
required: true,
message: text,
trigger: method
message,
trigger
})
// 常用正则规则大全https://any86.github.io/any-rule/