赞
踩
switch开关
-
- <el-table-column label="" align="center">
- <template slot-scope="scope">
- <el-switch
- v-model="scope.row.xxx"//要想在表格中每个switch都单独的控制,写法v-mode=“scope.row.自己定义”
- active-color="#13ce66"
- inactive-color="#DCDFE6"
- :active-value="1"
- :inactive-value="0"
- >
- </el-switch>
- </template>
- </el-table-column>
表格
- tableData: [
- {
- name: '',
- spatialType: '',
- xx:1
- },
- {
- name: '',
- spatialType: '',
- xx:0
- }
- ],
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。