npm-cts-ui
Version:
UI KIT for Taro
65 lines (60 loc) • 1.36 kB
TypeScript
import { ComponentClass } from 'react'
import { CommonEventFunction } from '@tarojs/components/types/common'
import CtsComponent from './base'
export interface CtsPersonAddProps extends CtsComponent {
/**
* 项目id
*/
projectId: string
/**
* 保单id,批单需要
*/
policyId?: string
/**
* 新增人员组件的显示与隐藏
* @default false
*/
show: boolean
/**
* 工人状态(1未投保(新增人员)/2已投保(减少人员),3(变更人员)),批单才有
* @default 1
*/
workerStatus?: number
/**
* 已选择的变更人员(新增人员不能选择增保人员,减少人员不能选择停保人员)
*/
unableChooseVariable?: any[]
/**
* 是否必选
* @default false
*/
required?: boolean
/**
* 默认选择的新增,减少人员
*/
choosePersons: any[]
/**
* 点击确认事件
*/
onChange: CommonEventFunction
/**
* 点击返回事件
*/
onCancel: CommonEventFunction
}
export interface CtsPersonAddState {
/**
* 关键词
*/
searchVal: string
/**
* 人员列表数据
*/
lists: any[]
/**
* 选中工人workerId
*/
chooseWorkers: any[]
}
declare const CtsPersonAdd: ComponentClass<CtsPersonAddProps>
export default CtsPersonAdd