@tplc/business 0.7.36 → 0.7.38

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,64 @@
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.7.38](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.22...v0.7.38) (2026-01-03)
6
+
7
+
8
+ ### ♻️ Code Refactoring | 代码重构
9
+
10
+ * Update window information retrieval across components to use uni.getWindowInfo for improved consistency ([744c24f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/744c24f71d420356265331a55236b30adad11f1b))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * **lcb-nav:** add 'custom' action to ICapsule interface and implement customAction handling in onCapsule function ([fe8cec5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/fe8cec50671d4ef07955d162303246bc102f2059))
16
+
17
+
18
+ ### 🚀 Chore | 构建/工程依赖/工具
19
+
20
+ * **release:** 0.7.37 ([d5ada99](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d5ada99959ec39587e1da927574761993086f24e))
21
+ * **release:** 1.0.23 ([b383996](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b383996a3b065170eddefc59ede5001919bb453a))
22
+
23
+
24
+ ### 💄 Styles | 风格
25
+
26
+ * Change padding-left of wd-select-picker label to 22rpx for improved layout consistency ([9d3c8e0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9d3c8e0799c0dca0ad414e4150d637fcd8b8ddad))
27
+
28
+ ### [0.7.37](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.33...v0.7.37) (2025-12-31)
29
+
30
+
31
+ ### ✨ Features | 新功能
32
+
33
+ * Add `payCardId` to payment form and component, and refine payment type watch logic with minor UI alignment. ([0cac8e4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0cac8e49e678a81f3a1340b251c05aa591e28146))
34
+
35
+
36
+ ### 💄 Styles | 风格
37
+
38
+ * Enhance wd-select-picker styles with improved dark theme support, error handling, and loading states ([9476eca](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9476eca4b1dc70be0240178274fa8266a8877353))
39
+ * Update wd-select-picker label padding and adjust required indicator position ([c484165](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c484165672df34c3a8a0497a89f4878bc9eca62c))
40
+
41
+
42
+ ### 🐛 Bug Fixes | Bug 修复
43
+
44
+ * Update window information retrieval to use constantsStore for consistent access across components ([92b3a70](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/92b3a7025a82fa129646b904a90d3959cc177d26))
45
+
46
+
47
+ ### 🚀 Chore | 构建/工程依赖/工具
48
+
49
+ * **release:** 0.7.34 ([ff6d9ba](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ff6d9babf801919bae6f7367643fc966b005141c))
50
+ * **release:** 0.7.35 ([08e3887](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/08e38877b628ed46352fb94a57dd342ed92d507a))
51
+ * **release:** 0.7.36 ([5fab8dd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5fab8dda5d0ffc881a4eab9df0198441c9c797a4))
52
+ * **release:** 1.0.18 ([0b5e53d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0b5e53d0d3b8dd1a8a806c5258828f70f486b628))
53
+ * **release:** 1.0.19 ([6d957fd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6d957fd62d08ff4cb2e74f4d2e0c0917dedbf915))
54
+ * **release:** 1.0.20 ([65ad98e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/65ad98e5b7ddb615961c71f60ce657fec344de56))
55
+ * **release:** 1.0.21 ([c5a3dc8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c5a3dc8cc308332fb67dbc52a66ad8b14b3f7292))
56
+ * **release:** 1.0.22 ([4c3ee83](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4c3ee832739a0babc6efa73f6ad107defc52fa6a))
57
+
58
+
59
+ ### ♻️ Code Refactoring | 代码重构
60
+
61
+ * Update window information retrieval across components to use uni.getWindowInfo for improved consistency ([744c24f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/744c24f71d420356265331a55236b30adad11f1b))
62
+
5
63
  ### [0.7.36](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.35...v0.7.36) (2025-12-30)
6
64
 
7
65
  ### [0.7.35](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.34...v0.7.35) (2025-12-30)
@@ -307,7 +307,7 @@ const capsuleList = computed(() => {
307
307
  return [...list, ...(props.capsules || [])] as ICapsule[]
308
308
  }
309
309
  })
310
- const onCapsule = ({ action }: ICapsule) => {
310
+ const onCapsule = ({ action, customAction }: ICapsule) => {
311
311
  switch (action) {
312
312
  case 'back':
313
313
  toBack()
@@ -346,7 +346,6 @@ const onCapsule = ({ action }: ICapsule) => {
346
346
  url: uni.$lcb.internalPages.setting,
347
347
  })
348
348
  break
349
-
350
349
  case 'home':
351
350
  uni.switchTab({
352
351
  url: uni.$lcb.internalPages.home,
@@ -360,6 +359,9 @@ const onCapsule = ({ action }: ICapsule) => {
360
359
  url: uni.$lcb.internalPages.notification,
361
360
  })
362
361
  break
362
+ case 'custom':
363
+ customAction?.()
364
+ break
363
365
  }
364
366
  }
365
367
 
@@ -11,6 +11,8 @@ export interface ICapsule {
11
11
  | 'back'
12
12
  | 'share'
13
13
  | 'notification'
14
+ | 'custom'
15
+ customAction?: () => void
14
16
  dependKey?: string
15
17
  keyFromUser?: string
16
18
  dependKeyCompareValue?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.36",
3
+ "version": "0.7.38",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "1.0.21"
14
+ "@tplc/wot": "1.0.23"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -10,6 +10,8 @@ export interface ICapsule {
10
10
  | 'back'
11
11
  | 'share'
12
12
  | 'notification'
13
+ | 'custom'
14
+ customAction?: () => void
13
15
  dependKey?: string
14
16
  keyFromUser?: string
15
17
  dependKeyCompareValue?: string
@@ -23,7 +23,7 @@ export declare const calculateImageHeight: (
23
23
  gap?: number,
24
24
  ) => number
25
25
  export declare const customUpload: UploadMethod
26
- export declare const getSharePath: () => string
26
+ export declare const getSharePath: (params?: Record<string, any>) => string
27
27
  /** 获取动态数据 */
28
28
  export declare const getDynamicData: (
29
29
  text: string | undefined,
package/utils/utils.ts CHANGED
@@ -132,12 +132,13 @@ export const customUpload: UploadMethod = (file, formData, options) => {
132
132
  })
133
133
  }
134
134
 
135
- export const getSharePath = () => {
135
+ export const getSharePath = (params?: Record<string, any>) => {
136
136
  const inviteUserId = uni.$lcb.userStore?.()?.userInfo?.userId
137
137
  const inviteTime = new Date().getTime()
138
138
  return `/pages/start/index?${stringify({
139
139
  path: getCurrentPage().fullPath,
140
140
  ...getCurrentPage().options,
141
+ ...params,
141
142
  inviteTime,
142
143
  inviteUserId,
143
144
  shareDistributorId: uni.$lcb.userStore?.()?.userInfo?.shareDistributorId,