|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { createContext, useEffect, useState } from 'react';
|
|
|
|
|
import { ConfigProvider, Button, Form, Input, Flex, Checkbox, Switch, Mentions, Popover, Popconfirm, Select, Space, Upload } from 'antd';
|
|
|
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
|
|
|
import { ConfigProvider, Button, Form, Input, Flex, Checkbox, Switch, Mentions, Popover, Popconfirm, Select, Space, Upload, Divider } from 'antd';
|
|
|
|
|
import { DashOutlined, EllipsisOutlined, MenuOutlined, MoreOutlined, UploadOutlined } from '@ant-design/icons';
|
|
|
|
|
import Modal from '@dckj/react-better-modal';
|
|
|
|
|
import '@dckj/react-better-modal/dist/index.css';
|
|
|
|
|
import DnDModal from '@/components/DndModal';
|
|
|
|
@ -197,6 +197,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, reference, quote = {}, ini
|
|
|
|
|
<>
|
|
|
|
|
<ConfigProvider theme={{ token: { colorPrimary: '#6366f1' } }}>
|
|
|
|
|
<DnDModal
|
|
|
|
|
rootClassName='email-editor-wrapper !border-indigo-300 '
|
|
|
|
|
open={open}
|
|
|
|
|
setOpen={setOpen}
|
|
|
|
|
initial={{ top: isEmpty(reference) ? 20 : 74 }}
|
|
|
|
@ -244,10 +245,11 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, reference, quote = {}, ini
|
|
|
|
|
<Mentions // todo: 用客人列表
|
|
|
|
|
split='; '
|
|
|
|
|
options={[
|
|
|
|
|
{ value: 'afc163', label: 'afc163' },
|
|
|
|
|
{ value: 'lyt@hainatravel.com', label: 'OT' },
|
|
|
|
|
{ value: 'zombieJ', label: 'zombieJ' },
|
|
|
|
|
{ value: 'yesmeck', label: 'yesmeck' },
|
|
|
|
|
]}
|
|
|
|
|
placeholder='@'
|
|
|
|
|
/>
|
|
|
|
|
<Flex gap={4}>
|
|
|
|
|
{!showCc && (
|
|
|
|
@ -296,9 +298,26 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, reference, quote = {}, ini
|
|
|
|
|
valuePropName='fileList'
|
|
|
|
|
getValueFromEvent={normFile}
|
|
|
|
|
>
|
|
|
|
|
<Upload {...uploadProps} name='file' >
|
|
|
|
|
<Button icon={<UploadOutlined />}>附件</Button>
|
|
|
|
|
</Upload>
|
|
|
|
|
<Flex justify='space-between'>
|
|
|
|
|
<Upload {...uploadProps} name='file' className='w-full' >
|
|
|
|
|
<Button icon={<UploadOutlined />}>附件</Button>
|
|
|
|
|
</Upload>
|
|
|
|
|
<Flex align={'center'} className='absolute right-0'>
|
|
|
|
|
{/* todo: 添加图文集、支付链接 */}
|
|
|
|
|
<Divider type='vertical' />
|
|
|
|
|
<Button type={'link'}>图文集</Button>
|
|
|
|
|
<Button type={'link'}>支付链接</Button>
|
|
|
|
|
{/* 更多工具 */}
|
|
|
|
|
{/* <Popover
|
|
|
|
|
content={
|
|
|
|
|
<div className='flex flex-col gap-2'>
|
|
|
|
|
<Button type={'link'}>??</Button>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
trigger='click'
|
|
|
|
|
><MoreOutlined /></Popover> */}
|
|
|
|
|
</Flex>
|
|
|
|
|
</Flex>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item name='content' hidden>
|
|
|
|
|
<Input />
|
|
|
|
|