UNPKG

magner

Version:

Universal admin panel magnetic to any backend

52 lines (51 loc) 1.68 kB
import { PropType } from 'vue'; import { RouteLocationRaw } from 'vue-router'; import type { ActionButton, ActionAction, ActionLink } from '../../../types/utils/actions'; import { TranslateData } from '../../../utils'; declare const _sfc_main: import("vue").DefineComponent<{ action: { type: PropType<ActionButton<string, any>>; required: true; }; size: { type: PropType<"default" | "small" | "large">; default: string; }; skipActions: { type: PropType<boolean | string[]>; default: () => never[]; }; requestData: { type: ObjectConstructor; default: () => {}; }; }, { act: (action: ActionAction) => Promise<void>; getTranslation: (action: ActionButton<string, any>) => TranslateData; getLink: (to: ActionLink<any>['to']) => RouteLocationRaw; hidden: import("vue").ComputedRef<boolean>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ action: { type: PropType<ActionButton<string, any>>; required: true; }; size: { type: PropType<"default" | "small" | "large">; default: string; }; skipActions: { type: PropType<boolean | string[]>; default: () => never[]; }; requestData: { type: ObjectConstructor; default: () => {}; }; }>> & { onAction?: ((...args: any[]) => any) | undefined; }, { size: "default" | "small" | "large"; requestData: Record<string, any>; skipActions: boolean | string[]; }, {}>; export default _sfc_main;