2022-09-09 01:23:19 +08:00

23 lines
521 B
TypeScript

import globalThis from 'global';
import { PartialStoryFn, StoryContext } from '@storybook/csf';
export default {
component: null,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
],
};
export const DisableTable = {
args: { a: 'a', b: 'b' },
argTypes: {
b: { table: { disable: true } },
},
};
export const DisableControl = {
args: { a: 'a', b: 'b' },
b: { control: { disable: true } },
};