fix: os image dropdown list

This commit is contained in:
jialin
2025-09-17 15:17:31 +08:00
parent d063dfd652
commit f36613227e
7 changed files with 8 additions and 44 deletions
@@ -425,7 +425,6 @@ const PoolForm: React.FC<AddModalProps> = forwardRef((props, ref) => {
showSearch
allowClear
onChange={handleOsImageChange}
filterOption={filterImageOption}
optionRender={(option) =>
RenderOption({
...option,
@@ -36,6 +36,7 @@ interface ProviderCatalogProps {
cols?: number;
current?: ProviderType | string;
clickable?: boolean;
height: string | number;
dataList: {
label: string;
key: string;
@@ -52,6 +53,7 @@ const ProviderCatalog: React.FC<ProviderCatalogProps> = ({
cols = 3,
dataList,
clickable,
height,
current
}) => {
const intl = useIntl();
@@ -77,7 +79,7 @@ const ProviderCatalog: React.FC<ProviderCatalogProps> = ({
<Wrapper $cols={cols}>
{items?.map((action) => (
<Card
height="80px"
height={height}
key={action.key}
onClick={() => onSelect?.(action.key as string, action)}
active={current === action.key}
@@ -112,6 +112,7 @@ const SupportedHardware: React.FC<SupportedHardwareProps> = ({
return (
<ProviderCatalog
onSelect={onSelect}
height={60}
current={current}
dataList={supportedHardPlatforms}
clickable={clickable}