vue.js封裝switch開關組件

個人項目原本用的element,可是switch開關不符合設計要求,因而本身封裝了一個switch組件,而且實現了switch開關的雙向數據綁定javascript <template> <label role="checkbox" :class="['switch', { toggled }]"> <input type="checkbox" class="switch-input"
相關文章
相關標籤/搜索