From 1e61215b48e59e94c1ed98e4ef956227d689d6bc Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 06 Nov 2023 08:48:39 +0800
Subject: [PATCH] fix:小程序订阅消息
---
uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue b/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue
new file mode 100644
index 0000000..fb858ea
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue
@@ -0,0 +1,56 @@
+<template>
+ <view
+ class="u-safe-bottom"
+ :style="[style]"
+ :class="[!isNvue && 'u-safe-area-inset-bottom']"
+ >
+ </view>
+</template>
+
+<script>
+ import props from "./props.js";
+ /**
+ * SafeBottom ���������������
+ * @description ������������������������������IPhone X���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
+ * @tutorial https://www.uviewui.com/components/safeAreaInset.html
+ * @property {type} prop_name
+ * @property {Object} customStyle ���������������������������������
+ *
+ * @event {Function()}
+ * @example <u-status-bar></u-status-bar>
+ */
+ export default {
+ name: "u-safe-bottom",
+ mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
+ data() {
+ return {
+ safeAreaBottomHeight: 0,
+ isNvue: false,
+ };
+ },
+ computed: {
+ style() {
+ const style = {};
+ // #ifdef APP-NVUE
+ // nvue������������������js������������
+ style.height = uni.$u.addUnit(uni.$u.sys().safeAreaInsets.bottom, 'px');
+ // #endif
+ return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle));
+ },
+ },
+ mounted() {
+ // #ifdef APP-NVUE
+ // ���������������nvue
+ this.isNvue = true;
+ // #endif
+ },
+ };
+</script>
+
+<style lang="scss" scoped>
+ .u-safe-bottom {
+ /* #ifndef APP-NVUE */
+ width: 100%;
+ /* #endif */
+ }
+</style>
--
Gitblit v1.8.0