소스 검색

feat: 1111

lanjianrong 5 년 전
부모
커밋
01b7d6fe06
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/pages/workbench/Dashboard/index.jsx

+ 2 - 4
src/pages/workbench/Dashboard/index.jsx

@@ -45,9 +45,6 @@ const Dashboard = () => {
   // 展示卡片详情
   const handleRatioCard = dataType => {
     setModalProps({
-      zIndex: '1100',
-      closable: true,
-      onClose: () => toggleModal(),
       width: '90vw',
       modalRender: () => (
         <RatioPanels
@@ -56,7 +53,8 @@ const Dashboard = () => {
           retioCyclical={state.params.cyclical}
           dataPermission={state.params.dataPermission}
         />
-      )
+      ),
+      onCancel: () => toggleModal()
     })
     toggleModal()
   }