@tplc/business 0.5.19 → 0.5.20

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 CHANGED
@@ -2,6 +2,26 @@
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.20](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.15...v0.5.20) (2025-10-19)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.5.16 ([c8e3500](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c8e350074a0eff3162b23af6146f10af9e4922ac))
11
+ * **release:** 0.5.17 ([431a0e9](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/431a0e9ecc9993dd247ded95bcdb0c8dba29140f))
12
+ * **release:** 0.5.18 ([4eed2cc](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4eed2cc10a11bd9eda7182da88e7df9e529f818d))
13
+ * **release:** 0.5.19 ([70c9c94](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/70c9c94e323c42ba120c543597c7a2a8f3f41294))
14
+
15
+
16
+ ### ✨ Features | 新功能
17
+
18
+ * mode normal 改为最大大小 ([5f59b53](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5f59b532c7dfef47d7a6c64f1e221d6a71e10e75))
19
+ * tab支持变更属性 ([3e8390b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3e8390be463525f4988d5ae36034a83d69031dc2))
20
+ * 支持 stackRight stackLeft ([81d1fd4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/81d1fd488395196cf28ef6a8df269564d87376bd))
21
+ * 调整address 策略 ([91063a1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/91063a19ec34314920e3064c6292c085efc9b2a6))
22
+ * 调整swiper nav ([5a40606](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5a40606ff1480bbd14119867a9a042eca535517c))
23
+ * 调整类型 ([4c29c1a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4c29c1a93541161cb5bff190ae7f11584cafedaa))
24
+
5
25
  ### [0.5.19](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.18...v0.5.19) (2025-10-16)
6
26
 
7
27
 
@@ -54,10 +54,23 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
54
54
  locationIng.value = true
55
55
 
56
56
  await new Promise<void>((resolve) => {
57
+ // 超过3s默认请求
58
+ const timeout = setTimeout(() => {
59
+ getUserLocation()
60
+ .then((res) => {
61
+ currentLocation.value = res.data
62
+ })
63
+ .finally(() => {
64
+ locationIng.value = false
65
+ resolve()
66
+ })
67
+ }, 3000)
68
+
57
69
  uni.getLocation({
58
70
  type: 'gcj02',
59
71
  // type: 'wgs84',
60
72
  success: function (res) {
73
+ clearTimeout(timeout)
61
74
  currentUserLatLon.value = res
62
75
  getUserLocation({
63
76
  userLongitude: res.longitude.toString(),
@@ -73,6 +86,7 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
73
86
  })
74
87
  },
75
88
  fail: function (res) {
89
+ clearTimeout(timeout)
76
90
  console.log('获取位置信息失败:', res)
77
91
  getUserLocation()
78
92
  .then((res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],