Element-UI可編輯表格的實現

一、 可編輯單元格的實現 實現效果:點擊可編輯 實現原理:在單元格中放置span 和 input ,綁定data中同一的數據,捕捉點擊單元格事件和失去焦點事件,添加/刪除 元素的相應class,控制span 和 input 框的顯示。 實現代碼: Style: .tb-edit .input-box { display: none } .tb-edit .current-cell .inpu
相關文章
相關標籤/搜索