Skip to content

Commit

Permalink
docs(toast): 修复文档中的函数式例子 (#2957)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Jan 24, 2025
1 parent 4c7366b commit 5611f25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/packages/toast/demo.taro.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { Toast } from '@nutui/nutui-react-taro'
import Header from '@/sites/components/header'
import { useTranslate } from '@/sites/assets/locale/taro'
import Demo1 from './demos/taro/demo1'
Expand Down Expand Up @@ -38,7 +37,6 @@ const ToastDemo = () => {
<h2>{translated.basic}</h2>
<Demo1 />
<h2>{translated.toastFunction}</h2>
<Toast id="test" />
<Demo2 />

<h2>{translated.toastDuration}</h2>
Expand Down
1 change: 1 addition & 0 deletions src/packages/toast/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Cell, Toast } from '@nutui/nutui-react-taro'
const Demo5 = () => {
return (
<>
<Toast id="test" />
<Cell
title="函数调用"
onClick={() => {
Expand Down

0 comments on commit 5611f25

Please sign in to comment.