子组件监听父组件值变化的watch监听更新注释,logo间距微调

merge-requests/1/head
张鑫 5 years ago
parent 0c5c411b09
commit 1ece3229cd

@ -145,7 +145,7 @@ export default {
img{ img{
width: 24px; width: 24px;
height: 24px; height: 24px;
margin: 10px; margin:10px 10px 10px 15px;
} }
.logo-title{ .logo-title{
transition-delay: 0.5s; transition-delay: 0.5s;

@ -182,7 +182,7 @@ export default {
//visibleisShowprops //visibleisShowprops
visible: function(newVal){ visible: function(newVal){
this.isShow = newVal; //newValvisible this.isShow = newVal; //newValvisible
// newVal && this.showConfirm(); //newValshowConfirm // newVal && this.xxx(); //newValthis.xxx()
}, },
modelTitle: function(newVal){ modelTitle: function(newVal){
this.title = newVal; this.title = newVal;
@ -290,7 +290,7 @@ export default {
handleCancel() { handleCancel() {
console.log('Clicked cancel button'); console.log('Clicked cancel button');
console.log(this.title); console.log(this.title);
this.$emit('close',false,{}) this.$emit('close',false,{}) //$emitmodelData使watch modelData
}, },
handleSelectChangeLeft(value) { handleSelectChangeLeft(value) {

Loading…
Cancel
Save