import React, {Component} from 'react'; import { SortableContainer, SortableElement, SortableHandle, arrayMove, } from 'react-sortable-hoc'; import PropTypes from 'prop-types' import Select from 'react-select'; import axios from 'axios' const DragHandle = SortableHandle(() => (
)); // This can be any component you want class Part extends React.Component { static propTypes = { name: PropTypes.string, title: PropTypes.string, onChangeTitle: PropTypes.func, onChangeType: PropTypes.func }; render() { const {name, title, type, onChangeTitle, onChangeType} = this.props; const typeImageTable = [ '/img/scroll.png', '/img/grid.png', '/img/list.png', ]; const options = [ { value: 1, label: '横排(右滚动)' }, { value: 2, label: '多列(三列)' }, { value: 3, label: '竖排(下滚动)' } ]; return (