From df5c92960ff629ffa756a7475beec84c0a5671f3 Mon Sep 17 00:00:00 2001 From: JengYoung Date: Wed, 23 Nov 2022 10:42:21 +0900 Subject: [PATCH] =?UTF-8?q?:memo:=20=EC=8A=A4=ED=86=A0=EB=A6=AC=EB=B6=81?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94?= =?UTF-8?q?=EB=A5=BC=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Storybook에서 position: fixed가 제대로 되지 않는 현상이 발생하고 있다. - 따라서 absolute로 임시방편 후 주석을 달아놓았다. - 참고: https://github.com/storybookjs/storybook/issues/8011 --- .storybook/preview-head.html | 11 +++ .../Base/Button/Hamburger/Hamburger.vue | 16 ++-- .../Base/Button/Hamburger/defaultProps.ts | 2 + src/components/Layout/Sidebar/Sidebar.vue | 25 ++++-- src/stories/Sidebar.stories.ts | 78 ++++++++++++++----- 5 files changed, 100 insertions(+), 32 deletions(-) create mode 100644 .storybook/preview-head.html diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html new file mode 100644 index 0000000..1a76b18 --- /dev/null +++ b/.storybook/preview-head.html @@ -0,0 +1,11 @@ + diff --git a/src/components/Base/Button/Hamburger/Hamburger.vue b/src/components/Base/Button/Hamburger/Hamburger.vue index 313e790..937bde4 100644 --- a/src/components/Base/Button/Hamburger/Hamburger.vue +++ b/src/components/Base/Button/Hamburger/Hamburger.vue @@ -5,7 +5,7 @@ 'hamburger--active': !isActive, 'hamburger--fixed': fixed, }" - @click="onClick" + @click.stop="onClick" >