Unverified Commit 4064fc70 authored by Licho's avatar Licho Committed by GitHub

Fix tablez index (#2608)

* fix: change the max zIndex value to 999 * Spotless Apply --------- Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent e14afc22
...@@ -115,6 +115,7 @@ const JobModal: React.FC<JobModalProps> = (props) => { ...@@ -115,6 +115,7 @@ const JobModal: React.FC<JobModalProps> = (props) => {
disabled={!!values.id} disabled={!!values.id}
placeholder={l('catalog.type.placeholder')} placeholder={l('catalog.type.placeholder')}
rules={[{ required: true, message: l('catalog.type.placeholder') }]} rules={[{ required: true, message: l('catalog.type.placeholder') }]}
allowClear={false}
/> />
)} )}
<ProFormText <ProFormText
...@@ -166,26 +167,24 @@ const JobModal: React.FC<JobModalProps> = (props) => { ...@@ -166,26 +167,24 @@ const JobModal: React.FC<JobModalProps> = (props) => {
}; };
return ( return (
<> <ModalForm<Catalogue>
<ModalForm<Catalogue> title={title}
title={title} form={form}
form={form} width={'30%'}
width={'30%'} initialValues={{ ...values }}
initialValues={{ ...values }} open={modalVisible}
open={modalVisible} layout={'horizontal'}
layout={'horizontal'} autoFocusFirstInput
autoFocusFirstInput onValuesChange={onValuesChange}
onValuesChange={onValuesChange} modalProps={{
modalProps={{ destroyOnClose: true,
destroyOnClose: true, maskClosable: false,
maskClosable: false, onCancel: handleCancel
onCancel: handleCancel }}
}} onFinish={async (values) => submitForm(values)}
onFinish={async (values) => submitForm(values)} >
> {renderForm()}
{renderForm()} </ModalForm>
</ModalForm>
</>
); );
}; };
......
...@@ -181,7 +181,7 @@ const MiddleContainer = (props: any) => { ...@@ -181,7 +181,7 @@ const MiddleContainer = (props: any) => {
position: 'fixed', position: 'fixed',
cursor: 'context-menu', cursor: 'context-menu',
width: '10vw', width: '10vw',
zIndex: 9999, zIndex: 999,
left: info.clientX + 10, // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置 left: info.clientX + 10, // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置
top: info.clientY + 10 // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置 top: info.clientY + 10 // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置
}); });
......
...@@ -45,7 +45,7 @@ const LangSwitch = () => { ...@@ -45,7 +45,7 @@ const LangSwitch = () => {
top: 10, top: 10,
right: 10, right: 10,
borderRadius: token.borderRadius, borderRadius: token.borderRadius,
zIndex: 9999, zIndex: 999,
':hover': { ':hover': {
backgroundColor: token.colorBgTextHover backgroundColor: token.colorBgTextHover
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment