@douxcode/vue-spring-bottom-sheet 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,14 +90,27 @@ For Nuxt 3, just wrap component in `<client-only>`
|
|
|
90
90
|
|
|
91
91
|
## Props
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
93
|
+
### Prop Definitions
|
|
94
|
+
|
|
95
|
+
| Prop | Type | Description | Example |
|
|
96
|
+
| ------------------- | -------- | ----------------------------------------------------------------------------- | -------------------------------- |
|
|
97
|
+
| snapPoints | Number[] | Defines custom snapping positions for the bottom sheet | `:snapPoints="[300, 600, 900]"` |
|
|
98
|
+
| defaultSnapPoint | Number | Specifies the default snap point | `:default-snap-point="600"` |
|
|
99
|
+
| blocking | Boolean | Controls whether the bottom sheet blocks interactions with underlying content | `:blocking="true"` |
|
|
100
|
+
| canSwipeClose | Boolean | Enables or disables swipe gestures for closing the sheet | `:can-swipe-close="true"` |
|
|
101
|
+
| canOverlayClose | Boolean | Allows tapping the overlay to close the sheet | `:can-overlay-close="true"` |
|
|
102
|
+
| expandOnContentDrag | Boolean | Enables expanding the sheet by dragging its content | `:expand-on-content-drag="true"` |
|
|
103
|
+
|
|
104
|
+
### Default Values
|
|
105
|
+
|
|
106
|
+
| Prop | Default |
|
|
107
|
+
| ------------------- | -------------------------- |
|
|
108
|
+
| snapPoints | `minHeight` |
|
|
109
|
+
| defaultSnapPoint | `minHeight / minSnapPoint` |
|
|
110
|
+
| blocking | `true` |
|
|
111
|
+
| canSwipeClose | `true` |
|
|
112
|
+
| canOverlayClose | `true` |
|
|
113
|
+
| expandOnContentDrag | `true` |
|
|
101
114
|
|
|
102
115
|
## Exposed methods
|
|
103
116
|
|