1.0.2 • Published 5 years ago
vue-ccpt v1.0.2
Vue-hoperun-component
install
npm install vue-ccpt
use
- 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
name des type default example height compoent height String '40px' '100%' ph input placeholder String '' 'text' events
name des handleSearch when keydown 'enter' or click the button will pass the input HrSwitch
<hr-switch v-model="value">
- HrLoading