@tplc/business 0.4.163 → 0.4.165
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/CHANGELOG.md +22 -0
- package/action.d.ts +2 -2
- package/components/lcb-area/lcb-area.vue +7 -1
- package/components/lcb-area/types.ts +1 -0
- package/components/lcb-block/lcb-block.vue +2 -0
- package/components/lcb-block/types.ts +1 -1
- package/components/lcb-nav/lcb-nav.vue +15 -1
- package/hooks/useAutoHeight.ts +3 -1
- package/package.json +1 -1
- package/types/components/lcb-area/types.d.ts +1 -0
- package/types/components/lcb-block/lcb-block.vue.d.ts +2 -0
- package/types/components/lcb-block/types.d.ts +1 -0
- package/types/components/lcb-list/lcb-list.vue.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.165](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.164...v0.4.165) (2025-07-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* area 支持 position ([acf7ad6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acf7ad6c905cbcfcc87e505f7b4ba010305e8085))
|
|
11
|
+
|
|
12
|
+
### [0.4.164](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.162...v0.4.164) (2025-07-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
16
|
+
|
|
17
|
+
* **release:** 0.4.163 ([9ced11c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9ced11cf16df2058a28d1d9e02231d2f96b3f5bc))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ✨ Features | 新功能
|
|
21
|
+
|
|
22
|
+
* nav页面 ([aa8f380](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aa8f380e915a44b74036a24079027c14b8ce484a))
|
|
23
|
+
* 改造route tabbar ([544c8b8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/544c8b8c4ce29c7c89ccdadaef3bf4018bde3884))
|
|
24
|
+
* 调整ds ([41c69d5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/41c69d5cf71f10d266c6cff16b56a023d40b97b4))
|
|
25
|
+
* 调整日历高度 ([7de6b26](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7de6b26c60f1ddce1056e54d56b3753b7e5805e1))
|
|
26
|
+
|
|
5
27
|
### [0.4.163](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.154...v0.4.163) (2025-07-18)
|
|
6
28
|
|
|
7
29
|
|
package/action.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface LcbGlobal {
|
|
|
49
49
|
mainConfig?: Record<string, any>
|
|
50
50
|
otherConfig?: Record<string, any>
|
|
51
51
|
}
|
|
52
|
-
getIsTabbar: () => boolean
|
|
52
|
+
getIsTabbar: (route: string) => boolean
|
|
53
53
|
layoutId: string
|
|
54
54
|
internalPages: {
|
|
55
55
|
webview: string
|
|
@@ -60,7 +60,7 @@ export interface LcbGlobal {
|
|
|
60
60
|
authPhone: string
|
|
61
61
|
userEdit: string
|
|
62
62
|
drawdown: string
|
|
63
|
-
notification:string
|
|
63
|
+
notification: string
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
fontWeight,
|
|
17
17
|
borderColor,
|
|
18
18
|
zIndex,
|
|
19
|
+
position,
|
|
19
20
|
borderWidth: transformValueUnit(borderWidth),
|
|
20
21
|
boxShadow:
|
|
21
22
|
shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
|
|
@@ -49,6 +50,7 @@ const props = withDefaults(defineProps<LcbBlockInnerProps>(), {
|
|
|
49
50
|
backgroundPosition: `top center`,
|
|
50
51
|
opacity: 1,
|
|
51
52
|
fontSize: 24,
|
|
53
|
+
position: 'relative',
|
|
52
54
|
})
|
|
53
55
|
// 透明度+颜色
|
|
54
56
|
const innerBackgroundColor = computed(() => {
|
|
@@ -40,6 +40,16 @@
|
|
|
40
40
|
:key="item.action"
|
|
41
41
|
:class="[capsuleList.length === 1 ? 'px-2' : 'px-2.5']"
|
|
42
42
|
>
|
|
43
|
+
<wd-badge
|
|
44
|
+
:model-value="messageCount"
|
|
45
|
+
v-if="item.action === 'notification' && messageCount > 0"
|
|
46
|
+
>
|
|
47
|
+
<wd-icon
|
|
48
|
+
:name="iconMap[item.action] || item.icon"
|
|
49
|
+
size="40rpx"
|
|
50
|
+
:color="contentColor"
|
|
51
|
+
/>
|
|
52
|
+
</wd-badge>
|
|
43
53
|
<wd-icon
|
|
44
54
|
v-bind="{
|
|
45
55
|
...(item.action === 'notification'
|
|
@@ -51,6 +61,7 @@
|
|
|
51
61
|
:name="iconMap[item.action] || item.icon"
|
|
52
62
|
size="40rpx"
|
|
53
63
|
:color="contentColor"
|
|
64
|
+
v-else
|
|
54
65
|
/>
|
|
55
66
|
</view>
|
|
56
67
|
</view>
|
|
@@ -125,6 +136,7 @@ import Search from './Search/index.vue'
|
|
|
125
136
|
import { Locale } from '@tplc/wot'
|
|
126
137
|
import usePageScroll from '../../hooks/usePageScroll'
|
|
127
138
|
import SharePopup from './SharePopup/index.vue'
|
|
139
|
+
import { getCurrentPage } from '../../utils/utils'
|
|
128
140
|
defineOptions({
|
|
129
141
|
name: 'LcbNav',
|
|
130
142
|
options: {
|
|
@@ -153,9 +165,11 @@ const iconMap = {
|
|
|
153
165
|
home: 'shouye_home1',
|
|
154
166
|
notification: 'notification',
|
|
155
167
|
}
|
|
168
|
+
const route = getCurrentPage().route
|
|
156
169
|
const showShare = ref(false)
|
|
157
170
|
const [scrollTop] = usePageScroll()
|
|
158
171
|
const injectScrollTop = inject('page-scroll-top', { value: 0 })
|
|
172
|
+
const messageCount = inject('message-count', 0)
|
|
159
173
|
const props = withDefaults(defineProps<NavProps>(), {
|
|
160
174
|
styleGroup: 1,
|
|
161
175
|
titleLocation: 'center',
|
|
@@ -237,7 +251,7 @@ const capsuleList = computed(() => {
|
|
|
237
251
|
})
|
|
238
252
|
}
|
|
239
253
|
/** 如果超过俩个的层级的话并且支持返回 */
|
|
240
|
-
if (moreThanTwoPages() || (!uni.$lcb.getIsTabbar() && !canBack.value)) {
|
|
254
|
+
if (moreThanTwoPages() || (!uni.$lcb.getIsTabbar(route) && !canBack.value)) {
|
|
241
255
|
list.push({
|
|
242
256
|
icon: 'shouye_home1',
|
|
243
257
|
action: 'home',
|
package/hooks/useAutoHeight.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { getRect, isH5 } from '@tplc/wot/components/common/util'
|
|
2
2
|
import { getCurrentInstance, onMounted, ref } from 'vue'
|
|
3
|
+
import { getCurrentPage } from '../utils/utils'
|
|
3
4
|
|
|
4
5
|
const useAutoHeight = (id = 'pagingTop') => {
|
|
5
6
|
const { proxy } = getCurrentInstance() as any
|
|
6
|
-
const
|
|
7
|
+
const route = getCurrentPage().route
|
|
8
|
+
const isTabBar = uni.$lcb.getIsTabbar(route)
|
|
7
9
|
const viewPageHeight = isH5 ? window.innerHeight : uni.getWindowInfo().screenHeight
|
|
8
10
|
const height = ref('')
|
|
9
11
|
const top = ref(0)
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
11
11
|
backgroundPosition: string
|
|
12
12
|
opacity: number
|
|
13
13
|
fontSize: number
|
|
14
|
+
position: string
|
|
14
15
|
}
|
|
15
16
|
>,
|
|
16
17
|
{},
|
|
@@ -32,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
32
33
|
backgroundPosition: string
|
|
33
34
|
opacity: number
|
|
34
35
|
fontSize: number
|
|
36
|
+
position: string
|
|
35
37
|
}
|
|
36
38
|
>
|
|
37
39
|
>
|