重构消息通知弹窗
This commit is contained in:
parent
b3b6cb7f19
commit
9292cde650
@ -91,7 +91,7 @@ const TableHead = React.forwardRef<
|
|||||||
<th
|
<th
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
"h-12 px-4 text-left align-middle font-medium text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
||||||
sticky && "sticky right-0 bg-background shadow-[-2px_0_4px_rgba(0,0,0,0.05)]",
|
sticky && "sticky right-0 bg-background shadow-[-2px_0_4px_rgba(0,0,0,0.05)]",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
@ -120,7 +120,7 @@ const TableCell = React.forwardRef<
|
|||||||
<td
|
<td
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"p-4 align-middle [&:has([role=checkbox])]:pr-0",
|
"p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
||||||
sticky && "sticky right-0 bg-background shadow-[-2px_0_4px_rgba(0,0,0,0.05)]",
|
sticky && "sticky right-0 bg-background shadow-[-2px_0_4px_rgba(0,0,0,0.05)]",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -131,6 +131,7 @@ const ApplicationList: React.FC = () => {
|
|||||||
|
|
||||||
// 列定义
|
// 列定义
|
||||||
const columns: ColumnDef<Application>[] = useMemo(() => [
|
const columns: ColumnDef<Application>[] = useMemo(() => [
|
||||||
|
{ key: 'id', title: 'ID', dataIndex: 'id', width: '80px' },
|
||||||
{
|
{
|
||||||
key: 'category',
|
key: 'category',
|
||||||
title: '应用分类',
|
title: '应用分类',
|
||||||
@ -140,7 +141,17 @@ const ApplicationList: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{ key: 'appCode', title: '应用编码', dataIndex: 'appCode', width: '220px', className: 'whitespace-nowrap' },
|
{ key: 'appCode', title: '应用编码', dataIndex: 'appCode', width: '220px', className: 'whitespace-nowrap' },
|
||||||
{ key: 'appName', title: '应用名称', dataIndex: 'appName', width: '180px', className: 'whitespace-nowrap' },
|
{ key: 'appName', title: '应用名称', dataIndex: 'appName', width: '180px', className: 'whitespace-nowrap' },
|
||||||
{ key: 'appDesc', title: '应用描述', dataIndex: 'appDesc', width: '200px', className: 'whitespace-nowrap' },
|
{
|
||||||
|
key: 'appDesc',
|
||||||
|
title: '应用描述',
|
||||||
|
width: '200px',
|
||||||
|
className: 'whitespace-nowrap overflow-hidden text-ellipsis max-w-[200px]',
|
||||||
|
render: (_, record) => (
|
||||||
|
<div className="whitespace-nowrap overflow-hidden text-ellipsis max-w-[200px]" title={record.appDesc || ''}>
|
||||||
|
{record.appDesc || '-'}
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'teamCount',
|
key: 'teamCount',
|
||||||
title: '团队使用数量',
|
title: '团队使用数量',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user