From f4991944d13b94355fb8aaf03dad7d60ca530ee9 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 30 Nov 2023 16:36:45 +0800
Subject: [PATCH] fix:是否修改
---
uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue b/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue
new file mode 100644
index 0000000..ed91373
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue
@@ -0,0 +1,46 @@
+<template>
+ <view
+ :style="[style]"
+ class="u-status-bar"
+ >
+ <slot />
+ </view>
+</template>
+
+<script>
+ import props from './props.js';
+ /**
+ * StatbusBar ���������������
+ * @description ���������������������������������������������������������������������������������������������������������������������������
+ * @tutorial https://uviewui.com/components/statusBar.html
+ * @property {String} bgColor ��������� (������ 'transparent' )
+ * @property {String | Object} customStyle ���������������
+ * @example <u-status-bar></u-status-bar>
+ */
+ export default {
+ name: 'u-status-bar',
+ mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
+ data() {
+ return {
+ }
+ },
+ computed: {
+ style() {
+ const style = {}
+ // ���������������������������������������������������������������������css���������������������������������������js���������������
+ style.height = uni.$u.addUnit(uni.$u.sys().statusBarHeight, 'px')
+ style.backgroundColor = this.bgColor
+ return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle))
+ }
+ },
+ }
+</script>
+
+<style lang="scss" scoped>
+ .u-status-bar {
+ // nvue���������100%���������nvue���������������100%������������������������������100%���������
+ /* #ifndef APP-NVUE */
+ width: 100%;
+ /* #endif */
+ }
+</style>
--
Gitblit v1.8.0