mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-01 11:38:36 +08:00
fix: ts error
This commit is contained in:
parent
61ef8e6883
commit
4c9d3161fd
@ -1,4 +1,4 @@
|
||||
import { createTypes } from 'vue-types';
|
||||
import { createTypes, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
|
||||
const PropTypes = createTypes({
|
||||
func: undefined,
|
||||
bool: undefined,
|
||||
@ -8,6 +8,7 @@ const PropTypes = createTypes({
|
||||
object: undefined,
|
||||
integer: undefined,
|
||||
});
|
||||
|
||||
PropTypes.extend([
|
||||
{
|
||||
name: 'looseBool',
|
||||
@ -16,9 +17,14 @@ PropTypes.extend([
|
||||
default: undefined,
|
||||
},
|
||||
]);
|
||||
|
||||
export function withUndefined(type: any) {
|
||||
type.default = undefined;
|
||||
return type;
|
||||
}
|
||||
|
||||
export default PropTypes;
|
||||
export default PropTypes as VueTypesInterface & {
|
||||
readonly looseBool: VueTypeValidableDef<boolean> & {
|
||||
default: boolean;
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { nextTick, inject } from 'vue';
|
||||
import { nextTick, inject, defineComponent } from 'vue';
|
||||
import TransitionEvents from './css-animation/Event';
|
||||
import raf from './raf';
|
||||
import { defaultConfigProvider } from '../config-provider';
|
||||
@ -20,7 +20,7 @@ function isNotGrey(color) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'Wave',
|
||||
props: ['insertExtraNode'],
|
||||
mounted() {
|
||||
@ -171,4 +171,4 @@ export default {
|
||||
}
|
||||
return this.$slots.default && this.$slots.default()[0];
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user