mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +00:00
24 lines
446 B
JavaScript
24 lines
446 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
/* istanbul ignore file */
|
|
|
|
/**
|
|
* Select.OptionGroup
|
|
*/
|
|
export default class OptionGroup extends React.Component {
|
|
static propTypes = {
|
|
/**
|
|
* 设置分组的文案
|
|
*/
|
|
label: PropTypes.node,
|
|
children: PropTypes.any,
|
|
};
|
|
|
|
static _typeMark = 'next_select_option_group';
|
|
|
|
render() {
|
|
return this.props.children;
|
|
}
|
|
}
|