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

select-ios

v2.1.1

Published

Vue select原生插件

Downloads

13

Readme

iosSelect

Vue ios select原生样式的插件

按照ios select下拉框开发的一个插件,经测试完全可用

  npm i select-ios --save

如果你安装了淘宝镜像 可以使用cnpm i select-ios --save

如果没有安装建议安装一个毕竟国内的影响心情 点击安装

使用方法  
<template>
  <div>
    <div @click="showSelect">选择的值是{{month}}</div>
      <selet-ios :listData="listData" v-model="month" :parentHidden="Hidden" v-on:show="showHidden" type ="other"></selet-ios>
  </div>
</template>
<script>
   import seletIos from 'select-ios'
  export default{
    name: 'pdIosSelect',
    data () {
      return {
        listData: Array.from({length: 12}, (value, index) => 1 + index),
        month: 2,
        Hidden:false,
      }
    },
    components: {
      seletIos
    },
    methods:{
      showSelect(){
       this.Hidden = true;
      },
      showHidden(content){
        this.Hidden = content;
      }
    }
  }
👌 结束
</script>

其中v-model可以指定select初始化的值,因为api不多就不写了,简单的业务这个是可以胜任的

主要是v-model是下拉框初始化的值 
    :listData是传入到下拉框中的值
    v-on:show 是控制取消 , 确定按钮的显示和隐藏 , 采用了父组件传递子组件然后子组件传递父组件
    type 可以无限滚动  值可以是随意的如果不需要不加就行
    parentHidden 传递给子组件的值

如果有什么bug欢迎指出 欢迎指正

最后帮忙来个start呗,thanks ☺☺;