@tplc/business 0.7.40 → 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 CHANGED
@@ -2,6 +2,8 @@
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
+
5
7
  ### [0.7.40](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.39...v0.7.40) (2026-01-03)
6
8
 
7
9
  ### [0.7.39](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.38...v0.7.39) (2026-01-03)
@@ -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
- :class="[capsuleList.length === 1 ? 'px-2' : 'px-2.5']"
43
+ :style="{
44
+ padding: capsuleList.length === 1 ? '0 16rpx' : '0 20rpx',
45
+ }"
46
46
  >
47
- <wd-badge
48
- :model-value="messageCount"
49
- v-if="item.action === 'notification' && messageCount > 0"
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
- :name="iconMap[item.action] || item.icon"
53
- size="40rpx"
54
- :color="contentColor"
55
- />
56
- </wd-badge>
57
- <lcb-action-view v-else v-bind="item.actionViewProps" :noClick="true">
58
- <wd-icon
64
+ v-else
59
65
  v-bind="{
60
66
  ...(item.action === 'notification'
61
67
  ? {}
@@ -66,7 +72,6 @@
66
72
  :name="iconMap[item.action] || item.icon"
67
73
  size="40rpx"
68
74
  :color="contentColor"
69
- @click="onCapsule(item)"
70
75
  />
71
76
  </lcb-action-view>
72
77
  </view>
@@ -310,6 +315,7 @@ const capsuleList = computed(() => {
310
315
  }
311
316
  })
312
317
  const onCapsule = ({ action, customAction }: ICapsule) => {
318
+ console.log('onCapsule', action, customAction)
313
319
  switch (action) {
314
320
  case 'back':
315
321
  toBack()
@@ -424,7 +430,8 @@ const toBack = () => {
424
430
  border-radius: 32px;
425
431
  background-color: rgba(255, 255, 255, 0.6);
426
432
  // 不等于最后一个儿子
427
- > view {
433
+ > view,
434
+ .lcb-action-btn {
428
435
  position: relative;
429
436
  &::after {
430
437
  position: absolute;
@@ -438,7 +445,8 @@ const toBack = () => {
438
445
  }
439
446
  }
440
447
 
441
- > view:last-child {
448
+ > view:last-child,
449
+ .lcb-action-btn:last-child {
442
450
  &:after {
443
451
  display: none;
444
452
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.40",
3
+ "version": "0.7.41",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],