fix(style): my models card

This commit is contained in:
jialin
2025-09-19 15:46:24 +08:00
parent 8f5990c537
commit b640963f65
6 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ interface CatalogListProps {
resizable?: boolean;
dataList: any[];
loading: boolean;
activeId: number;
activeId: Global.WithFalse<number>;
isFirst: boolean;
renderItem: (data: any) => React.ReactNode;
Skeleton: React.ComponentType<{ span: number }>;
+2 -2
View File
@@ -66,9 +66,9 @@ const Inner = styled.div.attrs({
display: flex;
width: 100%;
flex-direction: column;
justify-content: flex-start;
justify-content: center;
gap: 8px;
line-height: 1.5;
height: 100%;
`;
const Icon = styled.div.attrs({
+1
View File
@@ -1,4 +1,5 @@
declare namespace Global {
type WithFalse<T> = T | false;
interface Pagination {
page: number;
perPage?: number;
@@ -329,7 +329,7 @@ const ClusterCreate = () => {
{currentStep === startStep && (
<ProviderCatalog
dataList={providerList}
height={80}
height={70}
onSelect={handleSelectProvider}
clickable={true}
current={extraData.provider}
@@ -6,7 +6,7 @@ import styled from 'styled-components';
const Title = styled.span`
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-end;
font-weight: 700;
font-size: 16px;
.text {
+1 -1
View File
@@ -119,7 +119,7 @@ const UserModels: React.FC = () => {
<CardList
dataList={dataSource.dataList}
loading={dataSource.loading}
activeId={-1}
activeId={false}
isFirst={!dataSource.loadend}
Skeleton={CardSkeleton}
renderItem={renderCard}