Skip to content

Commit 819a4d7

Browse files
committed
chore: enable storybook code panel
1 parent f6298db commit 819a4d7

File tree

4 files changed

+2596
-2463
lines changed

4 files changed

+2596
-2463
lines changed

.storybook/preview.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import type { Preview } from '@storybook/react';
2+
import type { DocsTypes } from '@storybook/addon-docs';
3+
import type { CoreTypes } from 'storybook/internal/csf';
24
import { themes } from 'storybook/theming';
35
import * as echarts from 'echarts/core';
46
import { CanvasRenderer } from 'echarts/renderers';
@@ -8,13 +10,11 @@ echarts.use(CanvasRenderer);
810

911
const preview: Preview = {
1012
parameters: {
11-
parameters: {
12-
docs: {
13-
theme: themes.dark,
14-
},
15-
themes,
13+
docs: {
14+
codePanel: true,
15+
theme: themes.dark,
1616
},
17-
},
17+
} satisfies (CoreTypes & DocsTypes)['parameters'],
1818
decorators: [
1919
(Story) => {
2020
return (

stories/line-area-rainfall.stories.tsx

Lines changed: 79 additions & 75 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)