@tplc/business 0.2.42 → 0.2.43
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-calendar/lcb-calendar.vue +3 -1
- package/components/lcb-list/components/FilterList/mockData.ts +23 -1
- package/components/lcb-list/lcb-list.vue +2 -1
- package/components/lcb-product-item/components/ItemValue.vue +16 -1
- package/components/lcb-product-item/lcb-product-item.vue +3 -2
- package/components/lcb-product-item/types.ts +6 -6
- package/package.json +1 -1
- package/types/components/lcb-calendar/lcb-calendar.vue.d.ts +4 -0
- package/types/components/lcb-list/components/FilterList/mockData.d.ts +70 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +6 -6
- package/types/components/lcb-product-item/types.d.ts +6 -6
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.2.43](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.39...v0.2.43) (2024-12-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.2.40 ([b1b987e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1b987e81ee07cb39d573755fb3908c9a7d5faaf))
|
|
11
|
+
* **release:** 0.2.41 ([16175da](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/16175dab3d57024b29a9361169adaa1058c616e9))
|
|
12
|
+
* **release:** 0.2.42 ([dee4d72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dee4d72b27c620fe854fe32c28a52fe2c3d299c0))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* add map list ([f22a31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f22a31b5dd263d036e1c36ac979ce7a93d4f9d18))
|
|
18
|
+
* map color ([59b79eb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/59b79eb7720de13f338b5d485408d1827618bd4f))
|
|
19
|
+
* map link ([f64b14f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f64b14f9889077f846dfedc3cc8899427f894307))
|
|
20
|
+
* map 支持过滤 ([fd5c4fb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fd5c4fbcc0d48afa5e9947664b5fd7e0682068b8))
|
|
21
|
+
* search 新增图标 ([35a63ef](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/35a63effa6a6269b8f12dd69141aa8bf915c83b6))
|
|
22
|
+
* wot ([b9a942a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b9a942a41a98caf326392c2f0ab5c583ae7318dd))
|
|
23
|
+
* 增加 product-item 各类文本字体相关配置 ([091cec0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/091cec051ce4639e73f1b9933857bdb768d0e552))
|
|
24
|
+
* 支持poster ([619043a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/619043abbb55908206793076003471666be76f47))
|
|
25
|
+
* 新增测试waterfall ([34b352d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/34b352dffc3fcc852a658e34ac673bd5d1c77a4d))
|
|
26
|
+
|
|
5
27
|
### [0.2.42](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.41...v0.2.42) (2024-12-29)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
:formatter="formatter"
|
|
8
8
|
:min-date="minDate"
|
|
9
9
|
:max-date="maxDate"
|
|
10
|
+
@open="emits('open')"
|
|
11
|
+
@cancel="emits('cancel')"
|
|
10
12
|
>
|
|
11
13
|
<slot />
|
|
12
14
|
</wd-calendar>
|
|
@@ -28,7 +30,7 @@ defineOptions({
|
|
|
28
30
|
},
|
|
29
31
|
})
|
|
30
32
|
const holidayInfo = ref<Record<string, LcbHistoryResult>>({})
|
|
31
|
-
|
|
33
|
+
const emits = defineEmits(['open', 'cancel'])
|
|
32
34
|
const props = defineProps({
|
|
33
35
|
customClass: {
|
|
34
36
|
type: String,
|
|
@@ -569,7 +569,29 @@ export default {
|
|
|
569
569
|
tags: '["5.19广东文旅促消费民宿","9折","茶室"]',
|
|
570
570
|
weightSort: '999.0',
|
|
571
571
|
},
|
|
572
|
-
]
|
|
572
|
+
].map((item) => {
|
|
573
|
+
return {
|
|
574
|
+
// productName: 'productName',
|
|
575
|
+
// subTitle: 'subTitle',
|
|
576
|
+
subTitle: '专用通道接送8分钟到候机楼',
|
|
577
|
+
scoreAvg: 4.7,
|
|
578
|
+
scoreTips: '很好',
|
|
579
|
+
// level: 4,
|
|
580
|
+
// imgCornerIcon: 'test',
|
|
581
|
+
// imgBottomIcon: 'test',
|
|
582
|
+
titleIcon: 'I',
|
|
583
|
+
userInteractionInfo: '2991点评 · 8039收藏',
|
|
584
|
+
orderTips: '18分钟前有人预定',
|
|
585
|
+
priceTips: '白银贵宾价 | 十亿豪补 | 2项优惠',
|
|
586
|
+
// price: 'price',
|
|
587
|
+
// priceUnit: 'priceUnit',
|
|
588
|
+
// priceSuffix: 'priceSuffix',
|
|
589
|
+
// scribePrice: 'scribePrice',
|
|
590
|
+
// scribePriceUnit: 'scribePriceUnit',
|
|
591
|
+
// scribePriceSuffix: 'scribePriceSuffix',
|
|
592
|
+
...item,
|
|
593
|
+
}
|
|
594
|
+
}),
|
|
573
595
|
dataClass: 'java.util.ArrayList',
|
|
574
596
|
traceId: '69d6cb39-b575-4557-b46a-2a7736286b43',
|
|
575
597
|
}
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
</FilterList>
|
|
48
48
|
<lcb-map v-else-if="mode === 'map'" v-bind="{ ...info.listInfo, ...attrs }" />
|
|
49
49
|
</template>
|
|
50
|
+
<!-- <lcb-product v-bind="{ ...attrs }" :listType="listType" :items="mockData.data" v-else /> -->
|
|
50
51
|
</template>
|
|
51
52
|
|
|
52
53
|
<script setup lang="ts">
|
|
@@ -55,7 +56,7 @@ import { getFilterDetail, LcbFilterResult } from './api'
|
|
|
55
56
|
import FilterList from './components/FilterList/index.vue'
|
|
56
57
|
import FilterView from './components/FilterView/index.vue'
|
|
57
58
|
import { LcbListProps } from './types'
|
|
58
|
-
|
|
59
|
+
import mockData from './components/FilterList/mockData'
|
|
59
60
|
import { FORM_KEY } from '../../constants'
|
|
60
61
|
import './index.scss'
|
|
61
62
|
const attrs = useAttrs()
|
|
@@ -13,6 +13,9 @@ defineOptions({
|
|
|
13
13
|
// const attrs = useAttrs()
|
|
14
14
|
|
|
15
15
|
const itemProps: any = inject('lcb-product-item-props')
|
|
16
|
+
const itemAttrs: any = inject('lcb-product-item-attrs')
|
|
17
|
+
|
|
18
|
+
// console.log('itemAttrs', itemAttrs)
|
|
16
19
|
|
|
17
20
|
const props = withDefaults(
|
|
18
21
|
defineProps<{
|
|
@@ -53,7 +56,19 @@ const className = computed(() => {
|
|
|
53
56
|
return `${itemProps?.[`${props?.prop}Class`] ?? ''} ${props?.customClass}`
|
|
54
57
|
})
|
|
55
58
|
const style = computed(() => {
|
|
56
|
-
|
|
59
|
+
const style = itemProps?.[`${props?.prop}Style`] ?? {}
|
|
60
|
+
|
|
61
|
+
const fontSize = itemAttrs?.[`${props?.prop}FontSize`]
|
|
62
|
+
const fontWeight = itemAttrs?.[`${props?.prop}Bold`] === true ? 'bold' : 'normal'
|
|
63
|
+
const color = itemAttrs?.[`${props?.prop}Color`]
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
fontSize,
|
|
67
|
+
fontWeight,
|
|
68
|
+
color,
|
|
69
|
+
...style,
|
|
70
|
+
}
|
|
71
|
+
// return itemProps?.[`${props?.prop}Style`] ?? ''
|
|
57
72
|
})
|
|
58
73
|
const value = computed(() => {
|
|
59
74
|
if (props?.prop === 'coverImg') {
|
|
@@ -25,7 +25,7 @@ const props = withDefaults(defineProps<LcbProductItemProps>(), {
|
|
|
25
25
|
priceUnit: '¥',
|
|
26
26
|
scribePriceUnit: '¥',
|
|
27
27
|
coverImgVisible: true,
|
|
28
|
-
|
|
28
|
+
productNameVisible: true,
|
|
29
29
|
subTitleVisible: true,
|
|
30
30
|
priceVisible: true,
|
|
31
31
|
userInfoVisible: false,
|
|
@@ -35,7 +35,7 @@ const props = withDefaults(defineProps<LcbProductItemProps>(), {
|
|
|
35
35
|
scribePriceVisible: true,
|
|
36
36
|
scribePriceUnitVisible: true,
|
|
37
37
|
scribePriceSuffixVisible: true,
|
|
38
|
-
|
|
38
|
+
scoreAvgVisible: true,
|
|
39
39
|
scoreTipsVisible: true,
|
|
40
40
|
levelVisible: true,
|
|
41
41
|
imgCornerIconVisible: true,
|
|
@@ -49,6 +49,7 @@ const props = withDefaults(defineProps<LcbProductItemProps>(), {
|
|
|
49
49
|
})
|
|
50
50
|
const attrs = useAttrs()
|
|
51
51
|
provide('lcb-product-item-props', props)
|
|
52
|
+
provide('lcb-product-item-attrs', attrs)
|
|
52
53
|
|
|
53
54
|
defineSlots<{
|
|
54
55
|
coverImg(props: { value: any }): any
|
|
@@ -41,7 +41,7 @@ export interface LcbProductItemProps {
|
|
|
41
41
|
orderTips?: any
|
|
42
42
|
|
|
43
43
|
coverImgVisible?: boolean
|
|
44
|
-
|
|
44
|
+
productNameVisible?: boolean
|
|
45
45
|
subTitleVisible?: boolean
|
|
46
46
|
userInfoVisible?: boolean
|
|
47
47
|
priceVisible?: boolean
|
|
@@ -54,7 +54,7 @@ export interface LcbProductItemProps {
|
|
|
54
54
|
tagsVisible?: boolean
|
|
55
55
|
addressIntroVisible?: boolean
|
|
56
56
|
distanceVisible?: boolean
|
|
57
|
-
|
|
57
|
+
scoreAvgVisible?: boolean
|
|
58
58
|
scoreTipsVisible?: boolean
|
|
59
59
|
levelVisible?: boolean
|
|
60
60
|
imgCornerIconVisible?: boolean
|
|
@@ -64,7 +64,7 @@ export interface LcbProductItemProps {
|
|
|
64
64
|
orderTipsVisible?: boolean
|
|
65
65
|
|
|
66
66
|
coverImgClass?: string
|
|
67
|
-
|
|
67
|
+
productNameClass?: string
|
|
68
68
|
subTitleClass?: string
|
|
69
69
|
priceClass?: string
|
|
70
70
|
priceUnitClass?: string
|
|
@@ -77,7 +77,7 @@ export interface LcbProductItemProps {
|
|
|
77
77
|
tagsWrapperClass?: string
|
|
78
78
|
addressIntroClass?: string
|
|
79
79
|
distanceClass?: string
|
|
80
|
-
|
|
80
|
+
scoreAvgClass?: string
|
|
81
81
|
scoreTipsClass?: string
|
|
82
82
|
levelClass?: string
|
|
83
83
|
imgCornerIconClass?: string
|
|
@@ -87,7 +87,7 @@ export interface LcbProductItemProps {
|
|
|
87
87
|
orderTipsClass?: string
|
|
88
88
|
|
|
89
89
|
coverImgStyle?: CSSProperties
|
|
90
|
-
|
|
90
|
+
productNameStyle?: CSSProperties
|
|
91
91
|
subTitleStyle?: CSSProperties
|
|
92
92
|
priceStyle?: CSSProperties
|
|
93
93
|
priceUnitStyle?: CSSProperties
|
|
@@ -100,7 +100,7 @@ export interface LcbProductItemProps {
|
|
|
100
100
|
tagsWrapperStyle?: CSSProperties
|
|
101
101
|
addressIntroStyle?: CSSProperties
|
|
102
102
|
distanceStyle?: CSSProperties
|
|
103
|
-
|
|
103
|
+
scoreAvgStyle?: CSSProperties
|
|
104
104
|
scoreTipsStyle?: CSSProperties
|
|
105
105
|
levelStyle?: CSSProperties
|
|
106
106
|
imgCornerIconStyle?: CSSProperties
|
package/package.json
CHANGED
|
@@ -60,6 +60,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
60
60
|
import('vue').ComponentOptionsMixin,
|
|
61
61
|
{
|
|
62
62
|
'update:modelValue': (modelValue: number[]) => void
|
|
63
|
+
open: (...args: any[]) => void
|
|
64
|
+
cancel: (...args: any[]) => void
|
|
63
65
|
},
|
|
64
66
|
string,
|
|
65
67
|
import('vue').PublicProps,
|
|
@@ -116,6 +118,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
116
118
|
}>
|
|
117
119
|
> & {
|
|
118
120
|
'onUpdate:modelValue'?: ((modelValue: number[]) => any) | undefined
|
|
121
|
+
onCancel?: ((...args: any[]) => any) | undefined
|
|
122
|
+
onOpen?: ((...args: any[]) => any) | undefined
|
|
119
123
|
},
|
|
120
124
|
{
|
|
121
125
|
customClass: string
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
code: string
|
|
3
|
+
count: number
|
|
4
|
+
data: {
|
|
5
|
+
address: string
|
|
6
|
+
agentId: string
|
|
7
|
+
areaId: string
|
|
8
|
+
areaName: string
|
|
9
|
+
auditDateTime: string
|
|
10
|
+
auditRemark: string
|
|
11
|
+
auditStatus: number
|
|
12
|
+
behindUnit: string
|
|
13
|
+
bigIcon: boolean
|
|
14
|
+
businessStatus: number
|
|
15
|
+
cityAreaName: string
|
|
16
|
+
cityId: string
|
|
17
|
+
cityName: string
|
|
18
|
+
clickCount: number
|
|
19
|
+
collectCount: number
|
|
20
|
+
collectFlag: boolean
|
|
21
|
+
commentCount: number
|
|
22
|
+
coverImg: string
|
|
23
|
+
createDate: string
|
|
24
|
+
distance: string
|
|
25
|
+
hideTags: string
|
|
26
|
+
hierarchy: number
|
|
27
|
+
lastModifyDate: string
|
|
28
|
+
latitude: string
|
|
29
|
+
level: string
|
|
30
|
+
longitude: string
|
|
31
|
+
mapShowFlag: boolean
|
|
32
|
+
marketingType: number
|
|
33
|
+
merchantHeadId: string
|
|
34
|
+
merchantId: string
|
|
35
|
+
orderCount: number
|
|
36
|
+
orderSkuCount: number
|
|
37
|
+
peopleNumScope: string
|
|
38
|
+
phone: string
|
|
39
|
+
poiId: string
|
|
40
|
+
poiName: string
|
|
41
|
+
poiNameI18n: string
|
|
42
|
+
poiType: string
|
|
43
|
+
praiseCount: number
|
|
44
|
+
praiseFlag: boolean
|
|
45
|
+
price: number
|
|
46
|
+
productId: string
|
|
47
|
+
productName: string
|
|
48
|
+
productNameI18n: string
|
|
49
|
+
productType: string
|
|
50
|
+
provinceId: string
|
|
51
|
+
provinceName: string
|
|
52
|
+
scribePrice: number
|
|
53
|
+
showDateFlag: boolean
|
|
54
|
+
startDateStr: string
|
|
55
|
+
startTime: string
|
|
56
|
+
status: number
|
|
57
|
+
tags: string
|
|
58
|
+
weightSort: string
|
|
59
|
+
subTitle: string
|
|
60
|
+
scoreAvg: number
|
|
61
|
+
scoreTips: string
|
|
62
|
+
titleIcon: string
|
|
63
|
+
userInteractionInfo: string
|
|
64
|
+
orderTips: string
|
|
65
|
+
priceTips: string
|
|
66
|
+
}[]
|
|
67
|
+
dataClass: string
|
|
68
|
+
traceId: string
|
|
69
|
+
}
|
|
70
|
+
export default _default
|
|
@@ -78,7 +78,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
78
78
|
priceUnit: string
|
|
79
79
|
scribePriceUnit: string
|
|
80
80
|
coverImgVisible: boolean
|
|
81
|
-
|
|
81
|
+
productNameVisible: boolean
|
|
82
82
|
subTitleVisible: boolean
|
|
83
83
|
priceVisible: boolean
|
|
84
84
|
userInfoVisible: boolean
|
|
@@ -88,7 +88,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
88
88
|
scribePriceVisible: boolean
|
|
89
89
|
scribePriceUnitVisible: boolean
|
|
90
90
|
scribePriceSuffixVisible: boolean
|
|
91
|
-
|
|
91
|
+
scoreAvgVisible: boolean
|
|
92
92
|
scoreTipsVisible: boolean
|
|
93
93
|
levelVisible: boolean
|
|
94
94
|
imgCornerIconVisible: boolean
|
|
@@ -127,7 +127,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
127
127
|
priceUnit: string
|
|
128
128
|
scribePriceUnit: string
|
|
129
129
|
coverImgVisible: boolean
|
|
130
|
-
|
|
130
|
+
productNameVisible: boolean
|
|
131
131
|
subTitleVisible: boolean
|
|
132
132
|
priceVisible: boolean
|
|
133
133
|
userInfoVisible: boolean
|
|
@@ -137,7 +137,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
137
137
|
scribePriceVisible: boolean
|
|
138
138
|
scribePriceUnitVisible: boolean
|
|
139
139
|
scribePriceSuffixVisible: boolean
|
|
140
|
-
|
|
140
|
+
scoreAvgVisible: boolean
|
|
141
141
|
scoreTipsVisible: boolean
|
|
142
142
|
levelVisible: boolean
|
|
143
143
|
imgCornerIconVisible: boolean
|
|
@@ -165,7 +165,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
165
165
|
distanceUnit: string
|
|
166
166
|
imageType: 'square' | 'vertical' | 'horizontal'
|
|
167
167
|
coverImgVisible: boolean
|
|
168
|
-
|
|
168
|
+
productNameVisible: boolean
|
|
169
169
|
subTitleVisible: boolean
|
|
170
170
|
userInfoVisible: boolean
|
|
171
171
|
priceVisible: boolean
|
|
@@ -178,7 +178,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
178
178
|
tagsVisible: boolean
|
|
179
179
|
addressIntroVisible: boolean
|
|
180
180
|
distanceVisible: boolean
|
|
181
|
-
|
|
181
|
+
scoreAvgVisible: boolean
|
|
182
182
|
scoreTipsVisible: boolean
|
|
183
183
|
levelVisible: boolean
|
|
184
184
|
imgCornerIconVisible: boolean
|
|
@@ -37,7 +37,7 @@ export interface LcbProductItemProps {
|
|
|
37
37
|
userInteractionInfo?: any
|
|
38
38
|
orderTips?: any
|
|
39
39
|
coverImgVisible?: boolean
|
|
40
|
-
|
|
40
|
+
productNameVisible?: boolean
|
|
41
41
|
subTitleVisible?: boolean
|
|
42
42
|
userInfoVisible?: boolean
|
|
43
43
|
priceVisible?: boolean
|
|
@@ -50,7 +50,7 @@ export interface LcbProductItemProps {
|
|
|
50
50
|
tagsVisible?: boolean
|
|
51
51
|
addressIntroVisible?: boolean
|
|
52
52
|
distanceVisible?: boolean
|
|
53
|
-
|
|
53
|
+
scoreAvgVisible?: boolean
|
|
54
54
|
scoreTipsVisible?: boolean
|
|
55
55
|
levelVisible?: boolean
|
|
56
56
|
imgCornerIconVisible?: boolean
|
|
@@ -59,7 +59,7 @@ export interface LcbProductItemProps {
|
|
|
59
59
|
userInteractionInfoVisible?: boolean
|
|
60
60
|
orderTipsVisible?: boolean
|
|
61
61
|
coverImgClass?: string
|
|
62
|
-
|
|
62
|
+
productNameClass?: string
|
|
63
63
|
subTitleClass?: string
|
|
64
64
|
priceClass?: string
|
|
65
65
|
priceUnitClass?: string
|
|
@@ -72,7 +72,7 @@ export interface LcbProductItemProps {
|
|
|
72
72
|
tagsWrapperClass?: string
|
|
73
73
|
addressIntroClass?: string
|
|
74
74
|
distanceClass?: string
|
|
75
|
-
|
|
75
|
+
scoreAvgClass?: string
|
|
76
76
|
scoreTipsClass?: string
|
|
77
77
|
levelClass?: string
|
|
78
78
|
imgCornerIconClass?: string
|
|
@@ -81,7 +81,7 @@ export interface LcbProductItemProps {
|
|
|
81
81
|
userInteractionInfoClass?: string
|
|
82
82
|
orderTipsClass?: string
|
|
83
83
|
coverImgStyle?: CSSProperties
|
|
84
|
-
|
|
84
|
+
productNameStyle?: CSSProperties
|
|
85
85
|
subTitleStyle?: CSSProperties
|
|
86
86
|
priceStyle?: CSSProperties
|
|
87
87
|
priceUnitStyle?: CSSProperties
|
|
@@ -94,7 +94,7 @@ export interface LcbProductItemProps {
|
|
|
94
94
|
tagsWrapperStyle?: CSSProperties
|
|
95
95
|
addressIntroStyle?: CSSProperties
|
|
96
96
|
distanceStyle?: CSSProperties
|
|
97
|
-
|
|
97
|
+
scoreAvgStyle?: CSSProperties
|
|
98
98
|
scoreTipsStyle?: CSSProperties
|
|
99
99
|
levelStyle?: CSSProperties
|
|
100
100
|
imgCornerIconStyle?: CSSProperties
|