Commit d331d5c4 by zhaochengxiang

模型列表预览字段 需高亮主键

parent af3811b9
......@@ -193,6 +193,12 @@ tr.drop-over-upward td {
font-size: 13px !important;
padding: 4px 8px !important;
}
.primary-row {
.yy-table-cell {
background-color: #d3ebff !important;
}
}
}
.primary-color {
......
......@@ -535,7 +535,7 @@ const AssetTable = (props) => {
(reference===AssetManageReference) && <Button onClick={addAsset}>新增</Button>
}
{
compact ? <Dropdown overlay={moreMenu} placement="bottomCenter">
(compact && reference===AssetManageReference) ? <Dropdown overlay={moreMenu} placement="bottomCenter">
<Button>其他操作</Button>
</Dropdown> : <React.Fragment>
{
......
......@@ -56,6 +56,13 @@ const ModelNameColumn = (props) => {
loading={false}
pagination={false}
size='small'
rowClassName={(record, index) => {
if (record?.primaryKey) {
return 'primary-row';
}
return '';
}}
/>
</div>;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment