diff --git a/components/components.ts b/components/components.ts index e953ead65..058aca5c6 100644 --- a/components/components.ts +++ b/components/components.ts @@ -187,3 +187,5 @@ export { export type { UploadProps } from './upload'; export { default as Upload } from './upload'; + +export { default as LocaleProvider } from './locale-provider'; diff --git a/components/locale-provider/__tests__/index.test.js b/components/locale-provider/__tests__/index.test.js index bdc219daa..8faf19da1 100644 --- a/components/locale-provider/__tests__/index.test.js +++ b/components/locale-provider/__tests__/index.test.js @@ -3,7 +3,6 @@ import moment from 'moment'; import MockDate from 'mockdate'; import { sleep } from '../../../tests/utils'; import { - LocaleProvider, Pagination, DatePicker, TimePicker, @@ -14,6 +13,7 @@ import { Select, Transfer, } from '../..'; +import LocaleProvider from '..'; import arEG from '../ar_EG'; import bgBG from '../bg_BG'; import caES from '../ca_ES'; diff --git a/components/timeline/Timeline.tsx b/components/timeline/Timeline.tsx index da0727cea..5e42a496d 100644 --- a/components/timeline/Timeline.tsx +++ b/components/timeline/Timeline.tsx @@ -3,7 +3,7 @@ import classNames from '../_util/classNames'; import PropTypes from '../_util/vue-types'; import { getOptionProps, getPropsData, filterEmpty, getComponent } from '../_util/props-util'; import initDefaultProps from '../_util/props-util/initDefaultProps'; -import TimelineItem, { TimeLineItemProps } from './TimelineItem'; +import TimelineItem, { TimelineItemProps } from './TimelineItem'; import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined'; import { defaultConfigProvider } from '../config-provider'; import { tuple } from '../_util/type'; @@ -64,7 +64,7 @@ export default defineComponent({ : [...children, pendingItem]; const getPositionCls = (ele, idx: number) => { - const eleProps = getPropsData(ele) as TimeLineItemProps; + const eleProps = getPropsData(ele) as TimelineItemProps; if (mode === 'alternate') { if (eleProps.position === 'right') return `${prefixCls}-item-right`; if (eleProps.position === 'left') return `${prefixCls}-item-left`; diff --git a/components/typography/__tests__/index.test.js b/components/typography/__tests__/index.test.js index 5507d1657..941a042c9 100644 --- a/components/typography/__tests__/index.test.js +++ b/components/typography/__tests__/index.test.js @@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'; import { asyncExpect, sleep } from '@/tests/utils'; import KeyCode from '../../_util/KeyCode'; import copy from '../../_util/copy-to-clipboard'; -import Typography from '../Typography'; +import Typography from '..'; import Title from '../Title'; import Paragraph from '../Paragraph'; import Link from '../Link'; diff --git a/tests/__snapshots__/index.test.js.snap b/tests/__snapshots__/index.test.js.snap index b1d47711e..c4ef7f5d7 100644 --- a/tests/__snapshots__/index.test.js.snap +++ b/tests/__snapshots__/index.test.js.snap @@ -2,73 +2,130 @@ exports[`antd dist files exports modules correctly 1`] = ` Array [ + "version", + "install", + "default", "Affix", "Anchor", + "AnchorLink", "AutoComplete", + "AutoCompleteOptGroup", + "AutoCompleteOption", "Alert", "Avatar", + "AvatarGroup", "BackTop", "Badge", + "BadgeRibbon", "Breadcrumb", + "BreadcrumbItem", + "BreadcrumbSeparator", "Button", + "ButtonGroup", "Calendar", "Card", + "CardGrid", + "CardMeta", "Collapse", + "CollapsePanel", "Carousel", "Cascader", "Checkbox", + "CheckboxGroup", "Col", + "Comment", + "ConfigProvider", "DatePicker", + "RangePicker", + "MonthPicker", + "WeekPicker", + "Descriptions", + "DescriptionsItem", "Divider", "Dropdown", + "DropdownButton", + "Drawer", + "Empty", "Form", - "Icon", + "FormItem", + "Grid", "Input", + "InputGroup", + "InputPassword", + "InputSearch", + "TextArea", + "Image", + "ImagePreviewGroup", "InputNumber", "Layout", + "LayoutHeader", + "LayouSider", + "LayouFooter", + "LayouContent", "List", - "LocaleProvider", + "ListItem", + "ListItemMeta", "message", "Menu", + "MenuDivider", + "MenuItem", + "MenuItemGroup", + "SubMenu", "Mentions", + "MentionsOption", "Modal", + "Statistic", + "StatisticCountdown", "notification", + "PageHeader", "Pagination", "Popconfirm", "Popover", "Progress", "Radio", + "RadioButton", + "RadioGroup", "Rate", + "Result", "Row", "Select", + "SelectOptGroup", + "SelectOption", + "Skeleton", + "SkeletonButton", + "SkeletonAvatar", + "SkeletonInput", + "SkeletonImage", "Slider", + "Space", "Spin", - "Statistic", "Steps", + "Step", "Switch", "Table", + "TableColumn", + "TableColumnGroup", "Transfer", "Tree", + "TreeNode", + "DirectoryTree", "TreeSelect", + "TreeSelectNode", "Tabs", + "TabPane", + "TabContent", "Tag", + "CheckableTag", "TimePicker", "Timeline", + "TimelineItem", "Tooltip", - "Upload", - "version", - "Drawer", - "Skeleton", - "Comment", - "Image", - "ConfigProvider", - "Empty", - "Result", - "Descriptions", - "PageHeader", - "Space", "Typography", - "install", - "default", + "TypographyLink", + "TypographyParagraph", + "TypographyText", + "TypographyTitle", + "Upload", + "LocaleProvider", ] `;