@tplc/business 0.5.61 → 0.5.62
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 +2 -0
- package/package.json +1 -1
- package/utils/utils.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.62](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.61...v0.5.62) (2025-12-02)
|
|
6
|
+
|
|
5
7
|
### [0.5.61](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.60...v0.5.61) (2025-12-02)
|
|
6
8
|
|
|
7
9
|
### [0.5.60](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.59...v0.5.60) (2025-12-02)
|
package/package.json
CHANGED
package/utils/utils.ts
CHANGED
|
@@ -76,6 +76,7 @@ export const getFinalUrl = (url: string, urlParams?: string) => {
|
|
|
76
76
|
|
|
77
77
|
export const onPageScrollSelector = (selector: string, offsetTop = 0, proxy: any) => {
|
|
78
78
|
const prefix = (uni.$lcb.layoutId ? `#${uni.$lcb.layoutId} >>> #` : '#') + selector
|
|
79
|
+
// #ifdef H5
|
|
79
80
|
const query = uni.createSelectorQuery().in(proxy)
|
|
80
81
|
// @ts-ignore
|
|
81
82
|
query.selectViewport().scrollOffset()
|
|
@@ -92,6 +93,13 @@ export const onPageScrollSelector = (selector: string, offsetTop = 0, proxy: any
|
|
|
92
93
|
})
|
|
93
94
|
}
|
|
94
95
|
})
|
|
96
|
+
// #endif
|
|
97
|
+
// #ifdef MP
|
|
98
|
+
uni.pageScrollTo({
|
|
99
|
+
selector: prefix,
|
|
100
|
+
offsetTop: -offsetTop,
|
|
101
|
+
})
|
|
102
|
+
// #endif
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
export const getPreviewImageUrl = (url: string, width = 200) => {
|