Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengFeijie committed Oct 31, 2019
1 parent 00ed3f3 commit 5e1c950
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Vue的倒计时组件
import Vue from 'vue'
import vueTimerCountdown from 'vue-timer-countdown'

// 全局注册(组件名默认是:timer-countdown)
Vue.use(vueTimerCountdown, { component: 'TimerCountdown' })
// 全局注册
Vue.use(vueTimerCountdown, { component: 'TimerCountdown' }) // 组件名默认是:timer-countdown
// 或:Vue.component('TimerCountdown', vueTimerCountdown)
```
2. 局部注册
Expand All @@ -52,8 +52,8 @@ Vue的倒计时组件
<!-- 需要先引入vue-timer-countdown:<script src="//unpkg.com/vue-timer-countdown"></script> -->

<script>
// 全局注册(组件名默认是:timer-countdown)
Vue.use(vueTimerCountdown, { component: 'timer-countdown' })
// 全局注册
Vue.use(vueTimerCountdown, { component: 'timer-countdown' }) // 组件名默认是:timer-countdown
// 或:Vue.component('timer-countdown', vueTimerCountdown)
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"rollup-plugin-vue": "5.0.1",
"vue-template-compiler": "^2.6.10"
},
"version": "1.3.0"
"version": "1.3.1"
}

0 comments on commit 5e1c950

Please sign in to comment.