fix(style): my models card
This commit is contained in:
@@ -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 }>;
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Vendored
+1
@@ -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 {
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user