@tplc/business 0.4.50 → 0.4.52
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 +14 -0
- package/components/lcb-area/lcb-area.vue +2 -0
- package/components/lcb-area/types.ts +1 -0
- package/components/lcb-home-search/lcb-home-search.vue +7 -4
- package/components/lcb-list/components/FilterList/index.vue +2 -2
- package/components/lcb-tabs/components/Tabs/index.vue +14 -16
- package/components/lcb-tabs/components/Tags/index.vue +20 -22
- package/components/lcb-tabs/lcb-tabs.vue +4 -2
- package/components/lcb-user-top/lcb-user-top.vue +8 -4
- package/components/lcb-user-top/types.ts +4 -0
- package/package.json +1 -1
- package/types/components/lcb-area/lcb-area.vue.d.ts +3 -0
- package/types/components/lcb-area/types.d.ts +1 -0
- package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +12 -0
- package/types/components/lcb-user-top/types.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.51...v0.4.52) (2025-04-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 兼容数据 ([acaf31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaf31bd203f7725a139bc2e2e312debb00ce7dd))
|
|
11
|
+
|
|
12
|
+
### [0.4.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.50...v0.4.51) (2025-04-02)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* 调整图片 ([227c350](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/227c350287e154ee1bb30c6689cd64a8a97642f2))
|
|
18
|
+
|
|
5
19
|
### [0.4.50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.49...v0.4.50) (2025-04-02)
|
|
6
20
|
|
|
7
21
|
### [0.4.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.48...v0.4.49) (2025-04-02)
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
? `span ${areaItems?.[index]?.colSpan} / span ${areaItems?.[index]?.colSpan}`
|
|
19
19
|
: undefined,
|
|
20
20
|
flex: display === 'flex' ? '1 1 0' : undefined,
|
|
21
|
+
overflowX,
|
|
21
22
|
}"
|
|
22
23
|
>
|
|
23
24
|
<slot :item="item" />
|
|
@@ -41,6 +42,7 @@ defineOptions({
|
|
|
41
42
|
const props = withDefaults(defineProps<LcbAreaProps>(), {
|
|
42
43
|
displayFlex: 'row',
|
|
43
44
|
display: 'flex',
|
|
45
|
+
overflowX: 'initial',
|
|
44
46
|
})
|
|
45
47
|
|
|
46
48
|
const innerStyle = computed(() => {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
color: form.keywords ? 'var(--content-color)' : '#969696',
|
|
54
54
|
}"
|
|
55
55
|
v-bind="inputLink"
|
|
56
|
-
:urlParams="
|
|
56
|
+
:urlParams="urlParams"
|
|
57
57
|
>
|
|
58
58
|
{{ form.keywords || placeholder }}
|
|
59
59
|
</lcb-action-view>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<view class="tag">{{ translate('共') }}{{ nightCount }}{{ translate('晚') }}</view>
|
|
88
88
|
</view>
|
|
89
89
|
</lcb-calendar>
|
|
90
|
-
<lcb-action-view v-bind="link" :urlParams="
|
|
90
|
+
<lcb-action-view v-bind="link" :urlParams="urlParams">
|
|
91
91
|
<wd-button type="primary" customClass="!w-full my-42rpx" size="large">
|
|
92
92
|
{{ btnText || `${translate('搜索')}${tabs?.[current]?.label || ''}` }}
|
|
93
93
|
</wd-button>
|
|
@@ -161,8 +161,11 @@ const getDayName = (time: number) => {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
const urlParams = computed(() => {
|
|
165
|
+
return stringify({
|
|
166
|
+
...form.value,
|
|
167
|
+
categoryTags: props.tabs[current.value].value,
|
|
168
|
+
})
|
|
166
169
|
})
|
|
167
170
|
|
|
168
171
|
watchEffect(() => {
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</lcb-block>
|
|
17
|
-
</view>
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
|
+
<wd-tabs
|
|
4
|
+
custom-class="!bg-transparent"
|
|
5
|
+
@change="handleChange"
|
|
6
|
+
:lineWidth="lineWidth"
|
|
7
|
+
:lineHeight="lineHeight"
|
|
8
|
+
:slidable="slidable"
|
|
9
|
+
:slidableNum="slidableNum"
|
|
10
|
+
:itemFontSize="itemFontSize"
|
|
11
|
+
ref="tabs"
|
|
12
|
+
>
|
|
13
|
+
<wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
|
|
14
|
+
</wd-tabs>
|
|
15
|
+
</lcb-block>
|
|
18
16
|
</template>
|
|
19
17
|
|
|
20
18
|
<script setup lang="ts">
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
|
+
<view
|
|
4
|
+
:class="{
|
|
5
|
+
'flex flex-wrap': tagsMode === 'tiled',
|
|
6
|
+
'flex whitespace-nowrap overflow-x-auto': tagsMode === 'scroll',
|
|
7
|
+
}"
|
|
8
|
+
:style="{
|
|
9
|
+
gap: transformValueUnit(gap),
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
4
12
|
<view
|
|
13
|
+
v-for="(item, index) in items"
|
|
14
|
+
:key="index"
|
|
15
|
+
class="lcb-tag"
|
|
5
16
|
:class="{
|
|
6
|
-
'
|
|
7
|
-
'
|
|
17
|
+
'lcb-tag-active': current === index,
|
|
18
|
+
'inline-block': tagsMode === 'scroll',
|
|
8
19
|
}"
|
|
9
20
|
:style="{
|
|
10
|
-
|
|
21
|
+
fontSize: transformValueUnit(itemFontSize),
|
|
11
22
|
}"
|
|
23
|
+
@click="handleTagClick(item.name, index)"
|
|
12
24
|
>
|
|
13
|
-
|
|
14
|
-
v-for="(item, index) in items"
|
|
15
|
-
:key="index"
|
|
16
|
-
class="lcb-tag"
|
|
17
|
-
:class="{
|
|
18
|
-
'lcb-tag-active': current === index,
|
|
19
|
-
'inline-block': tagsMode === 'scroll',
|
|
20
|
-
}"
|
|
21
|
-
:style="{
|
|
22
|
-
fontSize: transformValueUnit(itemFontSize),
|
|
23
|
-
}"
|
|
24
|
-
@click="handleTagClick(item.name, index)"
|
|
25
|
-
>
|
|
26
|
-
{{ item.title }}
|
|
27
|
-
</view>
|
|
25
|
+
{{ item.title }}
|
|
28
26
|
</view>
|
|
29
|
-
</
|
|
30
|
-
</
|
|
27
|
+
</view>
|
|
28
|
+
</lcb-block>
|
|
31
29
|
</template>
|
|
32
30
|
|
|
33
31
|
<script setup lang="ts">
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wd-sticky v-if="sticky">
|
|
3
|
-
<
|
|
4
|
-
|
|
3
|
+
<view class="w-100vw">
|
|
4
|
+
<Tabs v-bind="$props" v-if="mode === 'tabs'" />
|
|
5
|
+
<Tags v-bind="$props" v-else />
|
|
6
|
+
</view>
|
|
5
7
|
</wd-sticky>
|
|
6
8
|
<Tabs v-else-if="mode === 'tabs'" v-bind="$props" />
|
|
7
9
|
<Tags v-else v-bind="$props" />
|
|
@@ -92,28 +92,28 @@
|
|
|
92
92
|
v-if="valuesCard == true"
|
|
93
93
|
v-bind="$props"
|
|
94
94
|
:title="valuesCardText"
|
|
95
|
-
valueKey="
|
|
95
|
+
:valueKey="valuesCardKey"
|
|
96
96
|
:link="valuesCardLink"
|
|
97
97
|
/>
|
|
98
98
|
<Nums
|
|
99
99
|
v-if="coupons == true"
|
|
100
100
|
v-bind="$props"
|
|
101
101
|
:title="couponsText"
|
|
102
|
-
valueKey="
|
|
102
|
+
:valueKey="couponsKey"
|
|
103
103
|
:link="couponsLink"
|
|
104
104
|
/>
|
|
105
105
|
<Nums
|
|
106
106
|
v-if="presales == true"
|
|
107
107
|
v-bind="$props"
|
|
108
108
|
:title="presalesText"
|
|
109
|
-
valueKey="
|
|
109
|
+
:valueKey="presalesKey"
|
|
110
110
|
:link="presalesLink"
|
|
111
111
|
/>
|
|
112
112
|
<Nums
|
|
113
113
|
v-if="memberPoints == true"
|
|
114
114
|
v-bind="$props"
|
|
115
115
|
:title="memberPointsText"
|
|
116
|
-
valueKey="
|
|
116
|
+
:valueKey="memberPointsKey"
|
|
117
117
|
:link="memberPointsLink"
|
|
118
118
|
/>
|
|
119
119
|
</view>
|
|
@@ -158,6 +158,10 @@ withDefaults(defineProps<LcbUserTopProps>(), {
|
|
|
158
158
|
presalesText: '预售券',
|
|
159
159
|
memberPointsText: '会员积分',
|
|
160
160
|
titleMarginTop: 15,
|
|
161
|
+
valuesCardKey: 'walletAmount',
|
|
162
|
+
couponsKey: 'voucherCount',
|
|
163
|
+
presalesKey: 'presellCount',
|
|
164
|
+
memberPointsKey: 'usePoint',
|
|
161
165
|
valuesCardLink: () => ({
|
|
162
166
|
jumpType: 2,
|
|
163
167
|
jumpUrl: '/pages-sub/walletAccount/index',
|
|
@@ -42,6 +42,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
|
|
|
42
42
|
couponsLink?: LcbActionViewProps
|
|
43
43
|
presalesLink?: LcbActionViewProps
|
|
44
44
|
memberPointsLink?: LcbActionViewProps
|
|
45
|
+
valuesCardKey?: string
|
|
46
|
+
couponsKey?: string
|
|
47
|
+
presalesKey?: string
|
|
48
|
+
memberPointsKey?: string
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
export interface NumsItemProps {
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
8
8
|
{
|
|
9
9
|
displayFlex: string
|
|
10
10
|
display: string
|
|
11
|
+
overflowX: string
|
|
11
12
|
}
|
|
12
13
|
>,
|
|
13
14
|
{},
|
|
@@ -26,6 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
26
27
|
{
|
|
27
28
|
displayFlex: string
|
|
28
29
|
display: string
|
|
30
|
+
overflowX: string
|
|
29
31
|
}
|
|
30
32
|
>
|
|
31
33
|
>
|
|
@@ -33,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
33
35
|
{
|
|
34
36
|
display: 'flex' | 'grid'
|
|
35
37
|
displayFlex: 'row' | 'column'
|
|
38
|
+
overflowX: 'hidden' | 'initial' | 'auto'
|
|
36
39
|
},
|
|
37
40
|
{}
|
|
38
41
|
>
|
|
@@ -22,6 +22,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
22
22
|
presalesText: string
|
|
23
23
|
memberPointsText: string
|
|
24
24
|
titleMarginTop: number
|
|
25
|
+
valuesCardKey: string
|
|
26
|
+
couponsKey: string
|
|
27
|
+
presalesKey: string
|
|
28
|
+
memberPointsKey: string
|
|
25
29
|
valuesCardLink: () => {
|
|
26
30
|
jumpType: number
|
|
27
31
|
jumpUrl: string
|
|
@@ -73,6 +77,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
73
77
|
presalesText: string
|
|
74
78
|
memberPointsText: string
|
|
75
79
|
titleMarginTop: number
|
|
80
|
+
valuesCardKey: string
|
|
81
|
+
couponsKey: string
|
|
82
|
+
presalesKey: string
|
|
83
|
+
memberPointsKey: string
|
|
76
84
|
valuesCardLink: () => {
|
|
77
85
|
jumpType: number
|
|
78
86
|
jumpUrl: string
|
|
@@ -117,6 +125,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
117
125
|
couponsLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
118
126
|
presalesLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
119
127
|
memberPointsLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
128
|
+
valuesCardKey: string
|
|
129
|
+
couponsKey: string
|
|
130
|
+
presalesKey: string
|
|
131
|
+
memberPointsKey: string
|
|
120
132
|
},
|
|
121
133
|
{}
|
|
122
134
|
>
|
|
@@ -39,6 +39,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
|
|
|
39
39
|
couponsLink?: LcbActionViewProps
|
|
40
40
|
presalesLink?: LcbActionViewProps
|
|
41
41
|
memberPointsLink?: LcbActionViewProps
|
|
42
|
+
valuesCardKey?: string
|
|
43
|
+
couponsKey?: string
|
|
44
|
+
presalesKey?: string
|
|
45
|
+
memberPointsKey?: string
|
|
42
46
|
}
|
|
43
47
|
export interface NumsItemProps {
|
|
44
48
|
numsSize?: number
|