@tplc/business 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@
28
28
  }"
29
29
  >
30
30
  <div v-if="iconType === 0" class="flex justify-center items-center">
31
- <wd-icon class-prefix="iconfont" :name="item.icon" size="36" />
31
+ <wd-icon class-prefix="iconfont" :name="item.icon!" size="36" />
32
32
  </div>
33
33
  </div>
34
34
  <view class="title">{{ item.title }}</view>
@@ -3,6 +3,7 @@
3
3
  class="customNavigation"
4
4
  :class="{
5
5
  immersiveTop: topStyle === 2,
6
+ paddingTop,
6
7
  }"
7
8
  >
8
9
  <view
@@ -24,7 +25,6 @@
24
25
  <view class="images mr-2" v-if="logoImg">
25
26
  <img :src="logoImg" />
26
27
  </view>
27
-
28
28
  <view class="title">{{ title }}</view>
29
29
  </view>
30
30
  <view class="images" v-else>
@@ -50,6 +50,10 @@
50
50
  </template>
51
51
 
52
52
  <script setup lang="ts">
53
+ import { addUnit } from '@tplc/wot/components/common/util'
54
+ import { computed } from 'vue'
55
+
56
+ const { statusBarHeight } = uni.getSystemInfoSync()
53
57
  defineOptions({
54
58
  name: 'FinalNav',
55
59
  options: {
@@ -100,12 +104,15 @@ withDefaults(defineProps<NanProps>(), {
100
104
  logoImg: '',
101
105
  searchText: '搜索',
102
106
  })
107
+
108
+ const paddingTop = computed(() => {
109
+ return addUnit(statusBarHeight || 0)
110
+ })
103
111
  </script>
104
112
  <style lang="scss" scoped>
105
113
  .customNavigation {
106
114
  position: relative;
107
115
  width: 100%;
108
- height: 88px;
109
116
 
110
117
  .header {
111
118
  position: absolute;
@@ -113,7 +120,6 @@ withDefaults(defineProps<NanProps>(), {
113
120
  left: 0px;
114
121
  width: 100%;
115
122
  height: 100%;
116
- background-image: url(https://cdn2.weimob.com/saas/@assets/saas-fe-basis-web-stc/cms/h5/topNavBlack_new.png);
117
123
  background-repeat: no-repeat;
118
124
  background-position: 50%;
119
125
  background-position-x: 50%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "keywords": [
5
5
  "业务组件i"
6
6
  ],
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "peerDependencies": {
12
12
  "vue": ">=3.2.47",
13
- "@tplc/wot": "0.1.1"
13
+ "@tplc/wot": "0.1.2"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=18",