-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(vue/select): update api handling (#831)
* refactor(vue/select): update api handling * test(vue/select): add test for children in `SelectOption`
- Loading branch information
1 parent
96e4e3b
commit 30fd074
Showing
6 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { type connect } from '@zag-js/select' | ||
import { type ComputedRef } from 'vue' | ||
import { type ComputedRef, type UnwrapRef } from 'vue' | ||
import { createContext } from '../context' | ||
import { type UseSelectReturn } from './use-select' | ||
|
||
export const [SelectProvider, useSelectContext] = | ||
createContext<ComputedRef<ReturnType<typeof connect>>>('SelectContext') | ||
|
||
export type SelectContext = UseSelectReturn | ||
export type SelectContext = UnwrapRef<UseSelectReturn> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters