Skip to content

Commit a2e5d96

Browse files
committed
fix: col error when not in row
1 parent 617e534 commit a2e5d96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/grid/context.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { computed } from 'vue';
12
import { Ref, inject, InjectionKey, provide, ComputedRef } from 'vue';
23

34
export interface RowContext {
@@ -13,7 +14,11 @@ const useProvideRow = (state: RowContext) => {
1314
};
1415

1516
const useInjectRow = () => {
16-
return inject(RowContextKey);
17+
return inject(RowContextKey, {
18+
gutter: computed(() => undefined),
19+
wrap: computed(() => undefined),
20+
supportFlexGap: computed(() => undefined),
21+
});
1722
};
1823

1924
export { useInjectRow, useProvideRow };

0 commit comments

Comments
 (0)