File tree Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
- import Draggable , { DraggableEventHandler , type DraggableProps } from 'react-draggable' ;
2
+ import Draggable , { type DraggableEventHandler , type DraggableProps } from 'react-draggable' ;
3
3
import classNames from 'classnames' ;
4
4
5
5
import useMergeOption , { MergeOption } from './useMergeOption' ;
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
2
import { Button } from 'antd' ;
3
3
import { Modal , Resize , useModal } from 'dt-react-component' ;
4
- import { RectState } from 'dt-react-component/modal' ;
4
+ import type { RectState } from 'dt-react-component/modal' ;
5
5
6
6
export default function Basic ( ) {
7
7
const modal = useModal < void > ( ) ;
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
2
import { Button , Space } from 'antd' ;
3
3
import { Modal } from 'dt-react-component' ;
4
- import { IModalProps } from 'dt-react-component/modal' ;
4
+ import type { IModalProps } from 'dt-react-component/modal' ;
5
5
6
6
export default function Size ( ) {
7
7
const [ visible , setVisible ] = useState ( false ) ;
Original file line number Diff line number Diff line change 1
1
import React , { useRef , useState } from 'react' ;
2
- import { ResizeHandle } from 'react-resizable' ;
3
2
import { Button } from 'antd' ;
4
3
import { Modal , Resize } from 'dt-react-component' ;
5
- import { RectState } from 'dt-react-component/modal' ;
4
+ import type { RectState , ResizeHandle } from 'dt-react-component/modal' ;
6
5
7
6
export default function Basic ( ) {
8
7
const [ visible , setVisible ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Object.assign(Modal, {
25
25
config,
26
26
} ) ;
27
27
28
- export { IModalProps } from './modal' ;
28
+ export type { IModalProps , RectState } from './modal' ;
29
+ export type { ResizeHandle } from 'react-resizable' ;
29
30
30
31
export default Modal ;
Original file line number Diff line number Diff line change @@ -132,10 +132,12 @@ export default function InternalModal({
132
132
style = { { height : final . height , width : final . width } }
133
133
width = { final . width }
134
134
modalRender = { handleRenderModal }
135
+ maskClosable = { false }
135
136
{ ...rest }
136
137
>
137
138
{ banner && (
138
139
< Alert
140
+ className = "dtc-modal-alert"
139
141
message = { isValidBanner ( banner ) ? banner : banner . message }
140
142
banner
141
143
{ ...( isValidBanner ( banner ) ? { } : omit ( banner , 'message' ) ) }
You can’t perform that action at this time.
0 commit comments