1

从“@storybook/react”导入 { addDecorator, addParameters };从“storybook-addon-jss-theme”导入 { withThemesProvider };导入“antd/dist/antd.css”;从“./theme”导入 { defaultTheme };

addParameters({ background: [ { name: "默认主题", value: "#ffffff", default: true }, { name: "Dark theme", value: "#000000" }, ], });

常量主题 = [默认主题]; addDecorator(withThemesProvider(themes));

4

0 回答 0