index.d.ts 849 B

123456789101112131415161718
  1. import type { FormItemContext } from 'element-plus/es/tokens';
  2. import type { ComputedRef, Ref } from 'vue';
  3. export declare const useFormItem: () => {
  4. form: import("element-plus/es/tokens").FormContext | undefined;
  5. formItem: FormItemContext | undefined;
  6. };
  7. export declare type IUseFormItemInputCommonProps = {
  8. id?: string;
  9. label?: string | number | boolean | Record<string, any>;
  10. };
  11. export declare const useFormItemInputId: (props: Partial<IUseFormItemInputCommonProps>, { formItemContext, disableIdGeneration, disableIdManagement, }: {
  12. formItemContext?: FormItemContext | undefined;
  13. disableIdGeneration?: Ref<boolean> | ComputedRef<boolean> | undefined;
  14. disableIdManagement?: Ref<boolean> | ComputedRef<boolean> | undefined;
  15. }) => {
  16. isLabeledByFormItem: ComputedRef<boolean>;
  17. inputId: Ref<string | undefined>;
  18. };