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 (
<div style={{ flex: 1, overflow: "auto", padding: "0 16px" }}>
<Table
dataSource={targetListData}
columns={targetColumns}
pagination={false}
size="small"
style={{ height: "100%" }}
showHeader={false}
/>
<div
style={{
flex: 1,
minHeight: 0,
display: "flex",
flexDirection: "column",
padding: "0 16px",
overflow: "hidden",
}}
>
<div style={{ flex: 1, minHeight: 0, overflowY: "auto" }}>
<Table
dataSource={targetListData}
columns={targetColumns}
pagination={false}
size="small"
showHeader={false}
/>
</div>
<Button
type="primary"
style={{ marginTop: "16px", width: "100%" }}
style={{ marginTop: "16px", width: "100%", flexShrink: 0 }}
onClick={onClickClearAll}
>
一键清零

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

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

Loading…
Cancel
Save