gaoluyang
3 天以前 37436ffec6f763d6d298d6f42d1ff946f27c71be
表格不要删除按钮,统一用上面的
已修改1个文件
16 ■■■■ 文件已修改
src/components/Table/ETable.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Table/ETable.vue
@@ -38,13 +38,13 @@
              size="small"
              @click="handleEdit(scope.row)"
            >编辑</el-button>
            <el-button
              v-if="operations.includes('delete')"
              link
              type="danger"
              size="small"
              @click="handleDelete(scope.row)"
            >删除</el-button>
<!--            <el-button-->
<!--              v-if="operations.includes('delete')"-->
<!--              link-->
<!--              type="danger"-->
<!--              size="small"-->
<!--              @click="handleDelete(scope.row)"-->
<!--            >删除</el-button>-->
          </slot>
        </template>
      </el-table-column>
@@ -124,7 +124,7 @@
    // 操作列宽度
    operationsWidth: {
      type: [String, Number],
      default: 160
      default: 100
    },
    // 显示哪些操作按钮
    operations: {