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

@xsyx/hanzo-city-picker

v2.0.1

Published

省市县组件

Downloads

6

Readme

省市县选择组件

变更记录

v2.0.1 -- 2020年7月21日

  • (employ-city-picker)增加编辑功能

v2.0.0 -- 2020年7月19日

  • (employ-city-picker)不向下兼容更新
  • 新增init/next-empty/close/click-item回调事件
  • 数据支持分段式传递

v1.0.12 -- 2020年4月22日

  • (employ-city-picker)依赖更新

v1.0.8 -- 2020年3月28日

  • (employ-city-picker)优化交互体验

v1.0.7 -- 2020年3月28日

  • (employ-city-picker)修正动态title

v1.0.6 -- 2020年3月28日

  • (employ-city-picker)修正可点击区域太小,不易点中

v1.0.5 -- 2020年3月27日

  • (employ-city-picker)修正部分场景数据错误

v1.0.3 -- 2020年3月27日

  • (employ-city-picker)新增employ通用多级联动

v1.0.2 -- 2020年2月24日

  • 落实zIndex和typeShow参数

v1.0.1 -- 2020年2月22日

  • 增加参数(filedNameName, filedNameCode, filedNameChild)

v1.0.0 -- 2020年2月19日

适用场景

基本调用

 <city-picker></city-picker>

参数 props

| 参数 | 说明 | 类型 | 可选值 | 默认值 | 版本号 | | :--: | :------- | :----: | :---- | :----: | :----: | | provinces | 省份列表 | Array | - | - | 1.0.0 | | province | 当前选择的省份名称 | String | - | - | 1.0.0 | | citys | 城市列表 | Array | - | - | 1.0.0 | | city | 当前选择的城市名称 | String | - | - | 1.0.0 | | countys | 区县列表 | Array | - | - | 1.0.0 | | county | 当前选择的区县名称 | String | - | - | 1.0.0 | | value | 当前选择的省市县编号 | Array | - | - | 1.0.0 | | isShow | 是否显示省市县组件 | Boolean | - | true | 1.0.0 | | zIndex | zIndex | Number | - | 100 | 1.0.0 | | filedNameName | 区域名称字段名 | String | - | name | 1.0.1 | | filedNameCode | 区域编码字段名 | String | - | code | 1.0.1 | | filedNameChild | 下属行政区域字段名 | String | - | child | 1.0.1 | | typeShow | 组件显示类型 | array |1:只显示省份列;2:显示省份和地级市;3:显示省市县三级 | 3 | 1.0.0 |

事件 event

| 名称 | 参数 | 说明 | 备注 | | ------------- |:-------------| :--------------------| :---------------| | confirm | {  "provinceId": 省份编号,  "provinceName": 省份名称,  "cityId": 城市编号,  "cityName": 城市名称,  "countyId": "区县编号",  "countyName": 区县名称,  fullName: "省市县全称" } | - | - |

插槽 slot

| 名称 | 说明 | 备注 | | ------------- |:-------------:| :--------------------| | - |- | - |

相关演示