File tree Expand file tree Collapse file tree 21 files changed +185
-37
lines changed
example/src/commonMain/kotlin/component
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp Expand file tree Collapse file tree 21 files changed +185
-37
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 | 否 |
Original file line number Diff line number Diff 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 | 否 |
Original file line number Diff line number Diff 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 | 否 |
You can’t perform that action at this time.
0 commit comments