mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-14 12:02:13 +08:00
初始化3.0.0版本
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { Dropdown, Input } from 'knowdesign';
|
||||
import Cron from 'react-cron-antd';
|
||||
// import QnnReactCron, { CronProps, CronFns } from "qnn-react-cron";
|
||||
import './style/CronInput.less';
|
||||
interface PropsType extends React.HTMLAttributes<HTMLDivElement> {
|
||||
onChange?: Function
|
||||
value?: boolean;
|
||||
}
|
||||
|
||||
const CronInput: React.FC<PropsType> = (props) => {
|
||||
const { value, onChange } = props;
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
trigger={['click']}
|
||||
placement="bottomLeft"
|
||||
overlayClassName="cron-input-dropDown"
|
||||
overlay={<Cron className="cron-input" style={{ width: '553px' }} value={value} onOk={onChange} />}
|
||||
>
|
||||
<Input value={value} placeholder="请输入任务周期" />
|
||||
</Dropdown>
|
||||
);
|
||||
}
|
||||
|
||||
export default CronInput;
|
||||
Reference in New Issue
Block a user