Skip to content

Commit

Permalink
test: Roll back to storybook 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KouSum committed Mar 27, 2024
1 parent 9e3cdb6 commit 4a719a3
Show file tree
Hide file tree
Showing 16 changed files with 2,012 additions and 1,436 deletions.
1 change: 0 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const config: StorybookConfig = {
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions"
],
"framework": {
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export const parameters = {
return a.id.localeCompare(b.id, undefined, { numeric: true })
},
},
actions: {
argTypesRegex: "^on[A-Z].*",
},
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@douyinfe/semi-foundation": "2.55.1",
"@douyinfe/semi-theme-default": "2.55.1",
"@vue/repl": "^3.2.0",
"vue": "^3.4.19",
"vue": "^3.4.21",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand All @@ -52,15 +52,16 @@
"vue-inline-svg": "^2.1.3",


"@chromatic-com/storybook": "1.2.25",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
"@storybook/blocks": "^8.0.4",
"@storybook/test": "^8.0.4",
"@storybook/vue3": "^8.0.4",
"@storybook/vue3-vite": "^8.0.4",
"storybook": "^8.0.4",
"@storybook/addon-essentials": "7.1.1",
"@storybook/addon-interactions": "7.1.1",
"@storybook/addon-links": "7.1.1",
"@storybook/blocks": "7.1.1",
"@storybook/testing-library": "^0.2.0",
"@storybook/vue3": "7.1.1",
"@storybook/vue3-vite": "7.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "7.1.1",


"@babel/core": "^7.18.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-animation-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@douyinfe/semi-theme-default": "2.55.1",
"classnames": "^2.3.2",
"sass": "^1.57.1",
"vue": "^3.4.19"
"vue": "^3.4.21"
},
"peerDependencies": {
"vue": ">=3.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-icons-lab-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@douyinfe/semi-theme-default": "2.55.1",
"classnames": "^2.3.2",
"sass": "^1.57.1",
"vue": "^3.4.19"
"vue": "^3.4.21"
},
"peerDependencies": {
"vue": ">=3.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-icons-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@douyinfe/semi-theme-default": "2.55.1",
"classnames": "^2.3.2",
"sass": "^1.57.1",
"vue": "^3.4.19"
"vue": "^3.4.21"
},
"peerDependencies": {
"vue": ">=3.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-illustrations-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@douyinfe/semi-foundation": "2.55.1",
"@douyinfe/semi-theme-default": "2.55.1",
"classnames": "^2.3.2",
"vue": "^3.4.19"
"vue": "^3.4.21"
},
"peerDependencies": {
"vue": ">=3.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-ui-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"sass": "^1.57.1",
"scroll-into-view-if-needed": "^2.2.28",
"utility-types": "^3.10.0",
"vue": "^3.4.19"
"vue": "^3.4.21"
},
"peerDependencies": {
"vue": ">=3.3.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/semi-ui-vue/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const App = defineComponent<ExampleProps>((props, {slots}) => {
return () => (
<div>
<ConfigProvider locale={zh_CN}>
<WithVModelDemo/>
{/*<WithVModelDemo/>*/}
{/*<CalenderDemo />*/}
{/*<TransferDemo/>*/}
{/*<TransferTreeDemo />*/}
Expand All @@ -124,7 +124,7 @@ const App = defineComponent<ExampleProps>((props, {slots}) => {
{/*<SideSheetDemo />*/}
{/*<ListDemo />*/}
{/*<DescriptionsDemo />*/}
{/*<DescriptionsHorizontalDemo/>*/}
<DescriptionsHorizontalDemo/>
{/*<CollapseDemo />*/}
{/*<CollapsibleDemo />*/}
{/*<CarouselDemo/>*/}
Expand Down
1 change: 0 additions & 1 deletion packages/semi-ui-vue/src/components/descriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const Descriptions = defineComponent<DescriptionsProps>(
function adapter_(): DescriptionsAdapter<DescriptionsProps> {
return {
...adapterInject(),
//@ts-ignore
getColumns: () => {
if (props.data?.length) {
return props.data;
Expand Down
Loading

0 comments on commit 4a719a3

Please sign in to comment.