Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
teddi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
teddi
Commits
dc8df612
Commit
dc8df612
authored
Nov 13, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2450f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
readme.md
readme.md
+24
-0
No files found.
readme.md
0 → 100644
View file @
dc8df612
# 安装
```
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment