mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 01:25:12 +00:00
refactor(#10336): module semantics
This commit is contained in:
parent
be7b71a2f5
commit
3907cb51d6
5 changed files with 18 additions and 12 deletions
|
@ -74,15 +74,19 @@ function toStories(component: string): string {
|
||||||
/>,
|
/>,
|
||||||
]
|
]
|
||||||
: [],
|
: [],
|
||||||
<import-declaration
|
...hasImplStories
|
||||||
source={<literal value={`./${base}`} />}
|
? []
|
||||||
specifiers={[
|
: [
|
||||||
<import-default-specifier
|
<import-declaration
|
||||||
local={identifier}
|
source={<literal value={`./${base}`} />}
|
||||||
imported={identifier}
|
specifiers={[
|
||||||
/>,
|
<import-default-specifier
|
||||||
]}
|
local={identifier}
|
||||||
/>,
|
imported={identifier}
|
||||||
|
/>,
|
||||||
|
]}
|
||||||
|
/>,
|
||||||
|
],
|
||||||
<variable-declaration
|
<variable-declaration
|
||||||
kind="const"
|
kind="const"
|
||||||
declarations={[
|
declarations={[
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import MkAnalogClock from './MkAnalogClock.vue';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
render(args, { argTypes }) {
|
render(args, { argTypes }) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import { Meta, Story } from '@storybook/vue3';
|
import { Meta, Story } from '@storybook/vue3';
|
||||||
import MkAnalogClock from './MkAnalogClock.vue';
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'components/MkAnalogClock',
|
title: 'components/MkAnalogClock',
|
||||||
component: MkAnalogClock,
|
component: MkAnalogClock,
|
||||||
};
|
};
|
||||||
|
export default meta;
|
||||||
|
import MkAnalogClock from './MkAnalogClock.vue';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
render(args, { argTypes }) {
|
render(args, { argTypes }) {
|
||||||
return {
|
return {
|
||||||
|
@ -18,4 +19,3 @@ export const Default = {
|
||||||
layout: 'fullscreen',
|
layout: 'fullscreen',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
export default meta;
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import MkButton from './MkButton.vue';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
render(args, { argTypes }) {
|
render(args, { argTypes }) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { Meta, Story } from '@storybook/vue3';
|
import { Meta, Story } from '@storybook/vue3';
|
||||||
import MkButton from './MkButton.vue';
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'components/MkButton',
|
title: 'components/MkButton',
|
||||||
component: MkButton,
|
component: MkButton,
|
||||||
};
|
};
|
||||||
export default meta;
|
export default meta;
|
||||||
|
import MkButton from './MkButton.vue';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
render(args, { argTypes }) {
|
render(args, { argTypes }) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue