0.0.11 • Published 12 months ago

react-select-country-mw v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

react-select-country

English

Preview

When the language is zh-CN, it is sorted by pinyin, otherwise it is sorted by English.

Installation

npm install react-select-country-mw --save

Simple Import

import ReactSelectCountry from 'react-select-country-mw'

Parameters

NameTypeDefaultDescriptionRequired
onSelect(item: string) => void-Callback when an item is selectedNo
onClose() => void-Callback when closedNo
languagezh-CN,zh-HK,en-Language setting, default is enNo
heightnumber-Component heightNo
letterListHidebooleanfalseWhether to hide the letter listNo
arrowHidebooleanfalseWhether to hide the arrowNo
classNamestring-ClassName for the outermost elementNo

中文

预览

当是zh-CN时是以拼音排序,其余情况以英文排序

安装

npm install react-select-country-mw --save

简单的导入

import ReactSelectCountry from 'react-select-country-mw'

可传的参数

参数名字值类型默认值说明是否必需
onSelect(item: string) => void-选择项目时的回调函数
onClose() => void-关闭时的回调函数
languagezh-CN,zh-HK,en-语言设置,默认en
heightnumber-组件高度
letterListHidebooleanfalse是否隐藏字母列表
arrowHidebooleanfalse是否隐藏箭头
classNamestring-最外层元素的className
0.0.11

12 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.0

12 months ago