motorvehicles
0.0.1 • Public • Published
npm install motorvehicles --save
warrning:我们推荐您设置key的,因为不存在它会带来数据的复用性问题
import MotorVehiclesIvoice from 'motorvehicles'
import 'MotorVehiclesIvoice/motorvehicles.css' //可以通过class名来覆盖其中属性
components: { MotorVehiclesIvoice}
<MotorVehiclesIvoice /> //机动车发票组件
参数名称 |
说明 |
取值 |
默认值 |
targetLocation |
主表字段的位置先占位 |
preinstallLocation = [ { index: 0, key: '开票日期', name: 'kaipiaoriqi',disabled: false,type: 'input',},...] |
- |
targetContent |
主表对应位置的内容 |
kaipiaoriqi: '2023-02-27',fapiaodaima: '0000000000001',fapiaohaoma: '00000001', jidadaima: '机打代码',jidahaoma: '1000000', |
- |
targetLocation 支持多个参数:
disabled: 禁用
validateFields: 校验方法
required:是否必填
事件名称 |
说明 |
传参 |
是否必须 |
validateFields |
触发校验模式,需要在targetLocation配置,允许正则和自定义函数 |
- |
- |
getFieldsValue |
获取发票里的内容 |
- |
- |
Package Sidebar
Install
Weekly Downloads