0.0.1 • Published 1 year ago

motorvehicles v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

发票组件

  • 问题反馈:wx: zkhh6666,请备注好来意

Install-下载

npm install motorvehicles --save
warrning:我们推荐您设置key的,因为不存在它会带来数据的复用性问题

usage-使用说明

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:是否必填 motorvehicles

事件配置

事件名称说明传参是否必须
validateFields触发校验模式,需要在targetLocation配置,允许正则和自定义函数--
getFieldsValue获取发票里的内容--

motorvehicles

版本记录

v0.0.1 2023-03-25

  • 插件发布