Skip to content

ts-react/rc-city-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc-city-select

组件在ant-design的cascader组件基础上添加城市数据

使用

  • 安装项目依赖
yarn add antd classnames @jiumao/china-city-data
  • 安装rc-city-select
yarn add rc-city-select
  • 使用
import React form 'react';
import CitySelect form 'rc-city-select';

const TestPage: Rract.FC = () => {
  return (
    <div>
      <CitySelect />
    </div> 
  )
}

Props

具体请查看cascader

valueType

  • 数据类型
'name' | 'code';
  • 描述

值的类型,省市区名称 还是 省市区编码

  • 默认值

name