-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f2b1c
commit b041594
Showing
14 changed files
with
160 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
import React, { useState } from 'react' | ||
import { Tabs, TabPane, Empty } from '@nutui/nutui-react-taro' | ||
// import { Tabs, TabPane, Empty } from '@nutui/nutui-react-taro' | ||
import { Empty } from '@nutui/nutui-react-taro' | ||
|
||
const Demo4 = () => { | ||
const [tabvalue, setTabvalue] = useState<string | number>('0') | ||
|
||
return ( | ||
<Tabs | ||
value={tabvalue} | ||
onChange={(paneKey) => { | ||
setTabvalue(paneKey) | ||
}} | ||
> | ||
<TabPane title="无内容" value="0"> | ||
<Empty status="empty" title="无内容" /> | ||
</TabPane> | ||
<TabPane title="加载失败/错误" value="1"> | ||
<Empty status="error" title="加载失败/错误" /> | ||
</TabPane> | ||
<TabPane title="无网络" value="2"> | ||
<Empty status="network" title="无网络" /> | ||
</TabPane> | ||
</Tabs> | ||
// <Tabs | ||
// value={tabvalue} | ||
// onChange={(paneKey) => { | ||
// setTabvalue(paneKey) | ||
// }} | ||
// > | ||
// <TabPane title="无内容" value="0"> | ||
// <Empty status="empty" title="无内容" /> | ||
// </TabPane> | ||
// <TabPane title="加载失败/错误" value="1"> | ||
// <Empty status="error" title="加载失败/错误" /> | ||
// </TabPane> | ||
// <TabPane title="无网络" value="2"> | ||
// <Empty status="network" title="无网络" /> | ||
// </TabPane> | ||
// </Tabs> | ||
<> | ||
<Empty status="empty" title="无内容" /> | ||
<Empty status="error" title="加载失败/错误" /> | ||
<Empty status="network" title="无网络" /> | ||
</> | ||
) | ||
} | ||
export default Demo4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.