add nanoid
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
|  * @Author: yehuozhili | ||||
|  * @Date: 2021-03-14 04:29:09 | ||||
|  * @LastEditors: yehuozhili | ||||
|  * @LastEditTime: 2021-07-12 19:47:39 | ||||
|  * @LastEditTime: 2021-07-13 10:49:33 | ||||
|  * @FilePath: \dooringx\packages\dooringx-lib\src\components\wrapperMove\index.tsx | ||||
|  */ | ||||
| import { AllHTMLAttributes, CSSProperties, PropsWithChildren, useRef } from 'react'; | ||||
| @@ -21,6 +21,7 @@ export interface ContainerWrapperProps extends AllHTMLAttributes<HTMLDivElement> | ||||
| function ContainerWrapper(props: PropsWithChildren<ContainerWrapperProps>) { | ||||
| 	const { children, style, classNames, ...rest } = props; | ||||
| 	const ref = useRef<HTMLDivElement>(null); | ||||
| 	const ticker = props.config.ticker; | ||||
| 	return ( | ||||
| 		<div | ||||
| 			className={`ant-menu ${classNames ? classNames : ''}`} | ||||
| @@ -41,7 +42,7 @@ function ContainerWrapper(props: PropsWithChildren<ContainerWrapperProps>) { | ||||
| 			{...rest} | ||||
| 		> | ||||
| 			{children} | ||||
| 			<Ticker config={props.config}></Ticker> | ||||
| 			{ticker && <Ticker config={props.config}></Ticker>} | ||||
| 		</div> | ||||
| 	); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hufeixiong
					hufeixiong