@tplc/business 0.4.34 → 0.4.36
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 +10 -0
- package/components/lcb-action-view/lcb-action-view.vue +10 -0
- package/components/lcb-action-view/types.ts +5 -3
- package/components/lcb-nav/lcb-nav.vue +1 -1
- package/components/lcb-product/lcb-product.vue +11 -2
- package/components/lcb-product/types.ts +4 -0
- package/components/lcb-product-item/components/ItemValue.vue +4 -3
- package/components/lcb-product-item/types.ts +1 -0
- package/package.json +1 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +2 -1
- package/types/components/lcb-action-view/types.d.ts +5 -3
- package/types/components/lcb-product/types.d.ts +3 -0
- package/types/components/lcb-product-item/types.d.ts +1 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +97 -2
- package/utils/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.36](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.35...v0.4.36) (2025-03-30)
|
|
6
|
+
|
|
7
|
+
### [0.4.35](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.34...v0.4.35) (2025-03-29)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ✨ Features | 新功能
|
|
11
|
+
|
|
12
|
+
* nav back ([134b9e4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/134b9e47a3840313080b78a8eed6b67c2d748fce))
|
|
13
|
+
* 调整数据结构 ([7b66284](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b6628421608c136498860f267c461eda7b078fa))
|
|
14
|
+
|
|
5
15
|
### [0.4.34](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.33...v0.4.34) (2025-03-29)
|
|
6
16
|
|
|
7
17
|
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<view
|
|
3
|
+
v-if="props.renderMode === 'view'"
|
|
4
|
+
class="lcb-action-btn"
|
|
5
|
+
:class="customClass"
|
|
6
|
+
:style="customStyle"
|
|
7
|
+
@click.stop="onActionClick"
|
|
8
|
+
>
|
|
9
|
+
<slot />
|
|
10
|
+
</view>
|
|
2
11
|
<button
|
|
12
|
+
v-else
|
|
3
13
|
@click.stop="onActionClick"
|
|
4
14
|
class="lcb-action-btn"
|
|
5
15
|
:open-type="openType"
|
|
@@ -6,6 +6,7 @@ export type LcbActionViewProps = {
|
|
|
6
6
|
urlParams?: string
|
|
7
7
|
customClass?: string
|
|
8
8
|
customStyle?: StyleValue
|
|
9
|
+
renderMode?: 'view' | 'button'
|
|
9
10
|
} & (
|
|
10
11
|
| {
|
|
11
12
|
/**
|
|
@@ -30,7 +31,6 @@ export type LcbActionViewProps = {
|
|
|
30
31
|
| 24
|
|
31
32
|
| 25
|
|
32
33
|
| 26
|
|
33
|
-
| 30
|
|
34
34
|
| 88
|
|
35
35
|
| 101
|
|
36
36
|
| 102
|
|
@@ -40,8 +40,6 @@ export type LcbActionViewProps = {
|
|
|
40
40
|
|
|
41
41
|
/** 小程序appid */
|
|
42
42
|
jumpAppid?: string
|
|
43
|
-
/** 手机号 */
|
|
44
|
-
phoneNumber?: string
|
|
45
43
|
/** 弹窗文案 */
|
|
46
44
|
content?: string
|
|
47
45
|
/** 弹窗标题 */
|
|
@@ -50,6 +48,10 @@ export type LcbActionViewProps = {
|
|
|
50
48
|
position?: string
|
|
51
49
|
/** 查看地图信息 */
|
|
52
50
|
}
|
|
51
|
+
| {
|
|
52
|
+
jumpType: 30
|
|
53
|
+
phoneNumber: string
|
|
54
|
+
}
|
|
53
55
|
| {
|
|
54
56
|
jumpType: 17
|
|
55
57
|
requestInfo?: {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<view class="navbar-left z-1">
|
|
28
28
|
<!-- 返回按钮 -->
|
|
29
29
|
<view
|
|
30
|
-
v-if="(styleGroup === 3 || moreThanTwoPages()) && capsuleList.length"
|
|
30
|
+
v-if="(styleGroup === 3 || moreThanTwoPages() || !canBack) && capsuleList.length"
|
|
31
31
|
class="navbar-capsule flex justify-center items-center"
|
|
32
32
|
:class="[capsuleMode]"
|
|
33
33
|
:style="{
|
|
@@ -140,7 +140,12 @@ defineExpose({
|
|
|
140
140
|
|
|
141
141
|
<template>
|
|
142
142
|
<lcb-block
|
|
143
|
-
v-bind="
|
|
143
|
+
v-bind="{
|
|
144
|
+
...$props,
|
|
145
|
+
shadowColor: blockShadowColor,
|
|
146
|
+
shadowSize: blockShadowSize,
|
|
147
|
+
blurSize: blockBlurSize,
|
|
148
|
+
}"
|
|
144
149
|
:custom-class="`${listType == 'horizontal' ? 'h-fit overflow-x-auto whitespace-nowrap flex items-stretch w-full' : ''}`"
|
|
145
150
|
>
|
|
146
151
|
<!-- 单列 -->
|
|
@@ -156,7 +161,7 @@ defineExpose({
|
|
|
156
161
|
v-if="item.productType === 'noProductOption'"
|
|
157
162
|
v-bind="{ ...item, ...$props, ...attrs }"
|
|
158
163
|
/>
|
|
159
|
-
<lcb-action-view v-bind="item.link" v-else>
|
|
164
|
+
<lcb-action-view v-bind="item.link" render-mode="view" v-else>
|
|
160
165
|
<slot name="item" :item="item">
|
|
161
166
|
<lcb-absolute-config-layout
|
|
162
167
|
v-if="renderItemAbsoluteConfigLayout"
|
|
@@ -195,6 +200,7 @@ defineExpose({
|
|
|
195
200
|
v-for="(item, index) in renderList"
|
|
196
201
|
:key="`${item?.productId}:${index}`"
|
|
197
202
|
v-bind="item.link"
|
|
203
|
+
render-mode="view"
|
|
198
204
|
custom-class="h-full rounded-md overflow-hidden"
|
|
199
205
|
>
|
|
200
206
|
<slot name="item" :item="item">
|
|
@@ -237,6 +243,7 @@ defineExpose({
|
|
|
237
243
|
v-for="(item, index) in list"
|
|
238
244
|
:key="`${item?.productId}:${index}`"
|
|
239
245
|
v-bind="item.link"
|
|
246
|
+
render-mode="view"
|
|
240
247
|
>
|
|
241
248
|
<slot name="item" :item="item">
|
|
242
249
|
<lcb-absolute-config-layout
|
|
@@ -281,6 +288,7 @@ defineExpose({
|
|
|
281
288
|
v-for="(item, index) in list"
|
|
282
289
|
:key="`${item?.productId}:${index}`"
|
|
283
290
|
v-bind="item.link"
|
|
291
|
+
render-mode="view"
|
|
284
292
|
>
|
|
285
293
|
<slot name="item" :item="item">
|
|
286
294
|
<lcb-absolute-config-layout
|
|
@@ -327,6 +335,7 @@ defineExpose({
|
|
|
327
335
|
:key="`${item?.productId}:${index}`"
|
|
328
336
|
custom-class="flex-shrink-0 w-fit !h-auto"
|
|
329
337
|
v-bind="item.link"
|
|
338
|
+
render-mode="view"
|
|
330
339
|
>
|
|
331
340
|
<view
|
|
332
341
|
:style="{
|
|
@@ -6,6 +6,10 @@ export interface LcbProductProps extends LcbBlockProps {
|
|
|
6
6
|
shadowColor?: string
|
|
7
7
|
shadowSize?: number
|
|
8
8
|
blurSize?: number
|
|
9
|
+
|
|
10
|
+
blockShadowColor?: string
|
|
11
|
+
blockShadowSize?: number
|
|
12
|
+
blockBlurSize?: number
|
|
9
13
|
imageWidth?: number
|
|
10
14
|
imageHeight?: number
|
|
11
15
|
imageRadius?: number
|
|
@@ -151,13 +151,14 @@ const value = computed(() => {
|
|
|
151
151
|
</slot>
|
|
152
152
|
|
|
153
153
|
<slot :value="value" v-if="prop === 'level' && value && Number(value)" name="level">
|
|
154
|
-
<view :class="className" :style="style" class="inline relative
|
|
154
|
+
<view :class="className" :style="style" class="inline relative ml-1">
|
|
155
155
|
<wd-rate
|
|
156
156
|
:model-value="Number(value)"
|
|
157
157
|
:num="Number(value)"
|
|
158
158
|
readonly
|
|
159
|
-
size="
|
|
160
|
-
|
|
159
|
+
size="22rpx"
|
|
160
|
+
active-color="var(--wot-color-theme)"
|
|
161
|
+
custom-class="!v-inherit text-22rpx"
|
|
161
162
|
/>
|
|
162
163
|
</view>
|
|
163
164
|
</slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LcbActionViewProps } from './types'
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
default?(_: {}): any
|
|
4
|
+
default?(_: {}): any
|
|
4
5
|
}
|
|
5
6
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
7
|
__VLS_TypePropsToOption<LcbActionViewProps>,
|
|
@@ -14,7 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
14
15
|
string,
|
|
15
16
|
import('vue').PublicProps,
|
|
16
17
|
any,
|
|
17
|
-
{} | {} | {} | {} | {},
|
|
18
|
+
{} | {} | {} | {} | {} | {},
|
|
18
19
|
{}
|
|
19
20
|
>
|
|
20
21
|
declare const _default: __VLS_WithTemplateSlots<
|
|
@@ -5,6 +5,7 @@ export type LcbActionViewProps = {
|
|
|
5
5
|
urlParams?: string
|
|
6
6
|
customClass?: string
|
|
7
7
|
customStyle?: StyleValue
|
|
8
|
+
renderMode?: 'view' | 'button'
|
|
8
9
|
} & (
|
|
9
10
|
| {
|
|
10
11
|
/**
|
|
@@ -29,7 +30,6 @@ export type LcbActionViewProps = {
|
|
|
29
30
|
| 24
|
|
30
31
|
| 25
|
|
31
32
|
| 26
|
|
32
|
-
| 30
|
|
33
33
|
| 88
|
|
34
34
|
| 101
|
|
35
35
|
| 102
|
|
@@ -38,8 +38,6 @@ export type LcbActionViewProps = {
|
|
|
38
38
|
| 241
|
|
39
39
|
/** 小程序appid */
|
|
40
40
|
jumpAppid?: string
|
|
41
|
-
/** 手机号 */
|
|
42
|
-
phoneNumber?: string
|
|
43
41
|
/** 弹窗文案 */
|
|
44
42
|
content?: string
|
|
45
43
|
/** 弹窗标题 */
|
|
@@ -47,6 +45,10 @@ export type LcbActionViewProps = {
|
|
|
47
45
|
/** 弹窗位置 */
|
|
48
46
|
position?: string
|
|
49
47
|
}
|
|
48
|
+
| {
|
|
49
|
+
jumpType: 30
|
|
50
|
+
phoneNumber: string
|
|
51
|
+
}
|
|
50
52
|
| {
|
|
51
53
|
jumpType: 17
|
|
52
54
|
requestInfo?: {
|
|
@@ -4,6 +4,9 @@ export interface LcbProductProps extends LcbBlockProps {
|
|
|
4
4
|
shadowColor?: string
|
|
5
5
|
shadowSize?: number
|
|
6
6
|
blurSize?: number
|
|
7
|
+
blockShadowColor?: string
|
|
8
|
+
blockShadowSize?: number
|
|
9
|
+
blockBlurSize?: number
|
|
7
10
|
imageWidth?: number
|
|
8
11
|
imageHeight?: number
|
|
9
12
|
imageRadius?: number
|
|
@@ -70,6 +70,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
70
70
|
urlParams?: string
|
|
71
71
|
customClass?: string
|
|
72
72
|
customStyle?: import('vue').StyleValue
|
|
73
|
+
renderMode?: 'view' | 'button'
|
|
73
74
|
} & {
|
|
74
75
|
jumpType?:
|
|
75
76
|
| 1
|
|
@@ -86,7 +87,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
86
87
|
| 24
|
|
87
88
|
| 25
|
|
88
89
|
| 26
|
|
89
|
-
| 30
|
|
90
90
|
| 88
|
|
91
91
|
| 101
|
|
92
92
|
| 102
|
|
@@ -94,7 +94,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
94
94
|
| 104
|
|
95
95
|
| 241
|
|
96
96
|
jumpAppid?: string
|
|
97
|
-
phoneNumber?: string
|
|
98
97
|
content?: string
|
|
99
98
|
title?: string
|
|
100
99
|
position?: string
|
|
@@ -161,6 +160,74 @@ declare const _default: import('vue').DefineComponent<
|
|
|
161
160
|
urlParams?: string
|
|
162
161
|
customClass?: string
|
|
163
162
|
customStyle?: import('vue').StyleValue
|
|
163
|
+
renderMode?: 'view' | 'button'
|
|
164
|
+
} & {
|
|
165
|
+
jumpType: 30
|
|
166
|
+
phoneNumber: string
|
|
167
|
+
} & import('../lcb-block/types').LcbBlockProps
|
|
168
|
+
>,
|
|
169
|
+
{
|
|
170
|
+
placeholder: string
|
|
171
|
+
iconSize: string
|
|
172
|
+
borderWidth: number
|
|
173
|
+
color: string
|
|
174
|
+
iconColor: string
|
|
175
|
+
gap: number
|
|
176
|
+
paddingVertical: number
|
|
177
|
+
marginHorizontal: number
|
|
178
|
+
cityColor: string
|
|
179
|
+
citySize: number
|
|
180
|
+
cityIconSize: number
|
|
181
|
+
radius: number
|
|
182
|
+
paddingHorizontal: number
|
|
183
|
+
borderColor: string
|
|
184
|
+
cityIconColor: string
|
|
185
|
+
lineColor: string
|
|
186
|
+
lineWidth: number
|
|
187
|
+
linePadding: number
|
|
188
|
+
lineHeight: number
|
|
189
|
+
iconType: string
|
|
190
|
+
mode: string
|
|
191
|
+
fontSize: number
|
|
192
|
+
initFocus: boolean
|
|
193
|
+
}
|
|
194
|
+
>
|
|
195
|
+
>
|
|
196
|
+
>
|
|
197
|
+
| Readonly<
|
|
198
|
+
import('vue').ExtractPropTypes<
|
|
199
|
+
__VLS_WithDefaults<
|
|
200
|
+
__VLS_TypePropsToOption<
|
|
201
|
+
{
|
|
202
|
+
placeholder?: string
|
|
203
|
+
icon?: string
|
|
204
|
+
url?: string
|
|
205
|
+
iconSize?: string
|
|
206
|
+
borderWidth?: number
|
|
207
|
+
iconColor?: string
|
|
208
|
+
gap?: number
|
|
209
|
+
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
210
|
+
iconType?: 'icon' | 'img'
|
|
211
|
+
mode?: 'search' | 'link'
|
|
212
|
+
productTypeList?: string[]
|
|
213
|
+
city?: boolean
|
|
214
|
+
cityColor?: string
|
|
215
|
+
citySize?: number
|
|
216
|
+
cityIconSize?: number
|
|
217
|
+
cityIconColor?: string
|
|
218
|
+
lineColor?: string
|
|
219
|
+
lineWidth?: number
|
|
220
|
+
linePadding?: number
|
|
221
|
+
lineHeight?: number
|
|
222
|
+
historyKey?: string
|
|
223
|
+
initFocus?: boolean
|
|
224
|
+
blockBackground?: string
|
|
225
|
+
} & {
|
|
226
|
+
jumpUrl?: string
|
|
227
|
+
urlParams?: string
|
|
228
|
+
customClass?: string
|
|
229
|
+
customStyle?: import('vue').StyleValue
|
|
230
|
+
renderMode?: 'view' | 'button'
|
|
164
231
|
} & {
|
|
165
232
|
jumpType: 17
|
|
166
233
|
requestInfo?: {
|
|
@@ -230,6 +297,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
230
297
|
urlParams?: string
|
|
231
298
|
customClass?: string
|
|
232
299
|
customStyle?: import('vue').StyleValue
|
|
300
|
+
renderMode?: 'view' | 'button'
|
|
233
301
|
} & {
|
|
234
302
|
jumpType: 105
|
|
235
303
|
addressInfo?: {
|
|
@@ -301,6 +369,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
301
369
|
urlParams?: string
|
|
302
370
|
customClass?: string
|
|
303
371
|
customStyle?: import('vue').StyleValue
|
|
372
|
+
renderMode?: 'view' | 'button'
|
|
304
373
|
} & {
|
|
305
374
|
jumpType: 106
|
|
306
375
|
requestParam?: Record<string, any>
|
|
@@ -367,6 +436,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
367
436
|
urlParams?: string
|
|
368
437
|
customClass?: string
|
|
369
438
|
customStyle?: import('vue').StyleValue
|
|
439
|
+
renderMode?: 'view' | 'button'
|
|
370
440
|
} & {
|
|
371
441
|
jumpType: 141
|
|
372
442
|
} & import('../lcb-block/types').LcbBlockProps
|
|
@@ -499,6 +569,31 @@ declare const _default: import('vue').DefineComponent<
|
|
|
499
569
|
linePadding: number
|
|
500
570
|
initFocus: boolean
|
|
501
571
|
}
|
|
572
|
+
| {
|
|
573
|
+
mode: 'search' | 'link'
|
|
574
|
+
color: string
|
|
575
|
+
lineHeight: number
|
|
576
|
+
radius: number
|
|
577
|
+
iconSize: string
|
|
578
|
+
iconColor: string
|
|
579
|
+
placeholder: string
|
|
580
|
+
lineWidth: number
|
|
581
|
+
marginHorizontal: number
|
|
582
|
+
paddingHorizontal: number
|
|
583
|
+
paddingVertical: number
|
|
584
|
+
fontSize: number
|
|
585
|
+
borderColor: string
|
|
586
|
+
gap: number
|
|
587
|
+
iconType: 'icon' | 'img'
|
|
588
|
+
borderWidth: number
|
|
589
|
+
cityColor: string
|
|
590
|
+
citySize: number
|
|
591
|
+
cityIconSize: number
|
|
592
|
+
cityIconColor: string
|
|
593
|
+
lineColor: string
|
|
594
|
+
linePadding: number
|
|
595
|
+
initFocus: boolean
|
|
596
|
+
}
|
|
502
597
|
| {
|
|
503
598
|
mode: 'search' | 'link'
|
|
504
599
|
color: string
|
package/utils/utils.ts
CHANGED