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

@pxg/vue-address

v0.0.4

Published

从https://github.com/hql7/wl-address fork 而来. 一个基于vue和element-ui的省市县三级地址联动插件,数据本地化。A three-level address linkage plug-in for provinces, cities and counties based on Vue and element-ui, data localization

Downloads

1

Readme

wl-address

#简介 这是一个基于elementUi的el-select组件的省市县三级地址联动插件,使用本地化数据,无接口依赖。 el-select

在线演示

快速上手

npm i wl-address --save

npm i wl-address -S

import wlAddress from 'wl-address'

Vue.use(wlAddress)

使用

<template>
  <wlAddress class="my-wl-address" :type="address_mode" :address.sync="address_data"></wlAddress>
</template>  

<script>
export default {
  name: "app",
  data() {
    return {
      address_mode: "default", // default普通 cascader级联
      address_data: "" // 选中地址
    };
  },
  methods: {
    changeAddressMode() {
      this.address_mode =
        this.address_mode == "default" ? "cascader" : "default";
    }
  }
};
</script>

文档

| 序号 | 参数 | 说明 | 类型 | 可选值 | 默认值 | | ---- | ---- | ---- | ---- | ---- | ---- | | 1 | size | 输入框尺寸 | String | medium/small/mini | - | | 2 | address | 绑定所选地址数据的字段。格式要求:[{"code":"130000","name":"河北省"},{"code":"130200","name":"唐山市"},{"code":"130203","name":"路北区"}] | String | - | - | | 3 | type | 三个下拉框联动模式和一个下拉框级联模式 | String |default/cascader| default | | 4 | disabled | 是否禁用 | Boolean | - | false | | 5 | clearable | 是否可清除选项 | Boolean | - | false | | 6 | filterable | 是否可搜索 | Boolean | - | false | | 7 | separator | cascader模式选项分隔符 | String | - | "/" | | 8 | showAllLevels | 输入框中是否显示选中值的完整路径 | Boolean | - | true |

版本记录

  1. 0.2.3 增加一些配置参数,cascader模式时filterable无法触发筛选函数

  2. 0.2.2 修复级联模式高度无限制的错误

  3. 0.2.1 发布,增加为两个模式:三个下拉框联动模式和一个下拉框级联模式

  4. 0.1.0 初次发布,0依赖的省市县三级地址插件

Customize configuration

See Configuration Reference.