diff --git a/components/modal/index.tsx b/components/modal/index.tsx index eef26df6b..0894a2407 100644 --- a/components/modal/index.tsx +++ b/components/modal/index.tsx @@ -1,5 +1,5 @@ import { App } from 'vue'; -import Modal, { destroyFns, ModalFuncProps } from './Modal'; +import Modal, { destroyFns, ModalFunc, ModalFuncProps } from './Modal'; import modalConfirm from './confirm'; import InfoCircleOutlined from '@ant-design/icons-vue/InfoCircleOutlined'; import CheckCircleOutlined from '@ant-design/icons-vue/CheckCircleOutlined'; @@ -80,4 +80,18 @@ Modal.install = function(app: App) { return app; }; -export default Modal; +export default Modal as typeof Modal & { + readonly info: ModalFunc; + + readonly success: ModalFunc; + + readonly error: ModalFunc; + + readonly warn: ModalFunc; + + readonly warning: ModalFunc; + + readonly confirm: ModalFunc; + + readonly destroyAll: () => void; +}; diff --git a/components/radio/Radio.tsx b/components/radio/Radio.tsx index b5389f0ef..aa5a33fb3 100644 --- a/components/radio/Radio.tsx +++ b/components/radio/Radio.tsx @@ -26,9 +26,6 @@ export type RadioProps = Partial<ExtractPropTypes<typeof radioProps>>; export default defineComponent({ name: 'ARadio', - model: { - prop: 'checked', - }, props: radioProps, emits: ['update:checked', 'update:value', 'change', 'blur', 'focus'], setup() { diff --git a/components/transfer/index.tsx b/components/transfer/index.tsx index 08ddd91e7..bad8a700f 100644 --- a/components/transfer/index.tsx +++ b/components/transfer/index.tsx @@ -66,8 +66,6 @@ const Transfer = defineComponent({ }), setup() { return { - selectedKeys: [], - targetKeys: [], separatedDataSource: null, configProvider: inject('configProvider', defaultConfigProvider), }; diff --git a/components/transfer/renderListBody.tsx b/components/transfer/renderListBody.tsx index fe6a4c375..a0ef4b450 100644 --- a/components/transfer/renderListBody.tsx +++ b/components/transfer/renderListBody.tsx @@ -101,11 +101,12 @@ const ListBody = defineComponent({ mounted ? `${prefixCls}-content-item-highlight` : '', { tag: 'ul', + class: `${prefixCls}-content`, onScroll: this.handleScroll, }, ); return ( - <TransitionGroup moveClass={`${prefixCls}-content`} {...transitionProps}> + <TransitionGroup {...transitionProps}> {items} </TransitionGroup> );