Skip to content

Commit 334abf2

Browse files
committed
library: refactor SuperBottomSheet component
1 parent c4d1e4c commit 334abf2

File tree

4 files changed

+214
-111
lines changed

4 files changed

+214
-111
lines changed

docs/components/superbottomsheet.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Scaffold {
5252
| rightAction | @Composable (() -> Unit?)? | Optional composable for right action (e.g., submit button) | null | No |
5353
| backgroundColor | Color | Bottom sheet background color | SuperBottomSheetDefaults.backgroundColor() | No |
5454
| enableWindowDim | Boolean | Whether to enable dimming layer | true | No |
55-
| onDismissRequest | (() -> Unit)? | Callback when bottom sheet is closed | null | No |
55+
| cornerRadius | Dp | Corner radius of the top corners | SuperBottomSheetDefaults.cornerRadius | No |
56+
| onDismissRequest | (() -> Unit)? | Callback when bottom sheet is dismissed | null | No |
5657
| outsideMargin | DpSize | Bottom sheet external margin | SuperBottomSheetDefaults.outsideMargin | No |
5758
| insideMargin | DpSize | Bottom sheet internal content margin | SuperBottomSheetDefaults.insideMargin | No |
5859
| defaultWindowInsetsPadding | Boolean | Whether to apply default window insets padding | true | No |
@@ -65,10 +66,11 @@ The SuperBottomSheetDefaults object provides default settings for the SuperBotto
6566

6667
#### Properties
6768

68-
| Property Name | Type | Description |
69-
| ------------- | ------ | -------------------------------------- |
70-
| outsideMargin | DpSize | Default bottom sheet external margin |
71-
| insideMargin | DpSize | Default bottom sheet internal margin |
69+
| Property Name | Type | Description |
70+
| -------------- | ------ | -------------------------------------- |
71+
| cornerRadius | Dp | Default corner radius (28.dp) |
72+
| outsideMargin | DpSize | Default bottom sheet external margin |
73+
| insideMargin | DpSize | Default bottom sheet internal margin |
7274

7375
#### Functions
7476

docs/zh_CN/components/superbottomsheet.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Scaffold {
5252
| rightAction | @Composable (() -> Unit?)? | 可选的右侧操作按钮(例如提交按钮) | null ||
5353
| backgroundColor | Color | 底部抽屉背景色 | SuperBottomSheetDefaults.backgroundColor() ||
5454
| enableWindowDim | Boolean | 是否启用遮罩层 | true ||
55+
| cornerRadius | Dp | 顶部圆角半径 | SuperBottomSheetDefaults.cornerRadius ||
5556
| onDismissRequest | (() -> Unit)? | 底部抽屉关闭时的回调函数 | null ||
5657
| outsideMargin | DpSize | 底部抽屉外部边距 | SuperBottomSheetDefaults.outsideMargin ||
5758
| insideMargin | DpSize | 底部抽屉内部内容的边距 | SuperBottomSheetDefaults.insideMargin ||
@@ -65,10 +66,11 @@ SuperBottomSheetDefaults 对象提供了 SuperBottomSheet 组件的默认设置
6566

6667
#### 属性
6768

68-
| 属性名 | 类型 | 说明 |
69-
| ------------- | ------ | ---------------------- |
70-
| outsideMargin | DpSize | 底部抽屉外部默认边距 |
71-
| insideMargin | DpSize | 底部抽屉内部默认边距 |
69+
| 属性名 | 类型 | 说明 |
70+
| ------------- | ------ | --------------------------- |
71+
| cornerRadius | Dp | 默认圆角半径 (28.dp) |
72+
| outsideMargin | DpSize | 底部抽屉外部默认边距 |
73+
| insideMargin | DpSize | 底部抽屉内部默认边距 |
7274

7375
#### 函数
7476

iosApp/iosApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>1.0.4</string>
1919
<key>CFBundleVersion</key>
20-
<string>560</string>
20+
<string>561</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>CADisableMinimumFrameDurationOnPhone</key>

0 commit comments

Comments
 (0)