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