Skip to content

Commit

Permalink
release version
Browse files Browse the repository at this point in the history
  • Loading branch information
flsion committed Sep 1, 2023
1 parent 47120f7 commit d5925c4
Show file tree
Hide file tree
Showing 25 changed files with 515 additions and 113 deletions.
19 changes: 19 additions & 0 deletions packages/web-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
changelog: true
```
## 2.51.0
`2023-09-01`

### ⚠️ Important Attention

- **form:** `form-item` render element adds `id` attribute, please pay attention to the impact on the original web page

### 🆕 Feature

- **form:** add scroll into view to the field ([#2680](https://github.com/arco-design/arco-design-vue/pull/2680))
- **table:** Support displaying empty subtrees ([#2673](https://github.com/arco-design/arco-design-vue/pull/2673))
- **select:** support boolean type ([#2661](https://github.com/arco-design/arco-design-vue/pull/2661))

### 🐛 BugFix

- **typography:** Fix the problem of missing related component styles when importing on demand ([#2682](https://github.com/arco-design/arco-design-vue/pull/2682))


## 2.50.2

`2023-08-25`
Expand Down
19 changes: 19 additions & 0 deletions packages/web-vue/CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
changelog: true
```
## 2.51.0
`2023-09-01`

### ⚠️ 重点注意

- **form:** `form-item` 渲染元素增加 `id` 属性,请注意对原始网页的影响

### 🆕 新增功能

- **form:** 新增滚动到指定表单字段 ([#2680](https://github.com/arco-design/arco-design-vue/pull/2680))
- **table:** 支持显示空子树 ([#2673](https://github.com/arco-design/arco-design-vue/pull/2673))
- **select:** 支持`boolean` 类型 ([#2661](https://github.com/arco-design/arco-design-vue/pull/2661))

### 🐛 问题修复

- **typography:** 修复按需导入时缺少相关组件样式的问题 ([#2682](https://github.com/arco-design/arco-design-vue/pull/2682))


## 2.50.2

`2023-08-25`
Expand Down
9 changes: 9 additions & 0 deletions packages/web-vue/components/form/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
changelog: true
```
## 2.51.0
`2023-09-01`

### 🆕 Feature

- add scroll into view to the field ([#2680](https://github.com/arco-design/arco-design-vue/pull/2680))


## 2.44.2

`2023-03-17`
Expand Down
9 changes: 9 additions & 0 deletions packages/web-vue/components/form/CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
changelog: true
```
## 2.51.0
`2023-09-01`

### 🆕 新增功能

- 新增滚动到指定表单字段 ([#2680](https://github.com/arco-design/arco-design-vue/pull/2680))


## 2.44.2

`2023-03-17`
Expand Down
18 changes: 9 additions & 9 deletions packages/web-vue/components/form/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ description: A form with data collection, verification and submission functions,
|disabled|Whether to disable the form|`boolean`|`-`||
|rules|Form item validation rules|`Record<string, FieldRule \| FieldRule[]>`|`-`||
|auto-label-width|Whether to enable automatic label width, it only takes effect under `layout="horizontal"`.|`boolean`|`false`|2.13.0|
|scroll-to-first-error|Scroll to the first error field after verification fails, receiving all parameters of[scroll-into-view-if-needed](https://github.com/stipsan/scroll-into-view-if-needed)|`boolean \| ScrollIntoViewOptions`|`-`||
|scroll-to-first-error|Scroll to the first error field after verification fails|`boolean`|`false`|2.51.0|
### `<form>` Events

|Event Name|Description|Parameters|
Expand All @@ -60,14 +60,14 @@ description: A form with data collection, verification and submission functions,
|submit-failed|Triggered when verification failed|data: `{values: Record<string, any>; errors: Record<string, ValidatedError>}`<br>ev: `Event`|
### `<form>` Methods

|Method|Description|Parameters|Return|
|---|---|---|:---:|
|validate|Verify all form data|callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>|
|validateField|Validate part of the form data|field: `string \| string[]`<br>callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>|
|resetFields|Reset form data|field: `string \| string[]`|-|
|clearValidate|Clear verification status|field: `string \| string[]`|-|
|setFields|Set the value and status of the form item|data: `Record<string, FieldData>`|-|
|scrollToField|Scroll to the specified form item|field: `string`<br>options: `ScrollIntoViewOptions`|-|
|Method|Description|Parameters|Return|version|
|---|---|---|:---:|:---|
|validate|Verify all form data|callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>||
|validateField|Validate part of the form data|field: `string \| string[]`<br>callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>||
|resetFields|Reset form data|field: `string \| string[]`|-||
|clearValidate|Clear verification status|field: `string \| string[]`|-||
|setFields|Set the value and status of the form item|data: `Record<string, FieldData>`|-||
|scrollToField|Scroll to the specified form item|field: `string`|-|2.51.0|



Expand Down
18 changes: 9 additions & 9 deletions packages/web-vue/components/form/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ description: 具有数据收集、校验和提交功能的表单,包含复选
|rules|表单项校验规则|`Record<string, FieldRule \| FieldRule[]>`|`-`||
|auto-label-width|是否开启自动标签宽度,仅在 `layout="horizontal"` 下生效。|`boolean`|`false`|2.13.0|
|id|表单控件 `id` 的前缀|`string`|`-`||
|scroll-to-first-error|验证失败后滚动到第一个错误字段,接收所有[scroll-into-view-if-needed](https://github.com/stipsan/scroll-into-view-if-needed)的参数|`boolean \| ScrollIntoViewOptions`|`-`||
|scroll-to-first-error|验证失败后滚动到第一个错误字段|`boolean`|`false`|2.51.0|
### `<form>` Events

|事件名|描述|参数|
Expand All @@ -59,14 +59,14 @@ description: 具有数据收集、校验和提交功能的表单,包含复选
|submit-failed|验证失败时触发|data: `{values: Record<string, any>; errors: Record<string, ValidatedError>}`<br>ev: `Event`|
### `<form>` Methods

|方法名|描述|参数|返回值|
|---|---|---|---|
|validate|校验全部表单数据|callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>|
|validateField|校验部分表单数据|field: `string \| string[]`<br>callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>|
|resetFields|重置表单数据|field: `string \| string[]`|-|
|clearValidate|清除校验状态|field: `string \| string[]`|-|
|setFields|设置表单项的值和状态|data: `Record<string, FieldData>`|-|
|scrollToField|滚动到指定表单项|field: `string`<br>options: `ScrollIntoViewOptions`|-|
|方法名|描述|参数|返回值|版本|
|---|---|---|---|:---|
|validate|校验全部表单数据|callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>||
|validateField|校验部分表单数据|field: `string \| string[]`<br>callback: `(errors: undefined \| Record<string, ValidatedError>) => void`|Promise<undefined \| Record<string, ValidatedError>>||
|resetFields|重置表单数据|field: `string \| string[]`|-||
|clearValidate|清除校验状态|field: `string \| string[]`|-||
|setFields|设置表单项的值和状态|data: `Record<string, FieldData>`|-||
|scrollToField|滚动到指定表单项|field: `string`|-|2.51.0|



Expand Down
Loading

0 comments on commit d5925c4

Please sign in to comment.