@tplc/business 0.5.56 → 0.5.58
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 +9 -0
- package/components/lcb-action-view/lcb-action-view.vue +5 -1
- package/components/lcb-action-view/types.ts +3 -2
- package/package.json +1 -1
- package/types/components/lcb-action-view/types.d.ts +3 -2
- package/types/components/lcb-search/lcb-search.vue.d.ts +3 -2
- package/types/utils/utils.d.ts +1 -1
- package/utils/utils.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.5.58](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.57...v0.5.58) (2025-12-02)
|
|
6
|
+
|
|
7
|
+
### [0.5.57](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.56...v0.5.57) (2025-12-02)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ✨ Features | 新功能
|
|
11
|
+
|
|
12
|
+
* 修改尺寸 ([c932da4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c932da48d9693508b72cba09aae7f96208d00da1))
|
|
13
|
+
|
|
5
14
|
### [0.5.56](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.55...v0.5.56) (2025-11-28)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -203,7 +203,11 @@ const onActionClick = async () => {
|
|
|
203
203
|
/** 锚点跳转 */
|
|
204
204
|
case 16:
|
|
205
205
|
if (url) {
|
|
206
|
-
|
|
206
|
+
const windowInfo = uni.getWindowInfo()
|
|
207
|
+
const navbarHeight = (windowInfo.statusBarHeight || 0) + 44
|
|
208
|
+
const offsetTop =
|
|
209
|
+
'offsetTopNavbar' in props && props.offsetTopNavbar !== false ? navbarHeight : 0
|
|
210
|
+
onPageScrollSelector(url, offsetTop ? navbarHeight : 0)
|
|
207
211
|
}
|
|
208
212
|
break
|
|
209
213
|
case 17:
|
|
@@ -47,7 +47,7 @@ export type LcbActionViewProps = {
|
|
|
47
47
|
| 12
|
|
48
48
|
| 13
|
|
49
49
|
| 14
|
|
50
|
-
|
|
|
50
|
+
| 17
|
|
51
51
|
| 21
|
|
52
52
|
| 22
|
|
53
53
|
| 23
|
|
@@ -72,7 +72,8 @@ export type LcbActionViewProps = {
|
|
|
72
72
|
phoneNumber?: string
|
|
73
73
|
}
|
|
74
74
|
| {
|
|
75
|
-
jumpType:
|
|
75
|
+
jumpType: 16
|
|
76
|
+
offsetTopNavbar?: boolean
|
|
76
77
|
}
|
|
77
78
|
| {
|
|
78
79
|
jumpType: 144
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ export type LcbActionViewProps = {
|
|
|
45
45
|
| 12
|
|
46
46
|
| 13
|
|
47
47
|
| 14
|
|
48
|
-
|
|
|
48
|
+
| 17
|
|
49
49
|
| 21
|
|
50
50
|
| 22
|
|
51
51
|
| 23
|
|
@@ -67,7 +67,8 @@ export type LcbActionViewProps = {
|
|
|
67
67
|
phoneNumber?: string
|
|
68
68
|
}
|
|
69
69
|
| {
|
|
70
|
-
jumpType:
|
|
70
|
+
jumpType: 16
|
|
71
|
+
offsetTopNavbar?: boolean
|
|
71
72
|
}
|
|
72
73
|
| {
|
|
73
74
|
jumpType: 144
|
|
@@ -99,7 +99,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
99
99
|
| 12
|
|
100
100
|
| 13
|
|
101
101
|
| 14
|
|
102
|
-
|
|
|
102
|
+
| 17
|
|
103
103
|
| 21
|
|
104
104
|
| 22
|
|
105
105
|
| 23
|
|
@@ -284,7 +284,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
284
284
|
requestParams: Record<string, any>
|
|
285
285
|
}
|
|
286
286
|
} & {
|
|
287
|
-
jumpType:
|
|
287
|
+
jumpType: 16
|
|
288
|
+
offsetTopNavbar?: boolean
|
|
288
289
|
} & import('../lcb-block/types').LcbBlockProps
|
|
289
290
|
>,
|
|
290
291
|
{
|
package/types/utils/utils.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const getCurrentPage: () => {
|
|
|
11
11
|
export declare const getPreviousPageId: () => string | number
|
|
12
12
|
/** 合并url参数 url = /pages/data/index?id=1&name=2 urlParams = id=1&name=2&type=1 */
|
|
13
13
|
export declare const getFinalUrl: (url: string, urlParams?: string) => string
|
|
14
|
-
export declare const onPageScrollSelector: (selector: string) => void
|
|
14
|
+
export declare const onPageScrollSelector: (selector: string, offsetTop?: number) => void
|
|
15
15
|
export declare const getPreviewImageUrl: (url: string, width?: number) => string
|
|
16
16
|
/** 根据屏幕宽度 图片高度宽度比例 列数与 间隙宽度 计算图片高度 */
|
|
17
17
|
export declare const calculateImageHeight: (
|
package/utils/utils.ts
CHANGED
|
@@ -73,10 +73,11 @@ export const getFinalUrl = (url: string, urlParams?: string) => {
|
|
|
73
73
|
})}`
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export const onPageScrollSelector = (selector: string) => {
|
|
76
|
+
export const onPageScrollSelector = (selector: string, offsetTop?: number) => {
|
|
77
77
|
const prefix = uni.$lcb.layoutId ? `#${uni.$lcb.layoutId} >>> #` : '#'
|
|
78
78
|
uni.pageScrollTo({
|
|
79
79
|
selector: `${prefix}${selector}`,
|
|
80
|
+
offsetTop,
|
|
80
81
|
})
|
|
81
82
|
}
|
|
82
83
|
|