Documentation
    Preparing search index...
    Index
    • Parameters

      • ...args: any[]

      Returns CronElementPlus

    $: ComponentInternalInstance
    $attrs: Attrs
    $data: {}
    $el: any
    $emit: (
        event: "update:model-value" | "update:period" | "error",
        ...args: any[],
    ) => void
    $forceUpdate: () => void
    $host: Element | null
    $nextTick: {
        (): Promise<void>;
        <T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>;
    }
    $options: ComponentOptionsBase<
        Readonly<
            ExtractPropTypes<
                {
                    buttonProps: { type: ObjectConstructor; default(): {} };
                    clearable: { default: boolean; type: BooleanConstructor };
                    cols: {
                        default: () => {
                            day: number;
                            hour: number;
                            minute: number;
                            second: number;
                        };
                        type: PropType<Record<string, number>>;
                    };
                    customLocale: { type: PropType<Localization> };
                    disabled: { default: boolean; type: BooleanConstructor };
                    dropdownProps: { default: () => void; type: ObjectConstructor };
                    fields: { type: PropType<Field[]> };
                    format: { type: PropType<CronFormat> };
                    locale: { type: StringConstructor };
                    modelValue: { type: StringConstructor };
                    period: { type: StringConstructor };
                    periods: { type: PropType<Period[]> };
                },
            >,
        > & Readonly<
            {
                onError?: (...args: any[]) => any;
                "onUpdate:model-value"?: (...args: any[]) => any;
                "onUpdate:period"?: (...args: any[]) => any;
            },
        >,
        {
            cron: Ref<string, string>;
            error: Ref<string, string>;
            period: {
                items: { id: string; text: any; value: string[] }[];
                prefix: Ref<string, string>;
                select: (periodId: string) => void;
                selected: Ref<
                    | { id: string; text?: string; value: string[] }
                    | { id: string; text: any; value: string[] },

                        | Period
                        | { id: string; text: any; value: string[] }
                        | { id: string; text?: string; value: string[] }
                        | { id: string; text: any; value: string[] },
                >;
                suffix: Ref<string, string>;
            };
            segments: {
                cron: Ref<string, string>;
                error: Ref<string, string>;
                id: string;
                items: FieldItem[];
                prefix: Ref<string, string>;
                select: (evt: number[]) => void;
                selected: Ref<number[], number[]>;
                suffix: Ref<string, string>;
                text: Ref<string, string>;
            }[];
            selected: ComputedRef<
                {
                    cron: Ref<string, string>;
                    error: Ref<string, string>;
                    id: string;
                    items: FieldItem[];
                    prefix: Ref<string, string>;
                    select: (evt: number[]) => void;
                    selected: Ref<number[], number[]>;
                    suffix: Ref<string, string>;
                    text: Ref<string, string>;
                }[],
            >;
        },
        {},
        {},
        {},
        ComponentOptionsMixin,
        ComponentOptionsMixin,
        ("update:model-value" | "update:period" | "error")[],
        string,
        {
            buttonProps: Record<string, any>;
            clearable: boolean;
            cols: Record<string, number>;
            disabled: boolean;
            dropdownProps: Record<string, any>;
        },
        {},
        string,
        {},
        {
            CustomSelect: DefineComponent<
                ExtractPropTypes<
                    {
                        buttonProps: { default: () => void; type: ObjectConstructor };
                        clearable: { default: boolean; type: BooleanConstructor };
                        cols: { default: number; type: NumberConstructor };
                        disabled: { default: boolean; type: BooleanConstructor };
                        dropdownProps: { default: () => void; type: ObjectConstructor };
                        items: { default: () => never[]; type: PropType<any[]> };
                        itemText: {
                            default: string;
                            type: PropType<string | ((item: ...) => ...)>;
                        };
                        itemValue: {
                            default: string;
                            type: PropType<string | ((item: ...) => ...)>;
                        };
                        modelValue: { type: PropType<string | number | (...)[]> };
                        multiple: { default: boolean; type: BooleanConstructor };
                        selection: { type: StringConstructor };
                    },
                >,
                {
                    add: (item: any) => void;
                    clear: () => void;
                    equals: (items: any[]) => boolean;
                    has: (item: any) => boolean;
                    isEmpty: ComputedRef<boolean>;
                    itemRows: any[][];
                    remove: (item: any) => void;
                    select: (item: any) => void;
                    selected: Ref<
                        | string
                        | number
                        | (string | number)[]
                        | (string | number | (...)[] | undefined)[]
                        | undefined,

                            | string
                            | number
                            | (string | number)[]
                            | (string | number | (...)[] | undefined)[]
                            | undefined,
                    >;
                    selectedStr: Ref<string, string>;
                    setItems: (items: any[]) => void;
                    setValues: (
                        values:
                            | string
                            | number
                            | (string | number)[]
                            | (string | number | (...)[] | undefined)[]
                            | undefined,
                    ) => void;
                    toggle: (item: any) => void;
                    updated: Ref<number, number>;
                    values: Set<any>;
                },
                {},
                {},
                {},
                ComponentOptionsMixin,
                ComponentOptionsMixin,
                "update:model-value"[],
                "update:model-value",
                PublicProps,
                Readonly<
                    ExtractPropTypes<
                        {
                            buttonProps: { default: () => ...; type: ObjectConstructor };
                            clearable: { default: boolean; type: BooleanConstructor };
                            cols: { default: number; type: NumberConstructor };
                            disabled: { default: boolean; type: BooleanConstructor };
                            dropdownProps: { default: () => ...; type: ObjectConstructor };
                            items: { default: () => ...; type: PropType<(...)> };
                            itemText: { default: string; type: PropType<(...)> };
                            itemValue: { default: string; type: PropType<(...)> };
                            modelValue: { type: PropType<(...)> };
                            multiple: { default: boolean; type: BooleanConstructor };
                            selection: { type: StringConstructor };
                        },
                    >,
                > & Readonly<{ "onUpdate:model-value"?: (...args: (...)[]) => any }>,
                {
                    buttonProps: Record<string, any>;
                    clearable: boolean;
                    cols: number;
                    disabled: boolean;
                    dropdownProps: Record<string, any>;
                    items: any[];
                    itemText: string | ((item: any) => string);
                    itemValue: string | ((item: any) => string | number);
                    multiple: boolean;
                },
                {},
                {
                    Close: DefineComponent<
                        {},
                        void,
                        {},
                        {},
                        {},
                        ComponentOptionsMixin,
                        ComponentOptionsMixin,
                        {},
                        string,
                        PublicProps,
                        Readonly<{}>,
                        {},
                        {},
                        {},
                        {},
                        string,
                        ComponentProvideOptions,
                        true,
                        {},
                        any,
                    >;
                },
                {},
                string,
                ComponentProvideOptions,
                true,
                {},
                any,
            >;
        } & GlobalComponents,
        GlobalDirectives,
        string,
        ComponentProvideOptions,
    > & MergedComponentOptionsOverride
    $parent:
        | ComponentPublicInstance<
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            false,
            ComponentOptionsBase<
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                {},
                {},
                string,
                {},
                {},
                {},
                string,
                ComponentProvideOptions,
            >,
            {},
            {},
            "",
            {},
            any,
        >
        | null
    $props: Partial<
        {
            buttonProps: Record<string, any>;
            clearable: boolean;
            cols: Record<string, number>;
            disabled: boolean;
            dropdownProps: Record<string, any>;
        },
    > & Omit<
        {
            buttonProps: Record<string, any>;
            clearable: boolean;
            cols: Record<string, number>;
            customLocale?: Localization;
            disabled: boolean;
            dropdownProps: Record<string, any>;
            fields?: Field[];
            format?: CronFormat;
            locale?: string;
            modelValue?: string;
            onError?: (...args: any[]) => any;
            "onUpdate:model-value"?: (...args: any[]) => any;
            "onUpdate:period"?: (...args: any[]) => any;
            period?: string;
            periods?: Period[];
        } & VNodeProps & AllowedComponentProps & ComponentCustomProps,
        "cols"
        | "disabled"
        | "clearable"
        | "buttonProps"
        | "dropdownProps",
    >
    $refs: Data
    $root:
        | ComponentPublicInstance<
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            false,
            ComponentOptionsBase<
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                any,
                {},
                {},
                string,
                {},
                {},
                {},
                string,
                ComponentProvideOptions,
            >,
            {},
            {},
            "",
            {},
            any,
        >
        | null
    $slots: UnwrapSlotsType<S>
    buttonProps: Record<string, any>
    clearable: boolean
    cols: Record<string, number>
    cron: string
    customLocale?: Localization
    disabled: boolean
    dropdownProps: Record<string, any>
    error: string
    fields?: Field[]
    format?: CronFormat
    locale?: string
    modelValue?: string
    onError?: (...args: any[]) => any
    "onUpdate:model-value"?: (...args: any[]) => any
    "onUpdate:period"?: (...args: any[]) => any
    period: {
        items: { id: string; text: any; value: string[] }[];
        prefix: Ref<string, string>;
        select: (periodId: string) => void;
        selected: Ref<
            | { id: string; text?: string; value: string[] }
            | { id: string; text: any; value: string[] },

                | Period
                | { id: string; text: any; value: string[] }
                | { id: string; text?: string; value: string[] }
                | { id: string; text: any; value: string[] },
        >;
        suffix: Ref<string, string>;
    }
    periods?: Period[]
    segments: {
        cron: Ref<string, string>;
        error: Ref<string, string>;
        id: string;
        items: FieldItem[];
        prefix: Ref<string, string>;
        select: (evt: number[]) => void;
        selected: Ref<number[], number[]>;
        suffix: Ref<string, string>;
        text: Ref<string, string>;
    }[]
    selected: {
        cron: Ref<string, string>;
        error: Ref<string, string>;
        id: string;
        items: FieldItem[];
        prefix: Ref<string, string>;
        select: (evt: number[]) => void;
        selected: Ref<number[], number[]>;
        suffix: Ref<string, string>;
        text: Ref<string, string>;
    }[]
    __defaults?: {
        buttonProps: Record<string, any>;
        clearable: boolean;
        cols: Record<string, number>;
        disabled: boolean;
        dropdownProps: Record<string, any>;
    }
    __differentiator?: undefined

    #3468

    type-only, used to assist Mixin's type inference, TypeScript will try to simplify the inferred Mixin type, with the __differentiator, TypeScript won't be able to combine different mixins, because the __differentiator will be different

    __file?: string

    This one should be exposed so that devtools can make use of it

    __isBuiltIn?: boolean

    Compat build only, for bailing out of certain compatibility behavior

    __isFragment?: undefined
    __isSuspense?: undefined
    __isTeleport?: undefined
    __name?: string

    name inferred from filename

    call?: (this: unknown, ...args: unknown[]) => never
    class?: unknown
    compatConfig?: CompatConfig
    compilerOptions?: RuntimeCompilerOptions
    components?: {
        CustomSelect: DefineComponent<
            ExtractPropTypes<
                {
                    buttonProps: { default: () => void; type: ObjectConstructor };
                    clearable: { default: boolean; type: BooleanConstructor };
                    cols: { default: number; type: NumberConstructor };
                    disabled: { default: boolean; type: BooleanConstructor };
                    dropdownProps: { default: () => void; type: ObjectConstructor };
                    items: { default: () => never[]; type: PropType<any[]> };
                    itemText: {
                        default: string;
                        type: PropType<string | ((item: any) => string)>;
                    };
                    itemValue: {
                        default: string;
                        type: PropType<string | ((item: any) => (...) | (...))>;
                    };
                    modelValue: { type: PropType<string | number | ((...) | (...))[]> };
                    multiple: { default: boolean; type: BooleanConstructor };
                    selection: { type: StringConstructor };
                },
            >,
            {
                add: (item: any) => void;
                clear: () => void;
                equals: (items: any[]) => boolean;
                has: (item: any) => boolean;
                isEmpty: ComputedRef<boolean>;
                itemRows: any[][];
                remove: (item: any) => void;
                select: (item: any) => void;
                selected: Ref<
                    | string
                    | number
                    | (string | number)[]
                    | (string | number | ((...) | (...))[] | undefined)[]
                    | undefined,

                        | string
                        | number
                        | (string | number)[]
                        | (string | number | ((...) | (...))[] | undefined)[]
                        | undefined,
                >;
                selectedStr: Ref<string, string>;
                setItems: (items: any[]) => void;
                setValues: (
                    values:
                        | string
                        | number
                        | (string | number)[]
                        | (string | number | ((...) | (...))[] | undefined)[]
                        | undefined,
                ) => void;
                toggle: (item: any) => void;
                updated: Ref<number, number>;
                values: Set<any>;
            },
            {},
            {},
            {},
            ComponentOptionsMixin,
            ComponentOptionsMixin,
            "update:model-value"[],
            "update:model-value",
            PublicProps,
            Readonly<
                ExtractPropTypes<
                    {
                        buttonProps: { default: () => void; type: ObjectConstructor };
                        clearable: { default: boolean; type: BooleanConstructor };
                        cols: { default: number; type: NumberConstructor };
                        disabled: { default: boolean; type: BooleanConstructor };
                        dropdownProps: { default: () => void; type: ObjectConstructor };
                        items: { default: () => (...)[]; type: PropType<(...)[]> };
                        itemText: { default: string; type: PropType<(...) | (...)> };
                        itemValue: { default: string; type: PropType<(...) | (...)> };
                        modelValue: { type: PropType<(...) | (...) | (...)> };
                        multiple: { default: boolean; type: BooleanConstructor };
                        selection: { type: StringConstructor };
                    },
                >,
            > & Readonly<{ "onUpdate:model-value"?: (...args: any[]) => any }>,
            {
                buttonProps: Record<string, any>;
                clearable: boolean;
                cols: number;
                disabled: boolean;
                dropdownProps: Record<string, any>;
                items: any[];
                itemText: string | ((item: any) => string);
                itemValue: string | ((item: any) => string | number);
                multiple: boolean;
            },
            {},
            {
                Close: DefineComponent<
                    {},
                    void,
                    {},
                    {},
                    {},
                    ComponentOptionsMixin,
                    ComponentOptionsMixin,
                    {},
                    string,
                    PublicProps,
                    Readonly<{}>,
                    {},
                    {},
                    {},
                    {},
                    string,
                    ComponentProvideOptions,
                    true,
                    {},
                    any,
                >;
            },
            {},
            string,
            ComponentProvideOptions,
            true,
            {},
            any,
        >;
    } & GlobalComponents & Record<
        string,
        Component<any, any, any, ComputedOptions, MethodOptions, {}, any>,
    >
    computed?: {}
    data?: (
        this: CreateComponentPublicInstanceWithMixins<
            Readonly<
                ExtractPropTypes<
                    {
                        buttonProps: { type: ObjectConstructor; default(): {} };
                        clearable: { default: boolean; type: BooleanConstructor };
                        cols: {
                            default: () => {
                                day: number;
                                hour: number;
                                minute: number;
                                second: number;
                            };
                            type: PropType<Record<string, number>>;
                        };
                        customLocale: { type: PropType<Localization> };
                        disabled: { default: boolean; type: BooleanConstructor };
                        dropdownProps: { default: () => void; type: ObjectConstructor };
                        fields: { type: PropType<Field[]> };
                        format: { type: PropType<CronFormat> };
                        locale: { type: StringConstructor };
                        modelValue: { type: StringConstructor };
                        period: { type: StringConstructor };
                        periods: { type: PropType<Period[]> };
                    },
                >,
            > & Readonly<
                {
                    onError?: (...args: any[]) => any;
                    "onUpdate:model-value"?: (...args: any[]) => any;
                    "onUpdate:period"?: (...args: any[]) => any;
                },
            >,
            {},
            {},
            {},
            MethodOptions,
            ComponentOptionsMixin,
            ComponentOptionsMixin,
        >,
        vm: CreateComponentPublicInstanceWithMixins<
            Readonly<
                ExtractPropTypes<
                    {
                        buttonProps: { type: ObjectConstructor; default(): {} };
                        clearable: { default: boolean; type: BooleanConstructor };
                        cols: {
                            default: () => {
                                day: number;
                                hour: number;
                                minute: number;
                                second: number;
                            };
                            type: PropType<Record<string, number>>;
                        };
                        customLocale: { type: PropType<Localization> };
                        disabled: { default: boolean; type: BooleanConstructor };
                        dropdownProps: { default: () => void; type: ObjectConstructor };
                        fields: { type: PropType<Field[]> };
                        format: { type: PropType<CronFormat> };
                        locale: { type: StringConstructor };
                        modelValue: { type: StringConstructor };
                        period: { type: StringConstructor };
                        periods: { type: PropType<Period[]> };
                    },
                >,
            > & Readonly<
                {
                    onError?: (...args: any[]) => any;
                    "onUpdate:model-value"?: (...args: any[]) => any;
                    "onUpdate:period"?: (...args: any[]) => any;
                },
            >,
            {},
            {},
            {},
            MethodOptions,
            ComponentOptionsMixin,
            ComponentOptionsMixin,
        >,
    ) => {}
    delimiters?: [string, string]

    runtime compile only

    use compilerOptions.delimiters instead.

    directives?: GlobalDirectives & Record<string, Directive<any, any, string, any>>
    emits?: ("update:model-value" | "update:period" | "error")[] & ThisType<void>
    errorCaptured?: ErrorCapturedHook<unknown>
    expose?: string[]
    extends?: ComponentOptionsMixin
    filters?: Record<string, Function>
    inheritAttrs?: boolean
    inject?: {} | string[]
    key?: PropertyKey
    methods?: {}
    mixins?: ComponentOptionsMixin[]
    name?: string
    onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[]
    onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[]
    onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[]
    onVnodeMounted?: VNodeMountHook | VNodeMountHook[]
    onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[]
    onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[]
    provide?: ComponentProvideOptions
    ref?: VNodeRef
    ref_for?: boolean
    ref_key?: string
    render?: Function
    renderTracked?: DebuggerHook
    renderTriggered?: DebuggerHook
    setup?: (
        this: void,
        props: LooseRequired<
            Props & Prettify<
                UnwrapMixinsType<
                    IntersectionMixin<Mixin> & IntersectionMixin<Extends>,
                    "P",
                >,
            >,
        >,
        ctx: {
            attrs: Attrs;
            emit: (
                event: "update:model-value" | "update:period" | "error",
                ...args: any[],
            ) => void;
            expose: <Exposed extends Record<string, any> = Record<string, any>>(
                exposed?: Exposed,
            ) => void;
            slots: UnwrapSlotsType<S>;
        },
    ) => | void
    | {
        cron: Ref<string, string>;
        error: Ref<string, string>;
        period: {
            items: { id: string; text: any; value: string[] }[];
            prefix: Ref<string, string>;
            select: (periodId: string) => void;
            selected: Ref<
                | { id: string; text?: string; value: string[] }
                | { id: string; text: any; value: string[] },

                    | Period
                    | { id: string; text: any; value: string[] }
                    | { id: string; text?: string; value: string[] }
                    | { id: string; text: any; value: string[] },
            >;
            suffix: Ref<string, string>;
        };
        segments: {
            cron: Ref<string, string>;
            error: Ref<string, string>;
            id: string;
            items: FieldItem[];
            prefix: Ref<string, string>;
            select: (evt: number[]) => void;
            selected: Ref<number[], number[]>;
            suffix: Ref<string, string>;
            text: Ref<string, string>;
        }[];
        selected: ComputedRef<
            {
                cron: Ref<string, string>;
                error: Ref<string, string>;
                id: string;
                items: FieldItem[];
                prefix: Ref<string, string>;
                select: (evt: number[]) => void;
                selected: Ref<number[], number[]>;
                suffix: Ref<string, string>;
                text: Ref<string, string>;
            }[],
        >;
    }
    | RenderFunction
    | Promise<
        {
            cron: Ref<string, string>;
            error: Ref<string, string>;
            period: {
                items: { id: string; text: any; value: string[] }[];
                prefix: Ref<string, string>;
                select: (periodId: string) => void;
                selected: Ref<
                    | { id: string; text?: string; value: string[] }
                    | { id: string; text: any; value: string[] },

                        | Period
                        | { id: string; text: any; value: string[] }
                        | { id: string; text?: string; value: string[] }
                        | { id: string; text: any; value: string[] },
                >;
                suffix: Ref<string, string>;
            };
            segments: {
                cron: Ref<string, string>;
                error: Ref<string, string>;
                id: string;
                items: FieldItem[];
                prefix: Ref<string, string>;
                select: (evt: number[]) => void;
                selected: Ref<number[], number[]>;
                suffix: Ref<string, string>;
                text: Ref<string, string>;
            }[];
            selected: ComputedRef<
                {
                    cron: Ref<string, string>;
                    error: Ref<string, string>;
                    id: string;
                    items: FieldItem[];
                    prefix: Ref<string, string>;
                    select: (evt: number[]) => void;
                    selected: Ref<number[], number[]>;
                    suffix: Ref<string, string>;
                    text: Ref<string, string>;
                }[],
            >;
        },
    >
    slots?: {}
    style?: unknown
    template?: string | object
    watch?: ComponentWatchOptions
    • Type Parameters

      • T extends string | ((...args: any) => any)

      Parameters

      • source: T
      • cb: T extends (...args: any) => R
            ? (...args: [R, R, OnCleanup]) => any
            : (...args: [any, any, OnCleanup]) => any
      • Optionaloptions: WatchOptions<boolean>

      Returns WatchStopHandle

    • Returns any

    • Returns any

    • Returns any

      use beforeUnmount instead

    • Returns any

    • Returns any

    • Returns any

    • Returns any

    • Returns any

    • Returns any

      use unmounted instead

    • Returns any

    • Returns void | Promise<any>

    • Returns any

    • Returns any