fix(ts): 添加ts配置

This commit is contained in:
NICE CODE BY DEV 2024-06-03 16:36:59 +08:00
parent 4fb101b7e3
commit 15536f32c8
3 changed files with 4 additions and 2 deletions

View File

@ -2,9 +2,9 @@
* Created by jiangzhixiong on 2024/04/28 * Created by jiangzhixiong on 2024/04/28
*/ */
import React, { forwardRef, MouseEventHandler, ReactNode, useContext, useImperativeHandle } from 'react' import React, { forwardRef, ReactNode, useContext, useImperativeHandle } from 'react'
import { ConfigProvider, EMPTY_BASE64 } from '@zhst/meta' import { ConfigProvider, EMPTY_BASE64 } from '@zhst/meta'
import { Flex, Image } from 'antd'; import { Image } from 'antd';
import './index.less' import './index.less'
const { ConfigContext } = ConfigProvider const { ConfigContext } = ConfigProvider

View File

@ -43,6 +43,7 @@ const BoxSelectTree: FC<BoxSelectTreeProps> = (props) => {
items={items} items={items}
onChange={onTabChange} onChange={onTabChange}
tabBarGutter={0} tabBarGutter={0}
// @ts-ignore
indicator={{ size: (origin) => origin, align: 'center' }} indicator={{ size: (origin) => origin, align: 'center' }}
{...tabsProps} {...tabsProps}
/> />

View File

@ -135,6 +135,7 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
<ConfigProvider <ConfigProvider
theme={{ theme={{
components: { components: {
// @ts-ignore
Tree: { Tree: {
colorBgContainer: treeBackgroundColor colorBgContainer: treeBackgroundColor
} }