File tree Expand file tree Collapse file tree 2 files changed +799
-794
lines changed
client/packages/lowcoder-design/src Expand file tree Collapse file tree 2 files changed +799
-794
lines changed Original file line number Diff line number Diff line change 11import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
22import type { IconDefinition } from "@fortawesome/free-regular-svg-icons" ;
33// import type { IconDefinition as IconDefinitionBrands } from "@fortawesome/free-brands-svg-icons";
4- import { default as Popover } from "antd/es /popover" ;
4+ import { default as Popover } from "antd/lib /popover" ;
55import type { ActionType } from "@rc-component/trigger/lib/interface" ;
66import { TacoInput } from "components/tacoInput" ;
77import { Tooltip } from "components/toolTip" ;
@@ -14,9 +14,10 @@ import {
1414 useMemo ,
1515 useRef ,
1616 useState ,
17+ Suspense
1718} from "react" ;
1819import Draggable from "react-draggable" ;
19- import { default as List , ListRowProps } from "react-virtualized/dist/es/List" ;
20+ import { default as List , type ListRowProps } from "react-virtualized/dist/es/List" ;
2021import styled from "styled-components" ;
2122import { CloseIcon , SearchIcon } from "icons" ;
2223import { ANTDICON } from "icons/antIcon" ;
@@ -296,7 +297,11 @@ const IconPopup = (props: {
296297 onChangeIcon ( key ) ;
297298 } }
298299 >
299- < IconWrapper > { icon . getView ( ) } </ IconWrapper >
300+ < IconWrapper >
301+ < Suspense fallback = { null } >
302+ { icon . getView ( ) }
303+ </ Suspense >
304+ </ IconWrapper >
300305 < IconKeyDisplay > { key } </ IconKeyDisplay >
301306 </ IconItemContainer >
302307 </ Tooltip >
You can’t perform that action at this time.
0 commit comments