Commit 9cc23767 by zhaochengxiang

样式调整

parent cbfbd076
......@@ -375,18 +375,16 @@ const ModelTable = (props) => {
const hiddenActions = authActions.slice(3, authActions.length);
return (
<Row gutter={20}>
<Space size={5} split={<Divider type='vertical' style={{margin:0}} />}>
{
showActions.map((item, index) => {
return (
<Col key={index} span={6}>
<a onClick={() => {handleItemClick(item.key, record)}} >{item.title}</a>
</Col>
<a key={index} onClick={() => {handleItemClick(item.key, record)}} >{item.title}</a>
)
})
}
{
haveMore ? <Dropdown overlay={
haveMore && <Dropdown overlay={
<Menu onClick={({ key }) => {
handleItemClick(key, record);
}}>
......@@ -405,12 +403,10 @@ const ModelTable = (props) => {
}
placement="bottomLeft"
>
<Col span={4}>
<UnorderedListOutlined className='default' style={{ fontSize:16,cursor:'pointer', marginLeft: 10 }} />
</Col>
</Dropdown> : <Col span={4} />
<UnorderedListOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Dropdown>
}
</Row>
</Space>
)
}
}
......@@ -848,8 +844,9 @@ const ModelTable = (props) => {
});
let expandable = undefined;
let needExpand = false;
if (!modelId) {
let needExpand = false;
(filterData||[]).forEach(record => {
if (record?.alreadyCheckedOut) {
needExpand = true;
......@@ -938,7 +935,7 @@ const ModelTable = (props) => {
<Table
rowSelection={view!=='grant'?rowSelection:undefined}
rowKey={'id'}
extraColWidth={80}
extraColWidth={(modelId||needExpand)?80:32}
columns={columns||[]}
dataSource={modelId?(subData||[]):(filterData||[])}
pagination={false}
......
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