From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 07 十一月 2023 15:47:13 +0800 Subject: [PATCH] bug --- minipro_standard/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue | 112 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 56 insertions(+), 56 deletions(-) diff --git a/minipro_standard/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue b/minipro_standard/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue index ff60392..fb858ea 100644 --- a/minipro_standard/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue +++ b/minipro_standard/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue @@ -1,56 +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 - // 鏍囪瘑涓烘槸鍚vue - this.isNvue = true; - // #endif - }, - }; -</script> - -<style lang="scss" scoped> - .u-safe-bottom { - /* #ifndef APP-NVUE */ - width: 100%; - /* #endif */ - } -</style> +<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 + // 鏍囪瘑涓烘槸鍚vue + this.isNvue = true; + // #endif + }, + }; +</script> + +<style lang="scss" scoped> + .u-safe-bottom { + /* #ifndef APP-NVUE */ + width: 100%; + /* #endif */ + } +</style> -- Gitblit v1.9.3