Skip to content

Commit 5f1734c

Browse files
committed
Merge remote-tracking branch 'origin/next' into v2.3
2 parents a770eb3 + 39c866e commit 5f1734c

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

CHANGELOG.en-US.md

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@
1010

1111
---
1212

13+
## 2.2.2
14+
15+
`2021-07-11`
16+
17+
- 🌟 Switch added checkedValue and unCheckedValue attributes to customize checked binding value [#4329](https://github.com/vueComponent/ant-design-vue/issues/4329)
18+
- 🐞 Fix the issue of missing SubMenu animation [#4325](https://github.com/vueComponent/ant-design-vue/issues/4325)
19+
- 🐞 Fix that there is no red box problem when TimePicker validates the error under Form [#4331](https://github.com/vueComponent/ant-design-vue/issues/4331)
20+
- 🐞 Fix UploadDragger does not support vite-plugin-components on-demand loading problem [#4334](https://github.com/vueComponent/ant-design-vue/issues/4334)
21+
- 🐞 Fix the error when TreeSelect customize title through slot [1152e8](https://github.com/vueComponent/ant-design-vue/commit/1152e8cd71cadf9e8fb4797916adca20c0e35974)
22+
- 🐞 Fix the dropdown submenu style loss issue [#4351](https://github.com/vueComponent/ant-design-vue/issues/4351)
23+
- TS
24+
- Fix the type error of Table in ts 4.3.5 version [#4296](https://github.com/vueComponent/ant-design-vue/issues/4296)
25+
- Improve notification type [#4346](https://github.com/vueComponent/ant-design-vue/issues/4346)
26+
1327
## 2.2.1
1428

1529
`2021-07-06`

CHANGELOG.zh-CN.md

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@
1010

1111
---
1212

13+
## 2.2.2
14+
15+
`2021-07-11`
16+
17+
- 🌟 Switch 新增 checkedValue、unCheckedValue 属性用于自定义 checked 绑定值 [#4329](https://github.com/vueComponent/ant-design-vue/issues/4329)
18+
- 🐞 修复 SubMenu 动画丢失的问题 [#4325](https://github.com/vueComponent/ant-design-vue/issues/4325)
19+
- 🐞 修复 TimePicker 在 Form 下验证错误时没有红框问题 [#4331](https://github.com/vueComponent/ant-design-vue/issues/4331)
20+
- 🐞 修复 UploadDragger 不支持 vite-plugin-components 按需加载问题 [#4334](https://github.com/vueComponent/ant-design-vue/issues/4334)
21+
- 🐞 修复 TreeSelect 通过 slot 自定义 title 时报错问题 [1152e8](https://github.com/vueComponent/ant-design-vue/commit/1152e8cd71cadf9e8fb4797916adca20c0e35974)
22+
- 🐞 修复 Dropdown submenu 样式丢失问题 [#4351](https://github.com/vueComponent/ant-design-vue/issues/4351)
23+
- TS
24+
- 修复 Table 在 ts 4.3.5 版本下类型报错问题 [#4296](https://github.com/vueComponent/ant-design-vue/issues/4296)
25+
- 完善 notification 类型 [#4346](https://github.com/vueComponent/ant-design-vue/issues/4346)
26+
1327
## 2.2.1
1428

1529
`2021-07-06`

components/form/Form.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { useInjectSize } from '../_util/hooks/useSize';
2727
import useConfigInject from '../_util/hooks/useConfigInject';
2828
import { useProvideForm } from './context';
2929
import type { SizeType } from '../config-provider';
30+
import useForm from './useForm';
3031

3132
export type RequiredMark = boolean | 'optional';
3233
export type FormLayout = 'horizontal' | 'inline' | 'vertical';
@@ -97,6 +98,7 @@ const Form = defineComponent({
9798
colon: true,
9899
}),
99100
Item: FormItem,
101+
useForm,
100102
emits: ['finishFailed', 'submit', 'finish'],
101103
setup(props, { emit, slots, expose, attrs }) {
102104
const size = useInjectSize(props);
@@ -371,4 +373,5 @@ const Form = defineComponent({
371373

372374
export default Form as typeof Form & {
373375
readonly Item: typeof FormItem;
376+
readonly useForm: typeof useForm;
374377
};

components/form/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Form.install = function (app: App) {
1515

1616
export { FormItem, formItemProps, formProps, useForm };
1717

18-
Form.useForm = useForm;
1918
export default Form as typeof Form &
2019
Plugin & {
2120
readonly Item: typeof Form.Item;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ant-design-vue",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"title": "Ant Design Vue",
55
"description": "An enterprise-class UI design language and Vue-based implementation",
66
"keywords": [

0 commit comments

Comments
 (0)