ewt-downloader
v1.0.0
Published
paperDownload
Downloads
4
Readme
1. 摘要
试卷下载业务组件(TaskModal/DownloadModal)
2.Install
安装依赖
npm install paper-downloader -S
3.Usage
DownloadModal(试卷规格弹窗)
import "paper-downloader/dist/index.css"
import { DownloadModal } from 'paper-downloader'
<DownloadModal
env="development"
type="kz"
paperId="1202119719329325519"
logout={() => {}}
/>
| 参数 | 说明 | 类型 | 是否必须 |默认值 | | ---- | ---- | ---- | ---- |---- | | env | 环境:测试|正式 | development | production | 是 |- | | type | 试卷类型:原卷|快照 | yj | kz | 否 |kz | | paperId | 试卷ID | string | 是 |- | | logout | 退出登录回调函数 | () => void | 是 |- |
TaskModal(下载任务进度弹窗)
import "paper-downloader/dist/index.css"
import { TaskModal } from 'paper-downloader'
<TaskModal
env="development"
logout={() => {}}
/>
| 参数 | 说明 | 类型 | 是否必须 |默认值 | | ---- | ---- | ---- | ---- |---- | | env | 环境:测试|正式 | development | production | 是 |- | | logout | 退出登录回调函数 | () => void | 是 |- |