vxe-table
Version:
A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.
18 lines (17 loc) • 656 B
JavaScript
import { VxeUI } from '../ui';
import VxeColgroupComponent from '../table/src/group';
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
install(app) {
app.component(VxeColgroupComponent.name, VxeColgroupComponent);
// 兼容旧用法
app.component('VxeTableColgroup', VxeColgroupComponent);
}
});
if (VxeUI.dynamicApp) {
VxeUI.dynamicApp.component(VxeColgroupComponent.name, VxeColgroupComponent);
// 兼容旧用法
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent);
}
VxeUI.component(VxeColgroupComponent);
export const Colgroup = VxeColgroup;
export default VxeColgroup;