mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
fix: col error when not in row
This commit is contained in:
parent
617e534fda
commit
a2e5d966e1
@ -1,3 +1,4 @@
|
||||
import { computed } from 'vue';
|
||||
import { Ref, inject, InjectionKey, provide, ComputedRef } from 'vue';
|
||||
|
||||
export interface RowContext {
|
||||
@ -13,7 +14,11 @@ const useProvideRow = (state: RowContext) => {
|
||||
};
|
||||
|
||||
const useInjectRow = () => {
|
||||
return inject(RowContextKey);
|
||||
return inject(RowContextKey, {
|
||||
gutter: computed(() => undefined),
|
||||
wrap: computed(() => undefined),
|
||||
supportFlexGap: computed(() => undefined),
|
||||
});
|
||||
};
|
||||
|
||||
export { useInjectRow, useProvideRow };
|
||||
|
Loading…
Reference in New Issue
Block a user