-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor action, formHeader, selectionDropdown (#114)
* fix: add new action component * fix: refactor form header component and add documentation link * fix: refactor dropdown menu for selected item * fix: update * fix: add store variable in modelSetter * fix: code styles
- Loading branch information
Showing
21 changed files
with
388 additions
and
131 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
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,68 @@ | ||
import React from 'react'; | ||
import { Action } from '@music163/tango-ui'; | ||
import { PlusOutlined, QuestionCircleOutlined } from '@ant-design/icons'; | ||
import { Space } from 'antd'; | ||
|
||
export default { | ||
title: 'UI/Action', | ||
component: Action, | ||
}; | ||
|
||
export const Basic = { | ||
args: { | ||
icon: <PlusOutlined />, | ||
tooltip: '添加服务函数', | ||
}, | ||
}; | ||
|
||
export const Link = { | ||
args: { | ||
icon: <QuestionCircleOutlined />, | ||
tooltip: '查看帮助文档', | ||
href: 'https://music.163.com', | ||
}, | ||
}; | ||
|
||
export const Outline = { | ||
args: { | ||
icon: <PlusOutlined />, | ||
tooltip: '添加服务函数', | ||
shape: 'outline', | ||
}, | ||
}; | ||
|
||
export const Small = { | ||
args: { | ||
size: 'small', | ||
icon: <PlusOutlined />, | ||
tooltip: '添加服务函数', | ||
}, | ||
}; | ||
|
||
export const Disabled = () => { | ||
return ( | ||
<Space> | ||
<Action icon={<PlusOutlined />} tooltip="添加服务函数" disabled /> | ||
<Action icon={<PlusOutlined />} tooltip="添加服务函数" disabled shape="outline" /> | ||
<Action | ||
icon={<QuestionCircleOutlined />} | ||
tooltip="查看帮助文档" | ||
href="https://music.163.com" | ||
disabled | ||
/> | ||
</Space> | ||
); | ||
}; | ||
|
||
export const List = () => { | ||
return ( | ||
<Space> | ||
<Action icon={<PlusOutlined />} tooltip="添加服务函数" /> | ||
<Action | ||
icon={<QuestionCircleOutlined />} | ||
tooltip="查看帮助文档" | ||
href="https://music.163.com" | ||
/> | ||
</Space> | ||
); | ||
}; |
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 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 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.