first commit
This commit is contained in:
1
芳林公司项目/zyhelp/components/uni-status-bar/.pydio
Normal file
1
芳林公司项目/zyhelp/components/uni-status-bar/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
4c4b92ce-0e4b-43e1-9938-87472245bb8c
|
||||
26
芳林公司项目/zyhelp/components/uni-status-bar/uni-status-bar.vue
Executable file
26
芳林公司项目/zyhelp/components/uni-status-bar/uni-status-bar.vue
Executable file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<view :style="{ height: statusBarHeight }" class="uni-status-bar">
|
||||
<slot />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'
|
||||
export default {
|
||||
name: 'UniStatusBar',
|
||||
data() {
|
||||
return {
|
||||
statusBarHeight: statusBarHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.uni-status-bar {
|
||||
width: 750rpx;
|
||||
height: 20px;
|
||||
/* height: var(--status-bar-height);
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user