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

提交

parent af7aa3e9
......@@ -56,8 +56,8 @@ export default {
const Template = (args) => <CarouselCom {...args} />;
//👇 Each story then reuses that template
export const Demo1 = Template.bind({});
Demo1.args = {
export const Primary = Template.bind({});
Primary.args = {
primary: true,
label: '金币动效',
carouselItem:carouselItem,
......
......@@ -9,14 +9,12 @@ import {
PRIMARY_STORY,
} from '@storybook/addon-docs';
window.addEventListener("hashchange", (e)=>{
console.log(e)
});
export default {
component: TotalCom,
title: '组件概览',
parameters:{
layout:"fullscreen",
layout:"padded",
docs: {
page: () => {
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