You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/utils.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Miuix provides a series of utility functions to help you develop applications mo
4
4
5
5
## Popup Utilities (MiuixPopupUtils)
6
6
7
-
`MiuixPopupUtils` is a utility class for displaying popup layout and dialog layout. This class is already integrated into the `Scaffold` component and can be used directly.
7
+
`MiuixPopupUtils` is a utility class for displaying dialog layout and popup layout. This class is already integrated into the `Scaffold` component and can be used directly.
8
8
9
9
If you use multiple Scaffolds, you need to set the `popupHost` parameter in the subordinate `Scaffold` to `null`.
10
10
@@ -15,17 +15,20 @@ If you use multiple Scaffolds, you need to set the `popupHost` parameter in the
15
15
val showDialogState = remember { mutableStateOf(false) }
16
16
17
17
DialogLayout(
18
-
visible = showDialogState, // MutableState<Boolean> to control dialog visibility
19
-
enterTransition = fadeIn(), // Optional, custom enter animation for dialog content
enableWindowDim =true, // Optional, whether to enable dimming layer, defaults to true
22
+
enableAutoLargeScreen =true, // Optional, whether to auto-detect large screen and adjust animations
23
+
dimEnterTransition = fadeIn(), // Optional, custom enter animation for dim layer
24
+
dimExitTransition = fadeOut(), // Optional, custom exit animation for dim layer
25
+
dimAlpha =null// Optional, MutableState<Float> to dynamically control dim layer alph (0f-1f)
24
26
) {
25
27
// Dialog content
26
28
}
27
29
```
28
-
Normally, you don't need to use it actively. See the [SuperDialog](../components/superdialog.md) documentation for details.
30
+
31
+
Normally, you don't need to use it actively. See the [SuperDialog](../components/superdialog.md) or [SuperBottomSheet](../components/basiccomponent.md) documentation for details.
29
32
30
33
### PopupLayout
31
34
@@ -34,13 +37,13 @@ Normally, you don't need to use it actively. See the [SuperDialog](../components
34
37
val showPopupState = remember { mutableStateOf(false) }
35
38
36
39
PopupLayout(
37
-
visible = showPopupState, // MutableState<Boolean> to control popup visibility
38
-
enterTransition = fadeIn(), // Optional, custom enter animation for dialog content
0 commit comments