test: update snapshots

pull/309/head
wangxueliang 2018-12-10 13:42:19 +08:00
parent 296720c4e4
commit d43c7e098d
5 changed files with 17 additions and 3 deletions

View File

@ -51,7 +51,7 @@ exports[`renders ./components/skeleton/demo/complex.md correctly 1`] = `
`; `;
exports[`renders ./components/skeleton/demo/list.md correctly 1`] = ` exports[`renders ./components/skeleton/demo/list.md correctly 1`] = `
<div><span tabindex="0" class="ant-switch"><span class="ant-switch-inner"></span></span> <div><button type="button" role="switch" class="ant-switch"><span class="ant-switch-inner"></span></button>
<div class="ant-list ant-list-vertical ant-list-lg ant-list-split"> <div class="ant-list ant-list-vertical ant-list-lg ant-list-split">
<div class="ant-spin-nested-loading"> <div class="ant-spin-nested-loading">
<div class="ant-spin-container"> <div class="ant-spin-container">

View File

@ -10,7 +10,7 @@ const getStepsProps = (defaultProps = {}) => {
iconPrefix: PropTypes.string, iconPrefix: PropTypes.string,
current: PropTypes.number, current: PropTypes.number,
initial: PropTypes.number, initial: PropTypes.number,
labelPlacement: PropTypes.oneOf(['horizontal', 'vertical']), labelPlacement: PropTypes.oneOf(['horizontal', 'vertical']).def('horizontal'),
status: PropTypes.oneOf(['wait', 'process', 'finish', 'error']), status: PropTypes.oneOf(['wait', 'process', 'finish', 'error']),
size: PropTypes.oneOf(['default', 'small']), size: PropTypes.oneOf(['default', 'small']),
direction: PropTypes.oneOf(['horizontal', 'vertical']), direction: PropTypes.oneOf(['horizontal', 'vertical']),
@ -18,7 +18,6 @@ const getStepsProps = (defaultProps = {}) => {
PropTypes.bool, PropTypes.bool,
PropTypes.func, PropTypes.func,
]), ]),
labelPlacement: PropTypes.string.def('horizontal'),
} }
return initDefaultProps(props, defaultProps) return initDefaultProps(props, defaultProps)
} }

View File

@ -328,4 +328,10 @@ export default {
title: 'Drawer', title: 'Drawer',
subtitle: '抽屉', subtitle: '抽屉',
}, },
skeleton: {
category: 'Components',
type: 'Feedback',
title: 'Skeleton',
subtitle: '骨架屏',
},
} }

View File

@ -415,4 +415,12 @@ export default [
path: 'drawer-cn', path: 'drawer-cn',
component: () => import('../components/drawer/demo/index.vue'), component: () => import('../components/drawer/demo/index.vue'),
}, },
{
path: 'skeleton',
component: () => import('../components/skeleton/demo/index.vue'),
},
{
path: 'skeleton-cn',
component: () => import('../components/skeleton/demo/index.vue'),
},
] ]

View File

@ -57,6 +57,7 @@ Array [
"Tooltip", "Tooltip",
"Upload", "Upload",
"Drawer", "Drawer",
"Skeleton",
"default", "default",
] ]
`; `;