UNPKG

magner

Version:

Universal admin panel magnetic to any backend

108 lines (107 loc) 3.04 kB
import { PropType } from 'vue'; import type { TableColumn } from '../../../types/components/table'; import type { ActionAction } from '../../../types/utils/actions'; import type { TableActions } from '../../../types/configs/pages/table'; declare const _sfc_main: import("vue").DefineComponent<{ columnConfig: { type: PropType<TableColumn<any>>; required: true; }; tableData: { type: PropType<{ row: any; column: any; $index: number; }>; required: true; }; }, { formattedCell: import("vue").ComputedRef<{ view: string; content: any; row: any; column: any; component: import("vue-router").RouteComponent; text?: undefined; images?: undefined; tags?: undefined; actions?: undefined; value?: undefined; } | { view: "view"; text: any; content?: undefined; row?: undefined; column?: undefined; component?: undefined; images?: undefined; tags?: undefined; actions?: undefined; value?: undefined; } | { view: "image"; images: any[]; content?: undefined; row?: undefined; column?: undefined; component?: undefined; text?: undefined; tags?: undefined; actions?: undefined; value?: undefined; } | { view: "tags"; tags: { text: any; backgroundColor: string; textColor: string; }[]; content?: undefined; row?: undefined; column?: undefined; component?: undefined; text?: undefined; images?: undefined; actions?: undefined; value?: undefined; } | { view: "actions"; actions: import('../../../types/utils/actions').ActionButton<TableActions, any>[]; value: any; content?: undefined; row?: undefined; column?: undefined; component?: undefined; text?: undefined; images?: undefined; tags?: undefined; } | { view: "custom" | "html"; content: any; row?: undefined; column?: undefined; component?: undefined; text?: undefined; images?: undefined; tags?: undefined; actions?: undefined; value?: undefined; }>; act: (action: ActionAction<TableActions>) => Promise<void>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ columnConfig: { type: PropType<TableColumn<any>>; required: true; }; tableData: { type: PropType<{ row: any; column: any; $index: number; }>; required: true; }; }>> & { onAction?: ((...args: any[]) => any) | undefined; }, {}, {}>; export default _sfc_main;