File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
* .log
3
3
.babelrc
4
- node_modules
4
+ node_modules
5
+ src
6
+ .cache
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default {
44
44
``` js
45
45
import ' vue2-timeago/dist/vue2-timeago.css'
46
46
```
47
- or just include [ style .css] ( https://github.com/runkids/vue2-timeago/blob/master/dist/style .css )
47
+ or just include [ vue2-timeago .css] ( https://github.com/runkids/vue2-timeago/blob/master/dist/vue2-timeago .css )
48
48
49
49
50
50
##### HTML
@@ -84,6 +84,7 @@ export default {
84
84
85
85
4. tooltip
86
86
<img src="https://i.imgur.com/mRMt7Ps.png"/>
87
+
87
88
` ` ` html
88
89
< TimeAgo tooltip>< / TimeAgo> Show tooltip
89
90
` ` `
@@ -97,6 +98,7 @@ export default {
97
98
6. todo
98
99
You can do something when time refresh every time
99
100
<img src="https://i.imgur.com/V1K6Xa2.gif"/>
101
+
100
102
` ` ` html
101
103
< TimeAgo : refresh= " 1" : locale= " locale" : todo= " ()=> count+=1" >< / TimeAgo>
102
104
` ` `
@@ -117,7 +119,7 @@ You can do something when time refresh every time
117
119
118
120
#Contributions
119
121
locale translations: The component needs more locale translations. You can ` Open an issue to write the locale translations, or submit a pull request` .
120
- See example [here]().
122
+ See example [here](https://github.com/runkids/vue2-timeago/blob/master/src/lib/lang ).
121
123
122
124
locale support list :
123
125
- en
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue2-timeago" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " A vue component used to format date with time ago statement." ,
5
5
"main" : " dist/vue2-timeago.js" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments