npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ve-pc-react-cascader-post

v1.4.4

Published

最佳东方 react 职位弹窗组件

Downloads

32

Readme

  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 | 最多选择数量 | number | 5 | | isExtraType | 是否可选2级选项 | boolean | false | | isIcon | 是否展示图标 | boolean | false | | isSave | 是否单选直接关闭, true不关闭,false关闭 | boolean | false | | type | 基础样式,1黄色,2蓝色 | number | 1 | | allow | 允许点击的内容code | Array | 所有code | | title | 头部标题 | string | 请选择职位 | | language | 中英文 | number | 1 | | onSave | 保存回调 | function | - | | onCancel | 取消回调 | function | - | | onSelect | 选中回调 | function | - |