|
|
|
@ -1,3 +1,12 @@
|
|
|
|
|
/*
|
|
|
|
|
* @Author: zhou lei
|
|
|
|
|
* @Date: 2021-11-08 12:10:26
|
|
|
|
|
* @LastEditTime: 2022-01-23 09:12:40
|
|
|
|
|
* @LastEditors: zhou lei
|
|
|
|
|
* @Description:
|
|
|
|
|
* @FilePath: /wms_haiwai_app/types/vue-form.d.ts
|
|
|
|
|
* 联系方式:910592680@qq.com 18669792120 科海达信息技术有限公司
|
|
|
|
|
*/
|
|
|
|
|
declare module 'vue/types/form' {
|
|
|
|
|
/**
|
|
|
|
|
* 校验规则选项
|
|
|
|
@ -8,22 +17,7 @@ declare module 'vue/types/form' {
|
|
|
|
|
*/
|
|
|
|
|
interface Rule {
|
|
|
|
|
trigger?: 'change' | 'blur' | ['change', 'blur'];
|
|
|
|
|
type?:
|
|
|
|
|
| 'string'
|
|
|
|
|
| 'number'
|
|
|
|
|
| 'boolean'
|
|
|
|
|
| 'method'
|
|
|
|
|
| 'regexp'
|
|
|
|
|
| 'integer'
|
|
|
|
|
| 'float'
|
|
|
|
|
| 'array'
|
|
|
|
|
| 'object'
|
|
|
|
|
| 'enum'
|
|
|
|
|
| 'date'
|
|
|
|
|
| 'url'
|
|
|
|
|
| 'hex'
|
|
|
|
|
| 'email'
|
|
|
|
|
| 'any';
|
|
|
|
|
type?: 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'any';
|
|
|
|
|
required?: boolean;
|
|
|
|
|
pattern?: RegExp;
|
|
|
|
|
min?: number;
|
|
|
|
|