vue 2.5.9 → 2.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +39 -31
  2. package/dist/vue.common.js +245 -153
  3. package/dist/vue.esm.js +245 -153
  4. package/dist/vue.js +240 -152
  5. package/dist/vue.min.js +2 -2
  6. package/dist/vue.runtime.common.js +155 -92
  7. package/dist/vue.runtime.esm.js +155 -92
  8. package/dist/vue.runtime.js +150 -91
  9. package/dist/vue.runtime.min.js +2 -2
  10. package/package.json +12 -12
  11. package/src/compiler/codegen/events.js +30 -3
  12. package/src/compiler/codegen/index.js +20 -9
  13. package/src/compiler/create-compiler.js +1 -1
  14. package/src/compiler/helpers.js +12 -1
  15. package/src/compiler/index.js +3 -1
  16. package/src/compiler/parser/index.js +39 -30
  17. package/src/compiler/parser/text-parser.js +17 -5
  18. package/src/compiler/to-function.js +1 -3
  19. package/src/core/config.js +2 -0
  20. package/src/core/global-api/assets.js +3 -9
  21. package/src/core/global-api/extend.js +3 -9
  22. package/src/core/instance/init.js +10 -6
  23. package/src/core/instance/inject.js +5 -5
  24. package/src/core/instance/lifecycle.js +1 -1
  25. package/src/core/instance/render-helpers/render-static.js +7 -13
  26. package/src/core/instance/render-helpers/resolve-slots.js +4 -2
  27. package/src/core/instance/state.js +2 -1
  28. package/src/core/observer/array.js +1 -2
  29. package/src/core/util/options.js +23 -12
  30. package/src/core/util/props.js +5 -1
  31. package/src/core/vdom/create-component.js +15 -6
  32. package/src/core/vdom/create-element.js +7 -5
  33. package/src/core/vdom/helpers/update-listeners.js +12 -5
  34. package/src/core/vdom/modules/directives.js +3 -0
  35. package/src/core/vdom/patch.js +26 -8
  36. package/src/platforms/web/compiler/directives/model.js +11 -11
  37. package/src/platforms/web/compiler/modules/class.js +2 -2
  38. package/src/platforms/web/compiler/modules/model.js +1 -5
  39. package/src/platforms/web/compiler/modules/style.js +2 -2
  40. package/src/platforms/web/runtime/modules/dom-props.js +15 -9
  41. package/src/platforms/web/util/class.js +3 -3
  42. package/src/platforms/web/util/style.js +5 -2
  43. package/src/platforms/weex/compiler/index.js +26 -4
  44. package/src/platforms/weex/compiler/modules/append.js +7 -1
  45. package/src/platforms/weex/compiler/modules/class.js +1 -1
  46. package/src/platforms/weex/compiler/modules/index.js +2 -0
  47. package/src/platforms/weex/compiler/modules/recycle-list/component-root.js +15 -0
  48. package/src/platforms/weex/compiler/modules/recycle-list/component.js +16 -0
  49. package/src/platforms/weex/compiler/modules/recycle-list/index.js +56 -0
  50. package/src/platforms/weex/compiler/modules/recycle-list/text.js +23 -0
  51. package/src/platforms/weex/compiler/modules/recycle-list/v-bind.js +22 -0
  52. package/src/platforms/weex/compiler/modules/recycle-list/v-for.js +33 -0
  53. package/src/platforms/weex/compiler/modules/recycle-list/v-if.js +47 -0
  54. package/src/platforms/weex/compiler/modules/recycle-list/v-on.js +25 -0
  55. package/src/platforms/weex/compiler/modules/style.js +1 -1
  56. package/src/platforms/weex/entry-framework.js +10 -51
  57. package/src/platforms/weex/runtime/index.js +1 -1
  58. package/src/platforms/weex/runtime/modules/events.js +4 -2
  59. package/src/platforms/weex/runtime/recycle-list/render-component-template.js +34 -0
  60. package/src/platforms/weex/runtime/recycle-list/virtual-component.js +136 -0
  61. package/src/platforms/weex/util/element.js +52 -0
  62. package/src/platforms/weex/util/index.js +35 -37
  63. package/src/server/create-renderer.js +6 -2
  64. package/src/server/optimizing-compiler/modules.js +1 -1
  65. package/src/server/render-context.js +1 -1
  66. package/src/server/render.js +4 -7
  67. package/src/server/template-renderer/index.js +2 -3
  68. package/src/sfc/parser.js +4 -4
  69. package/src/shared/util.js +2 -0
  70. package/types/vue.d.ts +13 -11
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p align="center"><a href="https://vuejs.org" target="_blank"><img width="100"src="https://vuejs.org/images/logo.png"></a></p>
1
+ <p align="center"><a href="https://vuejs.org" target="_blank"><img width="100" src="https://vuejs.org/images/logo.png" alt="Vue logo"></a></p>
2
2
 
3
3
  <p align="center">
4
4
  <a href="https://circleci.com/gh/vuejs/vue/tree/dev"><img src="https://img.shields.io/circleci/project/vuejs/vue/dev.svg" alt="Build Status"></a>
@@ -26,30 +26,38 @@ Funds donated via Patreon goes directly to support Evan You's full-time work on
26
26
 
27
27
  <h4 align="center">Platinum</h4>
28
28
 
29
- <p align="center">
30
- <a href="https://stdlib.com">
31
- <img width="240px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
32
- </a>
33
- <br><br>
34
- <a href="https://xiaozhuanlan.com">
35
- <img width="160px" src="https://raw.githubusercontent.com/vuejs/cn.vuejs.org/master/themes/vue/source/images/xiaozhuanlan.png">
36
- </a>
37
- <br><br>
38
- <a href="http://tooltwist.com" target="_blank">
39
- <img width="220px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tooltwist.png">
40
- </a>
41
- </p>
42
-
43
- <h4 align="center">Gold</h4>
44
-
45
29
  <table>
46
30
  <tbody>
47
31
  <tr>
48
32
  <td align="center" valign="middle">
49
- <a href="https://deepstreamhub.com" target="_blank">
50
- <img width="140px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/deepstream.png">
33
+ <a href="https://stdlib.com">
34
+ <img width="220px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
35
+ </a>
36
+ </td>
37
+ <td>
38
+ <a href="https://xiaozhuanlan.com">
39
+ <img width="160px" src="https://raw.githubusercontent.com/vuejs/cn.vuejs.org/master/themes/vue/source/images/xiaozhuanlan.png">
40
+ </a>
41
+ </td>
42
+ <td>
43
+ <a href="http://tooltwist.com" target="_blank">
44
+ <img width="200px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tooltwist.png">
45
+ </a>
46
+ </td>
47
+ <td>
48
+ <a href="https://www.infinitynewtab.com/donate/index.html" target="_blank">
49
+ <img width="200px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/infinitynewtab.png">
51
50
  </a>
52
51
  </td>
52
+ </tr>
53
+ </tbody>
54
+ </table>
55
+
56
+ <h4 align="center">Gold</h4>
57
+
58
+ <table>
59
+ <tbody>
60
+ <tr>
53
61
  <td align="center" valign="middle">
54
62
  <a href="https://jsfiddle.net/">
55
63
  <img width="120px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/jsfiddle.png">
@@ -75,14 +83,14 @@ Funds donated via Patreon goes directly to support Evan You's full-time work on
75
83
  <img width="120px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/someline.png">
76
84
  </a>
77
85
  </td>
78
- </tr>
79
- <tr></tr>
80
- <tr>
81
86
  <td align="center" valign="middle">
82
87
  <a href="http://monterail.com/" target="_blank">
83
88
  <img width="120px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/monterail.png">
84
89
  </a>
85
90
  </td>
91
+ </tr>
92
+ <tr></tr>
93
+ <tr>
86
94
  <td align="center" valign="middle">
87
95
  <a href="https://www.2mhost.com/" target="_blank">
88
96
  <img width="120px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/2mhost.png">
@@ -99,8 +107,8 @@ Funds donated via Patreon goes directly to support Evan You's full-time work on
99
107
  </a>
100
108
  </td>
101
109
  <td align="center" valign="middle">
102
- <a href="https://component.io/" target="_blank">
103
- <img width="130px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/component_io.png">
110
+ <a href="https://anymod.com/" target="_blank">
111
+ <img width="130px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/anymod.png">
104
112
  </a>
105
113
  </td>
106
114
  <td align="center" valign="middle">
@@ -108,22 +116,22 @@ Funds donated via Patreon goes directly to support Evan You's full-time work on
108
116
  <img width="80px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/xfive.png">
109
117
  </a>
110
118
  </td>
111
- </tr>
112
- <tr></tr>
113
- <tr>
114
119
  <td align="center" valign="middle">
115
- <a href="http://www.frontenddevelopermeetups.com/" target="_blank">
116
- <img width="160px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/frontend-meetups.png">
120
+ <a href="https://www.frontenddeveloperlove.com/" target="_blank">
121
+ <img width="160px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/frontend-love.png">
117
122
  </a>
118
123
  </td>
124
+ </tr>
125
+ <tr></tr>
126
+ <tr>
119
127
  <td align="center" valign="middle">
120
128
  <a href="https://onsen.io/vue/" target="_blank">
121
129
  <img width="130px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/onsen-ui.png">
122
130
  </a>
123
131
  </td>
124
132
  <td align="center" valign="middle">
125
- <a href="https://themeforest.net/item/clear-bootstrap-vuejs-admin-template/19339739?ref=jyostna&utm_source=vuejs.org&utm_campaign=vuejs_patreon" target="_blank">
126
- <img width="150px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuejsadmin.png">
133
+ <a href="https://vuetify.com" target="_blank">
134
+ <img width="130px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuetify.png">
127
135
  </a>
128
136
  </td>
129
137
  </tr>