React + Typescript + Antd:封装通用的字典组件DXSelect

在开发中,我们经常遇到这样的场景,在表单中,有个下拉框,选择对应的数据。

那么这个下拉框的选项,就是字典。一搬的做法是,通过antd的Select来实现,代码如下:

    <Select defaultValue={
   defaultValue} style={
   styles} {
   ...otherProps}>
        {
   
            options.map((

你可能感兴趣的:(#,React案例组件,深入浅出react,react.js,typescript,前端)