@@ -94,7 +94,7 @@ export default App;
9494``` tsx
9595import React , {useState } from " react" ;
9696import { Cell ,Dialog ,Image } from ' @nutui/nutui-react' ;
97- import { ArrowCornerLeft } from ' @nutui/icons-react'
97+ import { Close } from ' @nutui/icons-react'
9898
9999const App = () => {
100100 const [visible1, setVisible1] = useState (false );
@@ -174,23 +174,21 @@ const App = () => {
174174 { translated .content }
175175 </Dialog >
176176 <Cell
177- title = " Customize the top close button"
177+ title = " Customize the bottom close button"
178178 onClick = { () => {
179179 setVisible9 (true )
180180 }}
181181 />
182182 <Dialog
183183 className = " test-dialog"
184- title = " Customize the top close button"
184+ title = " Customize the bottom close button"
185185 visible = { visible9 }
186- closeIcon = { <ArrowCornerLeft width = " 16px " height = " 16px " />}
187- closeIconPosition = " top-left "
186+ closeIcon = { <Close width = " 24px " height = " 24px " />}
187+ closeIconPosition = " bottom "
188188 onConfirm = { () => setVisible9 (false )}
189189 onCancel = { () => setVisible9 (false )}
190190 style = { {
191- ' --nutui-dialog-close-top' : ' 10px' ,
192- ' --nutui-dialog-close-left' : ' 10px' ,
193- ' --nutui-dialog-close-color' : ' red' ,
191+ ' --nutui-dialog-close-color' : ' #FFFFFF' ,
194192 }}
195193 >
196194 { translated .content }
@@ -221,7 +219,7 @@ export default App;
221219| hideCancelButton | Whether to hide the cancel button | ` boolean ` | ` false ` |
222220| disableConfirmButton | Disable the OK button | ` boolean ` | ` false ` |
223221| closeIcon | Close button | ` boolean ` \| ` ReactNode ` | ` false ` |
224- | closeIconPosition | Close button position | ` top-left ` \| ` top-right ` | ` top-right ` |
222+ | closeIconPosition | Close button position | ` top-left ` \| ` top-right ` \| ` bottom ` | ` top-right ` |
225223| closeOnOverlayClick | Click on whether to close the dialog box | ` boolean ` | ` true ` |
226224| footerDirection | Use horizontal and vertical direction value selection horizontal、vertical | ` string ` | ` horizontal ` |
227225| lockScroll | Whether the background is locked | ` boolean ` | ` true ` |
0 commit comments