import type { App } from 'vue' ; import type { ArcoOptions } from '../_utils/types' ; import { setGlobalConfig , getComponentPrefix } from '../_utils/global-config' ; import _GridRow from './grid-row.vue' ; import _GridCol from './grid-col.vue' ; import { Grid as _Grid } from './grid' ; import _GridItem from './grid-item' ; const Grid = Object . assign ( _Grid , { Row : _GridRow , Col : _GridCol , Item : _GridItem , install : ( app , options ? ) => { setGlobalConfig ( app , options ) ; const componentPrefix = getComponentPrefix ( options ) ; app . component ( componentPrefix + _GridRow . name , _GridRow ) ; app . component ( componentPrefix + _GridCol . name , _GridCol ) ; app . component ( componentPrefix + _Grid . displayName , _Grid ) ; app . component ( componentPrefix + _GridItem . name , _GridItem ) ; } } ) ; export { _GridRow as Row , _GridCol as Col , _GridItem as GridItem } ; export default Grid ;