Skip to content

Commit

Permalink
Merge pull request #2874 from xiamiao1121/feature/tree/#2871
Browse files Browse the repository at this point in the history
feat(tree): 支持配置字段别名
  • Loading branch information
solarjoker authored Jun 28, 2024
2 parents 23ee022 + b94f196 commit 53b9321
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ui/tree/src/Tree.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { forwardRef, useMemo, useRef, useImperativeHandle } from 'react'
import { HiBaseSizeEnum } from '@hi-ui/core'
import { HiBaseFieldNames, HiBaseSizeEnum } from '@hi-ui/core'
import { cx, getPrefixCls } from '@hi-ui/classname'
import { __DEV__ } from '@hi-ui/env'
import { flattenTreeData } from './utils'
Expand Down Expand Up @@ -453,10 +453,9 @@ export interface TreeProps {
*/
flattedData?: FlattedTreeNodeData[]
/**
* 暂不对外暴露
* @private
* 设置 data 中 id, title, disabled, children 对应的 key
*/
fieldNames?: object
fieldNames?: HiBaseFieldNames
/**
* 是否点击节点时展开其子节点
*/
Expand Down

0 comments on commit 53b9321

Please sign in to comment.