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 type { UploadProps } from './upload';
export { default as Upload } 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 MockDate from 'mockdate';
import { sleep } from '../../../tests/utils'; import { sleep } from '../../../tests/utils';
import { import {
LocaleProvider,
Pagination, Pagination,
DatePicker, DatePicker,
TimePicker, TimePicker,
@ -14,6 +13,7 @@ import {
Select, Select,
Transfer, Transfer,
} from '../..'; } from '../..';
import LocaleProvider from '..';
import arEG from '../ar_EG'; import arEG from '../ar_EG';
import bgBG from '../bg_BG'; import bgBG from '../bg_BG';
import caES from '../ca_ES'; import caES from '../ca_ES';

View File

@ -3,7 +3,7 @@ import classNames from '../_util/classNames';
import PropTypes from '../_util/vue-types'; import PropTypes from '../_util/vue-types';
import { getOptionProps, getPropsData, filterEmpty, getComponent } from '../_util/props-util'; import { getOptionProps, getPropsData, filterEmpty, getComponent } from '../_util/props-util';
import initDefaultProps from '../_util/props-util/initDefaultProps'; 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 LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
import { defaultConfigProvider } from '../config-provider'; import { defaultConfigProvider } from '../config-provider';
import { tuple } from '../_util/type'; import { tuple } from '../_util/type';
@ -64,7 +64,7 @@ export default defineComponent({
: [...children, pendingItem]; : [...children, pendingItem];
const getPositionCls = (ele, idx: number) => { const getPositionCls = (ele, idx: number) => {
const eleProps = getPropsData(ele) as TimeLineItemProps; const eleProps = getPropsData(ele) as TimelineItemProps;
if (mode === 'alternate') { if (mode === 'alternate') {
if (eleProps.position === 'right') return `${prefixCls}-item-right`; if (eleProps.position === 'right') return `${prefixCls}-item-right`;
if (eleProps.position === 'left') return `${prefixCls}-item-left`; 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 { asyncExpect, sleep } from '@/tests/utils';
import KeyCode from '../../_util/KeyCode'; import KeyCode from '../../_util/KeyCode';
import copy from '../../_util/copy-to-clipboard'; import copy from '../../_util/copy-to-clipboard';
import Typography from '../Typography'; import Typography from '..';
import Title from '../Title'; import Title from '../Title';
import Paragraph from '../Paragraph'; import Paragraph from '../Paragraph';
import Link from '../Link'; import Link from '../Link';

View File

@ -2,73 +2,130 @@
exports[`antd dist files exports modules correctly 1`] = ` exports[`antd dist files exports modules correctly 1`] = `
Array [ Array [
"version",
"install",
"default",
"Affix", "Affix",
"Anchor", "Anchor",
"AnchorLink",
"AutoComplete", "AutoComplete",
"AutoCompleteOptGroup",
"AutoCompleteOption",
"Alert", "Alert",
"Avatar", "Avatar",
"AvatarGroup",
"BackTop", "BackTop",
"Badge", "Badge",
"BadgeRibbon",
"Breadcrumb", "Breadcrumb",
"BreadcrumbItem",
"BreadcrumbSeparator",
"Button", "Button",
"ButtonGroup",
"Calendar", "Calendar",
"Card", "Card",
"CardGrid",
"CardMeta",
"Collapse", "Collapse",
"CollapsePanel",
"Carousel", "Carousel",
"Cascader", "Cascader",
"Checkbox", "Checkbox",
"CheckboxGroup",
"Col", "Col",
"Comment",
"ConfigProvider",
"DatePicker", "DatePicker",
"RangePicker",
"MonthPicker",
"WeekPicker",
"Descriptions",
"DescriptionsItem",
"Divider", "Divider",
"Dropdown", "Dropdown",
"DropdownButton",
"Drawer",
"Empty",
"Form", "Form",
"Icon", "FormItem",
"Grid",
"Input", "Input",
"InputGroup",
"InputPassword",
"InputSearch",
"TextArea",
"Image",
"ImagePreviewGroup",
"InputNumber", "InputNumber",
"Layout", "Layout",
"LayoutHeader",
"LayouSider",
"LayouFooter",
"LayouContent",
"List", "List",
"LocaleProvider", "ListItem",
"ListItemMeta",
"message", "message",
"Menu", "Menu",
"MenuDivider",
"MenuItem",
"MenuItemGroup",
"SubMenu",
"Mentions", "Mentions",
"MentionsOption",
"Modal", "Modal",
"Statistic",
"StatisticCountdown",
"notification", "notification",
"PageHeader",
"Pagination", "Pagination",
"Popconfirm", "Popconfirm",
"Popover", "Popover",
"Progress", "Progress",
"Radio", "Radio",
"RadioButton",
"RadioGroup",
"Rate", "Rate",
"Result",
"Row", "Row",
"Select", "Select",
"SelectOptGroup",
"SelectOption",
"Skeleton",
"SkeletonButton",
"SkeletonAvatar",
"SkeletonInput",
"SkeletonImage",
"Slider", "Slider",
"Space",
"Spin", "Spin",
"Statistic",
"Steps", "Steps",
"Step",
"Switch", "Switch",
"Table", "Table",
"TableColumn",
"TableColumnGroup",
"Transfer", "Transfer",
"Tree", "Tree",
"TreeNode",
"DirectoryTree",
"TreeSelect", "TreeSelect",
"TreeSelectNode",
"Tabs", "Tabs",
"TabPane",
"TabContent",
"Tag", "Tag",
"CheckableTag",
"TimePicker", "TimePicker",
"Timeline", "Timeline",
"TimelineItem",
"Tooltip", "Tooltip",
"Upload",
"version",
"Drawer",
"Skeleton",
"Comment",
"Image",
"ConfigProvider",
"Empty",
"Result",
"Descriptions",
"PageHeader",
"Space",
"Typography", "Typography",
"install", "TypographyLink",
"default", "TypographyParagraph",
"TypographyText",
"TypographyTitle",
"Upload",
"LocaleProvider",
] ]
`; `;