mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 19:21:48 +08:00
Consistent story data
This commit is contained in:
parent
a061bcf758
commit
0803e96073
@ -60,6 +60,14 @@ export const Paused: Story = {
|
|||||||
args: {
|
args: {
|
||||||
isPlaying: true,
|
isPlaying: true,
|
||||||
interactions: [getCall(CallStates.WAITING)],
|
interactions: [getCall(CallStates.WAITING)],
|
||||||
|
controlStates: {
|
||||||
|
debugger: true,
|
||||||
|
start: false,
|
||||||
|
back: false,
|
||||||
|
goto: true,
|
||||||
|
next: true,
|
||||||
|
end: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ export default {
|
|||||||
start: true,
|
start: true,
|
||||||
back: true,
|
back: true,
|
||||||
goto: true,
|
goto: true,
|
||||||
next: true,
|
next: false,
|
||||||
end: true,
|
end: false,
|
||||||
},
|
},
|
||||||
storyFileName: 'Subnav.stories.tsx',
|
storyFileName: 'Subnav.stories.tsx',
|
||||||
hasNext: true,
|
hasNext: true,
|
||||||
@ -45,18 +45,44 @@ export const Runs = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const AtTheBeginning = {
|
export const AtStart = {
|
||||||
name: 'at the beginning',
|
|
||||||
args: {
|
args: {
|
||||||
status: CallStates.DONE,
|
status: CallStates.WAITING,
|
||||||
hasPrevious: false,
|
controlStates: {
|
||||||
|
debugger: true,
|
||||||
|
start: false,
|
||||||
|
back: false,
|
||||||
|
goto: true,
|
||||||
|
next: true,
|
||||||
|
end: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const AtTheEnd = {
|
export const Midway = {
|
||||||
name: 'at the end',
|
|
||||||
args: {
|
args: {
|
||||||
status: CallStates.DONE,
|
status: CallStates.WAITING,
|
||||||
hasNext: false,
|
controlStates: {
|
||||||
|
debugger: true,
|
||||||
|
start: true,
|
||||||
|
back: true,
|
||||||
|
goto: true,
|
||||||
|
next: true,
|
||||||
|
end: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const Locked = {
|
||||||
|
args: {
|
||||||
|
status: CallStates.ACTIVE,
|
||||||
|
controlStates: {
|
||||||
|
debugger: true,
|
||||||
|
start: false,
|
||||||
|
back: false,
|
||||||
|
goto: false,
|
||||||
|
next: false,
|
||||||
|
end: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user