第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

iview vue 點擊右上角的×關閉報錯 Prop being mutated

iview vue 點擊右上角的×關閉報錯 Prop being mutated

皈依舞 2019-05-11 17:04:57
iviewmodal組件拆出去后,點擊右上角的×關閉,會報錯Avoidmutatingapropdirectlysincethevaluewillbeoverwrittenwhenevertheparentcomponentre-renders.Instead,useadataorcomputedpropertybasedontheprop'svalue.Propbeingmutated:"faultModalStatus"父組件methods:{//監(jiān)聽彈窗的狀態(tài)getFaultModalStatusChange(e){console.log(e)if(e===false){this.faultModalStatus=false;};},//故障呼叫的點擊事件faultClickEvent(){this.faultModalStatus=true;},//彈出層的事件faultConfirmEvent(){this.faultModalStatus=false;},faultCancelEvent(){this.faultModalStatus=false;}},子組件確認取消exportdefault{props:{buttonLoading:{type:Boolean,default:false},faultModalStatus:{type:Boolean,default:false},modalEeqName:{type:String,},modalWorkshop:{type:String,},modalProcess:{type:String,},modalRepairPerson:{type:String,},modalFaultClassify:{type:String,},modalDescribe:{type:String,},modalRepairPersonList:{type:Array},modalFaultClassifyList:{type:Array}},data(){return{//faultModalStatus:falsecurrentIndex:this.faultModalStatus}},methods:{//彈出層的事件faultConfirmEvent(){this.$emit('faultConfirmEvent');},faultCancelEvent(){this.$emit('faultConfirmEvent');},getFaultModalStatusChange(e){this.$emit('getFaultModalStatusChange',e);}}}
查看完整描述

2 回答

?
尚方寶劍之說

TA貢獻1788條經(jīng)驗 獲得超4個贊

不知道樓主解決問題了沒,改下子組件Modal組件的用法即可。
子組件