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 { Button, Input, ConfigProvider, theme, Flex, InputProps, TabsProps, Tabs, ButtonProps, Tree, TreeProps, DataNode as TreeDataNode } from '@zhst/meta'
|
||||||
import { IconFont } from '@zhst/icon'
|
import { IconFont } from '@zhst/icon'
|
||||||
import './index.less'
|
import './index.less'
|
||||||
|
|
||||||
const componentName = 'zhst-biz-treeTransfer'
|
const { ConfigContext } = ConfigProvider
|
||||||
|
|
||||||
export interface TreeTransferProps {
|
export interface TreeTransferProps {
|
||||||
|
customizePrefixCls?: string
|
||||||
/**
|
/**
|
||||||
* @description 自定义标题
|
* @description 自定义标题
|
||||||
* @array []
|
* @array []
|
||||||
@ -100,7 +101,10 @@ export interface TreeTransferProps {
|
|||||||
|
|
||||||
const { useToken } = theme
|
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,
|
dataSource,
|
||||||
treeProps,
|
treeProps,
|
||||||
titles = ['可选择的范围', '已选择的范围'],
|
titles = ['可选择的范围', '已选择的范围'],
|
||||||
@ -145,8 +149,7 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
|
|||||||
onSearch,
|
onSearch,
|
||||||
onOk,
|
onOk,
|
||||||
onReset
|
onReset
|
||||||
}) => {
|
} = props
|
||||||
|
|
||||||
const { token } = useToken()
|
const { token } = useToken()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user