@fe6/water-pro
Version: 
An enterprise-class UI design language and Vue-based implementation
94 lines (93 loc) • 3.07 kB
TypeScript
import { PropType } from 'vue';
import { ActionItem } from '../types/table-action';
declare const _default: import("vue").DefineComponent<{
    actions: {
        type: PropType<ActionItem[]>;
        default: any;
    };
    dropDownActions: {
        type: PropType<ActionItem[]>;
        default: any;
    };
    divider: import("vue-types").VueTypeValidableDef<boolean> & {
        default: boolean;
    } & {
        default: boolean;
    };
    outside: import("vue-types").VueTypeValidableDef<boolean> & {
        default: boolean;
    };
    trigger: {
        type: PropType<("click" | "contextmenu" | "hover")[]>;
        default: () => string[];
    };
    prefixCls: StringConstructor;
}, {
    prefixClsNew: import("vue").ComputedRef<string>;
    getActions: import("vue").ComputedRef<{
        onConfirm: Fn<any, any>;
        onCancel: Fn<any, any>;
        enable: boolean;
        title?: string;
        okText?: string;
        cancelText?: string;
        confirm?: Fn<any, any>;
        cancel?: Fn<any, any>;
        icon?: string;
        onClick?: Fn<any, any>;
        label: string;
        color?: "success" | "warning" | "danger";
        popConfirm?: import("../types/table-action").PopConfirm;
        disabled?: boolean;
        divider?: boolean;
        prefixCls?: string;
        size?: "small" | "large" | "default";
        href?: string;
        htmlType?: "button" | "reset" | "submit";
        type: string;
        block?: boolean;
        loading?: boolean | {
            [key: string]: any;
        };
        ghost?: boolean;
        shape?: "circle" | "round" | "circle-outline";
    }[]>;
    getDropList: import("vue").ComputedRef<{
        text: string;
        divider: boolean;
        onClick?: Fn<any, any>;
        label: string;
        color?: "success" | "warning" | "danger";
        icon?: string;
        popConfirm?: import("../types/table-action").PopConfirm;
        disabled?: boolean;
        title?: string;
        prefixCls?: string;
        size?: "small" | "large" | "default";
        href?: string;
        htmlType?: "button" | "reset" | "submit";
        type?: "link" | "default" | "dashed" | "primary" | "ghost" | "danger";
        block?: boolean;
        loading?: boolean | {
            [key: string]: any;
        };
        ghost?: boolean;
        shape?: "circle" | "round" | "circle-outline";
    }[]>;
    getAlign: import("vue").ComputedRef<"center" | "left" | "right">;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
    outside: boolean;
    trigger: ("click" | "contextmenu" | "hover")[];
    actions: ActionItem[];
    divider: boolean;
    dropDownActions: ActionItem[];
} & {
    prefixCls?: string;
}>, {
    outside: boolean;
    trigger: ("click" | "contextmenu" | "hover")[];
    actions: ActionItem[];
    divider: boolean;
    dropDownActions: ActionItem[];
}>;
export default _default;