mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +00:00
40 lines
698 B
JavaScript
40 lines
698 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
/**
|
|
* Table.ColumnGroup
|
|
* @order 1
|
|
**/
|
|
export default class ColumnGroup extends React.Component {
|
|
static propTypes = {
|
|
/**
|
|
* 表头显示的内容
|
|
*/
|
|
title: PropTypes.oneOfType([
|
|
PropTypes.element,
|
|
PropTypes.node,
|
|
PropTypes.func,
|
|
]),
|
|
};
|
|
|
|
static childContextTypes = {
|
|
parent: PropTypes.any,
|
|
};
|
|
|
|
static defaultProps = {
|
|
title: 'column-group',
|
|
};
|
|
|
|
static _typeMark = 'columnGroup';
|
|
|
|
getChildContext() {
|
|
return {
|
|
parent: this,
|
|
};
|
|
}
|
|
|
|
render() {
|
|
return null;
|
|
}
|
|
}
|