| | |
| | | import React, {Component} from 'react' |
| | | import { Modal, Button, Row, Col, Input, message, Tabs, Empty, Pagination, notification } from 'antd' |
| | | import { Modal, Button, Row, Col, Input, message, Tabs, Empty, Pagination, notification, Typography } from 'antd' |
| | | import { PlusOutlined, CopyOutlined, EditOutlined, DeleteOutlined, PictureOutlined } from '@ant-design/icons' |
| | | |
| | | import Api from '@/api' |
| | | import Utils from '@/utils/utils.js' |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | import { minkeIconSystem } from '@/utils/option.js' |
| | | import MkIcon from '@/components/mk-icon' |
| | | import './index.scss' |
| | | |
| | | const { Search } = Input |
| | | const { confirm } = Modal |
| | | const { TabPane } = Tabs |
| | | const { Paragraph } = Typography |
| | | |
| | | const EditForm = asyncComponent(() => import('./editform')) |
| | | const Video = asyncComponent(() => import('./video')) |
| | |
| | | colorlist: [], |
| | | piclist: [], |
| | | vidlist: [], |
| | | iconlist: [...minkeIconSystem.direction, ...minkeIconSystem.edit, ...minkeIconSystem.normal, ...minkeIconSystem.data, ...minkeIconSystem.hint], |
| | | picIndex: 1, |
| | | vidIndex: 1, |
| | | } |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { visible, editvisible, card, filpictures, filvideos, piclist, vidlist, imageKey, videoKey, pageSize, picIndex, vidIndex, colorlist } = this.state |
| | | const { visible, editvisible, card, filpictures, filvideos, piclist, vidlist, imageKey, videoKey, pageSize, picIndex, vidIndex, colorlist, iconlist } = this.state |
| | | |
| | | return ( |
| | | <div style={{display: 'inline-block'}}> |
| | |
| | | <Col span={4} key={item.id}> |
| | | <div className="image-video-box"> |
| | | <div className="image-video-box-body"> |
| | | <Image url={item.linkurl} /> |
| | | <Image url={item.linkurl.replace(/@mywebsite@\//ig, window.GLOB.baseurl)} /> |
| | | </div> |
| | | <div className="image-video-control"> |
| | | <CopyOutlined onClick={() => this.copySource(item)}/> |
| | |
| | | {!colorlist.length ? <Empty description={null}/> : null} |
| | | </Row> |
| | | </TabPane> |
| | | <TabPane tab="图标库" key="icon"> |
| | | <Row gutter={16}> |
| | | {iconlist.map(item => ( |
| | | <Col className="icon-wrap" span={4} key={item}> |
| | | <MkIcon type={item} /> |
| | | <Paragraph copyable={{ text: item }}>{item}</Paragraph> |
| | | </Col> |
| | | ))} |
| | | </Row> |
| | | </TabPane> |
| | | </Tabs> |
| | | </Modal> |
| | | <Modal |