1.3.4 • Published 1 year ago

ve-pc-react-cascader-area v1.3.4

Weekly downloads
1
License
ISC
Repository
-
Last release
1 year ago
  1. 东方网升-pc-地区选择插件

发布

  1. 更改package.json版本
  2. yarn build:component
  3. npm publish 注:镜像源需切换回NPM官方源

构建 Start

yarn install		# 安装依赖模块
yarn dll		# 静态资源预编译
yarn start		# 运行开发环境,默认监听8888端口
yarn build:component		# 组件打包

使用之前

何时使用

API

<Cascader
  data={[]}
  hotCityData={[]}
  value={this.state.selectVal}
  limit={5}
  isExtraType={true}
  isSave={false}
  type={2}
  // allow={['010000', '040700']}
  title="请选择职位1"
  onSave={(arrCodes: string[], arrObj: any[]) => {
    console.log('保存', arrCodes, arrObj);
    this.setState({
      selectVal: arrCodes,
    })
    this.handleCloseModal()
  }}
  onCancel={(str?: string) => {
    this.handleCloseModal()
    console.log('取消', str)
  }}
  onSelect={(codeStr: string, codeObj: object) => {
    console.log('选中回调', codeStr, codeObj)
  }}
></Cascader>

upload props

参数说明类型默认值
data数据源Array[]
value选中的id数组Array-
hotCityData热门成熟数据源Array[]
limit最多选择数量number5
isExtraType是否可选2级选项booleanfalse
isIcon是否展示图标booleanfalse
isSave是否需要保存按钮booleantrue
type基础样式,1 最佳东方,黄色 2招聘通,蓝色number1
allow允许点击的内容codeArray所有code
title头部标题string请选择职位
hasHotNational热门里是有有全国booleanfalse
hasQuanguo是否有全国booleantrue
language中英文number1
onSave保存回调function-
onCancel取消回调function-
onSelect选中回调function-
1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago