import React from 'react'; import { TreeSelect } from 'antd'; const { TreeNode } = TreeSelect; class NamespaceSelect extends React.Component { state = { value: undefined, }; onChange = (value) => { console.log(value); if (!value.match('%#@')) { this.setState({ value }); } }; render() { return ( sss} key="random3" /> ); } } export default NamespaceSelect;