|
@@ -1,7 +1,6 @@
|
|
|
/* eslint-disable */
|
|
/* eslint-disable */
|
|
|
/** 此处组件应用的是完全的modalRender */
|
|
/** 此处组件应用的是完全的modalRender */
|
|
|
|
|
|
|
|
-import { createUid } from '@/utils/utils'
|
|
|
|
|
import { PropsWithChildren } from 'react'
|
|
import { PropsWithChildren } from 'react'
|
|
|
import { useDispatch } from 'umi'
|
|
import { useDispatch } from 'umi'
|
|
|
import { CloseOutlined } from '@ant-design/icons'
|
|
import { CloseOutlined } from '@ant-design/icons'
|
|
@@ -12,7 +11,6 @@ interface CustomModalProps {
|
|
|
}
|
|
}
|
|
|
const CustomModal = ({ title, children }) => {
|
|
const CustomModal = ({ title, children }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
- const uid = createUid(10)
|
|
|
|
|
const closeModal = () => {
|
|
const closeModal = () => {
|
|
|
dispatch({
|
|
dispatch({
|
|
|
type: 'single/changeModal'
|
|
type: 'single/changeModal'
|