Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: list transitionDuration in props #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ yarn add @webzlodimir/vue-bottom-sheet-vue2
| z-index `v0.0.8` | Number | Set z-index of component card | `:z-index="1001"` | 99999 |
| custom-class `v0.0.8` | String | The component custom class name | `custom-class="custom-style"` | '' |
| drag-color `v0.0.8` | String | Drag the bar icon color | `drag-color="#ffc107"` | #333333 |
| transition-duration | Number | Transition animation duration | `:transition-duration="0.5"` | 0.5 |

## Events

Expand Down
1 change: 1 addition & 0 deletions README_CN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default {
| custom-class `v0.0.8` | String | 组件自定义类名 | `custom-class="custom-style"` | '' |
| init-sheet-height `v0.0.8` | Number | 设置窗口的初始高度,如果未设置,则采用内容高度 | `:init-sheet-height="300"` | - |
| z-index `v0.0.8` | Number | 设置窗口的z-index | `:z-index="1001"` | 99999 |
| transition-duration | Number | 过渡动画持续时间 | `:transition-duration="0.5"` | 0.5 |

### custom-class说明

Expand Down
6 changes: 5 additions & 1 deletion src/vue-bottom-sheet-vue2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ export default {
dragColor: {
type: String,
default: '#333333'
}
},
transitionDuration: {
type: Number,
default: 0.5,
},
},
data() {
return {
Expand Down