-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from dancing-team/develop
Develop
- Loading branch information
Showing
29 changed files
with
1,072 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@dance-ui/ui': patch | ||
'@dance-ui/example': patch | ||
--- | ||
|
||
fix: Button styles & Tab Indicator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@dance-ui/ui': minor | ||
'@dance-ui/example': minor | ||
'@dance-ui/demo': minor | ||
--- | ||
|
||
新增 RadioGroup 组件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
190 changes: 104 additions & 86 deletions
190
packages/components/src/FloatButtonGroup/demo/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,136 @@ | ||
import React from 'react'; | ||
import FloatButtonGroup from '../../FloatButtonGroup'; | ||
import { configItemType } from '../../FloatButtonGroup'; | ||
import { IconType } from '../../Icon'; | ||
import Icon from '../../Icon'; | ||
import './index.css'; | ||
import React from 'react' | ||
import FloatButtonGroup from '../../FloatButtonGroup' | ||
import { configItemType } from '../../FloatButtonGroup' | ||
import { IconType } from '../../Icon' | ||
import Icon from '../../Icon' | ||
|
||
const TBconfigs: configItemType[] = [ | ||
{ | ||
description: '淘宝', | ||
type: "link", | ||
action: { | ||
href: "www.taobao.com", | ||
target: '_blank' | ||
} | ||
{ | ||
description: '淘宝', | ||
type: 'link', | ||
action: { | ||
href: 'www.taobao.com', | ||
target: '_blank', | ||
}, | ||
{ | ||
description: "按钮", | ||
type: "button", | ||
action: { | ||
onClick: () => { | ||
alert("淘宝风格"); | ||
} | ||
} | ||
}, | ||
{ | ||
description: '按钮', | ||
type: 'button', | ||
action: { | ||
onClick: () => { | ||
alert('淘宝风格') | ||
}, | ||
}, | ||
{ | ||
description: "电脑", | ||
type: "elevator", | ||
action: { | ||
top: 1300 | ||
} | ||
}, | ||
{ | ||
description: '电脑', | ||
type: 'elevator', | ||
action: { | ||
top: 1300, | ||
}, | ||
{ | ||
description: <> | ||
<div style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center' | ||
}}> | ||
<Icon type={IconType.LOADING} style={{ fontSize: 16, color: 'black' }} href={'https://github.com/dancing-team/dance-ui'} /> | ||
}, | ||
{ | ||
description: ( | ||
<> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
}}> | ||
<Icon | ||
type={IconType.LOADING} | ||
style={{ fontSize: 16, color: 'black' }} | ||
href={'https://github.com/dancing-team/dance-ui'} | ||
/> | ||
<div>回到顶部</div> | ||
</div> | ||
</>, | ||
type: "backTop", | ||
action: { | ||
visibleheight: 100, | ||
} | ||
} | ||
</> | ||
), | ||
type: 'backTop', | ||
action: { | ||
visibleheight: 100, | ||
}, | ||
}, | ||
] | ||
const JDconfigs: configItemType[] = [ | ||
{ | ||
description: '京东', | ||
type: "link", | ||
type: 'link', | ||
action: { | ||
href: "www.jd.com", | ||
target: '_blank' | ||
} | ||
href: 'www.jd.com', | ||
target: '_blank', | ||
}, | ||
}, | ||
{ | ||
description: "按钮", | ||
type: "button", | ||
description: '按钮', | ||
type: 'button', | ||
action: { | ||
onClick: () => { | ||
alert("京东风格"); | ||
} | ||
} | ||
alert('京东风格') | ||
}, | ||
}, | ||
}, | ||
{ | ||
description: "手机", | ||
type: "elevator", | ||
description: '手机', | ||
type: 'elevator', | ||
action: { | ||
top: 1000 | ||
} | ||
top: 1000, | ||
}, | ||
}, | ||
{ | ||
description: <> | ||
<div style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center' | ||
}}> | ||
<Icon type={IconType.LOADING} style={{ fontSize: 16, color: 'black' }} href={'https://github.com/dancing-team/dance-ui'} /> | ||
<div>回到顶部</div> | ||
</div> | ||
</>, | ||
type: "backTop", | ||
description: ( | ||
<> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
}}> | ||
<Icon | ||
type={IconType.LOADING} | ||
style={{ fontSize: 16, color: 'black' }} | ||
href={'https://github.com/dancing-team/dance-ui'} | ||
/> | ||
<div>回到顶部</div> | ||
</div> | ||
</> | ||
), | ||
type: 'backTop', | ||
action: { | ||
visibleheight: 300, | ||
} | ||
} | ||
}, | ||
}, | ||
] | ||
export default () => ( | ||
<div style={{ | ||
<div | ||
style={{ | ||
overflowY: 'auto', | ||
height: '500px', | ||
position: 'relative', | ||
}}> | ||
<div style={{ | ||
height: '2000px', | ||
width: '300px', | ||
background: 'green' | ||
<div | ||
style={{ | ||
height: '2000px', | ||
width: '300px', | ||
background: 'green', | ||
}}> | ||
<div | ||
style={{ | ||
height: '1000px', | ||
}}> | ||
<div style={{ | ||
height: '1000px' | ||
右侧悬浮按钮可操作此滚动盒子 | ||
<div | ||
style={{ | ||
color: '#fff', | ||
}}> | ||
右侧悬浮按钮可操作此滚动盒子 | ||
<div style={{ | ||
color: '#fff' | ||
}}> | ||
欢迎点击回到顶部按钮上的icon进入我们的github | ||
</div> | ||
</div> | ||
<div style={{height: '300px'}}>手机</div> | ||
<div>电脑</div> | ||
<FloatButtonGroup configs={TBconfigs} right='90px' top='400px' platformStyle="TaoBao"></FloatButtonGroup> | ||
<FloatButtonGroup configs={JDconfigs} right='165px' top='400px' platformStyle="JingDong"></FloatButtonGroup> | ||
欢迎点击回到顶部按钮上的icon进入我们的github | ||
</div> | ||
</div> | ||
<div style={{ height: '300px' }}>手机</div> | ||
<div>电脑</div> | ||
<FloatButtonGroup configs={TBconfigs} right="90px" top="400px" platformStyle="TaoBao"></FloatButtonGroup> | ||
<FloatButtonGroup configs={JDconfigs} right="165px" top="400px" platformStyle="JingDong"></FloatButtonGroup> | ||
</div> | ||
); | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
aed906f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dance-ui-example – ./
dance-ui-example.vercel.app
dance-ui-example-cosine.vercel.app
dance-ui-example-git-main-cosine.vercel.app
dance.cosine.ren