1.4.4 • Published 1 year ago

ve-pc-react-cascader-post v1.4.4

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

发布

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

构建 Start

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

使用之前

何时使用

API

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

upload props

参数说明类型默认值
data数据源Array-
value选中的id数组Array-
limit最多选择数量number5
isExtraType是否可选2级选项booleanfalse
isIcon是否展示图标booleanfalse
isSave是否单选直接关闭, true不关闭,false关闭booleanfalse
type基础样式,1黄色,2蓝色number1
allow允许点击的内容codeArray所有code
title头部标题string请选择职位
language中英文number1
onSave保存回调function-
onCancel取消回调function-
onSelect选中回调function-
1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

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.35

4 years ago

1.0.34

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

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.3

4 years ago

1.0.0

4 years ago