| | |
| | | import React from 'react' |
| | | import { useDrag, useDrop } from 'react-dnd' |
| | | import { Icon, Button, Popover, Switch, Checkbox, Form } from 'antd' |
| | | import { Icon, Button, Popover, Switch, Checkbox, Form, Rate } from 'antd' |
| | | import moment from 'moment' |
| | | |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | |
| | | </div> |
| | | </div> |
| | | </div>) |
| | | } else if (card.type === 'rate') { |
| | | formItem = (<div className={'am-list-item ' + (card.place || '')}><div className="am-list-line"><div className="am-input-label">{card.label}</div><div style={{textAlign: 'left'}} className={'am-input-control ' + (card.place === 'up_down' ? 'left' : '')}> |
| | | <Rate value={card.initval || 0} count={card.rateCount || 5} character={card.character ? <Icon type={card.character}/> : <Icon type="star" theme="filled"/>} allowHalf={card.allowHalf === 'true'} /> |
| | | </div></div></div>) |
| | | } else if (card.type === 'fileupload') { |
| | | formItem = ( |
| | | <div className="am-list-item checkbox"> |