Skip to content

Commit 102a11f

Browse files
ffff
authored andcommitted
docs: 优化Ellipsis文档
1 parent 70c90e7 commit 102a11f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/core/src/Ellipsis/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ Ellipsis 超出省略
33

44
用于文本过长,超出长度显示 `...`
55

6-
![](https://user-images.githubusercontent.com/66067296/137707584-8883d475-52a7-4022-a6dd-ceb91be028e2.png)<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
76

87
### 基础示例
98

10-
```jsx
11-
import { Fragment } from 'react';
9+
10+
```jsx mdx:preview
11+
import React from "react"
1212
import { Ellipsis } from '@uiw/react-native';
1313

1414
function Demo() {
15-
const [visible, setVisible] = useState(false);
15+
1616
return (
17-
<Fragment>
18-
<Ellipsis maxLen={5}>用于文本过长,超出长度显示</Ellipsis>
19-
</Fragment>
17+
<Ellipsis maxLen={5}>用于文本过长,超出长度显示</Ellipsis>
2018
);
2119
}
20+
21+
export default Demo;
2222
```
2323

2424
### Props

0 commit comments

Comments
 (0)