Commit 3ae15b00 authored by 张媛's avatar 张媛

提交

parent af7aa3e9
...@@ -56,8 +56,8 @@ export default { ...@@ -56,8 +56,8 @@ export default {
const Template = (args) => <CarouselCom {...args} />; const Template = (args) => <CarouselCom {...args} />;
//👇 Each story then reuses that template //👇 Each story then reuses that template
export const Demo1 = Template.bind({}); export const Primary = Template.bind({});
Demo1.args = { Primary.args = {
primary: true, primary: true,
label: '金币动效', label: '金币动效',
carouselItem:carouselItem, carouselItem:carouselItem,
......
...@@ -9,14 +9,12 @@ import { ...@@ -9,14 +9,12 @@ import {
PRIMARY_STORY, PRIMARY_STORY,
} from '@storybook/addon-docs'; } from '@storybook/addon-docs';
window.addEventListener("hashchange", (e)=>{
console.log(e)
});
export default { export default {
component: TotalCom, component: TotalCom,
title: '组件概览', title: '组件概览',
parameters:{ parameters:{
layout:"fullscreen", layout:"padded",
docs: { docs: {
page: () => { page: () => {
clearStage(); clearStage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment