pzc 162ee32029 add echarts radar plugin | 4 éve%!(EXTRA string=óta) | |
---|---|---|
.. | ||
.storybook | 4 éve%!(EXTRA string=óta) | |
storybook | 4 éve%!(EXTRA string=óta) | |
README.md | 4 éve%!(EXTRA string=óta) | |
package.json | 4 éve%!(EXTRA string=óta) |
Storybook of @dmicros/superset-ui-plugins-echarts-basic
packages. See it live at
echarts-basic.iamhd.top
To view the storybook locally, you should:
yarn install && yarn build
in the huandzh/superset-ui-plugins-echarts-basic
root directory.cd packages/superset-ui-plugins-demo
.yarn run storybook
. This will open up a dev server at http://localhost:9001.If stories already exist for the package you are adding, simply extend the examples
already
exported for that package in the storybook/stories/<package>/index.js
file.
If you are creating stories for a package that doesn't yet have any stories, follow these steps:
Add any new package dependencies via
yarn add <package>
, but if it is @superset-ui/*
packages, manually add it to peerDependencies
.
Create a new folder that mirrors the package name
e.g.,
mkdir storybook/stories/superset-ui-color/
index.js
file to that folder with a default export with the following shape:you can use the
|
separator within thestoryPath
string to denote nested stories e.g.,storyPath: '@superset-ui/package|Nested i|Nested ii'
default export {
examples: [
{
storyPath: <string>,
storyName: <string>,
renderStory: <func> () => node,
},
...
]
};