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) => {
disabled={!!values.id}
placeholder={l('catalog.type.placeholder')}
rules={[{ required: true, message: l('catalog.type.placeholder') }]}
allowClear={false}
/>
)}
<ProFormText
......@@ -166,26 +167,24 @@ const JobModal: React.FC<JobModalProps> = (props) => {
};
return (
<>
<ModalForm<Catalogue>
title={title}
form={form}
width={'30%'}
initialValues={{ ...values }}
open={modalVisible}
layout={'horizontal'}
autoFocusFirstInput
onValuesChange={onValuesChange}
modalProps={{
destroyOnClose: true,
maskClosable: false,
onCancel: handleCancel
}}
onFinish={async (values) => submitForm(values)}
>
{renderForm()}
</ModalForm>
</>
<ModalForm<Catalogue>
title={title}
form={form}
width={'30%'}
initialValues={{ ...values }}
open={modalVisible}
layout={'horizontal'}
autoFocusFirstInput
onValuesChange={onValuesChange}
modalProps={{
destroyOnClose: true,
maskClosable: false,
onCancel: handleCancel
}}
onFinish={async (values) => submitForm(values)}
>
{renderForm()}
</ModalForm>
);
};
......
......@@ -181,7 +181,7 @@ const MiddleContainer = (props: any) => {
position: 'fixed',
cursor: 'context-menu',
width: '10vw',
zIndex: 9999,
zIndex: 999,
left: info.clientX + 10, // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置
top: info.clientY + 10 // + 10 是为了让鼠标不至于在选中的节点上 && 不遮住当前鼠标位置
});
......
......@@ -45,7 +45,7 @@ const LangSwitch = () => {
top: 10,
right: 10,
borderRadius: token.borderRadius,
zIndex: 9999,
zIndex: 999,
':hover': {
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