@tplc/business 0.7.21 → 0.7.23
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.7.23](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.16...v0.7.23) (2025-12-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增progress ([474bcac](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/474bcac7c08cb234e1d6945036d8ca4d64fa4f88))
|
|
11
|
+
* 更新wot-number ([f700988](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f700988b15ec08eef0d1b8c140483eca8e0afed4))
|
|
12
|
+
|
|
13
|
+
### [0.7.22](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.21...v0.7.22) (2025-12-17)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ✨ Features | 新功能
|
|
17
|
+
|
|
18
|
+
* 调整数据结构 ([b6f0d24](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b6f0d24a26d3d4dbf05ca855ed687d6819eb7c0f))
|
|
19
|
+
|
|
5
20
|
### [0.7.21](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.20...v0.7.21) (2025-12-17)
|
|
6
21
|
|
|
7
22
|
### [0.7.20](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.15...v0.7.20) (2025-12-17)
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { progressProps } from '@tplc/wot/components/wd-progress/types'
|
|
1
2
|
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
3
|
import { LcbBlockProps } from '../lcb-block/types'
|
|
4
|
+
import { ExtractPropTypes } from 'vue'
|
|
3
5
|
|
|
4
6
|
export interface LcbButtonProps extends LcbBlockProps {
|
|
5
7
|
text: string
|
|
6
8
|
action?: LcbActionViewProps
|
|
7
|
-
mode: 'image' | 'text' | 'noStyle' | 'qrcode'
|
|
9
|
+
mode: 'image' | 'text' | 'noStyle' | 'qrcode' | 'progress'
|
|
8
10
|
url?: string
|
|
9
11
|
imageWidth?: number
|
|
10
12
|
imageHeight?: number
|
|
@@ -36,4 +38,5 @@ export interface LcbButtonProps extends LcbBlockProps {
|
|
|
36
38
|
// 动态action key
|
|
37
39
|
dynamicActionKey?: string
|
|
38
40
|
lineClamp?: number
|
|
41
|
+
progressProps?: ExtractPropTypes<typeof progressProps>
|
|
39
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="pay-group">
|
|
3
|
-
<wd-radio-group v-model="groupValue">
|
|
3
|
+
<wd-radio-group v-model="groupValue" @change="onChange">
|
|
4
4
|
<block v-for="item in data" :key="item.title">
|
|
5
5
|
<wd-radio :value="item.type" shape="dot" cell v-if="!(item.content || item.items)">
|
|
6
6
|
<view class="flex">
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
</view>
|
|
39
39
|
</template>
|
|
40
40
|
</wd-cell>
|
|
41
|
-
<view class="ml-56rpx flex flex-col gap-
|
|
41
|
+
<view class="ml-56rpx flex flex-col gap-2">
|
|
42
42
|
<wd-radio
|
|
43
43
|
v-for="child in item.content || item.items"
|
|
44
44
|
:key="child.payCardId"
|
|
45
|
-
:value="child.payCardId"
|
|
45
|
+
:value="`${item.type}-${child.payCardId}`"
|
|
46
46
|
shape="dot"
|
|
47
47
|
cell
|
|
48
48
|
>
|
|
@@ -93,13 +93,25 @@ const props = defineProps<LcbOrderPaymentProps>()
|
|
|
93
93
|
const emits = defineEmits(['onWalletPriceChange'])
|
|
94
94
|
const payType = defineModel<string>()
|
|
95
95
|
const payCardId = defineModel<string>('payCardId')
|
|
96
|
-
const
|
|
96
|
+
const getGroupValue = (payType: string, payCardId: string) => {
|
|
97
|
+
return payType ? `${payType}${payCardId ? '-' + payCardId : ''}` : undefined
|
|
98
|
+
}
|
|
99
|
+
const groupValue = ref(getGroupValue(payType.value || '', payCardId.value || ''))
|
|
97
100
|
const message = useMessage()
|
|
98
101
|
// 同时监听payType payCardId俩个字段 来修改groupValue
|
|
99
102
|
watch([payType, payCardId], ([newPayType, newPayCardId]) => {
|
|
100
|
-
groupValue.value = newPayCardId ||
|
|
103
|
+
groupValue.value = getGroupValue(newPayType || '', newPayCardId || '')
|
|
101
104
|
})
|
|
102
|
-
|
|
105
|
+
const onChange = ({ value }: { value: string }) => {
|
|
106
|
+
if (!value) {
|
|
107
|
+
payType.value = undefined
|
|
108
|
+
payCardId.value = undefined
|
|
109
|
+
return
|
|
110
|
+
}
|
|
111
|
+
const [newPayType, newPayCardId] = value.split('-')
|
|
112
|
+
payType.value = newPayType
|
|
113
|
+
payCardId.value = newPayCardId || undefined
|
|
114
|
+
}
|
|
103
115
|
onMounted(() => {
|
|
104
116
|
for (let i = 0; i < (props.data?.length || 0); i++) {
|
|
105
117
|
const item = props.data![i]
|
|
@@ -158,14 +170,18 @@ const onModifyPrice = (price: number, max: number) => {
|
|
|
158
170
|
flex-direction: column;
|
|
159
171
|
gap: 24rpx;
|
|
160
172
|
}
|
|
173
|
+
|
|
161
174
|
:deep(.wd-radio) {
|
|
162
175
|
padding: 0 !important;
|
|
176
|
+
|
|
163
177
|
.wd-radio__label {
|
|
164
178
|
flex: 1;
|
|
165
179
|
}
|
|
166
180
|
}
|
|
181
|
+
|
|
167
182
|
:deep(.wd-cell) {
|
|
168
183
|
padding: 0px !important;
|
|
184
|
+
|
|
169
185
|
.wd-cell__wrapper {
|
|
170
186
|
padding: 0px !important;
|
|
171
187
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.23",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"vue": ">=3.2.47",
|
|
14
|
-
"@tplc/wot": "1.0.
|
|
14
|
+
"@tplc/wot": "1.0.16"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { progressProps } from '@tplc/wot/components/wd-progress/types'
|
|
1
2
|
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
3
|
import { LcbBlockProps } from '../lcb-block/types'
|
|
4
|
+
import { ExtractPropTypes } from 'vue'
|
|
3
5
|
export interface LcbButtonProps extends LcbBlockProps {
|
|
4
6
|
text: string
|
|
5
7
|
action?: LcbActionViewProps
|
|
6
|
-
mode: 'image' | 'text' | 'noStyle' | 'qrcode'
|
|
8
|
+
mode: 'image' | 'text' | 'noStyle' | 'qrcode' | 'progress'
|
|
7
9
|
url?: string
|
|
8
10
|
imageWidth?: number
|
|
9
11
|
imageHeight?: number
|
|
@@ -32,4 +34,5 @@ export interface LcbButtonProps extends LcbBlockProps {
|
|
|
32
34
|
| 'bottom-right'
|
|
33
35
|
dynamicActionKey?: string
|
|
34
36
|
lineClamp?: number
|
|
37
|
+
progressProps?: ExtractPropTypes<typeof progressProps>
|
|
35
38
|
}
|