import { h } from 'vue'; import { ElTag } from 'element-plus'; import { BasicColumn } from '@/components/Table'; // export const columns: BasicColumn[] = [ // // { // // type: 'selection', // // }, // { // label: '账号', // prop: 'username', // }, // { // label: '用户名', // prop: 'nickname', // }, // { // label: '手机', // prop: 'mobile', // }, // { // label: '状态', // prop: 'isEnable', // render(record) { // return h( // ElTag, // { // type: record.row.isEnable ? 'success' : 'danger', // }, // { // default: () => (record.row.isEnable ? '启用' : '禁用'), // }, // ); // }, // }, // { // label: '角色', // prop: 'roleName', // }, // { // label: '租户', // prop: 'tenantName', // }, // { // label: '部门', // prop: 'deptName', // }, // { // label: '岗位', // prop: 'postName', // }, // // { // // label: '描述', // // prop: 'remark', // // }, // { // label: '创建时间', // prop: 'createTime', // }, // ]; export const columns: BasicColumn[] = [ { type: 'selection', }, // { // label: '账号', // prop: 'username', // }, { label: '工号', prop: 'username', }, // { // label: '用户名', // prop: 'nickname', // }, { label: '姓名', prop: 'nickname', }, { label: '手机', prop: 'mobile', }, { label: '状态', prop: 'isEnable', render(record) { return h( ElTag, { type: record.row.isEnable ? 'success' : 'danger', }, { default: () => (record.row.isEnable ? '正常' : '锁定'), }, ); }, }, { label: '角色', prop: 'roleName', }, // { // label: '租户', // prop: 'tenantName', // }, // { // label: '部门', // prop: 'deptName', // }, { label: '组织', prop: 'postName', }, // { // label: '岗位', // prop: 'postName', // }, // { // label: '描述', // prop: 'remark', // }, { label: '创建时间', prop: 'createTime', minWidth: 100, }, ];