mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 01:13:58 +08:00
export components interface (#7654)
* export components interface * export specific props * fix formItem missed import
This commit is contained in:
parent
36a54a8a8c
commit
14e2a56b75
@ -1,5 +1,8 @@
|
||||
import Anchor from './Anchor';
|
||||
import AnchorLink from './AnchorLink';
|
||||
|
||||
export { AnchorProps } from './Anchor';
|
||||
export { AnchorLinkProps } from './AnchorLink';
|
||||
|
||||
Anchor.Link = AnchorLink;
|
||||
export default Anchor;
|
||||
|
@ -5,6 +5,8 @@ import ScrollNumber from './ScrollNumber';
|
||||
import classNames from 'classnames';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
export { ScrollNumberProps } from './ScrollNumber';
|
||||
|
||||
export interface BadgeProps {
|
||||
/** Number to show in badge */
|
||||
count?: number | string;
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Breadcrumb from './Breadcrumb';
|
||||
import BreadcrumbItem from './BreadcrumbItem';
|
||||
|
||||
export { BreadcrumbProps } from './Breadcrumb';
|
||||
export { BreadcrumbItemProps } from './BreadcrumbItem';
|
||||
|
||||
Breadcrumb.Item = BreadcrumbItem;
|
||||
export default Breadcrumb;
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export type ButtonSize = 'small' | 'large';
|
||||
import { ButtonSize } from './button';
|
||||
|
||||
export interface ButtonGroupProps {
|
||||
size?: ButtonSize;
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Button from './button';
|
||||
import ButtonGroup from './button-group';
|
||||
|
||||
export { ButtonProps, ButtonShape, ButtonSize, ButtonType } from './button';
|
||||
export { ButtonGroupProps } from './button-group';
|
||||
|
||||
Button.Group = ButtonGroup;
|
||||
export default Button;
|
||||
|
@ -7,6 +7,8 @@ import Header from './Header';
|
||||
import { getComponentLocale, getLocaleCode } from '../_util/getLocale';
|
||||
declare const require: Function;
|
||||
|
||||
export { HeaderProps } from './Header';
|
||||
|
||||
function noop() { return null; }
|
||||
|
||||
function zerofixed(v) {
|
||||
|
@ -7,6 +7,9 @@ import Meta from './Meta';
|
||||
import Tabs from '../tabs';
|
||||
import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame';
|
||||
|
||||
export { CardGridProps } from './Grid';
|
||||
export { CardMetaProps } from './Meta';
|
||||
|
||||
export type CardType = 'inner';
|
||||
|
||||
export interface CardTabListType {
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Checkbox from './Checkbox';
|
||||
import Group from './Group';
|
||||
|
||||
export { CheckboxProps } from './Checkbox';
|
||||
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
||||
|
||||
Checkbox.Group = Group;
|
||||
export default Checkbox;
|
||||
|
@ -1,2 +1,5 @@
|
||||
import { Col } from '../grid';
|
||||
import { Col, ColProps, ColSize } from '../grid';
|
||||
|
||||
export { ColProps, ColSize };
|
||||
|
||||
export default Col;
|
||||
|
@ -1,3 +1,5 @@
|
||||
import Collapse from './Collapse';
|
||||
|
||||
export { CollapsePanelProps, CollapseProps } from './Collapse';
|
||||
|
||||
export default Collapse;
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Dropdown from './dropdown';
|
||||
import DropdownButton from './dropdown-button';
|
||||
|
||||
export { DropDownProps } from './dropdown';
|
||||
export { DropdownButtonProps } from './dropdown-button';
|
||||
|
||||
Dropdown.Button = DropdownButton;
|
||||
export default Dropdown;
|
||||
|
@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import Animate from 'rc-animate';
|
||||
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
|
||||
import Animate from 'rc-animate';
|
||||
import Row from '../grid/row';
|
||||
import Col, { ColProps } from '../grid/col';
|
||||
import { WrappedFormUtils } from './Form';
|
||||
|
@ -1,3 +1,6 @@
|
||||
import Form from './Form';
|
||||
|
||||
export { FormProps, FormComponentProps, FormCreateOption, ValidateCallback, ValidationRule } from './Form';
|
||||
export { FormItemProps } from './FormItem';
|
||||
|
||||
export default Form;
|
||||
|
@ -1,6 +1,9 @@
|
||||
import Row from './row';
|
||||
import Col from './col';
|
||||
|
||||
export { RowProps } from './row';
|
||||
export { ColProps, ColSize } from './col';
|
||||
|
||||
export {
|
||||
Row,
|
||||
Col,
|
||||
|
@ -3,6 +3,11 @@ import Group from './Group';
|
||||
import Search from './Search';
|
||||
import TextArea from './TextArea';
|
||||
|
||||
export { InputProps } from './Input';
|
||||
export { GroupProps } from './Group';
|
||||
export { SearchProps } from './Search';
|
||||
export { TextAreaProps } from './TextArea';
|
||||
|
||||
Input.Group = Group;
|
||||
Input.Search = Search;
|
||||
Input.TextArea = TextArea;
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Layout from './layout';
|
||||
import Sider from './Sider';
|
||||
|
||||
export { BasicProps as LayoutProps } from './layout';
|
||||
export { SiderProps } from './Sider';
|
||||
|
||||
Layout.Sider = Sider;
|
||||
export default Layout;
|
||||
|
@ -8,6 +8,8 @@ import { Row } from '../grid';
|
||||
|
||||
import Item from './Item';
|
||||
|
||||
export { ListItemProps, ListItemMetaProps } from './Item';
|
||||
|
||||
export interface ListGridType {
|
||||
gutter?: number;
|
||||
column?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
|
||||
|
@ -1,7 +1,8 @@
|
||||
import Modal, { ModalFuncProps } from './Modal';
|
||||
import confirm from './confirm';
|
||||
|
||||
export { ModalFuncProps };
|
||||
export { ActionButtonProps } from './ActionButton';
|
||||
export { ModalProps, ModalFuncProps } from './Modal';
|
||||
|
||||
Modal.info = function (props: ModalFuncProps) {
|
||||
const config = {
|
||||
|
@ -1,3 +1,5 @@
|
||||
import Progress from './progress';
|
||||
|
||||
export { ProgressProps } from './progress';
|
||||
|
||||
export default Progress;
|
||||
|
@ -2,6 +2,10 @@ import Radio from './radio';
|
||||
import Group from './group';
|
||||
import Button from './radioButton';
|
||||
|
||||
export { RadioProps } from './radio';
|
||||
export { RadioGroupProps } from './group';
|
||||
export { RadioButtonProps } from './radioButton';
|
||||
|
||||
Radio.Button = Button;
|
||||
Radio.Group = Group;
|
||||
export { Button, Group };
|
||||
|
@ -1,2 +1,4 @@
|
||||
import { Row } from '../grid';
|
||||
import { Row, RowProps } from '../grid';
|
||||
|
||||
export { RowProps };
|
||||
export default Row;
|
||||
|
@ -1,3 +1,11 @@
|
||||
import Table from './Table';
|
||||
|
||||
export { ColumnProps } from './Column';
|
||||
export { ColumnGroupProps } from './ColumnGroup';
|
||||
export { FilterMenuProps } from './filterDropdown';
|
||||
export { FilterDropdownMenuWrapperProps } from './FilterDropdownMenuWrapper';
|
||||
export { SelectionBoxProps } from './SelectionBox';
|
||||
export { SelectionCheckboxAllProps } from './SelectionCheckboxAll';
|
||||
export { TableProps, TableRowSelection, TableColumnConfig } from './Table';
|
||||
|
||||
export default Table;
|
||||
|
@ -6,6 +6,8 @@ import omit from 'omit.js';
|
||||
import Icon from '../icon';
|
||||
import CheckableTag from './CheckableTag';
|
||||
|
||||
export { CheckableTagProps } from './CheckableTag';
|
||||
|
||||
export interface TagProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
|
@ -1,3 +1,6 @@
|
||||
import Timeline from './Timeline';
|
||||
|
||||
export { TimelineProps } from './Timeline';
|
||||
export { TimeLineItemProps } from './TimelineItem';
|
||||
|
||||
export default Timeline;
|
||||
|
@ -2,7 +2,9 @@ import React from 'react';
|
||||
import { cloneElement } from 'react';
|
||||
import RcTooltip from 'rc-tooltip';
|
||||
import classNames from 'classnames';
|
||||
import getPlacements, { AdjustOverflow } from './placements';
|
||||
import getPlacements, { AdjustOverflow, PlacementsConfig } from './placements';
|
||||
|
||||
export { AdjustOverflow, PlacementsConfig };
|
||||
|
||||
export type TooltipPlacement =
|
||||
'top' | 'left' | 'right' | 'bottom' |
|
||||
|
@ -6,6 +6,10 @@ import Operation from './operation';
|
||||
import Search from './search';
|
||||
import injectLocale from '../locale-provider/injectLocale';
|
||||
|
||||
export { TransferListProps } from './list';
|
||||
export { TransferOperationProps } from './operation';
|
||||
export { SearchProps } from './search';
|
||||
|
||||
function noop() {
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { TreeSelectProps } from './interface';
|
||||
import injectLocale from '../locale-provider/injectLocale';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
export { TreeSelectProps };
|
||||
export { TreeData, TreeSelectProps } from './interface';
|
||||
|
||||
abstract class TreeSelect extends React.Component<TreeSelectProps, any> {
|
||||
static TreeNode = TreeNode;
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Upload from './Upload';
|
||||
import Dragger from './Dragger';
|
||||
|
||||
export { UploadProps, UploadListProps, UploadChangeParam } from './interface';
|
||||
export { DraggerProps } from './Dragger';
|
||||
|
||||
Upload.Dragger = Dragger;
|
||||
export default Upload;
|
||||
|
Loading…
Reference in New Issue
Block a user