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

zhilin-picker

v1.0.8

Published

uni-app平铺弹层选择器

Downloads

22

Readme

使用方法

1、在 script 中引用组件

	import zhilinPicker from "@/components/zhilin-picker/zhilin-picker.vue"
	//此插件已发布到npm,你也可以使用npm i zhilin-picker来安装到项目
	export default {
		components:{ zhilinPicker },
		data() {
			return {
				show: false,
				title: '选择福利',
				data: ['五险', '加班补助', '出国旅行', '生日福利', '年终分红', '带薪年假', '节日福利', '包吃', '包住', '聚餐经费', '交通补贴'],
			}
		},
		methods:{
			onChange(val){
				console.log(val)
			}
		}
	}

2、在 template 中使用组件

<zhilin-picker
    v-model="show"
    :data="data"
    @change="onChange"
/>

属性说明

| 属性名 | 类型 | 必填 | 默认值 | 说明 | | ------------ | ----------------- | ---- | -------- | :------------------------------------------------------- | | v-model | Boolean | 是 | | 控制选择器弹出/隐藏 | | data | Array/ObjectArray | 是 | | 格式:["五险","加班补助"]或者[{label:"五险",value:"11"}] | | title | String | 否 | "请选择" | 选择器的标题 | | initSelected | Array | 否 | | 默认选中项 | | multiple | Boolean | 否 | true | 是否开启多选模式 | | showSearch | Boolean | 否 | false | 是否支持列表搜索,开启后默认对列表内进行模糊筛选,若要异步搜索需结合searchInput方法 | | searchInput | Function | 否 | | 搜索的input事件回调,接收搜索框当前value,可用于对列表异步筛选 |

事件说明

| 事件名 | 说明 | 返回值 | | ------- | -------------------- | ------------------------------------------------------- | | change | 选中项发生改变时触发 | 接收当前选中项value,多选模式下为以英文逗号拼接的字符串 | | confirm | 点击确定时触发 | 接收当前选中项value,多选模式下为以英文逗号拼接的字符串 |