Skip to content

Commit 97d2fba

Browse files
committed
library: Add bottomAction param to BasicComponent
1 parent b36b92e commit 97d2fba

File tree

21 files changed

+185
-37
lines changed

21 files changed

+185
-37
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
os: ubuntu-latest
2121
- target: ':miuix:assembleAndroidTest'
2222
os: ubuntu-latest
23-
- target: ':miuix:jsBrowserTest'
23+
- target: ':miuix:wasmJsBrowserTest'
2424
os: ubuntu-latest
2525
runs-on: ${{ matrix.os }}
2626
steps:

docs/components/basiccomponent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ BasicComponent(
9595
| summaryColor | BasicComponentColors | Summary color configuration | BasicComponentDefaults.summaryColor() | No |
9696
| leftAction | @Composable (() -> Unit)? | Composable content on the left side of the component | null | No |
9797
| rightActions | @Composable (RowScope.() -> Unit)? | Composable content on the right side of the component | null | No |
98+
| bottomAction | @Composable (() -> Unit)? | Composable content at the bottom of the component | null | No |
9899
| modifier | Modifier | Modifier for the component | Modifier | No |
99100
| insideMargin | PaddingValues | Internal padding of the component | BasicComponentDefaults.InsideMargin | No |
100101
| onClick | (() -> Unit)? | Callback triggered when the component is clicked | null | No |

docs/components/superarrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Scaffold {
8383
| summaryColor | BasicComponentColors | Summary text color configuration | BasicComponentDefaults.summaryColor() | No |
8484
| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
8585
| rightActions | @Composable RowScope.() -> Unit | Custom right-side content (slot) | {} | No |
86+
| bottomAction | @Composable (() -> Unit)? | Custom bottom content | null | No |
8687
| modifier | Modifier | Modifier applied to component | Modifier | No |
8788
| insideMargin | PaddingValues | Internal content padding | BasicComponentDefaults.InsideMargin | No |
8889
| onClick | (() -> Unit)? | Callback triggered on click | null | No |
@@ -188,4 +189,3 @@ SuperArrow(
188189
}
189190
}
190191
```
191-

docs/components/supercheckbox.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ SuperCheckbox(
102102
| checkboxColors | CheckboxColors | Checkbox control color configuration | CheckboxDefaults.checkboxColors() | No |
103103
| rightActions | @Composable RowScope.() -> Unit | Custom content before checkbox | {} | No |
104104
| checkboxLocation | CheckboxLocation | Checkbox position | CheckboxLocation.Left | No |
105+
| bottomAction | @Composable (() -> Unit)? | Custom bottom content | null | No |
105106
| onClick | (() -> Unit)? | Additional callback on item click | null | No |
106107
| holdDownState | Boolean | Whether the component is held down | false | No |
107108
| insideMargin | PaddingValues | Internal content padding | BasicComponentDefaults.InsideMargin | No |

docs/components/superdropdown.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ SuperDropdown(
8282
| summaryColor | BasicComponentColors | Summary text color configuration | BasicComponentDefaults.summaryColor() | No |
8383
| dropdownColors | DropdownColors | Color configuration for dropdown | DropdownDefaults.dropdownColors() | No |
8484
| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
85+
| bottomAction | @Composable (() -> Unit)? | Custom bottom content | null | No |
8586
| modifier | Modifier | Modifier applied to the component | Modifier | No |
8687
| insideMargin | PaddingValues | Internal content padding | BasicComponentDefaults.InsideMargin | No |
8788
| maxHeight | Dp? | Maximum height of dropdown menu | null | No |

docs/components/superspinner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Scaffold {
144144
| summaryColor | BasicComponentColors | Summary text color config | BasicComponentDefaults.summaryColor() | No |
145145
| spinnerColors | SpinnerColors | Color configuration for spinner | SpinnerDefaults.spinnerColors() | No |
146146
| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
147+
| bottomAction | @Composable (() -> Unit)? | Custom bottom content | null | No |
147148
| modifier | Modifier | Component modifier | Modifier | No |
148149
| insideMargin | PaddingValues | Internal content padding | BasicComponentDefaults.InsideMargin | No |
149150
| maxHeight | Dp? | Maximum dropdown height | null | No |

docs/components/superswitch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ SuperSwitch(
6767
| summaryColor | BasicComponentColors | Summary text color configuration | BasicComponentDefaults.summaryColor() | No |
6868
| leftAction | @Composable (() -> Unit)? | Custom left content | null | No |
6969
| rightActions | @Composable RowScope.() -> Unit | Custom right content (before switch) | {} | No |
70+
| bottomAction | @Composable (() -> Unit)? | Custom bottom content | null | No |
7071
| switchColors | SwitchColors | Switch control color configuration | SwitchDefaults.switchColors() | No |
7172
| modifier | Modifier | Component modifier | Modifier | No |
7273
| insideMargin | PaddingValues | Component internal content padding | BasicComponentDefaults.InsideMargin | No |

docs/zh_CN/components/basiccomponent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ BasicComponent(
9595
| summaryColor | BasicComponentColors | 摘要颜色配置 | BasicComponentDefaults.summaryColor() ||
9696
| leftAction | @Composable (() -> Unit)? | 组件左侧的可组合内容 | null ||
9797
| rightActions | @Composable (RowScope.() -> Unit)? | 组件右侧的可组合内容 | null ||
98+
| bottomAction | @Composable (() -> Unit)? | 组件底部的可组合内容 | null ||
9899
| modifier | Modifier | 应用于组件的修饰符 | Modifier ||
99100
| insideMargin | PaddingValues | 组件内部边距 | BasicComponentDefaults.InsideMargin ||
100101
| onClick | (() -> Unit)? | 点击组件时触发的回调 | null ||

docs/zh_CN/components/superarrow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Scaffold {
8383
| summaryColor | BasicComponentColors | 摘要文本的颜色配置 | BasicComponentDefaults.summaryColor() ||
8484
| leftAction | @Composable (() -> Unit)? | 左侧自定义内容 | null ||
8585
| rightActions | @Composable RowScope.() -> Unit | 右侧自定义内容插槽(slot) | {} ||
86+
| bottomAction | @Composable (() -> Unit)? | 底部自定义内容 | null ||
8687
| modifier | Modifier | 应用于组件的修饰符 | Modifier ||
8788
| insideMargin | PaddingValues | 组件内部内容的边距 | BasicComponentDefaults.InsideMargin ||
8889
| onClick | (() -> Unit)? | 点击时触发的回调 | null ||

docs/zh_CN/components/supercheckbox.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ SuperCheckbox(
102102
| checkboxColors | CheckboxColors | 复选框控件的颜色配置 | CheckboxDefaults.checkboxColors() ||
103103
| rightActions | @Composable RowScope.() -> Unit | 右侧自定义内容(复选框前) | {} ||
104104
| checkboxLocation | CheckboxLocation | 复选框的位置 | CheckboxLocation.Left ||
105+
| bottomAction | @Composable (() -> Unit)? | 底部自定义内容 | null ||
105106
| onClick | (() -> Unit)? | 点击选项时触发的额外回调 | null ||
106107
| holdDownState | Boolean | 组件是否处于按下状态 | false ||
107108
| insideMargin | PaddingValues | 组件内部内容的边距 | BasicComponentDefaults.InsideMargin ||

0 commit comments

Comments
 (0)