Skip to content

Commit

Permalink
Update to Vue 2.0
Browse files Browse the repository at this point in the history
fundon committed Sep 19, 2016
1 parent ee3d56a commit c9d4602
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ Datepicker component is based on [flatpickr](https://github.com/chmln/flatpickr)
## Installation

```
$ npm install vue-bulma-datepicker
$ npm install vue-bulma-datepicker --save
```

## Examples
@@ -56,6 +56,6 @@ export default {

---

> [fundon.me](https://fundun.me)  · 
> [fundon.me](https://fundon.me)  · 
> GitHub [@fundon](https://github.com/fundon)  · 
> Twitter [@_fundon](https://twitter.com/_fundon)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -20,6 +20,6 @@
"author": "Fangdun Cai <[email protected]>",
"license": "MIT",
"dependencies": {
"flatpickr": "chmln/flatpickr#gh-pages"
"flatpickr": "2.0.0-rc.8"
}
}
10 changes: 1 addition & 9 deletions src/Datepicker.vue
Original file line number Diff line number Diff line change
@@ -37,22 +37,14 @@ export default {
value: String
},
ready () {
mounted () {
this.create()
},
beforeDestroy () {
this.destroy()
},
attached () {
this.create()
},
detached () {
this.destroy()
},
methods: {
create () {
if (!this.datepicker) {

0 comments on commit c9d4602

Please sign in to comment.