Skip to content

Commit

Permalink
types(row): correct childProvider type (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji authored Sep 23, 2024
1 parent d1bc44b commit 89e5d00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/varlet-ui/src/row/provide.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useChildren } from '@varlet/use'
import { type ColProvider } from '../col/provide'
import { ComputedRef } from 'vue'

export interface RowProvider {
Expand All @@ -9,7 +8,7 @@ export interface RowProvider {
export const ROW_BIND_COL_KEY = Symbol('ROW_BIND_COL_KEY')

export function useCols() {
const { length, childProviders: cols, bindChildren } = useChildren<RowProvider, ColProvider>(ROW_BIND_COL_KEY)
const { length, childProviders: cols, bindChildren } = useChildren<RowProvider, null>(ROW_BIND_COL_KEY)

return {
length,
Expand Down

0 comments on commit 89e5d00

Please sign in to comment.