mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(design-system): add missing event handler to accordion component (#4179)
This commit is contained in:
parent
6ab8e4d56a
commit
e709cb5fe2
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue