@tplc/business 0.4.149 → 0.4.151
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 +22 -0
- package/components/lcb-list/components/SelectTagView/index.vue +1 -1
- package/components/lcb-list/components/TagSelect/index.vue +1 -1
- package/components/lcb-operation-actions/IconActionView.vue +10 -2
- package/components/lcb-operation-actions/IconView.vue +11 -8
- package/components/lcb-operation-actions/lcb-operation-actions.vue +2 -1
- package/components/lcb-operation-actions/types.ts +2 -0
- package/package.json +1 -1
- package/types/components/lcb-operation-actions/IconActionView.vue.d.ts +4 -0
- package/types/components/lcb-operation-actions/IconView.vue.d.ts +2 -0
- package/types/components/lcb-operation-actions/types.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.151](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.150...v0.4.151) (2025-07-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* tag ([790e9c0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/790e9c00900cafb389fa406eaf9e50acdc9bb9a6))
|
|
11
|
+
|
|
12
|
+
### [0.4.150](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.147...v0.4.150) (2025-07-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
16
|
+
|
|
17
|
+
* **release:** 0.4.148 ([8cad154](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8cad1545612b9c6a1d10fa6d7d90510918c93341))
|
|
18
|
+
* **release:** 0.4.149 ([afeff15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/afeff15fbc7384aa86ae16fa1e0e68924ed14313))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ✨ Features | 新功能
|
|
22
|
+
|
|
23
|
+
* cancel 支持 props ([ba8da2f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba8da2f066a7a610549400724265184665c816e6))
|
|
24
|
+
* 修改字段 ([9703fee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9703feeb88641654891db3dfde0a16e76e5b64fe))
|
|
25
|
+
* 兼容form ([9f083af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9f083af653c733047f153865aa69d9a33518e3d7))
|
|
26
|
+
|
|
5
27
|
### [0.4.149](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.148...v0.4.149) (2025-07-07)
|
|
6
28
|
|
|
7
29
|
### [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
|
|
35
|
+
padding: 0 20rpx;
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
text-align: center;
|
|
38
38
|
margin-bottom: 16rpx;
|
|
@@ -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
|
|
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,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<wd-badge :modelValue="count || 0" :max="99" :show-zero="false">
|
|
3
|
+
<view class="flex flex-col items-center min-h-56rpx justify-center">
|
|
4
|
+
<image :src="icon" class="w-5.5 h-5.5 box-border mb-1" v-if="icon" />
|
|
5
|
+
<view
|
|
6
|
+
class="text-24rpx flex-shrink-0 whitespace-nowrap"
|
|
7
|
+
:style="{ color: iconNameColor || '#000000' }"
|
|
8
|
+
>
|
|
9
|
+
{{ iconName }}
|
|
10
|
+
</view>
|
|
9
11
|
</view>
|
|
10
|
-
</
|
|
12
|
+
</wd-badge>
|
|
11
13
|
</template>
|
|
12
14
|
|
|
13
15
|
<script setup lang="ts">
|
|
@@ -23,5 +25,6 @@ defineProps<{
|
|
|
23
25
|
icon?: string
|
|
24
26
|
iconName: string
|
|
25
27
|
iconNameColor?: string
|
|
28
|
+
count?: number
|
|
26
29
|
}>()
|
|
27
30
|
</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
|
@@ -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
|
}
|