UNPKG

yanzhen-design-vue

Version:

21 lines (20 loc) 1.1 kB
import { VxeTableMethods } from './hooks/use-vxe-table-methods'; import { ComputedRef, InjectionKey, Ref, WritableComputedRef } from 'vue'; import { VxeTablePropTypes } from 'vxe-table'; export declare const HIDDEN_CLASS = "is-hidden"; export declare const VIRTUAL_CLASS = "is-virtual"; export declare const CELL_CLASS = "vxe-cell"; export interface VxeTableConfigContext { data?: Record<string, any>[] | VxeTablePropTypes.Data<string | number>; table?: VxeTableMethods['expose']; config?: Record<string, any>; tag?: string; editRows?: Record<string, any>[]; editColumns?: Record<string, any>[]; } export type VxeTableConfigKey = keyof VxeTableConfigContext; export type VxeTableConfigContextRefs = { [K in VxeTableConfigKey]?: WritableComputedRef<VxeTableConfigContext[K]> | ComputedRef<VxeTableConfigContext[K]> | Ref<VxeTableConfigContext[K]> | VxeTableConfigContext[K]; }; export declare function defaultVxeTableConfig(): VxeTableConfigContext; export declare const VxeTableConfigContextKey: InjectionKey<VxeTableConfigContextRefs | ComputedRef<VxeTableConfigContext>>;