```
npm install @base-stone/react``
pnpm add @st-fed/design-react
`
├── components
│ ├── lazy-image
│ │ └── Editor.tsx
│ ├── loading
│ │ ├── index.scss
│ │ └── Editor.tsx
│ ├── modal
│ │ ├── index.scss
│ │ └── Editor.tsx
│ ├── overlay
│ │ ├── index.scss
│ │ └── Editor.tsx
│ ├── page-loading
│ │ ├── index.scss
│ │ └── Editor.tsx
│ ├── scroll-list
│ │ └── Editor.tsx
│ └── toast
│ ├── index.scss
│ └── Editor.tsx
├── main.tsx
├── style
│ ├── index.scss
└── vite-env.d.ts
` Empty使用
`
import { Empty } from '@st-fed/design-react'
description='请前往美术主站创建文件夹'
>
` Empty使用
`
import { Empty } from '@st-fed/design-react'
description='请前往美术主站创建文件夹'
>
` LazyImage 使用
`
import { LazyImage } from '@st-fed/design-react'
src='https://artvista-web-test.yutang.work/admin/file/project/open/PT6S72NGYP22ae0a42e0e9ff613d95e64691c8ef44'
>
` Loading 使用
`
import { showLoading, hideLoading } from '@st-fed/design-react'
showLoading()
hideLoading()
` showModal 使用
`
import { showModal } from '@st-fed/design-react'
showModal({
title: 全部取消,
content: 确定取消当前所有(包含未成功的)任务吗?,
cancelText: '取消',
confirmText: '确定',
success: async () => {
showToast('操作成功')
}
})
` Overlay 使用
`
import { Overlay } from '@st-fed/design-react'
onDownloadRecordVisible(val)}>
children
` PageLoading 使用
`
import { PageLoading } from '@st-fed/design-react'
return (
)
` ScrollList 使用
`
import { ScrollList } from '@st-fed/design-react'
const onLoadList = useCallback(() => {
if (loading) {
return false
}
onSetLoading(true)
const timeout = setTimeout(() => {
clearTimeout(timeout)
onSetSearchParams((state) => ({ ...state, showMessage: false, pageNo: ++state.pageNo }))
}, 500)
}, [loading]) return (
)
` showToast 使用
`
import { showToast } from '@st-fed/design-react'
showToast('操作成功')
``