Explorar o código

move on into directives

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
fe13e21d1f

+ 1 - 0
src/compiler/codegen/directives/index.js

@@ -3,6 +3,7 @@ import { show } from './show'
 import { html } from './html'
 import { ref } from './ref'
 import { el } from './el'
+export { genHandlers } from './on'
 
 export const directives = {
   model,

+ 0 - 0
src/compiler/codegen/events.js → src/compiler/codegen/directives/on.js


+ 1 - 2
src/compiler/codegen/index.js

@@ -1,5 +1,4 @@
-import { genHandlers } from './events'
-import { genDirectives } from './directives/index'
+import { genDirectives, genHandlers } from './directives/index'
 import { isReservedTag } from '../../runtime/util/dom'
 
 export function generate (ast) {