diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 890318196..ca7d1a36a 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -10,6 +10,20 @@ --- +## 2.2.2 + +`2021-07-11` + +- 🌟 Switch added checkedValue and unCheckedValue attributes to customize checked binding value [#4329](https://github.com/vueComponent/ant-design-vue/issues/4329) +- 🐞 Fix the issue of missing SubMenu animation [#4325](https://github.com/vueComponent/ant-design-vue/issues/4325) +- 🐞 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) +- 🐞 Fix UploadDragger does not support vite-plugin-components on-demand loading problem [#4334](https://github.com/vueComponent/ant-design-vue/issues/4334) +- 🐞 Fix the error when TreeSelect customize title through slot [1152e8](https://github.com/vueComponent/ant-design-vue/commit/1152e8cd71cadf9e8fb4797916adca20c0e35974) +- 🐞 Fix the dropdown submenu style loss issue [#4351](https://github.com/vueComponent/ant-design-vue/issues/4351) +- TS + - Fix the type error of Table in ts 4.3.5 version [#4296](https://github.com/vueComponent/ant-design-vue/issues/4296) + - Improve notification type [#4346](https://github.com/vueComponent/ant-design-vue/issues/4346) + ## 2.2.1 `2021-07-06` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 72155c3eb..37bb28086 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -10,6 +10,20 @@ --- +## 2.2.2 + +`2021-07-11` + +- 🌟 Switch 新增 checkedValue、unCheckedValue 属性用于自定义 checked 绑定值 [#4329](https://github.com/vueComponent/ant-design-vue/issues/4329) +- 🐞 修复 SubMenu 动画丢失的问题 [#4325](https://github.com/vueComponent/ant-design-vue/issues/4325) +- 🐞 修复 TimePicker 在 Form 下验证错误时没有红框问题 [#4331](https://github.com/vueComponent/ant-design-vue/issues/4331) +- 🐞 修复 UploadDragger 不支持 vite-plugin-components 按需加载问题 [#4334](https://github.com/vueComponent/ant-design-vue/issues/4334) +- 🐞 修复 TreeSelect 通过 slot 自定义 title 时报错问题 [1152e8](https://github.com/vueComponent/ant-design-vue/commit/1152e8cd71cadf9e8fb4797916adca20c0e35974) +- 🐞 修复 Dropdown submenu 样式丢失问题 [#4351](https://github.com/vueComponent/ant-design-vue/issues/4351) +- TS + - 修复 Table 在 ts 4.3.5 版本下类型报错问题 [#4296](https://github.com/vueComponent/ant-design-vue/issues/4296) + - 完善 notification 类型 [#4346](https://github.com/vueComponent/ant-design-vue/issues/4346) + ## 2.2.1 `2021-07-06` diff --git a/components/form/Form.tsx b/components/form/Form.tsx index 350fdc654..4e982fa25 100755 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -27,6 +27,7 @@ import { useInjectSize } from '../_util/hooks/useSize'; import useConfigInject from '../_util/hooks/useConfigInject'; import { useProvideForm } from './context'; import type { SizeType } from '../config-provider'; +import useForm from './useForm'; export type RequiredMark = boolean | 'optional'; export type FormLayout = 'horizontal' | 'inline' | 'vertical'; @@ -97,6 +98,7 @@ const Form = defineComponent({ colon: true, }), Item: FormItem, + useForm, emits: ['finishFailed', 'submit', 'finish'], setup(props, { emit, slots, expose, attrs }) { const size = useInjectSize(props); @@ -371,4 +373,5 @@ const Form = defineComponent({ export default Form as typeof Form & { readonly Item: typeof FormItem; + readonly useForm: typeof useForm; }; diff --git a/components/form/index.tsx b/components/form/index.tsx index 66b6d8c86..cfb6c6135 100644 --- a/components/form/index.tsx +++ b/components/form/index.tsx @@ -15,7 +15,6 @@ Form.install = function (app: App) { export { FormItem, formItemProps, formProps, useForm }; -Form.useForm = useForm; export default Form as typeof Form & Plugin & { readonly Item: typeof Form.Item; diff --git a/package.json b/package.json index 51fdeaa1d..b68e9ea40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-design-vue", - "version": "2.2.1", + "version": "2.2.2", "title": "Ant Design Vue", "description": "An enterprise-class UI design language and Vue-based implementation", "keywords": [