Vue.JS 2 Tutorial #6 - Event Modifiers 정보
Vue Vue.JS 2 Tutorial #6 - Event Modifiers본문
Event Modifiers https://vuejs.org/v2/api/#v-on
.stop
- callevent.stopPropagation()
..prevent
- callevent.preventDefault()
..capture
- add event listener in capture mode..self
- only trigger handler if event was dispatched from this element..{keyCode | keyAlias}
- only trigger handler on certain keys..native
- listen for a native event on the root element of component..once
- trigger handler at most once..left
- (2.2.0+) only trigger handler for left button mouse events..right
- (2.2.0+) only trigger handler for right button mouse events..middle
- (2.2.0+) only trigger handler for middle button mouse events..passive
- (2.3.0+) attaches a DOM event with{ passive: true }
.
https://github.com/iamshaunjp/vuejs-playlist/tree/lesson-6
추천
0
0
댓글 0개