fix: col error when not in row
							parent
							
								
									617e534fda
								
							
						
					
					
						commit
						a2e5d966e1
					
				| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					import { computed } from 'vue';
 | 
				
			||||||
import { Ref, inject, InjectionKey, provide, ComputedRef } from 'vue';
 | 
					import { Ref, inject, InjectionKey, provide, ComputedRef } from 'vue';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface RowContext {
 | 
					export interface RowContext {
 | 
				
			||||||
| 
						 | 
					@ -13,7 +14,11 @@ const useProvideRow = (state: RowContext) => {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const useInjectRow = () => {
 | 
					const useInjectRow = () => {
 | 
				
			||||||
  return inject(RowContextKey);
 | 
					  return inject(RowContextKey, {
 | 
				
			||||||
 | 
					    gutter: computed(() => undefined),
 | 
				
			||||||
 | 
					    wrap: computed(() => undefined),
 | 
				
			||||||
 | 
					    supportFlexGap: computed(() => undefined),
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export { useInjectRow, useProvideRow };
 | 
					export { useInjectRow, useProvideRow };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue