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

vue-input-effects

v1.0.1

Published

Vue input box components with special effects

Downloads

4

Readme

vue-input-effects

image


Install

    npm install --save vue-input-effects
    
    yarn add vue-input-effects

Basic use

    全局
    
    import iput from 'vue-input-effects'
    Vue.use(iput)
    
    局部
    import {Input, Shy, Dird, Duck, Fish, Goose, Panda, Pig} from 'vue-input-effects'
    export default {
        components: {Input, Shy, Dird, Duck, Fish, Goose, Panda, Pig}
    }
    

example


全局属性方法

| 属性 | 类型 | 默认值 | 说明 | |---------| ------------- | ---------- | ---------- | | height | string/number | 35 | | | width | string/number | 260 | | | input-style| string | | 输入框样式 宽高不管用 | | disabled| boolean | false | 是否可点击使用 | | autofocus | boolean | false | 是否自动聚焦 | | full-width | boolean | false | 是否沾满父盒子 | | help-text | string | | 提示文字 | | focus | function | | 输入框聚焦事件 | | blur | function | | 输入框失焦事件 | | change | function | | 输入框改变事件 |

全局插槽

<slot name="header"></slot>
<slot name="footer"></slot>

使用

<div slot="header"></div>
<div slot="footer"></div>

组件

效果


所有组件默认插槽无样式需要自定义样式后可见效果


Input
<Input v-model="input0" />

Shy

| 属性 | 类型 | 默认值 | 说明 | 取值 | |---------| ------------- | ---------- | ---------- | -------- | | location| String | left |下划线滚动开始位置|left/right/center| | underlineColor | String | | 下划线颜色 | | | defaultUnderlineColor | String | 默认下划线颜色| | | underlineShow | Boolean | true | 下划线是否出现| | | iconShow | Boolean | true | 插槽是否出现 ||

<template>
  <Shy v-model="input1">
    <div slot="icon-slot" class="input1"></div>
  </Shy>
</template>

<style>
  .input1 {
    height: 100%;
    width: 100%;
    background: #CE02E8
  }
</style>

Dird

| 属性 | 类型 | 默认值 | 说明 | 取值 | |---------| ------------- | ---------- | ---------- | -------- | | underlineColor | String | | 下划线颜色 | |

<Dird v-model="input2" />

Duck
<template>
  <Duck v-model="input3">
    <div slot="icon-slot" class="input3"></div>
  </Duck>
</template>

<style>
  .input3 {
    height: 100%;
    width: 100%;
    background: #8D6BFF
  }
</style>

Fish

| 属性 | 类型 | 默认值 | 说明 | 取值 | |---------| ------------- | ---------- | ---------- | -------- | | underlineColor | String | | 下划线颜色 | | | defaultUnderlineColor | String | 默认下划线颜色| | | underlineShow | Boolean | true | 下划线是否出现| |

<template>
  <Fish v-model="input4">
    <div slot="icon-slot" class="input4">阳光网站</div>
  </Fish>
</template>

<style>
  .input4 {
    height: 100%;
    width: 100%;
    background: #8D6BFF;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    padding: 0 10px;
  }
</style>

Goose
<template>
  <Goose v-model="input5">
    <div slot="icon-slot-one" class="input5-one"></div>
    <div slot="icon-slot-two" class="input5-two"></div>
  </Goose>
</template>

<style>
  .input5-one {
    height: 100%;
    width: 100%;
    background: black;
  }
  .input5-two {
    height: 100%;
    width: 100%;
    background: #8D6BFF;
  }
</style>

Panda
<template>
  <Panda v-model="input6">
    <div slot="icon-slot-two" class="input6">阳光网站</div>
  </Panda>
</template>

<style>
  .input6 {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: white;
    padding-left: 10px;
    background: #8D6BFF;
  }
</style>

Pig

| 属性 | 类型 | 默认值 | 说明 | 取值 | |---------| ------------- | ---------- | ---------- | -------- | | underlineColor | String | | 下划线颜色 | | | underlineShow | Boolean | true | 下划线是否出现| |

<template>
  <Pig v-model="input7"/>
</template>

欢迎 pr issues star