build(#10336): separate definitions and generated codes
This commit is contained in:
parent
a19c560e7b
commit
6e21147ff6
435 changed files with 3887 additions and 1361 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { type Preview, setup } from '@storybook/vue3';
|
||||
import { initialize, mswDecorator } from 'msw-storybook-addon';
|
||||
import locale from './locale';
|
||||
import theme from './theme';
|
||||
import '../src/style.scss';
|
||||
|
||||
initialize();
|
||||
localStorage.setItem("locale", JSON.stringify(locale));
|
||||
Promise.all([
|
||||
import('../src/components'),
|
||||
|
|
@ -15,12 +17,22 @@ Promise.all([
|
|||
directives(app);
|
||||
widgets(app);
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
const preview = {
|
||||
decorators: [
|
||||
mswDecorator,
|
||||
],
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
argTypes: {
|
||||
default: {
|
||||
control: {
|
||||
type: 'text',
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies Preview;
|
||||
|
||||
export default preview;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue