fix: review amour1688 error
parent
8e12971c2d
commit
f82fcad094
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -66,8 +66,6 @@ const Transfer = defineComponent({
|
|||
}),
|
||||
setup() {
|
||||
return {
|
||||
selectedKeys: [],
|
||||
targetKeys: [],
|
||||
separatedDataSource: null,
|
||||
configProvider: inject('configProvider', defaultConfigProvider),
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue