Skip to content

Commit c90ca80

Browse files
committed
docs: update Readme
1 parent aae4c19 commit c90ca80

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
element-ui style calendar widget, typescript friendly
44

5-
[![npm](https://img.shields.io/npm/v/@mrhanson/el-calendar.svg)](https://www.npmjs.com/package/@mrhanson/el-calendar) [![npm bundle size](https://img.shields.io/bundlephobia/min/@mrhanson/el-calendar?style=plastic)](https://www.npmjs.com/package/@mrhanson/el-calendar) [![npm](https://img.shields.io/npm/l/@mrhanson/el-calendar.svg)](https://www.npmjs.com/package/@mrhanson/el-calendar)
5+
[![npm](https://img.shields.io/npm/v/@mrhanson/el-calendar.svg)](https://www.npmjs.com/package/@mrhanson/el-calendar)
6+
[![npm](https://img.shields.io/npm/l/@mrhanson/el-calendar.svg)](https://www.npmjs.com/package/@mrhanson/el-calendar)
67

78
![demonstration](./demonstration.PNG)
89

@@ -26,21 +27,21 @@ yarn add @mrhanson/el-calendar
2627

2728
```html
2829
<template>
29-
<Calendar ref="calendar" v-model="selectedDate"></Calendar>
30+
<Calendar ref="calendar" v-model="selectedDate"></Calendar>
3031
</template>
3132

3233
<script>
33-
import Calendar from '@mrhanson/el-calendar'
34+
import Calendar from '@mrhanson/el-calendar'
3435
35-
export default {
36-
components: { Calendar }
36+
export default {
37+
components: { Calendar }
3738
38-
data() {
39-
return {
40-
selectedDate: new Date()
41-
}
42-
}
43-
}
39+
data() {
40+
return {
41+
selectedDate: new Date()
42+
}
43+
}
44+
}
4445
</script>
4546
```
4647

@@ -53,8 +54,6 @@ yarn add @mrhanson/el-calendar
5354
| locale | string | `'cn'` | `'cn'`,`'en'` | i18n |
5455
| dotArr | Array<boolean> | `[]` | | show dot under date or not, Notice:length of dotArr must be same as max date of current month |
5556

56-
''`
57-
5857
## Events
5958

6059
| Name | Params | Description |

0 commit comments

Comments
 (0)