Skip to content

Commit f82fcad

Browse files
committed
fix: review amour1688 error
1 parent 8e12971 commit f82fcad

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

components/modal/index.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { App } from 'vue';
2-
import Modal, { destroyFns, ModalFuncProps } from './Modal';
2+
import Modal, { destroyFns, ModalFunc, ModalFuncProps } from './Modal';
33
import modalConfirm from './confirm';
44
import InfoCircleOutlined from '@ant-design/icons-vue/InfoCircleOutlined';
55
import CheckCircleOutlined from '@ant-design/icons-vue/CheckCircleOutlined';
@@ -80,4 +80,18 @@ Modal.install = function(app: App) {
8080
return app;
8181
};
8282

83-
export default Modal;
83+
export default Modal as typeof Modal & {
84+
readonly info: ModalFunc;
85+
86+
readonly success: ModalFunc;
87+
88+
readonly error: ModalFunc;
89+
90+
readonly warn: ModalFunc;
91+
92+
readonly warning: ModalFunc;
93+
94+
readonly confirm: ModalFunc;
95+
96+
readonly destroyAll: () => void;
97+
};

components/radio/Radio.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ export type RadioProps = Partial<ExtractPropTypes<typeof radioProps>>;
2626

2727
export default defineComponent({
2828
name: 'ARadio',
29-
model: {
30-
prop: 'checked',
31-
},
3229
props: radioProps,
3330
emits: ['update:checked', 'update:value', 'change', 'blur', 'focus'],
3431
setup() {

components/transfer/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ const Transfer = defineComponent({
6666
}),
6767
setup() {
6868
return {
69-
selectedKeys: [],
70-
targetKeys: [],
7169
separatedDataSource: null,
7270
configProvider: inject('configProvider', defaultConfigProvider),
7371
};

components/transfer/renderListBody.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ const ListBody = defineComponent({
101101
mounted ? `${prefixCls}-content-item-highlight` : '',
102102
{
103103
tag: 'ul',
104+
class: `${prefixCls}-content`,
104105
onScroll: this.handleScroll,
105106
},
106107
);
107108
return (
108-
<TransitionGroup moveClass={`${prefixCls}-content`} {...transitionProps}>
109+
<TransitionGroup {...transitionProps}>
109110
{items}
110111
</TransitionGroup>
111112
);

0 commit comments

Comments
 (0)