Compare commits

...

2 Commits

Author SHA1 Message Date
neverland
c24aac45ba
docs: lock vite-plugin-style-import version (#10027) 2021-12-11 09:43:02 +08:00
neverland
f88dfd25af
docs(Form): improve required description (#10026) 2021-12-11 09:40:04 +08:00
4 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ If you are using vite, please use [vite-plugin-style-import](https://github.com/
#### 1. Install Plugin
```bash
npm i vite-plugin-style-import -D
npm i vite-plugin-style-import@1.2.0 -D
```
#### 2. Configure Plugin

View File

@ -100,7 +100,7 @@ pnpm add vant@3
#### 1. 安装插件
```bash
npm i vite-plugin-style-import -D
npm i vite-plugin-style-import@1.2.0 -D
```
#### 2. 配置插件

View File

@ -509,7 +509,7 @@ export default {
| Key | Description | Type |
| --- | --- | --- |
| required | Whether to be a required field | _boolean_ |
| required | Whether to be a required field, the value is not allowed to be empty string, empty array, `undefined`, `null` | _boolean_ |
| message | Error message | _string \| (value, rule) => string_ |
| validator | Custom validator | _(value, rule) => boolean \| string \| Promise_ |
| pattern | Regex pattern | _RegExp_ |

View File

@ -545,7 +545,7 @@ export default {
| 键名 | 说明 | 类型 |
| --- | --- | --- |
| required | 是否为必选字段 | _boolean_ |
| required | 是否为必选字段,当值为空字符串、空数组、`undefined``null` 时,校验不通过 | _boolean_ |
| message | 错误提示文案 | _string \| (value, rule) => string_ |
| validator | 通过函数进行校验 | _(value, rule) => boolean \| string \| Promise_ |
| pattern | 通过正则表达式进行校验 | _RegExp_ |