File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/commonMain/kotlin/top/yukonga/miuix/kmp/extra Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,10 @@ android {
5757 defaultConfig {
5858 minSdk = libs.versions.android.minSdk.get().toInt()
5959 }
60+ }
61+
62+ compose.resources {
63+ publicResClass = false
64+ packageOfResClass = " top.yukonga.miuix.kmp.resources"
65+ generateResClass = auto
6066}
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ import top.yukonga.miuix.kmp.utils.MiuixPopupUtil.Companion.dismissPopup
8080import top.yukonga.miuix.kmp.utils.MiuixPopupUtil.Companion.showPopup
8181import top.yukonga.miuix.kmp.utils.SmoothRoundedCornerShape
8282import top.yukonga.miuix.kmp.utils.getWindowSize
83- import xiaomihelper. miuix.generated .resources.Res
84- import xiaomihelper. miuix.generated .resources.button_cancel
83+ import top.yukonga. miuix.kmp .resources.Res
84+ import top.yukonga. miuix.kmp .resources.button_cancel
8585import kotlin.math.roundToInt
8686
8787@Composable
@@ -96,6 +96,7 @@ fun SuperSpinner(
9696 summaryColor : BasicComponentColors = BasicComponentDefaults .summaryColor(),
9797 mode : SpinnerMode = SpinnerMode .Dropdown ,
9898 horizontalPadding : Dp = 0.dp,
99+ leftAction : @Composable (() -> Unit )? = null,
99100 insideMargin : PaddingValues = BasicComponentDefaults .InsideMargin ,
100101 defaultWindowInsetsPadding : Boolean = true,
101102 enabled : Boolean = true,
@@ -157,6 +158,7 @@ fun SuperSpinner(
157158 titleColor = titleColor,
158159 summary = summary,
159160 summaryColor = summaryColor,
161+ leftAction = leftAction,
160162 rightActions = {
161163 if (showValue) {
162164 Text (
You can’t perform that action at this time.
0 commit comments