Skip to content

Commit 5bafd0b

Browse files
committed
chore: fix
1 parent 1a7820f commit 5bafd0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/form/form.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ number | Boolean | - | \- | N
8282
pattern | Object | - | Typescript:`RegExp` | N
8383
required | Boolean | - | \- | N
8484
telnumber | Boolean | - | \- | N
85-
trigger | String | change | Typescript:`Exclude<ValidateTriggerType, 'all'> | Exclude<ValidateTriggerType, 'all'>[]` | N
85+
trigger | String | change | Typescript:`ValidateTriggerType | ValidateTriggerType[]` | N
8686
type | String | error | options: error/warning | N
8787
url | Boolean / Object | - | Typescript:`boolean \| IsURLOptions` `import { IsURLOptions } from 'validator/es/lib/isURL'`[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/form/type.ts) | N
8888
validator | Function | - | Typescript:`CustomValidator` `type CustomValidator = (val: ValueType) => CustomValidateResolveType \| Promise<CustomValidateResolveType>` `type CustomValidateResolveType = boolean \| CustomValidateObj` `interface CustomValidateObj { result: boolean; message: string; type?: 'error' \| 'warning' \| 'success' }` `type ValueType = any`[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/form/type.ts) | N

src/form/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ number | Boolean | - | 内置校验方法,校验值是否为数字(1.2 、 1
8484
pattern | Object | - | 内置校验方法,校验值是否符合正则表达式匹配结果,示例:`{ pattern: /@qq.com/, message: '请输入 QQ 邮箱' }`。TS 类型:`RegExp` | N
8585
required | Boolean | - | 内置校验方法,校验值是否已经填写。该值为 true,默认显示必填标记,可通过设置 `requiredMark: false` 隐藏必填标记 | N
8686
telnumber | Boolean | - | 内置校验方法,校验值是否为手机号码,校验正则为 `/^1[3-9]\d{9}$/`,示例:`{ telnumber: true, message: '请输入正确的手机号码' }` | N
87-
trigger | String | change | 校验触发方式。TS 类型:`Exclude<ValidateTriggerType, 'all'> | Exclude<ValidateTriggerType, 'all'>[]` | N
87+
trigger | String | change | 校验触发方式。TS 类型:`ValidateTriggerType | ValidateTriggerType[]` | N
8888
type | String | error | 校验未通过时呈现的错误信息类型,有 告警信息提示 和 错误信息提示 等两种。可选项:error/warning | N
8989
url | Boolean / Object | - | 内置校验方法,校验值是否为网络链接地址,[参数文档](https://github.com/validatorjs/validator.js),示例:`{ url: { protocols: ['http','https','ftp'] }, message: '请输入正确的 Url 地址' }`。TS 类型:`boolean \| IsURLOptions` `import { IsURLOptions } from 'validator/es/lib/isURL'`[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/form/type.ts) | N
9090
validator | Function | - | 自定义校验规则,示例:`{ validator: (val) => val.length > 0, message: '请输入内容'}`。TS 类型:`CustomValidator` `type CustomValidator = (val: ValueType) => CustomValidateResolveType \| Promise<CustomValidateResolveType>` `type CustomValidateResolveType = boolean \| CustomValidateObj` `interface CustomValidateObj { result: boolean; message: string; type?: 'error' \| 'warning' \| 'success' }` `type ValueType = any`[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/form/type.ts) | N

0 commit comments

Comments
 (0)