mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-04 00:37:08 +00:00
28 lines
510 B
JavaScript
28 lines
510 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
/* istanbul ignore file */
|
|
|
|
/**
|
|
* Select.Option
|
|
*/
|
|
export default class Option extends React.Component {
|
|
static propTypes = {
|
|
/**
|
|
* 选项值
|
|
*/
|
|
value: PropTypes.any.isRequired,
|
|
/**
|
|
* 是否禁用
|
|
*/
|
|
disabled: PropTypes.bool,
|
|
children: PropTypes.any,
|
|
};
|
|
|
|
static _typeMark = 'next_select_option';
|
|
|
|
render() {
|
|
return this.props.children;
|
|
}
|
|
}
|