Commit 7cb07f96 by zhaochengxiang

固定模型表头

parent 67e2e752
......@@ -11,7 +11,6 @@ const ModelTable = (props) => {
const { data, onChange, loading, onItemAction, onSelect, catalogId } = props;
const [ selectedRowKeys, setSelectedRowKeys ] = useState([]);
const [modal, contextHolder] = Modal.useModal();
useEffect(() => {
......@@ -132,6 +131,7 @@ const ModelTable = (props) => {
rowKey={'id'}
dataSource={data}
pagination={false}
sticky
/>
{ contextHolder }
</div>
......
......@@ -35,7 +35,7 @@ class Model extends React.Component {
}
onTreeSelect = (key) => {
this.setState({ catalogId: key, selectModelerIds: [], keyword: '' }, () => {
this.setState({ catalogId: key, keyword: '' }, () => {
if (!key || key==='') {
this.setState({ tableData: [], filterTableData: [] });
} else {
......
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