UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

12 lines 367 B
/** * BaseSelect provide some parsed data into context. * You can use this hooks to get them. */ import { inject, provide } from 'vue'; const SelectContextKey = Symbol('SelectContextKey'); export function useProvideSelectProps(props) { return provide(SelectContextKey, props); } export default function useSelectProps() { return inject(SelectContextKey, {}); }