UNPKG

tyh-ui2

Version:

The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.

65 lines (64 loc) 2.27 kB
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, CSSProperties } from 'vue'; declare const _sfc_main: DefineComponent<{ readonly modelValue: BooleanConstructor; readonly closeColor: { readonly type: StringConstructor; readonly default: () => string; }; readonly openColor: { readonly type: StringConstructor; readonly default: () => string; }; readonly closeText: StringConstructor; readonly openText: StringConstructor; readonly disabled: BooleanConstructor; readonly width: { readonly type: NumberConstructor; readonly default: () => number; }; }, { prop: Readonly<{ disabled: boolean; "onUpdate:modelValue": ((...args: any[]) => any) | undefined; modelValue: boolean; width: number; onChange: ((...args: any[]) => any) | undefined; closeColor: string; openColor: string; closeText: string | undefined; openText: string | undefined; }>; emit: (event: "update:modelValue" | "change", ...args: any[]) => void; switchValue: Ref<boolean>; clickSwitch: () => void; switchColor: ComputedRef<string>; switchStyle: ComputedRef<CSSProperties>; switchRollStyle: ComputedRef<CSSProperties>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{ readonly modelValue?: unknown; readonly closeColor?: unknown; readonly openColor?: unknown; readonly closeText?: unknown; readonly openText?: unknown; readonly disabled?: unknown; readonly width?: unknown; } & { disabled: boolean; modelValue: boolean; width: number; closeColor: string; openColor: string; } & { closeText?: string | undefined; openText?: string | undefined; }> & { "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; onChange?: ((...args: any[]) => any) | undefined; }, { disabled: boolean; modelValue: boolean; width: number; closeColor: string; openColor: string; }>; export default _sfc_main;