import type { App } from 'vue' ; import type { ArcoOptions } from '../_utils/types' ; import { getComponentPrefix , setGlobalConfig } from '../_utils/global-config' ; import _Table from './table' ; import _Thead from './table-thead.vue' ; import _Tbody from './table-tbody.vue' ; import _Tr from './table-tr.vue' ; import _Th from './table-th' ; import _Td from './table-td' ; import _Column from './table-column' ; const Table = Object . assign ( _Table , { Thead : _Thead , Tbody : _Tbody , Tr : _Tr , Th : _Th , Td : _Td , Column : _Column , install : ( app , options ? ) => { setGlobalConfig ( app , options ) ; const componentPrefix = getComponentPrefix ( options ) ; app . component ( componentPrefix + _Table . name , _Table ) ; app . component ( componentPrefix + _Thead . name , _Thead ) ; app . component ( componentPrefix + _Tbody . name , _Tbody ) ; app . component ( componentPrefix + _Tr . name , _Tr ) ; app . component ( componentPrefix + _Th . name , _Th ) ; app . component ( componentPrefix + _Td . name , _Td ) ; app . component ( componentPrefix + _Column . name , _Column ) ; } } ) ; export type TableInstance = InstanceType < typeof _Table > ; export { _Thead as Thead , _Tbody as Tbody , _Tr as Tr , _Th as Th , _Td as Td , _Column as TableColumn , } ; export default Table ;