0.1.5 • Published 3 years ago
@marshal93/vc-car-license v0.1.5
CarLicense
车牌号录入 vue2.x 组件
INSTALL
npm i @marshal93/vc-car-license -SUsage
import Vue from 'vue';
import VcCarLicense from '@marshal93/vc-car-license';
// 挂载到全局组件
Vue.use(VcCarLicense)
// 获取省份 + 车牌号
const getValue = this.$refs.carLicenseRef.getValue()
<VcCarLicense
provinceNameProps=""
carNumberProps=""
placeholder="请选择"
ref='carLicenseRef'
closeButtonText='关闭'
isDisabled='false'
/>API
| 属性 | 说明 | 是否必填 | 数据类型类型 | 默认值 |
|---|---|---|---|---|
| provinceNameProps | 车牌省名称 | false | string | '' |
| carNumberProps | 车牌数字部分 | false | string | '' |
| placeholder | placeholder | false | string | '' |
| closeButtonText | 右上角关闭按钮文案 | false | string | '关闭' |
| isDisabled | 是否不可点击 | false | boolean | false |