feat(biz): 修改穿梭框的样式和注释
This commit is contained in:
parent
320e17ea93
commit
765f485556
@ -1,11 +1,12 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import React, { ReactNode, useContext } from 'react';
|
||||
import { Button, Input, ConfigProvider, theme, Flex, InputProps, TabsProps, Tabs, ButtonProps, Tree, TreeProps, DataNode as TreeDataNode } from '@zhst/meta'
|
||||
import { IconFont } from '@zhst/icon'
|
||||
import './index.less'
|
||||
|
||||
const componentName = 'zhst-biz-treeTransfer'
|
||||
const { ConfigContext } = ConfigProvider
|
||||
|
||||
export interface TreeTransferProps {
|
||||
customizePrefixCls?: string
|
||||
/**
|
||||
* @description 自定义标题
|
||||
* @array []
|
||||
@ -100,7 +101,10 @@ export interface TreeTransferProps {
|
||||
|
||||
const { useToken } = theme
|
||||
|
||||
const TreeTransfer: React.FC<TreeTransferProps> = ({
|
||||
const TreeTransfer: React.FC<TreeTransferProps> = (props) => {
|
||||
const { getPrefixCls } = useContext(ConfigContext);
|
||||
const componentName = getPrefixCls('biz-treeTransfer', props.customizePrefixCls);
|
||||
const {
|
||||
dataSource,
|
||||
treeProps,
|
||||
titles = ['可选择的范围', '已选择的范围'],
|
||||
@ -145,8 +149,7 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
|
||||
onSearch,
|
||||
onOk,
|
||||
onReset
|
||||
}) => {
|
||||
|
||||
} = props
|
||||
const { token } = useToken()
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user