From d43c7e098d3e86e268c9ed9bbcd5bc0fb2c123ff Mon Sep 17 00:00:00 2001 From: wangxueliang Date: Mon, 10 Dec 2018 13:42:19 +0800 Subject: [PATCH] test: update snapshots --- .../skeleton/__tests__/__snapshots__/demo.test.js.snap | 2 +- components/steps/index.jsx | 3 +-- site/demo.js | 6 ++++++ site/demoRoutes.js | 8 ++++++++ tests/__snapshots__/index.test.js.snap | 1 + 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/components/skeleton/__tests__/__snapshots__/demo.test.js.snap b/components/skeleton/__tests__/__snapshots__/demo.test.js.snap index 92240169d..6ae40a9a9 100644 --- a/components/skeleton/__tests__/__snapshots__/demo.test.js.snap +++ b/components/skeleton/__tests__/__snapshots__/demo.test.js.snap @@ -51,7 +51,7 @@ exports[`renders ./components/skeleton/demo/complex.md correctly 1`] = ` `; exports[`renders ./components/skeleton/demo/list.md correctly 1`] = ` -
+
diff --git a/components/steps/index.jsx b/components/steps/index.jsx index 9ec8a2192..3ab4245a8 100644 --- a/components/steps/index.jsx +++ b/components/steps/index.jsx @@ -10,7 +10,7 @@ const getStepsProps = (defaultProps = {}) => { iconPrefix: PropTypes.string, current: PropTypes.number, initial: PropTypes.number, - labelPlacement: PropTypes.oneOf(['horizontal', 'vertical']), + labelPlacement: PropTypes.oneOf(['horizontal', 'vertical']).def('horizontal'), status: PropTypes.oneOf(['wait', 'process', 'finish', 'error']), size: PropTypes.oneOf(['default', 'small']), direction: PropTypes.oneOf(['horizontal', 'vertical']), @@ -18,7 +18,6 @@ const getStepsProps = (defaultProps = {}) => { PropTypes.bool, PropTypes.func, ]), - labelPlacement: PropTypes.string.def('horizontal'), } return initDefaultProps(props, defaultProps) } diff --git a/site/demo.js b/site/demo.js index c683aa21c..5bd8906cf 100644 --- a/site/demo.js +++ b/site/demo.js @@ -328,4 +328,10 @@ export default { title: 'Drawer', subtitle: '抽屉', }, + skeleton: { + category: 'Components', + type: 'Feedback', + title: 'Skeleton', + subtitle: '骨架屏', + }, } diff --git a/site/demoRoutes.js b/site/demoRoutes.js index f77207759..3177842a6 100644 --- a/site/demoRoutes.js +++ b/site/demoRoutes.js @@ -415,4 +415,12 @@ export default [ path: 'drawer-cn', 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'), + }, ] diff --git a/tests/__snapshots__/index.test.js.snap b/tests/__snapshots__/index.test.js.snap index b09a8175a..630b490cd 100644 --- a/tests/__snapshots__/index.test.js.snap +++ b/tests/__snapshots__/index.test.js.snap @@ -57,6 +57,7 @@ Array [ "Tooltip", "Upload", "Drawer", + "Skeleton", "default", ] `;