useOptions.d.ts 451 B

1234567891011
  1. import type { Ref } from 'vue';
  2. import type { FieldNames } from '../Select';
  3. /**
  4. * Parse `children` to `options` if `options` is not provided.
  5. * Then flatten the `options`.
  6. */
  7. export default function useOptions<OptionType>(options: Ref<OptionType[]>, children: Ref<any>, fieldNames: Ref<FieldNames>): {
  8. options: import("vue").ShallowRef<any>;
  9. valueOptions: import("vue").ShallowRef<any>;
  10. labelOptions: import("vue").ShallowRef<any>;
  11. };