-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
281 additions
and
12 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,118 @@ | ||
--- | ||
title: commonUI - UI 组件库 | ||
sidebar_position: 11 | ||
--- | ||
|
||
## 简介 | ||
CommonUI API 是一个专为低代码引擎设计的组件 UI 库,使用它开发的插件,可以保证在不同项目和主题切换中能够保持一致性和兼容性。 | ||
|
||
## 组件列表 | ||
|
||
### Tip | ||
|
||
提示组件 | ||
|
||
| 参数 | 说明 | 类型 | 默认值 | | ||
|-----------|--------------|---------------------------------------|--------| | ||
| className | className | string (optional) | | | ||
| children | tip 的内容 | IPublicTypeI18nData \| ReactNode | | | ||
| direction | tip 的方向 | 'top' \| 'bottom' \| 'left' \| 'right' | | | ||
|
||
|
||
### Title | ||
|
||
标题组件 | ||
|
||
| 参数 | 说明 | 类型 | 默认值 | | ||
|-----------|------------|-----------------------------|--------| | ||
| title | 标题内容 | IPublicTypeTitleContent | | | ||
| className | className | string (optional) | | | ||
| onClick | 点击事件 | () => void (optional) | | | ||
|
||
### Balloon | ||
详细文档: [Balloon Documentation](https://fusion.design/pc/component/balloon) | ||
|
||
### Breadcrumb | ||
详细文档: [Breadcrumb Documentation](https://fusion.design/pc/component/breadcrumb) | ||
|
||
### Button | ||
详细文档: [Button Documentation](https://fusion.design/pc/component/button) | ||
|
||
### Card | ||
详细文档: [Card Documentation](https://fusion.design/pc/component/card) | ||
|
||
### Checkbox | ||
详细文档: [Checkbox Documentation](https://fusion.design/pc/component/checkbox) | ||
|
||
### DatePicker | ||
详细文档: [DatePicker Documentation](https://fusion.design/pc/component/datepicker) | ||
|
||
### Dialog | ||
详细文档: [Dialog Documentation](https://fusion.design/pc/component/dialog) | ||
|
||
### Dropdown | ||
详细文档: [Dropdown Documentation](https://fusion.design/pc/component/dropdown) | ||
|
||
### Form | ||
详细文档: [Form Documentation](https://fusion.design/pc/component/form) | ||
|
||
### Icon | ||
详细文档: [Icon Documentation](https://fusion.design/pc/component/icon) | ||
|
||
引擎默认主题支持的 icon 列表:https://fusion.design/64063/component/icon?themeid=20133 | ||
|
||
|
||
### Input | ||
详细文档: [Input Documentation](https://fusion.design/pc/component/input) | ||
|
||
### Loading | ||
详细文档: [Loading Documentation](https://fusion.design/pc/component/loading) | ||
|
||
### Message | ||
详细文档: [Message Documentation](https://fusion.design/pc/component/message) | ||
|
||
### Overlay | ||
详细文档: [Overlay Documentation](https://fusion.design/pc/component/overlay) | ||
|
||
### Pagination | ||
详细文档: [Pagination Documentation](https://fusion.design/pc/component/pagination) | ||
|
||
### Radio | ||
详细文档: [Radio Documentation](https://fusion.design/pc/component/radio) | ||
|
||
### Search | ||
详细文档: [Search Documentation](https://fusion.design/pc/component/search) | ||
|
||
### Select | ||
详细文档: [Select Documentation](https://fusion.design/pc/component/select) | ||
|
||
### SplitButton | ||
详细文档: [SplitButton Documentation](https://fusion.design/pc/component/splitbutton) | ||
|
||
### Step | ||
详细文档: [Step Documentation](https://fusion.design/pc/component/step) | ||
|
||
### Switch | ||
详细文档: [Switch Documentation](https://fusion.design/pc/component/switch) | ||
|
||
### Tab | ||
详细文档: [Tab Documentation](https://fusion.design/pc/component/tab) | ||
|
||
### Table | ||
详细文档: [Table Documentation](https://fusion.design/pc/component/table) | ||
|
||
### Tree | ||
详细文档: [Tree Documentation](https://fusion.design/pc/component/tree) | ||
|
||
### TreeSelect | ||
详细文档: [TreeSelect Documentation](https://fusion.design/pc/component/treeselect) | ||
|
||
### Upload | ||
详细文档: [Upload Documentation](https://fusion.design/pc/component/upload) | ||
|
||
### Divider | ||
详细文档: [Divider Documentation](https://fusion.design/pc/component/divider) | ||
|
||
## 说明 | ||
|
||
如果需要其他组件,可以提issue给我们 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { IPublicApiCommonUI } from '@alilc/lowcode-types'; | ||
import { | ||
Tip as InnerTip, | ||
Title as InnerTitle, | ||
} from '@alilc/lowcode-editor-core'; | ||
import { Balloon, Breadcrumb, Button, Card, Checkbox, DatePicker, Dialog, Dropdown, Form, Icon, Input, Loading, Message, Overlay, Pagination, Radio, Search, Select, SplitButton, Step, Switch, Tab, Table, Tree, TreeSelect, Upload, Divider } from '@alifd/next'; | ||
|
||
export class CommonUI implements IPublicApiCommonUI { | ||
Balloon = Balloon; | ||
Breadcrumb = Breadcrumb; | ||
Button = Button; | ||
Card = Card; | ||
Checkbox = Checkbox; | ||
DatePicker = DatePicker; | ||
Dialog = Dialog; | ||
Dropdown = Dropdown; | ||
Form = Form; | ||
Icon = Icon; | ||
Input = Input; | ||
Loading = Loading; | ||
Message = Message; | ||
Overlay = Overlay; | ||
Pagination = Pagination; | ||
Radio = Radio; | ||
Search = Search; | ||
Select = Select; | ||
SplitButton = SplitButton; | ||
Step = Step; | ||
Switch = Switch; | ||
Tab = Tab; | ||
Table = Table; | ||
Tree = Tree; | ||
TreeSelect = TreeSelect; | ||
Upload = Upload; | ||
Divider = Divider; | ||
|
||
get Tip() { | ||
return InnerTip; | ||
} | ||
get Title() { | ||
return InnerTitle; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { IPublicTypeTitleContent } from '../type'; | ||
import { Balloon, Breadcrumb, Button, Card, Checkbox, DatePicker, Dialog, Dropdown, Form, Icon, Input, Loading, Message, Overlay, Pagination, Radio, Search, Select, SplitButton, Step, Switch, Tab, Table, Tree, TreeSelect, Upload, Divider } from '@alifd/next'; | ||
|
||
export interface IPublicApiCommonUI { | ||
Balloon: typeof Balloon; | ||
Breadcrumb: typeof Breadcrumb; | ||
Button: typeof Button; | ||
Card: typeof Card; | ||
Checkbox: typeof Checkbox; | ||
DatePicker: typeof DatePicker; | ||
Dialog: typeof Dialog; | ||
Dropdown: typeof Dropdown; | ||
Form: typeof Form; | ||
Icon: typeof Icon; | ||
Input: typeof Input; | ||
Loading: typeof Loading; | ||
Message: typeof Message; | ||
Overlay: typeof Overlay; | ||
Pagination: typeof Pagination; | ||
Radio: typeof Radio; | ||
Search: typeof Search; | ||
Select: typeof Select; | ||
SplitButton: typeof SplitButton; | ||
Step: typeof Step; | ||
Switch: typeof Switch; | ||
Tab: typeof Tab; | ||
Table: typeof Table; | ||
Tree: typeof Tree; | ||
TreeSelect: typeof TreeSelect; | ||
Upload: typeof Upload; | ||
Divider: typeof Divider; | ||
|
||
/** | ||
* Title 组件 | ||
* @experimental unstable API, pay extra caution when trying to use this | ||
*/ | ||
get Tip(): React.ComponentClass<{}>; | ||
|
||
/** | ||
* Tip 组件 | ||
* @experimental unstable API, pay extra caution when trying to use this | ||
*/ | ||
get Title(): React.ComponentClass<{ | ||
title: IPublicTypeTitleContent | undefined; | ||
match?: boolean; | ||
keywords?: string | null; | ||
}>; | ||
} |
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.