UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

30 lines 565 B
import { createTypes } from 'vue-types'; const PropTypes = createTypes({ func: undefined, bool: undefined, string: undefined, number: undefined, array: undefined, object: undefined, integer: undefined }); PropTypes.extend([{ name: 'looseBool', getter: true, type: Boolean, default: undefined }, { name: 'style', getter: true, type: [String, Object], default: undefined }, { name: 'VueNode', getter: true, type: null }]); export function withUndefined(type) { type.default = undefined; return type; } export default PropTypes;