--- order: 6 title: zh-CN: 线性样式 en-US: Show Tree Line --- ## zh-CN 通过 `treeLine` 配置线性样式。 ## en-US Use `treeLine` to show the line style. ```tsx import { TreeSelect, Switch, Space } from 'antd'; const { TreeNode } = TreeSelect; const Demo = () => { const [treeLine, setTreeLine] = React.useState(true); const [showLeafIcon, setShowLeafIcon] = React.useState(false); return ( setTreeLine(!treeLine)} /> setShowLeafIcon(!showLeafIcon)} /> ); }; export default () => ; ```