fix(design-system): add missing event handler to accordion component (#4179)

This commit is contained in:
Csaba Tuncsik 2022-09-23 12:57:48 +02:00 committed by GitHub
parent 6ab8e4d56a
commit e709cb5fe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
import N8nInfoAccordion from './InfoAccordion.vue';
import { StoryFn } from "@storybook/vue";
import { action } from "@storybook/addon-actions";
export default {
title: 'Atoms/Info Accordion',
@ -13,12 +14,17 @@ export default {
},
};
const methods = {
onClick: action('click'),
};
export const Default: StoryFn = (args, {argTypes}) => ({
props: Object.keys(argTypes),
components: {
N8nInfoAccordion,
},
template: '<n8n-info-accordion v-bind="$props" @click="onClick" />',
methods,
});
Default.args = {