| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Select, Tooltip, Input } from 'antd' |
| | | import { Form, Row, Col, Select, Tooltip, Input, InputNumber } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | |
| | | import './index.scss' |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | {timer ? <Col span={22}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="定时器执行次数。注:0表示没有限制。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 执行次数 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('timerRepeats', { |
| | | initialValue: config.timerRepeats || 0, |
| | | })(<InputNumber min={0} max={500} precision={0} />)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {(config.subtype === 'balcony' || config.subtype === 'propcard') && timer ? <Col span={22}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="可以指定字段用于控制定时器的关闭。"> |