@tplc/business 0.4.149 → 0.4.150

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,21 @@
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.4.150](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.147...v0.4.150) (2025-07-07)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.148 ([8cad154](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8cad1545612b9c6a1d10fa6d7d90510918c93341))
11
+ * **release:** 0.4.149 ([afeff15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/afeff15fbc7384aa86ae16fa1e0e68924ed14313))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * cancel 支持 props ([ba8da2f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba8da2f066a7a610549400724265184665c816e6))
17
+ * 修改字段 ([9703fee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9703feeb88641654891db3dfde0a16e76e5b64fe))
18
+ * 兼容form ([9f083af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9f083af653c733047f153865aa69d9a33518e3d7))
19
+
5
20
  ### [0.4.149](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.148...v0.4.149) (2025-07-07)
6
21
 
7
22
  ### [0.4.148](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.145...v0.4.148) (2025-07-04)
@@ -32,7 +32,7 @@ defineProps<{ title: string; checked?: boolean; size?: 'small' | 'normal' }>()
32
32
  overflow: hidden;
33
33
  text-overflow: ellipsis;
34
34
  white-space: nowrap;
35
- padding: 0 6rpx;
35
+ padding: 0 20rpx;
36
36
  box-sizing: border-box;
37
37
  text-align: center;
38
38
  margin-bottom: 16rpx;
@@ -150,7 +150,7 @@ const onInput = (item: Option, e) => {
150
150
  overflow: hidden;
151
151
  text-overflow: ellipsis;
152
152
  white-space: nowrap;
153
- padding: 0 12rpx;
153
+ padding: 0 20rpx;
154
154
  box-sizing: border-box;
155
155
  text-align: center;
156
156
  display: flex;
@@ -6,9 +6,15 @@
6
6
  v-if="!popover"
7
7
  @nav="$emit('cancel')"
8
8
  >
9
- <IconView :icon="icon" :iconName="iconName" :iconNameColor="iconNameColor" />
9
+ <IconView :icon="icon" :iconName="iconName" :iconNameColor="iconNameColor" :count="count" />
10
10
  </lcb-action-view>
11
- <IconView :icon="icon" :iconName="iconName" :iconNameColor="iconNameColor" v-else />
11
+ <IconView
12
+ :icon="icon"
13
+ :iconName="iconName"
14
+ :iconNameColor="iconNameColor"
15
+ :count="count"
16
+ v-else
17
+ />
12
18
  </template>
13
19
 
14
20
  <script setup lang="ts">
@@ -34,6 +40,8 @@ const props = defineProps<{
34
40
  requestParams: Record<string, unknown>
35
41
  }
36
42
  popover?: boolean
43
+ count?: number
44
+ iconKey?: string
37
45
  }>()
38
46
  const emits = defineEmits(['refresh', 'cancel'])
39
47
  const current = ref(props.confirmFlag)
@@ -1,5 +1,8 @@
1
1
  <template>
2
2
  <view class="flex flex-col items-center min-h-56rpx justify-center">
3
+ <wd-badge :modelValue="count || 0" :max="99" :show-zero="false">
4
+ <wd-icon name="cart" size="40rpx"></wd-icon>
5
+ </wd-badge>
3
6
  <image :src="icon" class="w-5.5 h-5.5 box-border mb-1" v-if="icon" />
4
7
  <view
5
8
  class="text-24rpx flex-shrink-0 whitespace-nowrap"
@@ -23,5 +26,6 @@ defineProps<{
23
26
  icon?: string
24
27
  iconName: string
25
28
  iconNameColor?: string
29
+ count?: number
26
30
  }>()
27
31
  </script>
@@ -10,7 +10,7 @@
10
10
  ref="popoverRef"
11
11
  v-if="item.iconType === 2"
12
12
  >
13
- <IconActionView v-bind="item" popover />
13
+ <IconActionView v-bind="item" popover :count="countObject?.[item.iconKey || '']" />
14
14
  <template #content>
15
15
  <view class="pop-content px-3 py-2 box-border w-max flex flex-col gap-2">
16
16
  <lcb-action-view
@@ -31,6 +31,7 @@
31
31
  @refresh="$emit('refresh')"
32
32
  @cancel="$emit('cancel', $event)"
33
33
  ref="popoverRef"
34
+ :count="countObject?.[item.iconKey || '']"
34
35
  />
35
36
  </block>
36
37
  <view class="flex-1" v-if="!noIcons"></view>
@@ -9,6 +9,7 @@ export interface IconList {
9
9
  jumpType?: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88
10
10
  buttonList?: IPageBtn[]
11
11
  iconType?: number
12
+ iconKey?: string
12
13
  }
13
14
 
14
15
  export interface IPageBtn {
@@ -48,4 +49,5 @@ export interface LcbOperationActionsProps {
48
49
  iconList?: IconList[]
49
50
  size?: 'small' | 'medium' | 'large'
50
51
  noIcons?: boolean
52
+ countObject?: Record<string, number>
51
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.149",
3
+ "version": "0.4.150",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -9,6 +9,8 @@ declare const _default: import('vue').DefineComponent<
9
9
  requestParams: Record<string, unknown>
10
10
  }
11
11
  popover?: boolean
12
+ count?: number
13
+ iconKey?: string
12
14
  }>,
13
15
  {},
14
16
  unknown,
@@ -34,6 +36,8 @@ declare const _default: import('vue').DefineComponent<
34
36
  requestParams: Record<string, unknown>
35
37
  }
36
38
  popover?: boolean
39
+ count?: number
40
+ iconKey?: string
37
41
  }>
38
42
  >
39
43
  > & {
@@ -3,6 +3,7 @@ declare const _default: import('vue').DefineComponent<
3
3
  icon?: string
4
4
  iconName: string
5
5
  iconNameColor?: string
6
+ count?: number
6
7
  }>,
7
8
  {},
8
9
  unknown,
@@ -19,6 +20,7 @@ declare const _default: import('vue').DefineComponent<
19
20
  icon?: string
20
21
  iconName: string
21
22
  iconNameColor?: string
23
+ count?: number
22
24
  }>
23
25
  >
24
26
  >,
@@ -8,6 +8,7 @@ export interface IconList {
8
8
  jumpType?: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88
9
9
  buttonList?: IPageBtn[]
10
10
  iconType?: number
11
+ iconKey?: string
11
12
  }
12
13
  export interface IPageBtn {
13
14
  buttonKey: string
@@ -45,4 +46,5 @@ export interface LcbOperationActionsProps {
45
46
  iconList?: IconList[]
46
47
  size?: 'small' | 'medium' | 'large'
47
48
  noIcons?: boolean
49
+ countObject?: Record<string, number>
48
50
  }