@@ -6,6 +6,7 @@ sidebar_position: 10
6
6
> ** @since ** v1.3.0
7
7
8
8
## 简介
9
+
9
10
CommonUI API 是一个专为低代码引擎设计的组件 UI 库,使用它开发的插件,可以保证在不同项目和主题切换中能够保持一致性和兼容性。
10
11
11
12
## 组件列表
@@ -14,51 +15,50 @@ CommonUI API 是一个专为低代码引擎设计的组件 UI 库,使用它开
14
15
15
16
提示组件
16
17
17
- | 参数 | 说明 | 类型 | 默认值 |
18
- | -----------| --------------| ---------------------------------------| --------|
19
- | className | className | string (optional) | |
20
- | children | tip 的内容 | IPublicTypeI18nData \| ReactNode | |
21
- | direction | tip 的方向 | 'top' \| 'bottom' \| 'left' \| 'right' | |
22
-
18
+ | 参数 | 说明 | 类型 | 默认值 |
19
+ | --------- | ---------- | -------------------------------------- | ------ |
20
+ | className | className | string (optional) | |
21
+ | children | tip 的内容 | IPublicTypeI18nData \| ReactNode | |
22
+ | direction | tip 的方向 | 'top' \| 'bottom' \| 'left' \| 'right' | |
23
23
24
24
### HelpTip
25
25
26
26
带 help icon 的提示组件
27
27
28
- | 参数 | 说明 | 类型 | 默认值 |
29
- | ----------- | -------- | ----------------------------------- | -------- |
30
- | help | 描述 | IPublicTypeHelpTipConfig | |
31
- | direction | 方向 | IPublicTypeTipConfig[ 'direction'] | 'top' |
32
- | size | 方向 | IconProps[ 'size'] | 'small'|
28
+ | 参数 | 说明 | 类型 | 默认值 |
29
+ | --------- | ---- | --------------------------------- | ------- |
30
+ | help | 描述 | IPublicTypeHelpTipConfig | |
31
+ | direction | 方向 | IPublicTypeTipConfig[ 'direction'] | 'top' |
32
+ | size | 方向 | IconProps[ 'size'] | 'small' |
33
33
34
34
### Title
35
35
36
36
标题组件
37
37
38
- | 参数 | 说明 | 类型 | 默认值 |
39
- | ----------- | ------------ | ----------------------------- | -------- |
40
- | title | 标题内容 | IPublicTypeTitleContent | |
41
- | className | className | string (optional) | |
42
- | onClick | 点击事件 | () => void (optional) | |
38
+ | 参数 | 说明 | 类型 | 默认值 |
39
+ | --------- | --------- | ----------------------- | ------ |
40
+ | title | 标题内容 | IPublicTypeTitleContent | |
41
+ | className | className | string (optional) | |
42
+ | onClick | 点击事件 | () => void (optional) | |
43
43
44
44
### ContextMenu
45
45
46
- | 参数 | 说明 | 类型 | 默认值 |
47
- | --------| ---------------------------------------------------- | ------------------------------------ | -------- |
48
- | menus | 定义上下文菜单的动作数组 | IPublicTypeContextMenuAction[ ] | |
49
- | children | 组件的子元素 | React.ReactElement[ ] | |
46
+ | 参数 | 说明 | 类型 | 默认值 |
47
+ | -------- | ------------------------ | ------------------------------ | ------ |
48
+ | menus | 定义上下文菜单的动作数组 | IPublicTypeContextMenuAction[ ] | |
49
+ | children | 组件的子元素 | React.ReactElement[ ] | |
50
50
51
51
** IPublicTypeContextMenuAction Interface**
52
52
53
- | 参数 | 说明 | 类型 | 默认值 |
54
- | ------------| --------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------------| ----------------------------------------|
55
- | name | 动作的唯一标识符<br />Unique identifier for the action | string | |
56
- | title | 显示的标题,可以是字符串或国际化数据<br />Display title, can be a string or internationalized data | string \| IPublicTypeI18nData (optional) | |
57
- | type | 菜单项类型<br />Menu item type | IPublicEnumContextMenuType (optional) | IPublicEnumContextMenuType.MENU_ITEM |
58
- | action | 点击时执行的动作,可选<br />Action to execute on click, optional | (nodes: IPublicModelNode[ ] ) => void (optional) | |
59
- | items | 子菜单项或生成子节点的函数,可选,仅支持两级<br />Sub-menu items or function to generate child node, optional | Omit<IPublicTypeContextMenuAction, 'items'>[ ] \ | ((nodes: IPublicModelNode[ ] ) => Omit<IPublicTypeContextMenuAction, 'items'>[ ] ) (optional) | |
60
- | condition | 显示条件函数<br />Function to determine display condition | (nodes: IPublicModelNode[ ] ) => boolean (optional) | |
61
- | disabled | 禁用条件函数,可选<br />Function to determine disabled condition, optional | (nodes: IPublicModelNode[ ] ) => boolean (optional) | |
53
+ | 参数 | 说明 | 类型 | 默认值 |
54
+ | --------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------ | --- |
55
+ | name | 动作的唯一标识符<br />Unique identifier for the action | string | |
56
+ | title | 显示的标题,可以是字符串或国际化数据 <br /> Display title, can be a string or internationalized data | string \| IPublicTypeI18nData (optional) | |
57
+ | type | 菜单项类型 <br /> Menu item type | IPublicEnumContextMenuType (optional) | IPublicEnumContextMenuType.MENU_ITEM |
58
+ | action | 点击时执行的动作,可选<br />Action to execute on click, optional | (nodes: IPublicModelNode[ ] ) => void (optional) | |
59
+ | items | 子菜单项或生成子节点的函数,可选,仅支持两级 <br /> Sub-menu items or function to generate child node, optional | ` Omit<IPublicTypeContextMenuAction, 'items'>[ ] | ((nodes: IPublicModelNode[ ] ) => Omit<IPublicTypeContextMenuAction, 'items'>[ ] ) (optional)` | |
60
+ | condition | 显示条件函数 <br /> Function to determine display condition | (nodes: IPublicModelNode[ ] ) => boolean (optional) | |
61
+ | disabled | 禁用条件函数,可选<br />Function to determine disabled condition, optional | (nodes: IPublicModelNode[ ] ) => boolean (optional) | |
62
62
63
63
** ContextMenu 示例**
64
64
@@ -127,84 +127,109 @@ export default App;
127
127
详细文档: [ Balloon Documentation] ( https://fusion.design/pc/component/balloon )
128
128
129
129
### Breadcrumb
130
+
130
131
详细文档: [ Breadcrumb Documentation] ( https://fusion.design/pc/component/breadcrumb )
131
132
132
133
### Button
134
+
133
135
详细文档: [ Button Documentation] ( https://fusion.design/pc/component/button )
134
136
135
137
### Card
138
+
136
139
详细文档:[ Card Documentation] ( https://fusion.design/pc/component/card )
137
140
138
141
### Checkbox
142
+
139
143
详细文档:[ Checkbox Documentation] ( https://fusion.design/pc/component/checkbox )
140
144
141
145
### DatePicker
146
+
142
147
详细文档:[ DatePicker Documentation] ( https://fusion.design/pc/component/datepicker )
143
148
144
149
### Dialog
150
+
145
151
详细文档:[ Dialog Documentation] ( https://fusion.design/pc/component/dialog )
146
152
147
153
### Dropdown
154
+
148
155
详细文档:[ Dropdown Documentation] ( https://fusion.design/pc/component/dropdown )
149
156
150
157
### Form
158
+
151
159
详细文档:[ Form Documentation] ( https://fusion.design/pc/component/form )
152
160
153
161
### Icon
162
+
154
163
详细文档:[ Icon Documentation] ( https://fusion.design/pc/component/icon )
155
164
156
165
引擎默认主题支持的 icon 列表:https://fusion.design/64063/component/icon?themeid=20133
157
166
158
-
159
167
### Input
168
+
160
169
详细文档:[ Input Documentation] ( https://fusion.design/pc/component/input )
161
170
162
171
### Loading
172
+
163
173
详细文档:[ Loading Documentation] ( https://fusion.design/pc/component/loading )
164
174
165
175
### Message
176
+
166
177
详细文档:[ Message Documentation] ( https://fusion.design/pc/component/message )
167
178
168
179
### Overlay
180
+
169
181
详细文档:[ Overlay Documentation] ( https://fusion.design/pc/component/overlay )
170
182
171
183
### Pagination
184
+
172
185
详细文档:[ Pagination Documentation] ( https://fusion.design/pc/component/pagination )
173
186
174
187
### Radio
188
+
175
189
详细文档:[ Radio Documentation] ( https://fusion.design/pc/component/radio )
176
190
177
191
### Search
192
+
178
193
详细文档:[ Search Documentation] ( https://fusion.design/pc/component/search )
179
194
180
195
### Select
196
+
181
197
详细文档:[ Select Documentation] ( https://fusion.design/pc/component/select )
182
198
183
199
### SplitButton
200
+
184
201
详细文档:[ SplitButton Documentation] ( https://fusion.design/pc/component/splitbutton )
185
202
186
203
### Step
204
+
187
205
详细文档:[ Step Documentation] ( https://fusion.design/pc/component/step )
188
206
189
207
### Switch
208
+
190
209
详细文档:[ Switch Documentation] ( https://fusion.design/pc/component/switch )
191
210
192
211
### Tab
212
+
193
213
详细文档:[ Tab Documentation] ( https://fusion.design/pc/component/tab )
194
214
195
215
### Table
216
+
196
217
详细文档:[ Table Documentation] ( https://fusion.design/pc/component/table )
197
218
198
219
### Tree
220
+
199
221
详细文档:[ Tree Documentation] ( https://fusion.design/pc/component/tree )
200
222
201
223
### TreeSelect
224
+
202
225
详细文档:[ TreeSelect Documentation] ( https://fusion.design/pc/component/treeselect )
203
226
204
227
### Upload
228
+
205
229
详细文档:[ Upload Documentation] ( https://fusion.design/pc/component/upload )
206
230
207
231
### Divider
232
+
208
233
详细文档:[ Divider Documentation] ( https://fusion.design/pc/component/divider )
209
234
210
235
## 说明
0 commit comments