File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ nav :
3+ title : 组件
4+ order : 0
5+ group :
6+ title : 数据展示
7+ order : 2
8+ ---
9+
10+ # Empty 空态
11+
12+ 空状态时的展示占位图。
13+
14+ ``` jsx
15+ import { Empty } from ' react-haki' ;
16+
17+ export default () => < Empty title= " Hello dumi!" / > ;
18+ ```
Original file line number Diff line number Diff line change 1+ import React , { type FC } from 'react' ;
2+
3+ const Empty : FC < { title : string } > = ( props ) => < h4 > { props . title } </ h4 > ;
4+
5+ export default Empty ;
Original file line number Diff line number Diff line change 11/** 组件 */
22export { default as Ellipsis } from './components/Ellipsis' ;
3+ export { default as Empty } from './components/Empty' ;
34export { default as Foo } from './components/Foo' ;
45export { default as RichTextEllipsis } from './components/RichTextEllipsis' ;
56export { default as SearchBar } from './components/SearchBar' ;
You can’t perform that action at this time.
0 commit comments