From e7c80606ee84c586439c69b6fc06a03437cfcfe8 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 13 Feb 2020 19:58:19 +0800 Subject: [PATCH] feat: update drawer --- build/config.js | 2 +- .../__snapshots__/Drawer.test.js.snap | 34 ++++---- .../__snapshots__/DrawerEvent.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 28 ++++++- components/drawer/demo/basic-right.md | 5 ++ components/drawer/demo/form-in-drawer.md | 5 +- components/drawer/demo/index.vue | 16 ++-- components/drawer/demo/multi-level-drawer.md | 2 +- components/drawer/demo/placement.md | 2 +- components/drawer/demo/render-in-current.md | 64 ++++++++++++++ components/drawer/demo/user-profile.md | 8 +- components/drawer/index.en-US.md | 3 + components/drawer/index.jsx | 83 +++++++++++++------ components/drawer/index.zh-CN.md | 3 + components/vc-drawer/src/Drawer.js | 32 +++++-- .../{drawerProps.js => IDrawerPropTypes.js} | 31 +++++-- components/vc-drawer/src/utils.js | 45 ++++++++++ types/drawer.d.ts | 5 +- 18 files changed, 292 insertions(+), 84 deletions(-) create mode 100644 components/drawer/demo/render-in-current.md rename components/vc-drawer/src/{drawerProps.js => IDrawerPropTypes.js} (66%) diff --git a/build/config.js b/build/config.js index f404819ae..47d935825 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'divider', // dev components + componentName: 'drawer', // dev components }, }; diff --git a/components/drawer/__tests__/__snapshots__/Drawer.test.js.snap b/components/drawer/__tests__/__snapshots__/Drawer.test.js.snap index 356cff59b..0a6a84cf3 100644 --- a/components/drawer/__tests__/__snapshots__/Drawer.test.js.snap +++ b/components/drawer/__tests__/__snapshots__/Drawer.test.js.snap @@ -1,12 +1,12 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Drawer class is test_drawer 1`] = ` -