@tplc/business 0.7.39 → 0.7.41
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 +4 -0
- package/components/lcb-nav/lcb-nav.vue +24 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.41](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.40...v0.7.41) (2026-01-03)
|
|
6
|
+
|
|
7
|
+
### [0.7.40](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.39...v0.7.40) (2026-01-03)
|
|
8
|
+
|
|
5
9
|
### [0.7.39](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.38...v0.7.39) (2026-01-03)
|
|
6
10
|
|
|
7
11
|
|
|
@@ -38,24 +38,30 @@
|
|
|
38
38
|
}"
|
|
39
39
|
>
|
|
40
40
|
<view
|
|
41
|
-
class="h-full flex items-center"
|
|
42
|
-
@click="onCapsule(item)"
|
|
43
41
|
v-for="item in capsuleList"
|
|
44
42
|
:key="item.action"
|
|
45
|
-
:
|
|
43
|
+
:style="{
|
|
44
|
+
padding: capsuleList.length === 1 ? '0 16rpx' : '0 20rpx',
|
|
45
|
+
}"
|
|
46
46
|
>
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
<lcb-action-view
|
|
48
|
+
v-bind="item.actionViewProps"
|
|
49
|
+
:custom-class="`h-full flex items-center`"
|
|
50
|
+
@click="onCapsule(item)"
|
|
50
51
|
>
|
|
52
|
+
<wd-badge
|
|
53
|
+
:model-value="messageCount"
|
|
54
|
+
v-if="item.action === 'notification' && messageCount > 0"
|
|
55
|
+
>
|
|
56
|
+
<wd-icon
|
|
57
|
+
:name="iconMap[item.action] || item.icon"
|
|
58
|
+
size="40rpx"
|
|
59
|
+
:color="contentColor"
|
|
60
|
+
/>
|
|
61
|
+
</wd-badge>
|
|
62
|
+
|
|
51
63
|
<wd-icon
|
|
52
|
-
|
|
53
|
-
size="40rpx"
|
|
54
|
-
:color="contentColor"
|
|
55
|
-
/>
|
|
56
|
-
</wd-badge>
|
|
57
|
-
<lcb-action-view v-else v-bind="item.actionViewProps">
|
|
58
|
-
<wd-icon
|
|
64
|
+
v-else
|
|
59
65
|
v-bind="{
|
|
60
66
|
...(item.action === 'notification'
|
|
61
67
|
? {}
|
|
@@ -309,6 +315,7 @@ const capsuleList = computed(() => {
|
|
|
309
315
|
}
|
|
310
316
|
})
|
|
311
317
|
const onCapsule = ({ action, customAction }: ICapsule) => {
|
|
318
|
+
console.log('onCapsule', action, customAction)
|
|
312
319
|
switch (action) {
|
|
313
320
|
case 'back':
|
|
314
321
|
toBack()
|
|
@@ -423,7 +430,8 @@ const toBack = () => {
|
|
|
423
430
|
border-radius: 32px;
|
|
424
431
|
background-color: rgba(255, 255, 255, 0.6);
|
|
425
432
|
// 不等于最后一个儿子
|
|
426
|
-
> view
|
|
433
|
+
> view,
|
|
434
|
+
.lcb-action-btn {
|
|
427
435
|
position: relative;
|
|
428
436
|
&::after {
|
|
429
437
|
position: absolute;
|
|
@@ -437,7 +445,8 @@ const toBack = () => {
|
|
|
437
445
|
}
|
|
438
446
|
}
|
|
439
447
|
|
|
440
|
-
> view:last-child
|
|
448
|
+
> view:last-child,
|
|
449
|
+
.lcb-action-btn:last-child {
|
|
441
450
|
&:after {
|
|
442
451
|
display: none;
|
|
443
452
|
}
|