1.1.0 • Published 5 years ago

vuc-input v1.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

vuc-input


中文文档


Install

    npm install --save vuc-input
    
    yarn add vuc-input

Basic use

    // Global
    
    import vucInput from 'vuc-input'
    Vue.use(vucInput)
    
    // Local
    
    import {vucInput} from 'vuc-input'
    export default {
      components: {vucInput}
    }
    

Global Attribute Method

AttributeTypeDefault valueExplain
classNamestringClass Style of Input Box
input-stylestringInput Box Style Width and Height Doesn't Work
disabledbooleanfalseAvailability
autofocusbooleanfalseAutofocus or not
full-widthbooleanfalseFull of Father's Box
Hnumber55height (Include padding)
Wnumber300width (Include padding)
paddingnumber10padding value
numnumber10Number of animated particles
sizenumber10Particle size
typestringrectParticle type (arc square rect icon) Icon implements custom effects
styleTypestringfillIs the Particle Stroke or Fill Style (strokefill)
drawImgArray[]Pictures drawn in icon mode (The suggestion is icon's PNG picture)
colorArray'black'Drawing Particle Effect Colors
help-textstringPrompt text
focusfunction
blurfunction
changefunction
alphaNumberBooleantrueWhether the transparency of particles is random, true is random, false or number is not random, number will control transparency, false will be 1

Tip

  • In order to be compatible with some special effects, some effects of input input box are removed.
  • In the case of focus acquisition, the focus position cannot be switched with the mouse, because the canvas level is higher than the input level in the case of focus acquisition.
  • There are differences between IE and WebKit kernel

Welcome pr issues star

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago