2
0
Эх сурвалжийг харах

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

fix lifecycle method name `init` to `beforeCreate`
松鹤 9 жил өмнө
parent
commit
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;