Преглед изворни кода

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

fix lifecycle method name `init` to `beforeCreate`
松鹤 пре 9 година
родитељ
комит
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;