vxe-table-demonic
Version:
一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...
89 lines (83 loc) • 2.47 kB
TypeScript
import { SizeType } from '../component'
import { VxeTableProps } from '../table'
import { VxeGridProps } from '../grid'
import { VxeToolbarProps } from '../toolbar'
import { VxeTooltipProps } from '../tooltip'
import { VxePagerProps } from '../pager'
import { VxeModalProps } from '../modal'
import { VxeFormProps } from '../form'
import { VxeListProps } from '../list'
import { VxeSwitchProps } from '../switch'
import { VxeSelectProps } from '../select'
import { VxeInputProps } from '../input'
import { VxeTextareaProps } from '../textarea'
import { VxeButtonProps } from '../button'
import { VxeCheckboxProps } from '../checkbox'
import { VxeCheckboxGroupProps } from '../checkbox-group'
import { VxeRadioProps } from '../radio'
import { VxeRadioButtonProps } from '../radio-button'
import { VxeRadioGroupProps } from '../radio-group'
import { VxeCardProps } from '../card'
import { VxeTagProps } from '../tag'
import { VxeTagsProps } from '../tags'
export interface VXETableConfigOptions {
/**
* 扩展插件授权码
*/
authId?: string
size?: SizeType
zIndex?: number
version?: number
emptyCell?: string
icon?: {
[key: string]: string
}
table?: VxeTableProps
grid?: VxeGridProps
export?: {
types?: {
[key: string]: 0 | 1 | 2
}
[key: string]: any
}
tooltip?: VxeTooltipProps
pager?: VxePagerProps
form?: VxeFormProps
input?: VxeInputProps
textarea?: VxeTextareaProps
select?: VxeSelectProps
toolbar?: VxeToolbarProps
button?: VxeButtonProps
radio?: VxeRadioProps
radioButton?: VxeRadioButtonProps
radioGroup?: VxeRadioGroupProps
checkbox?: VxeCheckboxProps
checkboxGroup?: VxeCheckboxGroupProps
switch?: VxeSwitchProps
modal?: VxeModalProps
list?: VxeListProps
card?:VxeCardProps
tag?:VxeTagProps
tags?:VxeTagsProps
translate?(key: string, args?: any): string
i18n?(key: string, args?: any): string
/**
* 还原旧的单元格校验模式,已废弃
* @deprecated
*/
cellVaildMode?: 'obsolete' | '' | null
[key: string]: any
}
export type VxeGlobalConfigMethod = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>
/**
* @deprecated
*/
export type VxeGlobalSetup = VxeGlobalConfigMethod
/**
* @deprecated
*/
export type VXETableGlobalConfig = VXETableConfigOptions
/**
* @deprecated
*/
export type VXETableSetupOptions = VXETableConfigOptions