@tplc/business 0.4.148 → 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 +17 -0
- package/components/lcb-action-view/lcb-action-view.vue +6 -6
- 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/BtnViews.vue +4 -3
- package/components/lcb-operation-actions/IconActionView.vue +13 -4
- package/components/lcb-operation-actions/IconView.vue +4 -0
- package/components/lcb-operation-actions/lcb-operation-actions.vue +4 -3
- 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,23 @@
|
|
|
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
|
+
|
|
20
|
+
### [0.4.149](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.148...v0.4.149) (2025-07-07)
|
|
21
|
+
|
|
5
22
|
### [0.4.148](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.145...v0.4.148) (2025-07-04)
|
|
6
23
|
|
|
7
24
|
|
|
@@ -80,7 +80,7 @@ const showPoster = ref(false)
|
|
|
80
80
|
const emits = defineEmits<{
|
|
81
81
|
(e: 'phone', value: { detail: { errMsg: string; encryptedData: string; iv: string } }): void
|
|
82
82
|
(e: 'avatar', value: string): void
|
|
83
|
-
(e: 'click', value:
|
|
83
|
+
(e: 'click', value: LcbActionViewProps): void
|
|
84
84
|
(e: 'refresh', value: void): void
|
|
85
85
|
(e: 'nav', value: void): void
|
|
86
86
|
(e: 'loginOut', value: void): void
|
|
@@ -290,12 +290,12 @@ const onActionClick = async () => {
|
|
|
290
290
|
}
|
|
291
291
|
break
|
|
292
292
|
default:
|
|
293
|
-
emits('click')
|
|
293
|
+
emits('click', props)
|
|
294
294
|
break
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
const getPhoneNumber = (e) => {
|
|
298
|
-
if (e.detail.errMsg === '
|
|
298
|
+
if (e.detail.errMsg === 'getPhoneNurefreshmber:ok') {
|
|
299
299
|
emits('phone', e)
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -320,14 +320,14 @@ const onTemplateMessage = async () => {
|
|
|
320
320
|
uni.requestSubscribeMessage({
|
|
321
321
|
tmplIds: templateMessageList.value.map((item) => item.templateId),
|
|
322
322
|
success: () => {
|
|
323
|
-
emits('click')
|
|
323
|
+
emits('click', props)
|
|
324
324
|
},
|
|
325
325
|
fail: () => {
|
|
326
|
-
emits('click')
|
|
326
|
+
emits('click', props)
|
|
327
327
|
},
|
|
328
328
|
})
|
|
329
329
|
} else {
|
|
330
|
-
emits('click')
|
|
330
|
+
emits('click', props)
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
</script>
|
|
@@ -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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-bind="item"
|
|
4
4
|
v-for="item in buttonList"
|
|
5
5
|
:key="item.buttonName"
|
|
6
|
-
@click="link({ item })"
|
|
6
|
+
@click="link({ item }, $event)"
|
|
7
7
|
@refresh="$emit('refresh', { item })"
|
|
8
8
|
@nav="$emit('cancel')"
|
|
9
9
|
>
|
|
@@ -23,6 +23,7 @@ import type { IPageBtn, LcbOperationActionsProps } from './types'
|
|
|
23
23
|
import { useMessage } from '@tplc/wot'
|
|
24
24
|
import OrderDetLogistic from './components/OrderDetLogistic/index.vue'
|
|
25
25
|
import { reactive, ref } from 'vue'
|
|
26
|
+
import type { LcbActionViewProps } from '../lcb-action-view/types'
|
|
26
27
|
const message = useMessage()
|
|
27
28
|
const logistic = reactive({
|
|
28
29
|
show: false,
|
|
@@ -55,7 +56,7 @@ const getBtnProps = (item: IPageBtn) => {
|
|
|
55
56
|
} as ButtonProps
|
|
56
57
|
}
|
|
57
58
|
const formValue = ref('')
|
|
58
|
-
async function link({ item }: { item: IPageBtn }) {
|
|
59
|
+
async function link({ item }: { item: IPageBtn }, e: LcbActionViewProps) {
|
|
59
60
|
if (item.popUpFlag) {
|
|
60
61
|
if (item.buttonKey.includes('form')) {
|
|
61
62
|
formValue.value = item.popUpRequestInfo.defaultValue || ''
|
|
@@ -129,7 +130,7 @@ async function link({ item }: { item: IPageBtn }) {
|
|
|
129
130
|
logistic.data = logisticInfo
|
|
130
131
|
logistic.show = true
|
|
131
132
|
} else {
|
|
132
|
-
emits('cancel')
|
|
133
|
+
emits('cancel', e)
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
</script>
|
|
@@ -6,14 +6,21 @@
|
|
|
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">
|
|
15
21
|
import { ref, computed } from 'vue'
|
|
16
22
|
import IconView from './IconView.vue'
|
|
23
|
+
import type { LcbActionViewProps } from '../lcb-action-view/types'
|
|
17
24
|
|
|
18
25
|
defineOptions({
|
|
19
26
|
name: 'LcbOperationActionsIcon',
|
|
@@ -33,6 +40,8 @@ const props = defineProps<{
|
|
|
33
40
|
requestParams: Record<string, unknown>
|
|
34
41
|
}
|
|
35
42
|
popover?: boolean
|
|
43
|
+
count?: number
|
|
44
|
+
iconKey?: string
|
|
36
45
|
}>()
|
|
37
46
|
const emits = defineEmits(['refresh', 'cancel'])
|
|
38
47
|
const current = ref(props.confirmFlag)
|
|
@@ -46,7 +55,7 @@ const icon = computed(() => {
|
|
|
46
55
|
return props.iconUrl
|
|
47
56
|
}
|
|
48
57
|
})
|
|
49
|
-
const handleClick = async () => {
|
|
58
|
+
const handleClick = async (e: LcbActionViewProps) => {
|
|
50
59
|
if (isIconList && props.requestInfo) {
|
|
51
60
|
current.value = !current.value
|
|
52
61
|
await uni.$lcb.http.post(props.requestInfo.requestUrl, {
|
|
@@ -55,7 +64,7 @@ const handleClick = async () => {
|
|
|
55
64
|
})
|
|
56
65
|
emits('refresh')
|
|
57
66
|
} else {
|
|
58
|
-
emits('cancel')
|
|
67
|
+
emits('cancel', e)
|
|
59
68
|
}
|
|
60
69
|
}
|
|
61
70
|
</script>
|
|
@@ -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
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
v-bind="item"
|
|
30
30
|
v-else
|
|
31
31
|
@refresh="$emit('refresh')"
|
|
32
|
-
@cancel="$emit('cancel')"
|
|
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>
|
|
37
38
|
<BtnViews
|
|
38
39
|
:button-list="buttonList"
|
|
39
40
|
@refresh="emits('refresh', $event)"
|
|
40
|
-
@cancel="emits('cancel')"
|
|
41
|
+
@cancel="emits('cancel', $event)"
|
|
41
42
|
:size="size"
|
|
42
43
|
/>
|
|
43
44
|
</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
|
}
|