Vue: 打開彈框的正確姿式

1. 技術選型 Vue + ElementUIjavascript 2. 需求功能分析 點擊按鈕,出現彈框。點擊取消或者彈框右上角叉號,關閉彈框。html 3. 組件樹結構 4. 實現思路  4.1 方案一 (wrong)java 用戶點擊MainContent觸發點擊事件 MainContent通知父組件顯示彈框 this.$emit('showAlertModal') 父組件接收通知並改變sh
相關文章
相關標籤/搜索