@@ -2,7 +2,7 @@ import { createCell, Fragment } from 'web-cell';
22import classNames from 'classnames' ;
33import { Button } from 'boot-cell/source/Form/Button' ;
44import { TooltipBox } from 'boot-cell/source/Prompt/Tooltip' ;
5- import { DropMenu , DropMenuProps } from 'boot-cell/source/Navigator/DropMenu' ;
5+ import { DropMenu , DropMenuItem } from 'boot-cell/source/Navigator/DropMenu' ;
66import { Embed } from 'boot-cell/source/Media/Embed' ;
77import { Image } from 'boot-cell/source/Media/Image' ;
88
@@ -12,7 +12,7 @@ import { WebCell_1 } from '../image';
1212
1313export function MainPage ( ) {
1414 return (
15- < Fragment >
15+ < >
1616 < section className = "position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light" >
1717 < div className = "col-md-5 p-lg-5 mx-auto my-5" >
1818 < p >
@@ -28,11 +28,13 @@ export function MainPage() {
2828 在线体验
2929 </ Button >
3030 < TooltipBox text = "需先登录 GitHub" >
31- < DropMenu
32- buttonKind = "success"
33- title = "新建项目"
34- list = { scaffold as DropMenuProps [ 'list' ] }
35- />
31+ < DropMenu buttonColor = "success" caption = "新建项目" >
32+ { scaffold . map ( ( { title, ...rest } ) => (
33+ < DropMenuItem { ...rest } >
34+ { title }
35+ </ DropMenuItem >
36+ ) ) }
37+ </ DropMenu >
3638 </ TooltipBox >
3739 </ div >
3840 </ div >
@@ -58,7 +60,7 @@ export function MainPage() {
5860 < h2 className = "text-center display-4 mb-5" > 核心特性</ h2 >
5961
6062 { feature . map ( ( { title, summary, link, logo } , index ) => (
61- < Fragment >
63+ < >
6264 < section
6365 className = { classNames (
6466 'row' ,
@@ -89,9 +91,9 @@ export function MainPage() {
8991 ) }
9092 />
9193 ) : null }
92- </ Fragment >
94+ </ >
9395 ) ) }
9496 </ div >
95- </ Fragment >
97+ </ >
9698 ) ;
9799}
0 commit comments