fix(ts): 添加ts配置
This commit is contained in:
parent
4fb101b7e3
commit
15536f32c8
@ -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
|
||||||
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
@ -135,6 +135,7 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
|
|||||||
<ConfigProvider
|
<ConfigProvider
|
||||||
theme={{
|
theme={{
|
||||||
components: {
|
components: {
|
||||||
|
// @ts-ignore
|
||||||
Tree: {
|
Tree: {
|
||||||
colorBgContainer: treeBackgroundColor
|
colorBgContainer: treeBackgroundColor
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user