diff --git a/packages/tabbar/en-US.md b/packages/tabbar/en-US.md index 13028873d..0dc825120 100644 --- a/packages/tabbar/en-US.md +++ b/packages/tabbar/en-US.md @@ -69,6 +69,7 @@ export default { |------|------|------|------| | v-model | Index of current tab | `Number` | - | | fixed | Whether to fixed bottom | `Boolean` | `true` | +| safe-area-inset-bottom | Whether to iPhone X bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `Boolean` | `false` | 1.6.15 | | z-index | Z-index | `Number` | `1` | | active-color | Color of active tab item | `String` | `#1989fa` | diff --git a/packages/tabbar/index.js b/packages/tabbar/index.js index 5b414ccb2..01e004ea6 100644 --- a/packages/tabbar/index.js +++ b/packages/tabbar/index.js @@ -16,6 +16,10 @@ export default sfc({ type: Boolean, default: true }, + safeAreaInsetBottom: { + type: Boolean, + default: false + }, zIndex: { type: Number, default: 1 @@ -51,7 +55,13 @@ export default sfc({ return (