1.1.2 • Published 2 years ago

@breezez/react-country-code-selector v1.1.2

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

CountrySelector

国家手机区号选择器移动端组件,仿微信通讯录交互、支持多种语言显示。

效果演示

演示gif

代码演示

import React,{useState} from 'react';
import { CountrySelector } from '@breezez/react-country-code-selector';

export default () => {
  const [visible, setVisible] = useState(true)
  return (
    <>
    {
      visible  
        ? <CountrySelector
          language={'cn-hk'}
          onClose={()=> setVisible(false)} 
          dispatch={(values)=> console.log(values)}
        />
      : null
    }
    </>
  );
}

API

属性说明类型默认值
language国家语言cn、cn-hk、en可选,默认cn简体
onClose关闭弹窗()=> void必须
dispatch选择国家({areaCode, country})=> void必须
1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago