Skip to content

Commit

Permalink
fix: 修改Demo引入方式
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDevi1s committed Jul 12, 2022
1 parent b22d214 commit 5501b3f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/rate/Rate.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { MouseEvent, useState, useCallback } from 'react';
import Tooltip from '../tooltip/Tooltip';
import Tooltip from '../tooltip';
import { TdRateProps } from './type';
import useConfig from '../_util/useConfig';
import useControlled from '../hooks/useControlled';
Expand Down
2 changes: 1 addition & 1 deletion src/rate/_example/base.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Rate from '../Rate';
import { Rate } from 'tdesign-react';

export default function BasicRate() {
return <Rate defaultValue={5} />;
Expand Down
2 changes: 1 addition & 1 deletion src/rate/_example/mulit.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Rate from '../Rate';
import { Rate } from 'tdesign-react';

export default function BasicRate() {
return <Rate count={7} defaultValue={6} />;
Expand Down
3 changes: 1 addition & 2 deletions src/rate/_example/size.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Space } from 'tdesign-react';
import Rate from '../Rate';
import { Space, Rate } from 'tdesign-react';

export default function BasicRate() {
return (
Expand Down
3 changes: 1 addition & 2 deletions src/rate/_example/status.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Space } from 'tdesign-react';
import Rate from '../Rate';
import { Space, Rate } from 'tdesign-react';

export default function BasicRate() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/rate/_example/texts.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Rate from '../Rate';
import { Rate } from 'tdesign-react';

export default function BasicRate() {
return <Rate showText={true} defaultValue={4} />;
Expand Down

0 comments on commit 5501b3f

Please sign in to comment.