perf: 输入

dev/emitter
Lei OT 10 months ago
parent 54c67d5428
commit 332dce179b

@ -189,7 +189,7 @@ const EmailComposer = ({ ...props }) => {
<Form.Item name='cc' className='hidden'></Form.Item>
<Form.Item name='bcc' className='hidden'></Form.Item>
<Form.Item name='subject' className='w-full' rules={[{ required: true, message: '' }]}>
<Input
<Input tabIndex={1}
className='rounded-b-none border-b-0 font-bold text-base text-indigo-600'
placeholder='*主题'
disabled={!talkabled} allowClear
@ -207,7 +207,7 @@ const EmailComposer = ({ ...props }) => {
/>
</Form.Item>
<Form.Item name='mailcontent' className='w-full' rules={[{ required: true, message: '' }]}>
<Input.TextArea
<Input.TextArea tabIndex={2}
allowClear
ref={textInputRef}
onFocus={() => handleFocus('mailcontent')}
@ -229,8 +229,8 @@ const EmailComposer = ({ ...props }) => {
{/* <div>{textPlaceHolder}</div> */}
{/* {quickValidateHelp} */}
</div>
<Select
disabled={!talkabled}
<Select className={mobile ? 'w-24' : ''}
disabled={!talkabled} popupMatchSelectWidth={false}
// size={'small'}
options={emailListOption}
labelInValue
@ -241,7 +241,7 @@ const EmailComposer = ({ ...props }) => {
}}
// variant={'borderless'}
/>
<Button icon={<SendOutlined />} type='primary' htmlType={'submit'} disabled={!talkabled} loading={sendLoading} _onClick={() => handleSendEmail()}>
<Button icon={<SendOutlined />} type='primary' htmlType={'submit'} disabled={!talkabled} loading={sendLoading} _onClick={() => handleSendEmail()} tabIndex={3}>
发送
</Button>
{/* <Button icon={<EditIcon />} type='primary' onClick={() => openEditor(pickEmail.key)}>

@ -17,7 +17,7 @@ const InputTemplate = ({ disabled = false, inputEmoji }) => {
overlayClassName='p-0'
placement='top'
arrow={false}
align={{offset: [-6, -100] }}
align={{offset: [-6, mobile ? -92 : -100] }}
// placement={mobile === false ? 'left' : 'top'}
overlayInnerStyle={{ padding: 0, borderRadius: '8px' }}
forceRender={true}

Loading…
Cancel
Save