1.0.2 • Published 5 years ago

vue-ccpt v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Vue-hoperun-component

install

npm install vue-ccpt

use

  1. use

main.js

import { HrRadio, HrRadioGroup, SearchInput, HrSwitch } from 'vue-ccpt'

Vue.component('hr-switch', HrSwitch)
Vue.component('hr-radio', HrRadio)
Vue.component('hr-radio-group', HrRadioGroup)
Vue.component('search-input', SearchInput)

xxx.vue

...
    <hr-switch v-model="value">
...

data(){
    return {
        value:true
    }
}

list

  • SearchInput

    props

    namedestypedefaultexample
    heightcompoent heightString'40px''100%'
    phinput placeholderString'''text'

    events

    namedes
    handleSearchwhen keydown 'enter' or click the button will pass the input
  • HrSwitch

  <hr-switch v-model="value">
  • HrLoading