UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

12 lines (11 loc) 451 B
import type { Ref } from 'vue'; import type { FieldNames } from '../Select'; /** * Parse `children` to `options` if `options` is not provided. * Then flatten the `options`. */ export default function useOptions<OptionType>(options: Ref<OptionType[]>, children: Ref<any>, fieldNames: Ref<FieldNames>): { options: import("vue").ShallowRef<any>; valueOptions: import("vue").ShallowRef<any>; labelOptions: import("vue").ShallowRef<any>; };