发现$mute只能影响单层组件,当嵌套组件时不起作用
Closed this issue · 0 comments
mengjin commented
init: function() {
var data = this.data;
this.$mute(true);
this.$watch('value', function(newV) {
this.$emit('change');
data._rValue = data.ignoreCase ? new RegExp(data.value, 'i') : new RegExp(data.value);
data._selected = '';
}._$bind(this));
},
当组件为嵌套组件时,设置$mute(true),发现仍然能进入脏检查