77 Flex ,
88 FloatButton ,
99 Masonry ,
10- Modal ,
1110 Splitter ,
1211 Tag ,
1312 Tour ,
@@ -22,7 +21,6 @@ import SiteContext from '../../../theme/slots/SiteContext';
2221import { DarkContext } from './../../../hooks/useDark' ;
2322import { getCarouselStyle } from './util' ;
2423
25- const { _InternalPanelDoNotUseOrYouWillBeFired : ModalDoNotUseOrYouWillBeFired } = Modal ;
2624const { _InternalPanelDoNotUseOrYouWillBeFired : DatePickerDoNotUseOrYouWillBeFired } = DatePicker ;
2725const { _InternalPanelDoNotUseOrYouWillBeFired : TourDoNotUseOrYouWillBeFired } = Tour ;
2826const { _InternalPanelDoNotUseOrYouWillBeFired : FloatButtonDoNotUseOrYouWillBeFired } = FloatButton ;
@@ -149,17 +147,18 @@ const ComponentsList: React.FC = () => {
149147 const { styles } = useStyle ( ) ;
150148 const [ locale ] = useLocale ( locales ) ;
151149 const { isMobile } = React . use ( SiteContext ) ;
150+ const isDark = React . use ( DarkContext ) ;
152151 const COMPONENTS = React . useMemo < Omit < ComponentItemProps , 'index' > [ ] > (
153152 ( ) => [
154- {
155- title : 'Modal' ,
156- type : 'update' ,
157- node : (
158- < ModalDoNotUseOrYouWillBeFired title = "Ant Design" width = { 300 } >
159- { locale . sampleContent }
160- </ ModalDoNotUseOrYouWillBeFired >
161- ) ,
162- } ,
153+ // {
154+ // title: 'Modal',
155+ // type: 'update',
156+ // node: (
157+ // <ModalDoNotUseOrYouWillBeFired title="Ant Design" width={300}>
158+ // {locale.sampleContent}
159+ // </ModalDoNotUseOrYouWillBeFired>
160+ // ),
161+ // },
163162
164163 {
165164 title : 'DatePicker' ,
@@ -253,10 +252,11 @@ const ComponentsList: React.FC = () => {
253252 type : 'new' ,
254253 node : (
255254 < Splitter
255+ orientation = "vertical"
256256 style = { {
257- height : 200 ,
258- width : 300 ,
259- backgroundColor : '#fff ',
257+ height : 320 ,
258+ width : 200 ,
259+ background : isDark ? '#1f1f1f' : '#ffffff ',
260260 boxShadow : '0 0 10px rgba(0, 0, 0, 0.1)' ,
261261 } }
262262 >
@@ -286,7 +286,10 @@ const ComponentsList: React.FC = () => {
286286 < Masonry
287287 columns = { 2 }
288288 gutter = { 8 }
289- style = { { width : '300px' , height : '320px' } }
289+ style = { {
290+ width : 300 ,
291+ height : 320 ,
292+ } }
290293 items = { [
291294 { key : '1' , data : 80 } ,
292295 { key : '2' , data : 60 } ,
@@ -321,6 +324,7 @@ const ComponentsList: React.FC = () => {
321324 // },
322325 ] ,
323326 [
327+ isDark ,
324328 isMobile ,
325329 locale . inProgress ,
326330 locale . lastMonth ,
0 commit comments