@tplc/business 0.0.3 → 0.0.5
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.
- package/components/lcb-img-nav/lcb-img-nav.vue +1 -1
- package/components/lcb-nav/lcb-nav.vue +12 -3
- package/global.d.ts +2 -2
- package/package.json +2 -2
- package/types/index.d.ts +0 -0
- /package/types/{lcb-img-nav → components/lcb-img-nav}/lcb-img-nav.vue.d.ts +0 -0
- /package/types/{lcb-nav → components/lcb-nav}/lcb-nav.vue.d.ts +0 -0
|
@@ -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>
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
:class="{
|
|
5
5
|
immersiveTop: topStyle === 2,
|
|
6
6
|
}"
|
|
7
|
+
:style="{
|
|
8
|
+
paddingTop,
|
|
9
|
+
}"
|
|
7
10
|
>
|
|
8
11
|
<view
|
|
9
12
|
class="header"
|
|
@@ -24,7 +27,6 @@
|
|
|
24
27
|
<view class="images mr-2" v-if="logoImg">
|
|
25
28
|
<img :src="logoImg" />
|
|
26
29
|
</view>
|
|
27
|
-
|
|
28
30
|
<view class="title">{{ title }}</view>
|
|
29
31
|
</view>
|
|
30
32
|
<view class="images" v-else>
|
|
@@ -50,6 +52,10 @@
|
|
|
50
52
|
</template>
|
|
51
53
|
|
|
52
54
|
<script setup lang="ts">
|
|
55
|
+
import { addUnit } from '@tplc/wot/components/common/util'
|
|
56
|
+
import { computed } from 'vue'
|
|
57
|
+
|
|
58
|
+
const { statusBarHeight } = uni.getSystemInfoSync()
|
|
53
59
|
defineOptions({
|
|
54
60
|
name: 'FinalNav',
|
|
55
61
|
options: {
|
|
@@ -100,12 +106,16 @@ withDefaults(defineProps<NanProps>(), {
|
|
|
100
106
|
logoImg: '',
|
|
101
107
|
searchText: '搜索',
|
|
102
108
|
})
|
|
109
|
+
|
|
110
|
+
const paddingTop = computed(() => {
|
|
111
|
+
return addUnit(statusBarHeight || 0)
|
|
112
|
+
})
|
|
103
113
|
</script>
|
|
104
114
|
<style lang="scss" scoped>
|
|
105
115
|
.customNavigation {
|
|
106
116
|
position: relative;
|
|
107
117
|
width: 100%;
|
|
108
|
-
height:
|
|
118
|
+
min-height: 44px;
|
|
109
119
|
|
|
110
120
|
.header {
|
|
111
121
|
position: absolute;
|
|
@@ -113,7 +123,6 @@ withDefaults(defineProps<NanProps>(), {
|
|
|
113
123
|
left: 0px;
|
|
114
124
|
width: 100%;
|
|
115
125
|
height: 100%;
|
|
116
|
-
background-image: url(https://cdn2.weimob.com/saas/@assets/saas-fe-basis-web-stc/cms/h5/topNavBlack_new.png);
|
|
117
126
|
background-repeat: no-repeat;
|
|
118
127
|
background-position: 50%;
|
|
119
128
|
background-position-x: 50%;
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
// Helper for Volar
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
-
'lcb-img-nav': (typeof import('./types/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
5
|
-
'lcb-nav': (typeof import('./types/lcb-nav/lcb-nav.vue'))['default']
|
|
4
|
+
'lcb-img-nav': (typeof import('./types/components/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
5
|
+
'lcb-nav': (typeof import('./types/components/lcb-nav/lcb-nav.vue'))['default']
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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.
|
|
13
|
+
"@tplc/wot": "0.1.2"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=18",
|
package/types/index.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|