| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Icon, Modal, Tooltip, notification } from 'antd' |
| | | import { Modal, Tooltip, notification } from 'antd' |
| | | import { QuestionCircleOutlined, PlusOutlined, CloseOutlined } from '@ant-design/icons' |
| | | |
| | | import SettingForm from './settingform' |
| | | import './index.scss' |
| | |
| | | <div className="url-field-component"> |
| | | <div className="field-plus"> |
| | | <Tooltip placement="topLeft" title="页面可接收的参数字段,在查询数据源或自定义脚本中使用 @字段@ 接收。"> |
| | | <Icon type="question-circle" /> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | url变量 |
| | | </Tooltip> |
| | | <Icon type="plus" title="添加" onClick={() => this.editDataSource()} /> |
| | | <PlusOutlined title="添加" onClick={() => this.editDataSource()} /> |
| | | </div> |
| | | <div> |
| | | {urlFields.map((field, index) => { |
| | | return ( |
| | | <div className="field-item" key={index}> |
| | | <Icon type="close" title="删除" onClick={() => this.deleteField(field)} /> |
| | | <CloseOutlined title="删除" onClick={() => this.deleteField(field)} /> |
| | | {field} |
| | | </div> |
| | | ) |