This commit is contained in:
archer
2025-05-30 12:54:25 +08:00
parent 3b0f0a8108
commit e74ab643fe
16 changed files with 310 additions and 395 deletions

View File

@@ -50,6 +50,7 @@ export type SelectProps<T = any> = Omit<ButtonProps, 'onChange'> & {
showBorder?: boolean;
}[];
isLoading?: boolean;
showAvatar?: boolean;
onChange?: (val: T) => any | Promise<any>;
ScrollData?: ReturnType<typeof useScrollPagination>['ScrollData'];
customOnOpen?: () => void;
@@ -79,6 +80,7 @@ const MySelect = <T = any,>(
list = [],
onChange,
isLoading = false,
showAvatar = true,
ScrollData,
customOnOpen,
customOnClose,
@@ -255,7 +257,7 @@ const MySelect = <T = any,>(
/>
) : (
<>
{selectItem?.icon && (
{selectItem?.icon && showAvatar && (
<Avatar
mr={2}
src={selectItem.icon as any}

View File

@@ -19,6 +19,7 @@
"image_upload": "Image upload",
"no_gate_available": "No portal available",
"no_gate_to_delete": "There is no gate to delete",
"quick_app": "Quick Application",
"slogan": "slogan",
"status": "state",
"suggestion_ratio_1_1": "Suggested ratio 1:1",

View File

@@ -20,6 +20,7 @@
"image_upload": "图片上传",
"no_gate_available": "没有可用门户",
"no_gate_to_delete": "没有可以删除的门户了",
"quick_app": "快捷应用",
"slogan": "标语",
"status": "状态",
"suggestion_ratio_1_1": "建议比例 1:1",

View File

@@ -19,6 +19,7 @@
"image_upload": "圖片上傳",
"no_gate_available": "沒有可用門戶",
"no_gate_to_delete": "沒有可以刪除的門戶了",
"quick_app": "快捷應用",
"slogan": "標語",
"status": "狀態",
"suggestion_ratio_1_1": "建議比例 1:1",