0.1.3 • Published 7 years ago

class100-integral v0.1.3

Weekly downloads
40
License
-
Repository
-
Last release
7 years ago

class100-integral 大课组件 计分板

何时使用

开发基于dva的react组件时

npm install -S class100-integral 

API

import { Integral, Ranking, Scoreboard } from 'class100-integral';

Integral 计分板组件 API

参数说明类型默认值
className类名string
teamsteam列表array
showNum排名每页显示个数number6
onAddTeam添加teamfunction({ team: {}, teams: [] })
onDeleteTeam删除teamfunction({ team: {}, teams: [] })
onAddPointsteam加分function({ team: {}, teams: [] })
onTeamChangeteam信息修改function({ team: {}, teams: [] })
onShowTable显示排名function({ teams: [] })
onHideTable隐藏排名function({})
onRankingPrev排名上一页function({ page: 1, teams: [] })
onRankingNext排名下一页function({ page: 1, teams: [] })

Ranking 计分排位组件 API

参数说明类型默认值
className类名string
teams显示team例表数据array

Scoreboard 添加分数组件 API

参数说明类型默认值
className类名string
team当前team数据object

team json

{
 id: md5(new Date() + Math.random()),    // id
 ranking: 1,    // 排名
 name: 'team-1',    // 名称
 addPoints: 0,   // 添加分数
 points: 0,   // 总分
}

开发

  1. clone 代码
git clone https://github.com/hexiao-o/IntegralPlate.git
  1. 安装依赖和启动服务
1. 新开窗口 cd class100-integral && npm install && cd example && npm install
2. 新开窗口 npm run dev
  1. 打开网页
open http://localhost:3000
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago