test: update snap

pull/4258/head
tangjinzhou 2021-06-24 08:41:25 +08:00
parent 33c7230ee2
commit 8d8f940552
5 changed files with 80 additions and 21 deletions

View File

@ -187,3 +187,5 @@ export {
export type { UploadProps } from './upload';
export { default as Upload } from './upload';
export { default as LocaleProvider } from './locale-provider';

View File

@ -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';

View File

@ -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`;

View File

@ -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';

View File

@ -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",
]
`;