Browse Source

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

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

16
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
style={{
flex: 1,
minHeight: 0,
display: "flex",
flexDirection: "column",
padding: "0 16px",
overflow: "hidden",
}}
>
<div style={{ flex: 1, minHeight: 0, overflowY: "auto" }}>
<Table <Table
dataSource={targetListData} dataSource={targetListData}
columns={targetColumns} columns={targetColumns}
pagination={false} pagination={false}
size="small" size="small"
style={{ height: "100%" }}
showHeader={false} 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