@tplc/business 0.5.12 → 0.5.14
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 +24 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -0
- package/components/lcb-action-view/types.ts +2 -0
- package/components/lcb-swiper/lcb-swiper.vue +22 -21
- package/package.json +1 -1
- package/types/components/lcb-action-view/types.d.ts +1 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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.14](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.13...v0.5.14) (2025-10-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 更新版本 ([72a74ed](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/72a74ed6bdb18784f628b8f4ccf2124a2ad7807d))
|
|
11
|
+
|
|
12
|
+
### [0.5.13](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.10...v0.5.13) (2025-10-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
16
|
+
|
|
17
|
+
* **release:** 0.5.11 ([8526502](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8526502f1d0a576033c5da7ce58baa1306911d4c))
|
|
18
|
+
* **release:** 0.5.12 ([07c36dd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/07c36dd73a94d9a4900d20565e8821e59bc4a691))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ✨ Features | 新功能
|
|
22
|
+
|
|
23
|
+
* t同步constant ([9f4c637](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9f4c6374935e04bc6de4c3f26c149b42c98237eb))
|
|
24
|
+
* 删除多余依赖 ([84abd86](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/84abd860f693cbacb74c6bc0ef27fe552784df1d))
|
|
25
|
+
* 图片圆角 ([a68898e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a68898ec76b518fa16e4038936c0bea4a815ae7a))
|
|
26
|
+
* 支持 address ([c812459](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c812459276927d7225cfff0dcd4ce1b3267723ea))
|
|
27
|
+
* 新增banner ([8dba4d4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8dba4d42665360e02b390c472c902075061157c7))
|
|
28
|
+
|
|
5
29
|
### [0.5.12](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.11...v0.5.12) (2025-10-11)
|
|
6
30
|
|
|
7
31
|
|
|
@@ -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: 重启进入某页面
|
|
@@ -16,17 +16,19 @@
|
|
|
16
16
|
transform: 'translate3d(-50%, -50%, 0) scale(' + item.scale + ')',
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
|
-
<view
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
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 {
|
|
@@ -234,6 +243,7 @@ watch(
|
|
|
234
243
|
min-height: 200px;
|
|
235
244
|
position: relative;
|
|
236
245
|
overflow: hidden;
|
|
246
|
+
z-index: 0;
|
|
237
247
|
.carousel-block {
|
|
238
248
|
position: absolute;
|
|
239
249
|
overflow: hidden;
|
|
@@ -241,15 +251,6 @@ watch(
|
|
|
241
251
|
overflow: hidden;
|
|
242
252
|
box-shadow: 0 0 5px #0000001a;
|
|
243
253
|
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
254
|
}
|
|
254
255
|
}
|
|
255
256
|
</style>
|
package/package.json
CHANGED
|
@@ -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>
|