antd/lib/select#SelectProps TypeScript Examples
The following examples show how to use
antd/lib/select#SelectProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: time-select.tsx From erda-ui with GNU Affero General Public License v3.0 | 6 votes |
AutoRefreshStrategy = (props: SelectProps<IRefreshStrategy>) => {
return (
<div className="auto-refresh relative hover:border-primary">
<Select defaultValue="off" bordered={false} dropdownMatchSelectWidth={false} {...props}>
<Option key="off" value="off">
OFF
</Option>
{map(autoRefreshDuration, (label, value) => {
return (
<Option key={value} value={value}>
{label}
</Option>
);
})}
</Select>
</div>
);
}