0.0.8 • Published 2 years ago

@dpdfe/antd-pinyin-select v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

antd-pinyin-select

二次封装 antd 的 Select 组件,支持拼音模糊搜索

安装

npm install --save @dpdfe/antd-pinyin-select babel-plugin-import

使用方式

  1. 正常使用,拥有完整 antd Select 定义

    import {Select} from '@dpdfe/antd-pinyin-select';

  2. 改造已有项目

    无需修改代码,在 babelrc 中更改 Select 的引入位置即可

    // file: babel.config.js
    {
        "plugins":[
            [
                "import",
                {
                    "libraryName": "antd-pinyin-select",
                    "style": true,
                    customName: (name, file) => {
    
                        if (name === 'select') {
                            return '@dpdfe/antd-pinyin-select/es/select';
                        }
    
                        return `antd/es/${name}`;
                    },
                }
            ]
        ]
    }

更多

使用指南

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago