Commit dc8df612 authored by wildfirecode13's avatar wildfirecode13

1

parent f2450f0c
# 安装
```bash
npm i git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git --save
```
# 使用
```js
import { Countdown } from "teddi";
class Pageindex extends Component {
componentDidMount() {
const countdwon = new Countdown("剩余时间:{0}", 3600, "hhmmss");
countdwon.on("update", this.onTimer, this);
countdwon.start();
}
onTimer(data) {
console.log(data);
this.setState({ text: data });
}
}
export default Pageindex;
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment