Commit e4258ebe authored by chenshouchao's avatar chenshouchao

Merge branch 'feat-20221012-environment' into 'staging'

Feat 20221012 environment

See merge request !151
parents ba4c0f70 73b94b72
......@@ -23,6 +23,7 @@ const CardTable = (props: ICardTableProps) => {
} = props;
const [numberOfColumns, setNumberOfColumns] = useState(3);
const tableBoxRef: any = useRef(null);
const getNumberOfColumns = useCallback(() => {
if (itemMinWidth) {
......@@ -41,8 +42,6 @@ const CardTable = (props: ICardTableProps) => {
getNumberOfColumns();
}, [getNumberOfColumns]);
const tableBoxRef: any = useRef(null);
const boxWidth = useMemo(() => {
return `${100 / numberOfColumns}%`;
}, [numberOfColumns]);
......
......@@ -165,7 +165,7 @@ const UserResourcesTemplate = observer(() => {
<CardTable
data={list}
renderItem={renderItem}
minWidth={377}
itemMinWidth={377}
></CardTable>
</div>
{showAddTemplate && (
......
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