@tplc/business 0.5.12 → 0.5.13

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,23 @@
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.13](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.10...v0.5.13) (2025-10-11)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.5.11 ([8526502](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8526502f1d0a576033c5da7ce58baa1306911d4c))
11
+ * **release:** 0.5.12 ([07c36dd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/07c36dd73a94d9a4900d20565e8821e59bc4a691))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * t同步constant ([9f4c637](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9f4c6374935e04bc6de4c3f26c149b42c98237eb))
17
+ * 删除多余依赖 ([84abd86](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/84abd860f693cbacb74c6bc0ef27fe552784df1d))
18
+ * 图片圆角 ([a68898e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a68898ec76b518fa16e4038936c0bea4a815ae7a))
19
+ * 支持 address ([c812459](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c812459276927d7225cfff0dcd4ce1b3267723ea))
20
+ * 新增banner ([8dba4d4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8dba4d42665360e02b390c472c902075061157c7))
21
+
5
22
  ### [0.5.12](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.11...v0.5.12) (2025-10-11)
6
23
 
7
24
 
@@ -123,6 +123,7 @@ const openType = computed(() => {
123
123
  const onActionClick = async () => {
124
124
  const { jumpUrl, jumpType: type } = props
125
125
  const jumpType = getJumpType(type)
126
+ if (props.jumpInterceptor?.(props)) return
126
127
  /**
127
128
  * 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
128
129
  * 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
@@ -11,6 +11,8 @@ export type LcbActionViewProps = {
11
11
  autoJumpSecond?: number
12
12
  /** 弹窗位置 */
13
13
  position?: PopupType
14
+ // 跳转拦截方法 如果返回true则不进行跳转
15
+ jumpInterceptor?: (action: LcbActionViewProps) => boolean
14
16
  /** 弹窗文案 */
15
17
  content?: string
16
18
  /** 弹窗标题 */
@@ -16,17 +16,19 @@
16
16
  transform: 'translate3d(-50%, -50%, 0) scale(' + item.scale + ')',
17
17
  }"
18
18
  >
19
- <view class="image-block">
20
- <lcb-action-view v-bind="item.item.link" customClass="w-full h-full">
21
- <wd-img
22
- :src="item.item.url"
23
- mode="aspectFill"
24
- width="100%"
25
- height="100%"
26
- :radius="imageRadius"
27
- />
28
- </lcb-action-view>
29
- </view>
19
+ <lcb-action-view
20
+ v-bind="item.item.link"
21
+ customClass="w-full h-full"
22
+ :jumpInterceptor="jumpInterceptorHandler(item)"
23
+ >
24
+ <wd-img
25
+ :src="item.item.url"
26
+ mode="aspectFill"
27
+ width="100%"
28
+ height="100%"
29
+ :radius="imageRadius"
30
+ />
31
+ </lcb-action-view>
30
32
  </view>
31
33
  </view>
32
34
  </lcb-block>
@@ -98,7 +100,7 @@ function buildSlots(n: number): SlotStyle[] {
98
100
  top: '50%',
99
101
  zIndex: 100 - d,
100
102
  scale: Math.max(1 - d * scaleStep, 0.6),
101
- transition: 0.3,
103
+ transition: 0.2,
102
104
  }
103
105
  })
104
106
  }
@@ -226,6 +228,13 @@ watch(
226
228
  refreshVisibleFields()
227
229
  },
228
230
  )
231
+ const jumpInterceptorHandler: any = (item: ImageItem) => () => {
232
+ if (item.scale === 1) {
233
+ return false
234
+ }
235
+ changeBlock(item)
236
+ return true
237
+ }
229
238
  </script>
230
239
  <style lang="scss" scoped>
231
240
  .lcb-carousel {
@@ -241,15 +250,6 @@ watch(
241
250
  overflow: hidden;
242
251
  box-shadow: 0 0 5px #0000001a;
243
252
  will-change: transform;
244
- .image-block {
245
- position: absolute;
246
- left: 0;
247
- top: 0;
248
- width: 100%;
249
- height: 100%;
250
- background-size: 100% 100%;
251
- z-index: 5;
252
- }
253
253
  }
254
254
  }
255
255
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -10,6 +10,7 @@ export type LcbActionViewProps = {
10
10
  autoJumpSecond?: number
11
11
  /** 弹窗位置 */
12
12
  position?: PopupType
13
+ jumpInterceptor?: (action: LcbActionViewProps) => boolean
13
14
  /** 弹窗文案 */
14
15
  content?: string
15
16
  /** 弹窗标题 */
@@ -75,6 +75,9 @@ declare const _default: import('vue').DefineComponent<
75
75
  renderMode?: 'view' | 'button'
76
76
  autoJumpSecond?: number
77
77
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
78
+ jumpInterceptor?: (
79
+ action: import('../lcb-action-view/types').LcbActionViewProps,
80
+ ) => boolean
78
81
  content?: string
79
82
  title?: string
80
83
  requestParam?: Record<string, any>
@@ -179,6 +182,9 @@ declare const _default: import('vue').DefineComponent<
179
182
  renderMode?: 'view' | 'button'
180
183
  autoJumpSecond?: number
181
184
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
185
+ jumpInterceptor?: (
186
+ action: import('../lcb-action-view/types').LcbActionViewProps,
187
+ ) => boolean
182
188
  content?: string
183
189
  title?: string
184
190
  requestParam?: Record<string, any>
@@ -262,6 +268,9 @@ declare const _default: import('vue').DefineComponent<
262
268
  renderMode?: 'view' | 'button'
263
269
  autoJumpSecond?: number
264
270
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
271
+ jumpInterceptor?: (
272
+ action: import('../lcb-action-view/types').LcbActionViewProps,
273
+ ) => boolean
265
274
  content?: string
266
275
  title?: string
267
276
  requestParam?: Record<string, any>
@@ -344,6 +353,9 @@ declare const _default: import('vue').DefineComponent<
344
353
  renderMode?: 'view' | 'button'
345
354
  autoJumpSecond?: number
346
355
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
356
+ jumpInterceptor?: (
357
+ action: import('../lcb-action-view/types').LcbActionViewProps,
358
+ ) => boolean
347
359
  content?: string
348
360
  title?: string
349
361
  requestParam?: Record<string, any>
@@ -426,6 +438,9 @@ declare const _default: import('vue').DefineComponent<
426
438
  renderMode?: 'view' | 'button'
427
439
  autoJumpSecond?: number
428
440
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
441
+ jumpInterceptor?: (
442
+ action: import('../lcb-action-view/types').LcbActionViewProps,
443
+ ) => boolean
429
444
  content?: string
430
445
  title?: string
431
446
  requestParam?: Record<string, any>
@@ -514,6 +529,9 @@ declare const _default: import('vue').DefineComponent<
514
529
  renderMode?: 'view' | 'button'
515
530
  autoJumpSecond?: number
516
531
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
532
+ jumpInterceptor?: (
533
+ action: import('../lcb-action-view/types').LcbActionViewProps,
534
+ ) => boolean
517
535
  content?: string
518
536
  title?: string
519
537
  requestParam?: Record<string, any>
@@ -596,6 +614,9 @@ declare const _default: import('vue').DefineComponent<
596
614
  renderMode?: 'view' | 'button'
597
615
  autoJumpSecond?: number
598
616
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
617
+ jumpInterceptor?: (
618
+ action: import('../lcb-action-view/types').LcbActionViewProps,
619
+ ) => boolean
599
620
  content?: string
600
621
  title?: string
601
622
  requestParam?: Record<string, any>
@@ -678,6 +699,9 @@ declare const _default: import('vue').DefineComponent<
678
699
  renderMode?: 'view' | 'button'
679
700
  autoJumpSecond?: number
680
701
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
702
+ jumpInterceptor?: (
703
+ action: import('../lcb-action-view/types').LcbActionViewProps,
704
+ ) => boolean
681
705
  content?: string
682
706
  title?: string
683
707
  requestParam?: Record<string, any>
@@ -764,6 +788,9 @@ declare const _default: import('vue').DefineComponent<
764
788
  renderMode?: 'view' | 'button'
765
789
  autoJumpSecond?: number
766
790
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
791
+ jumpInterceptor?: (
792
+ action: import('../lcb-action-view/types').LcbActionViewProps,
793
+ ) => boolean
767
794
  content?: string
768
795
  title?: string
769
796
  requestParam?: Record<string, any>