File tree Expand file tree Collapse file tree 6 files changed +164
-148
lines changed
example/src/commonMain/kotlin
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 6 files changed +164
-148
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ Surface(
4747
4848### Additional Properties for Clickable Surface
4949
50- | Property Name | Type | Description | Default Value | Required |
51- | ------------- | ---------- | -------------------------------- | ------------- | -------- |
52- | onClick | () -> Unit | Callback triggered on click | - | Yes |
53- | enabled | Boolean | Whether the Surface is clickable | true | No |
50+ | Property Name | Type | Description | Default Value | Required |
51+ | ----------------- | ------------------------- | ------------------------------------ | ------------- | -------- |
52+ | onClick | () -> Unit | Callback triggered on click | - | Yes |
53+ | enabled | Boolean | Whether the component is clickable | true | No |
54+ | interactionSource | MutableInteractionSource? | Interaction source for the component | null | No |
5455
5556## Advanced Usage
5657
Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ Surface(
4747
4848### 可点击 Surface 额外属性
4949
50- | 属性名 | 类型 | 说明 | 默认值 | 是否必须 |
51- | ------- | ---------- | ------------------------- | ------ | -------- |
52- | onClick | () -> Unit | 点击 Surface 时触发的回调 | - | 是 |
53- | enabled | Boolean | Surface 是否可点击 | true | 否 |
50+ | 属性名 | 类型 | 说明 | 默认值 | 是否必须 |
51+ | ----------------- | ------------------------- | -------------------- | ------ | -------- |
52+ | onClick | () -> Unit | 点击组件时触发的回调 | - | 是 |
53+ | enabled | Boolean | 组件是否可点击 | true | 否 |
54+ | interactionSource | MutableInteractionSource? | 组件的交互源 | null | 否 |
5455
5556## 进阶用法
5657
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ data class UIState(
8989 val floatingToolbarOrientation : Int = 1 ,
9090 val showFloatingActionButton : Boolean = false ,
9191 val floatingActionButtonPosition : Int = 2 ,
92- val enablePageUserScroll : Boolean = false ,
92+ val enablePageUserScroll : Boolean = true ,
9393 val scrollEndHaptic : Boolean = true
9494)
9595
@@ -220,7 +220,6 @@ fun UITest(
220220 exit = fadeOut()
221221 ) {
222222 FloatingToolbar (
223- color = Color .Transparent ,
224223 cornerRadius = 20 .dp
225224 ) {
226225 AnimatedContent (
Original file line number Diff line number Diff line change 1717 <key >CFBundleShortVersionString </key >
1818 <string >1.0.4 </string >
1919 <key >CFBundleVersion </key >
20- <string >487 </string >
20+ <string >488 </string >
2121 <key >LSRequiresIPhoneOS </key >
2222 <true />
2323 <key >CADisableMinimumFrameDurationOnPhone </key >
You can’t perform that action at this time.
0 commit comments