Storybook 命名默认导出
Storybook named default export
是否可以在故事书文件中使用命名默认导出?
..... preview.stories.js
export default {
title: "Widget/Preview",
argTypes: {
variant: {
options: ["inpage", "dialog"],
control: {
type: "inline-radio",
},
},
},
};
我找到了
"常量默认值 = {...."
然后
“导出默认默认值”对我有用。
是否可以在故事书文件中使用命名默认导出?
..... preview.stories.js
export default {
title: "Widget/Preview",
argTypes: {
variant: {
options: ["inpage", "dialog"],
control: {
type: "inline-radio",
},
},
},
};
我找到了
"常量默认值 = {...."
然后
“导出默认默认值”对我有用。