qnn-react-cron icon indicating copy to clipboard operation
qnn-react-cron copied to clipboard

1.0.3版本 类型声明文件问题

Open wangs1203 opened this issue 2 years ago • 0 comments

[email protected]

import QnnReactCron from 'qnn-react-cron';

<QnnReactCron // JSX element type 'QnnReactCron' does not have any construct or call signatures.
  value={value}
  onOk={(value) => {
    console.log('cron:', value);
  }}
  getCronFns={(_cronFns) => {
    cronFns = _cronFns;
  }}
  footer={[
    <Button
      key="cencel"
      style={{ marginRight: 10 }}
      onClick={() => {
        setValue(null);
      }}
    >
      重置
    </Button>,
    <Button
      key="getValue"
      type="primary"
      onClick={() => {
        setValue(cronFns.getValue());
      }}
    >
      生成
    </Button>,
  ]}
/>

报错 JSX element type 'QnnReactCron' does not have any construct or call signatures.

wangs1203 avatar Sep 13 '22 09:09 wangs1203