Browse Source

fix: 修复“标靶列表”超出容器高度时不显示滚动条的问题

master
liujiangyong 2 days ago
parent
commit
7d035fb7fe
  1. 30
      client/src/sections/wuyuanbiaoba/components/TargetList.jsx
  2. 1
      client/src/sections/wuyuanbiaoba/container/index.jsx

30
client/src/sections/wuyuanbiaoba/components/TargetList.jsx

@ -62,18 +62,28 @@ const TargetList = ({
]; ];
return ( return (
<div style={{ flex: 1, overflow: "auto", padding: "0 16px" }}> <div
<Table style={{
dataSource={targetListData} flex: 1,
columns={targetColumns} minHeight: 0,
pagination={false} display: "flex",
size="small" flexDirection: "column",
style={{ height: "100%" }} padding: "0 16px",
showHeader={false} overflow: "hidden",
/> }}
>
<div style={{ flex: 1, minHeight: 0, overflowY: "auto" }}>
<Table
dataSource={targetListData}
columns={targetColumns}
pagination={false}
size="small"
showHeader={false}
/>
</div>
<Button <Button
type="primary" type="primary"
style={{ marginTop: "16px", width: "100%" }} style={{ marginTop: "16px", width: "100%", flexShrink: 0 }}
onClick={onClickClearAll} onClick={onClickClearAll}
> >
一键清零 一键清零

1
client/src/sections/wuyuanbiaoba/container/index.jsx

@ -586,6 +586,7 @@ const WuyuanbiaobaContent = () => {
items={tabItems} items={tabItems}
style={{ style={{
height: "100%", height: "100%",
minHeight: 0,
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
}} }}

Loading…
Cancel
Save