ivue-material-plus
Version:
A high quality UI components Library with Vue.js
19 lines (18 loc) • 820 B
TypeScript
import type { ComputedRef, Ref } from 'vue';
import { FormItemContext } from '../../components/ivue-form/types/form-item';
export declare const useFormItem: () => {
form: import("../../components/ivue-form/types/form").FormContext;
formItem: FormItemContext;
};
export declare type IUseFormItemInputCommonProps = {
id?: string;
label?: string | number | boolean | Record<string, any>;
};
export declare const useFormItemInputId: (props: Partial<IUseFormItemInputCommonProps>, { formItemContext, disableIdGeneration, disableIdManagement, }: {
formItemContext?: FormItemContext;
disableIdGeneration?: ComputedRef<boolean> | Ref<boolean>;
disableIdManagement?: ComputedRef<boolean> | Ref<boolean>;
}, slots?: any) => {
isLabeledByFormItem: ComputedRef<boolean>;
inputId: Ref<string>;
};