Optimize code

This commit is contained in:
2024-01-14 00:51:03 +08:00
parent 97c23334f7
commit b0be3bc4a7
63 changed files with 217 additions and 275 deletions

8
src/ant-design.d.ts vendored
View File

@@ -1,4 +1,4 @@
import * as React from 'react'
import { ComponentType, ForwardRefExoticComponent, Key, SVGProps } from 'react'
import { CustomIconComponentProps } from '@ant-design/icons/es/components/Icon'
import { TablePaginationConfig } from 'antd/lib'
import { ColumnsType, FilterValue, SorterResult, SortOrder } from 'antd/es/table/interface'
@@ -7,8 +7,8 @@ import type { DataNode } from 'antd/es/tree'
declare global {
type IconComponent =
| React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>
| React.ForwardRefExoticComponent<CustomIconComponentProps>
| ComponentType<CustomIconComponentProps | SVGProps<SVGSVGElement>>
| ForwardRefExoticComponent<CustomIconComponentProps>
type _TablePaginationConfig = TablePaginationConfig
@@ -18,7 +18,7 @@ declare global {
type _SortOrder = SortOrder
type _CheckboxChangeEvent = CheckboxChangeEvent
interface _DataNode extends DataNode {
value: React.Key
value: Key
fullTitle?: string
parentId?: number
children?: _DataNode[]