浏览代码

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