various-ui
Version:
This is a test version of the Vue 3 component library
32 lines (31 loc) • 1.08 kB
TypeScript
/// <reference types="node" />
import { UiFormItemProps } from "../index";
import { UiTypes } from "@various/constants";
export declare const useComposable: (define: UiFormItemProps) => {
data: {
[name: string]: any;
};
refs: {
verifyTimer: import("vue").Ref<NodeJS.Timeout | undefined, NodeJS.Timeout | undefined>;
visible: import("vue").Ref<boolean, boolean>;
content: import("vue").Ref<string, string>;
status: import("vue").Ref<UiTypes.type, UiTypes.type>;
};
rules: {
[name: string]: UiTypes.verifyRule[];
};
methods: {
show: (content: string, type?: UiTypes.type | undefined) => void;
hidden: () => void;
validator: (name?: string, callBack?: ((result: boolean) => void) | undefined) => Promise<void>;
};
emitter: import("mitt").Emitter<any> | undefined;
computeds: {
className: import("vue").ComputedRef<string>;
style: import("vue").ComputedRef<{
width: string;
} | {
width?: undefined;
}>;
};
};