Switch開關在element-ui表格中點擊沒有效果解決方法


 1              <el-table-column label="三審" align="center">
 2                     <template slot-scope="scope"> //此行代碼解決switch在表格中點擊沒有效果
 3                         <el-switch
 4                             v-model="scope.row.switch1" //要想在表格中每個switch都單獨的控制,寫法v-mode=“scope.row.自己定義”
 5                             active-color="#13ce66"
 6                             inactive-color="#DCDFE6"
 7                             :active-value="1" //選中switch1請賦值為1
 8                             :inactive-value="0" //不選中switch1請賦值為0
 9                             >
10                         </el-switch>
11                     </template>
12                 </el-table-column>    

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM