Просмотр исходного кода

fix flow lifecycle method name [Vue@2.x] (#3762)

fix lifecycle method name `init` to `beforeCreate`
松鹤 9 лет назад
Родитель
Сommit
313ad8f87b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      flow/options.js

+ 1 - 1
flow/options.js

@@ -34,7 +34,7 @@ declare type ComponentOptions = {
   render: () => VNode;
   staticRenderFns?: Array<() => VNode>;
   // lifecycle
-  init?: Function;
+  beforeCreate?: Function;
   created?: Function;
   beforeMount?: Function;
   mounted?: Function;