فهرست منبع

move on into directives

Evan You 10 سال پیش
والد
کامیت
fe13e21d1f
3فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 0
      src/compiler/codegen/directives/index.js
  2. 0 0
      src/compiler/codegen/directives/on.js
  3. 1 2
      src/compiler/codegen/index.js

+ 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) {