这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.3 KiB

import { BasicColumn } from '/@/components/Table/src/types/table';
import { useLocalization } from '/@/hooks/abp/useLocalization';
const { L } = useLocalization('LocalizationManagement');
export function getDataColumns(): BasicColumn[] {
return [
{
title: L('DisplayName:Name'),
dataIndex: 'name',
align: 'left',
width: 180,
resizable: true,
sorter: (last, next) => {
return last.name.localeCompare(next.name);
},
},
{
title: L('DisplayName:DisplayName'),
dataIndex: 'displayName',
align: 'left',
width: 180,
resizable: true,
sorter: (last, next) => {
return last.displayName.localeCompare(next.displayName);
},
},
{
title: L('DisplayName:Description'),
dataIndex: 'description',
align: 'left',
width: 200,
resizable: true,
sorter: (last, next) => {
return last.description?.localeCompare(next.description) ?? -1;
},
},
{
title: L('DisplayName:DefaultCultureName'),
dataIndex: 'defaultCultureName',
align: 'left',
width: 150,
resizable: true,
sorter: (last, next) => {
return last.defaultCultureName?.localeCompare(next.defaultCultureName) ?? -1;
},
},
];
}