build(#10336): separate definitions and generated codes
This commit is contained in:
@@ -4,13 +4,18 @@ const meta = {
|
||||
title: 'components/MkButton',
|
||||
component: MkButton,
|
||||
};
|
||||
export default meta;
|
||||
export const Default = {
|
||||
components: {
|
||||
MkButton,
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
MkButton,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<MkButton v-bind="$props">Text</MkButton>',
|
||||
};
|
||||
},
|
||||
template: '<MkButton />',
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
};
|
||||
export default meta;
|
||||
|
Reference in New Issue
Block a user