dtchange.vue
477 Bytes
<style>
body .newtxtchange{color:#ee7a2f!important;}
body .newimgchange{border:1px #ee7a2f solid;}
</style>
<script>
module.exports={
bind:function(){
},update:function(value){
var nodename=this.el.nodeName.toLowerCase();
console.log(nodename)
if(typeof value =='object' && value.n !=value.o){
if(nodename=='img'){
$(this.el).addClass('newimgchange')
}else{
$(this.el).addClass('newtxtchange')
}
}
},unbind:function(){
}
}
</script>