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

wepy-match-input

v0.0.4

Published

微信小程序 wepyjs 第三方 动态匹配输入框插件

Downloads

3

Readme

微信小程序 wepyjs 第三方 动态匹配输入框插件

效果:

mark

使用

安装组件

npm install wepy-match-input --save

引入组件

<template>
    <wepyMatchInput :params.sync="inputPrams"></wepyMatchInput>
</template>
<script>
    import wepy from 'wepy';
    import wepyMatchInput from 'wepy-match-input';

    export default class Index extends wepy.page {
        data={
            inputPrams:{
                    matchList:[],
                    keyWord:'',
                    keyName:'bookName',
                    placeholder:"请填写书名"
            },
        }
        components = {
            nices
        };
        
        onLoad(){
            
        }
        
        events={
            wepyMatchInputTapCallBack(data,index){
                
            },
            wepyMatchInputFocusCallBack(value){
                
            },
            wepyMatchInputChangeCallBack(value){
                
            },
            wepyMatchInputBlurCallBack(value){
                
            },
            wepyMatchInputConfirmCallBack(value){
                
            }
        }
        
       
    }
    
</script>

字段/Attr

| 字段 | 描述 | 必填 | 类型 | 默认 | | :------------------------------------: | :----------------------: | :--: | ------ | :---------------------------: | | params.keyWord | 当前输入框值 | 是 | string | '' | | params.keyName | 匹配列表输出的字段 | 否 | string | name | | params.matchList | 匹配列表 | 是 | array | [] | | params.placeholder | input框的placeholder | 否 | string | '' | | params.tapMatchListItemCallBackFunName | 点击匹配列表项回调方法名 | 否 | string | wepyMatchInputTapCallBack | | params.tapInputFocusCallBackFunName | input focus方法回调名 | 否 | string | wepyMatchInputFocusCallBack | | params.tapInputChangeCallBackFunName | input change方法回调名 | 否 | string | tapInputChangeCallBackFunName | | params.tapInputBlurCallBackFunName | input blur 方法回调名 | 否 | string | wepyMatchInputBlurCallBack | | params.tapInputConfirmCallBackFunName | input confirm方法回调名 | 否 | string | wepyMatchInputConfirmCallBack |

方法/methods

  • 一下方法请放在父级events对象调用。

  • 有传方法名的对应方法名,没有传使用的默认方法名。(主要考虑到一个页面有多个时需要自定义以免冲突)

  • 以下以默认方法名为例

  • | 方法名 | 描述 | 参数 | | :---------------------------: | :-------------------: | :-------------------------: | | wepyMatchInputTapCallBack | 点击匹配列表项回调 | (当前项对象,当前项index) | | wepyMatchInputFocusCallBack | input focus方法回调 | (当前输入框值) | | tapInputChangeCallBackFunName | input change方法回调 | (当前输入框值) | | wepyMatchInputBlurCallBack | input blur 方法回调 | (当前输入框值) | | wepyMatchInputConfirmCallBack | input confirm方法回调 | (当前输入框值) |

changelog

| 版本/时间 | 说明 | | -------------- | ----------------------------------------- | | 0.0.1/20180402 | 初始化 | | 0.0.2/20180403 | 添加params.disabled字段控制表单的disabled | | | |

本人博客:callmesoul.cn

toast