@@ -76,7 +76,7 @@ order: 24
76
76
</div >
77
77
{% endraw %}
78
78
79
- ### ` compiled ` <sup >弃用d </sup >
79
+ ### ` compiled ` <sup >弃用 </sup >
80
80
81
81
用 ` mounted ` 钩子来代替。
82
82
@@ -114,7 +114,7 @@ mounted: function () {
114
114
</div >
115
115
{% endraw %}
116
116
117
- ### ` detached ` <sup >deprecated </sup >
117
+ ### ` detached ` <sup >弃用 </sup >
118
118
119
119
用自定义的 dom 内部的其他钩子代替,例如:
120
120
@@ -141,7 +141,7 @@ destroyed: function () {
141
141
</div >
142
142
{% endraw %}
143
143
144
- ### ` init ` <sup >deprecated </sup >
144
+ ### ` init ` <sup >弃用 </sup >
145
145
146
146
用新的 ` beforeCreate ` 钩子代替,他们本质上是一样的。为了与其他生命周期的钩子命名保持一致性,所以重新命名了这个钩子。
147
147
@@ -152,7 +152,7 @@ destroyed: function () {
152
152
</div >
153
153
{% endraw %}
154
154
155
- ### ` ready ` <sup >deprecated </sup >
155
+ ### ` ready ` <sup >弃用 </sup >
156
156
157
157
使用新的 ` mounted ` 钩子代替,. 应该注意的是,通过使用 ` mounted ` 钩子,并不能保证该实例已经插入文档。所以还应该在钩子函数中包含 ` Vue.nextTick ` /` vm.$nextTick ` 例如:
158
158
@@ -195,7 +195,7 @@ mounted: function () {
195
195
</div >
196
196
{% endraw %}
197
197
198
- ### ` $index ` and ` $key ` <sup >deprecated </sup >
198
+ ### ` $index ` and ` $key ` <sup >弃用 </sup >
199
199
200
200
隐式申明的 ` $index ` 的 ` $key ` 两个变量在新版里面已经弃用了,取代的是在 ` v-for ` 中显式地申明。这可以使无经验的 Vue 开发者更好地理解代码,同样也可以使得在处理嵌套循环时更加清晰。
201
201
{% raw %}
@@ -313,7 +313,7 @@ Props现在只能单向传递。为了对父组件产生反向影响,子组件
313
313
</div >
314
314
{% endraw %}
315
315
316
- ### 修改 Props <sup >deprecated </sup >
316
+ ### 修改 Props <sup >弃用 </sup >
317
317
318
318
组件内修改prop是反模式(不推荐的)的。比如,先申明一个prop,然后在组件中通过 ` this.myProp = 'someOtherValue' ` 改变prop的值。根据渲染机制,当父组件重新渲染时,子组件的内部prop
319
319
值也将被覆盖。
@@ -543,7 +543,7 @@ data: {
543
543
</div >
544
544
{% endraw %}
545
545
546
- ### ` v-model ` with ` v-for ` Iterated Primitive Values <sup >deprecated </sup >
546
+ ### ` v-model ` with ` v-for ` Iterated Primitive Values <sup >弃用 </sup >
547
547
548
548
像这样的写法将失效:
549
549
@@ -663,7 +663,7 @@ strings.map(function (str) {
663
663
</div >
664
664
{% endraw %}
665
665
666
- ### 指令 ` .literal ` 修饰符 <sup >废弃 </sup >
666
+ ### 指令 ` .literal ` 修饰符 <sup >弃用 </sup >
667
667
668
668
` .literal ` 修饰符已经被移除,为了获取一样的功能,可以简单地提供字符串修饰符作为值。
669
669
@@ -710,7 +710,7 @@ Vue 的过渡系统有了彻底的改变,现在通过使用 `<transition>` 和
710
710
</div >
711
711
{% endraw %}
712
712
713
- ### 过渡的 ` stagger ` 参数 <sup >deprecated </sup >
713
+ ### 过渡的 ` stagger ` 参数 <sup >弃用 </sup >
714
714
715
715
如果希望在列表渲染中使用渐近过渡,可以通过设置元素的` data-index ` (或类似属性)来控制时间。 请参考[ 这个例子] ( transitions.html#Staggering-List-Transitions ) 。
716
716
@@ -1098,7 +1098,7 @@ You may notice that:
1098
1098
</div >
1099
1099
{% endraw %}
1100
1100
1101
- ### ` slot ` 样式参数 <sup >deprecated </sup >
1101
+ ### ` slot ` 样式参数 <sup >弃用 </sup >
1102
1102
1103
1103
通过具名 ` <slot> ` 插入的片段不再保持 ` slot ` 的参数。请用一个包裹元素来控制样式。或者用更高级方法:通过编程方式修改内容 :[ render functions] ( render-function.html ) .
1104
1104
@@ -1111,7 +1111,7 @@ You may notice that:
1111
1111
1112
1112
## 特殊属性
1113
1113
1114
- ### ` keep-alive ` 属性 <sup >deprecated </sup >
1114
+ ### ` keep-alive ` 属性 <sup >弃用 </sup >
1115
1115
1116
1116
` keep-alive ` 不再是一个特殊属性而是一个包裹组件,类似于 ` <transition> ` 比如:
1117
1117
@@ -1197,7 +1197,7 @@ HTML 的计算插值 (`{% raw %}{{{ foo }}}{% endraw %}`) 已经弃用,取代
1197
1197
</div >
1198
1198
{% endraw %}
1199
1199
1200
- ### 单次绑定sup >弃用</sup >
1200
+ ### 单次绑定< sup >弃用</sup >
1201
1201
1202
1202
单次绑定 (` {% raw %}{{* foo }}{% endraw %} ` ) 已经弃用取代的是 [ ` v-once ` directive] ( /api/#v-once ) .
1203
1203
@@ -1353,7 +1353,7 @@ myElement.parentNode.insertBefore(vm.$el, myElement)
1353
1353
</div >
1354
1354
{% endraw %}
1355
1355
1356
- ### ` vm.$after ` <sup >deprecated </sup >
1356
+ ### ` vm.$after ` <sup >弃用 </sup >
1357
1357
1358
1358
使用 DOM 原生方法:
1359
1359
@@ -1374,7 +1374,7 @@ myElement.parentNode.appendChild(vm.$el)
1374
1374
</div >
1375
1375
{% endraw %}
1376
1376
1377
- ### ` vm.$remove ` <sup >deprecated </sup >
1377
+ ### ` vm.$remove ` <sup >弃用 </sup >
1378
1378
1379
1379
使用 DOM 原生方法:
1380
1380
@@ -1472,7 +1472,7 @@ new Vue({
1472
1472
</div >
1473
1473
{% endraw %}
1474
1474
1475
- ### ` Vue.config.async ` <sup >deprecated </sup >
1475
+ ### ` Vue.config.async ` <sup >弃用 </sup >
1476
1476
1477
1477
Async is now required for rendering performance.
1478
1478
@@ -1507,7 +1507,7 @@ HTML interpolation [替换为 `v-html`](#HTML-Interpolation-deprecated).
1507
1507
1508
1508
## Global API
1509
1509
1510
- ### ` Vue.extend ` with ` el ` <sup >deprecated </sup >
1510
+ ### ` Vue.extend ` with ` el ` <sup >弃用 </sup >
1511
1511
1512
1512
el 选项不再在 ` Vue.extend ` 中使用。仅在实例创建参数中可用。
1513
1513
0 commit comments