Skip to content

Commit

Permalink
docs: 修复 transition 组件的在线 demo 会缺少样式的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Nov 29, 2023
1 parent e9f04df commit 966d1b4
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .dumi/global.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
@import '../packages/react-ui/src/index';
.transition-box {
position: relative;
margin: auto;
width: 200px;
height: 60px;
}
.transition-box > div {
position: absolute;
width: 200px;
}
.markdown {
td:not(:first-child) {
word-break: break-word;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/adpter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { transitionCBAdapter, Transition, Button } from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import { Transition, Button } from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/appear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import { Transition, Button, Space } from '@tool-pack/react-ui';
import React, { useState } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { Transition, Button } from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/expired.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import { transitionCBAdapter, Transition, Button } from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';

const App: React.FC = () => {
const [visible, setVisible] = useReducer((prevState) => !prevState, true);
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import { Transition, Button } from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/on.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Button,
} from '@tool-pack/react-ui';
import React, { useReducer } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/show-appear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import { Transition, Button, Space } from '@tool-pack/react-ui';
import React, { useReducer, useState } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/transition/demo/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import { Transition, Button, Space } from '@tool-pack/react-ui';
import React, { useReducer, useState } from 'react';
import './base.scss';
import './fade.scss';

const App: React.FC = () => {
Expand Down

0 comments on commit 966d1b4

Please sign in to comment.