반응형
...
export default {
title: 'Components/MyComponents',
parameters: {
docs: {
description: {
component: 'MyComponents입니다.',
},
},
},
decorators: [
(story, { viewMode }) => ({
components: { story },
setup() {
return { viewMode };
},
methods: {
getStyle() {
return `height: ${viewMode === 'story' ? 1500 : 50}px`
},
},
template: '<div :style="getStyle()"><story /></div>',
}),
],
};
....
Reference
반응형