perf: update ts types
parent
748f8d526d
commit
c2994a6629
|
@ -39,11 +39,11 @@ export const AlertProps = {
|
|||
/** Whether Alert can be closed */
|
||||
closable: PropTypes.looseBool,
|
||||
/** Close text to show */
|
||||
closeText: PropTypes.any,
|
||||
closeText: PropTypes.VNodeChild,
|
||||
/** Content of Alert */
|
||||
message: PropTypes.any,
|
||||
message: PropTypes.VNodeChild,
|
||||
/** Additional content of Alert */
|
||||
description: PropTypes.any,
|
||||
description: PropTypes.VNodeChild,
|
||||
/** Callback when close Alert */
|
||||
// onClose?: React.MouseEventHandler<HTMLAnchorElement>;
|
||||
/** Trigger when animation ending of Alert */
|
||||
|
@ -52,8 +52,8 @@ export const AlertProps = {
|
|||
showIcon: PropTypes.looseBool,
|
||||
prefixCls: PropTypes.string,
|
||||
banner: PropTypes.looseBool,
|
||||
icon: PropTypes.any,
|
||||
onClose: PropTypes.func,
|
||||
icon: PropTypes.VNodeChild,
|
||||
onClose: PropTypes.VNodeChild,
|
||||
};
|
||||
|
||||
const Alert = defineComponent({
|
||||
|
|
|
@ -52,7 +52,7 @@ const AnchorProps = {
|
|||
showInkInFixed: PropTypes.looseBool.def(false),
|
||||
getContainer: PropTypes.func.def(getDefaultContainer),
|
||||
wrapperClass: PropTypes.string,
|
||||
wrapperStyle: PropTypes.object,
|
||||
wrapperStyle: PropTypes.style,
|
||||
getCurrentAnchor: PropTypes.func,
|
||||
targetOffset: PropTypes.number,
|
||||
onChange: PropTypes.func,
|
||||
|
|
|
@ -9,7 +9,7 @@ function noop(..._any: any[]): any {}
|
|||
const AnchorLinkProps = {
|
||||
prefixCls: PropTypes.string,
|
||||
href: PropTypes.string.def('#'),
|
||||
title: PropTypes.any,
|
||||
title: PropTypes.VNodeChild,
|
||||
target: PropTypes.string,
|
||||
};
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ const AutoCompleteProps = {
|
|||
value: SelectValue,
|
||||
defaultValue: SelectValue,
|
||||
dataSource: PropTypes.array,
|
||||
dropdownMenuStyle: PropTypes.object,
|
||||
dropdownMenuStyle: PropTypes.style,
|
||||
optionLabelProp: PropTypes.string,
|
||||
dropdownMatchSelectWidth: PropTypes.looseBool,
|
||||
// onChange?: (value: SelectValue) => void;
|
||||
|
|
|
@ -154,13 +154,13 @@ const ConfigProvider = defineComponent({
|
|||
},
|
||||
});
|
||||
|
||||
export const defaultConfigProvider = {
|
||||
export const defaultConfigProvider: ConfigConsumerProps = {
|
||||
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => {
|
||||
if (customizePrefixCls) return customizePrefixCls;
|
||||
return `ant-${suffixCls}`;
|
||||
},
|
||||
renderEmpty: defaultRenderEmpty,
|
||||
} as any;
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
ConfigProvider.install = function(app: App) {
|
||||
|
|
|
@ -16,18 +16,18 @@ const AbstractSelectProps = () => ({
|
|||
prefixCls: PropTypes.string,
|
||||
size: PropTypes.oneOf(['small', 'large', 'default']),
|
||||
showAction: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(String)]),
|
||||
notFoundContent: PropTypes.any,
|
||||
notFoundContent: PropTypes.VNodeChild,
|
||||
transitionName: PropTypes.string,
|
||||
choiceTransitionName: PropTypes.string,
|
||||
showSearch: PropTypes.looseBool,
|
||||
allowClear: PropTypes.looseBool,
|
||||
disabled: PropTypes.looseBool,
|
||||
tabindex: PropTypes.number,
|
||||
placeholder: PropTypes.any,
|
||||
placeholder: PropTypes.VNodeChild,
|
||||
defaultActiveFirstOption: PropTypes.looseBool,
|
||||
dropdownClassName: PropTypes.string,
|
||||
dropdownStyle: PropTypes.any,
|
||||
dropdownMenuStyle: PropTypes.any,
|
||||
dropdownStyle: PropTypes.style,
|
||||
dropdownMenuStyle: PropTypes.style,
|
||||
dropdownMatchSelectWidth: PropTypes.looseBool,
|
||||
// onSearch: (value: string) => any,
|
||||
filterOption: withUndefined(PropTypes.oneOfType([PropTypes.looseBool, PropTypes.func])),
|
||||
|
|
Loading…
Reference in New Issue