diff --git a/src/components/ListLoadError/index.tsx b/src/components/ListLoadError/index.tsx index 1f131c5..daddcfa 100644 --- a/src/components/ListLoadError/index.tsx +++ b/src/components/ListLoadError/index.tsx @@ -11,25 +11,39 @@ interface IProps { wrapperHeight?: string; width?: string; height?: string; + scale?: string; } const ListLoadError = (props: IProps) => { - const { reload, text, errorImg, btnText, btnImg, wrapperHeight="", width = "", height = "" } = props; + const { + reload, + text, + errorImg, + btnText, + btnImg, + wrapperHeight = "", + width = "", + height = "", + scale = "", + } = props; const handleReload = () => { reload && typeof reload === "function" && reload(); }; return ( - + {text && {text}} {reload && ( - + {btnText ? " " + btnText : "重试"} )} diff --git a/src/container/listContainer/index.tsx b/src/container/listContainer/index.tsx index dd1b39e..46abaab 100644 --- a/src/container/listContainer/index.tsx +++ b/src/container/listContainer/index.tsx @@ -32,6 +32,7 @@ const ListContainer = (props) => { listLoadErrorWrapperHeight, listLoadErrorWidth, listLoadErrorHeight, + listLoadErrorScale, } = props; const timerRef = useRef(null); const loadingStartTimeRef = useRef(null); @@ -168,6 +169,7 @@ const ListContainer = (props) => { wrapperHeight={listLoadErrorWrapperHeight || ""} width={listLoadErrorWidth || ""} height={listLoadErrorHeight || ""} + scale={listLoadErrorScale || ""} /> ); } diff --git a/src/main_pages/components/MyselfPageContent.tsx b/src/main_pages/components/MyselfPageContent.tsx index 1fa85d3..4af5b9f 100644 --- a/src/main_pages/components/MyselfPageContent.tsx +++ b/src/main_pages/components/MyselfPageContent.tsx @@ -241,6 +241,7 @@ const MyselfPageContent: React.FC = () => { listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" + listLoadErrorScale="1.2" defaultShowNum={3} /> @@ -262,6 +263,7 @@ const MyselfPageContent: React.FC = () => { listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" + listLoadErrorScale="1.2" defaultShowNum={3} /> diff --git a/src/user_pages/other/index.tsx b/src/user_pages/other/index.tsx index acda85c..f55f121 100644 --- a/src/user_pages/other/index.tsx +++ b/src/user_pages/other/index.tsx @@ -316,6 +316,7 @@ const OtherUserPage: React.FC = () => { listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" + listLoadErrorScale="1.2" defaultShowNum={3} /> @@ -359,6 +360,7 @@ const OtherUserPage: React.FC = () => { listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" + listLoadErrorScale="1.2" defaultShowNum={3} />