@tplc/business 0.2.46 → 0.2.49
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 +27 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +23 -8
- package/components/lcb-city-select/api/index.ts +1 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +4 -6
- package/components/lcb-city-select/components/lcb-city-list/index.vue +4 -4
- package/components/lcb-city-select/lcb-city-select.vue +1 -1
- package/components/lcb-product/lcb-product.vue +1 -1
- package/components/lcb-product-item/components/ItemValue.vue +1 -1
- package/constants.ts +1 -1
- package/global.d.ts +35 -35
- package/package.json +2 -2
- package/types/components/lcb-city-select/api/index.d.ts +1 -0
- package/types/constants.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
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.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.48...v0.2.49) (2025-01-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修复问题 ([2c67644](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2c67644cc03e4f88b8e0f5aac2f8837c9317f7ec))
|
|
11
|
+
* 修复问题 ([1c9f269](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1c9f269c95b79e67abeec8af5b309d765069fd3a))
|
|
12
|
+
* 修改打包方式 ([9580a78](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9580a789d427c2db7e07c493c36f7f03258d1462))
|
|
13
|
+
|
|
14
|
+
### [0.2.48](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.47...v0.2.48) (2025-01-01)
|
|
15
|
+
|
|
16
|
+
### [0.2.47](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.44...v0.2.47) (2025-01-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
20
|
+
|
|
21
|
+
* **release:** 0.1.50 ([5549bdb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5549bdbff6e55605c26f71f39d36f5deb5edfb69))
|
|
22
|
+
* **release:** 0.2.45 ([34ae620](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/34ae6208702fdb78e67010a7bbee6fa4c97a0b36))
|
|
23
|
+
* **release:** 0.2.46 ([0d48f4d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0d48f4d8059c2ece6970e1c6f9848189ef2367a3))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ✨ Features | 新功能
|
|
27
|
+
|
|
28
|
+
* action 调整布局 ([c2410b2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c2410b21437c1882c9b5b34f48f056d445b42754))
|
|
29
|
+
* sheet city-select 调整底部 ([e048be0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e048be0036c72a7648a8434bdfa66fd570df3bf4))
|
|
30
|
+
* 跳转layout策略 ([ba902ef](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba902effd43a57ff3b0d2da3af4088dea5363a9b))
|
|
31
|
+
|
|
5
32
|
### [0.2.46](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.45...v0.2.46) (2024-12-31)
|
|
6
33
|
|
|
7
34
|
|
|
@@ -23,7 +23,13 @@
|
|
|
23
23
|
<view class="v-line"></view>
|
|
24
24
|
<view class="flex-1 flex items-center gap-2">
|
|
25
25
|
<wd-icon name="search" size="34rpx" color="#999999" />
|
|
26
|
-
<
|
|
26
|
+
<input
|
|
27
|
+
class="text-#333"
|
|
28
|
+
:placeholder="placeholder"
|
|
29
|
+
:value="form.keywords"
|
|
30
|
+
@blur="onSearch"
|
|
31
|
+
@submit="onSearch"
|
|
32
|
+
/>
|
|
27
33
|
</view>
|
|
28
34
|
</view>
|
|
29
35
|
<lcb-action-view v-bind="link" v-if="link">
|
|
@@ -38,7 +44,7 @@ import dayjs from 'dayjs/esm'
|
|
|
38
44
|
import useLocation from '../../hooks/useLocation'
|
|
39
45
|
import { inject, Ref, ref, watch } from 'vue'
|
|
40
46
|
import { LcbCalendarSearchProps } from './types'
|
|
41
|
-
import {
|
|
47
|
+
import { LcbAddress } from '../lcb-city-select/api'
|
|
42
48
|
import { FORM_KEY } from '../../constants'
|
|
43
49
|
defineOptions({
|
|
44
50
|
name: 'LcbCalendarSearch',
|
|
@@ -54,9 +60,12 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
|
54
60
|
placeholder: '城市|地点|品牌',
|
|
55
61
|
icon: 'search',
|
|
56
62
|
})
|
|
57
|
-
const addressCity = ref<
|
|
58
|
-
const form = inject
|
|
59
|
-
const dayRange = ref([
|
|
63
|
+
const addressCity = ref<LcbAddress>()
|
|
64
|
+
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
65
|
+
const dayRange = ref([
|
|
66
|
+
form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
|
|
67
|
+
form.value.endDate ? dayjs(form.value.endDate).valueOf() : dayjs().add(1, 'day').valueOf(),
|
|
68
|
+
])
|
|
60
69
|
const { translate } = useTranslate()
|
|
61
70
|
const { getLocation, userLocation } = useLocation()
|
|
62
71
|
watch(
|
|
@@ -64,7 +73,7 @@ watch(
|
|
|
64
73
|
(val) => {
|
|
65
74
|
form!.value = {
|
|
66
75
|
...form!.value,
|
|
67
|
-
|
|
76
|
+
cityId: val?.cityId,
|
|
68
77
|
}
|
|
69
78
|
},
|
|
70
79
|
)
|
|
@@ -73,12 +82,18 @@ watch(
|
|
|
73
82
|
(val) => {
|
|
74
83
|
form!.value = {
|
|
75
84
|
...form!.value,
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
startDate: dayjs(val[0]).format('YYYY-MM-DD'),
|
|
86
|
+
endDate: dayjs(val[1]).format('YYYY-MM-DD'),
|
|
78
87
|
}
|
|
79
88
|
},
|
|
80
89
|
)
|
|
81
90
|
getLocation()
|
|
91
|
+
const onSearch = (e) => {
|
|
92
|
+
form.value = {
|
|
93
|
+
...form.value,
|
|
94
|
+
keywords: e.detail.value,
|
|
95
|
+
}
|
|
96
|
+
}
|
|
82
97
|
</script>
|
|
83
98
|
|
|
84
99
|
<style lang="scss" scoped>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<view
|
|
26
26
|
class="address-tag"
|
|
27
27
|
:class="{
|
|
28
|
-
'current-address': modelValue && modelValue.
|
|
28
|
+
'current-address': modelValue && modelValue.cityId === city.cityId,
|
|
29
29
|
}"
|
|
30
30
|
v-for="city in item.childHotAddress"
|
|
31
31
|
:key="city.addr"
|
|
@@ -79,7 +79,7 @@ const locationAddress = computed<HotAddress[]>(() => {
|
|
|
79
79
|
{
|
|
80
80
|
addressInfo: props.location.addressInfo,
|
|
81
81
|
addr: props.location.cityName,
|
|
82
|
-
|
|
82
|
+
cityId: props.location.cityId,
|
|
83
83
|
},
|
|
84
84
|
],
|
|
85
85
|
},
|
|
@@ -112,9 +112,7 @@ const onAddrClick = (city: ChildHotAddress, letter = false) => {
|
|
|
112
112
|
return
|
|
113
113
|
}
|
|
114
114
|
modelValue.value = city
|
|
115
|
-
historyAddress.value = historyAddress.value.filter(
|
|
116
|
-
(item) => item.hotAddressId !== city.hotAddressId,
|
|
117
|
-
)
|
|
115
|
+
historyAddress.value = historyAddress.value.filter((item) => item.cityId !== city.cityId)
|
|
118
116
|
if (historyAddress.value.length === 8) {
|
|
119
117
|
historyAddress.value = [city, ...historyAddress.value.slice(0, 7)]
|
|
120
118
|
} else {
|
|
@@ -129,7 +127,7 @@ const indexBars = computed<HotAddress[]>(() => {
|
|
|
129
127
|
childHotAddress: letterList.value.map((v) => {
|
|
130
128
|
return {
|
|
131
129
|
addr: v,
|
|
132
|
-
|
|
130
|
+
cityId: v,
|
|
133
131
|
}
|
|
134
132
|
}),
|
|
135
133
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="p-3 box-border h-full overflow-y-auto">
|
|
3
|
-
<view v-for="item in list" :key="item.
|
|
3
|
+
<view v-for="item in list" :key="item.cityId" @click="onItemClick(item)">
|
|
4
4
|
<view class="flex">
|
|
5
5
|
<view class="tag">{{ item.categoryName }}</view>
|
|
6
6
|
<view class="content">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<view class="flex gap-2 flex-wrap">
|
|
19
19
|
<view
|
|
20
20
|
v-for="item in historyList"
|
|
21
|
-
:key="item.
|
|
21
|
+
:key="item.cityId"
|
|
22
22
|
@click="emits('click', item)"
|
|
23
23
|
class="history-tag"
|
|
24
24
|
>
|
|
@@ -58,9 +58,9 @@ const getText = (text: string) => {
|
|
|
58
58
|
return `<div class="flex">${str}</div>`
|
|
59
59
|
}
|
|
60
60
|
const onItemClick = (item: LcbAddress) => {
|
|
61
|
-
if (historyList.value.some((historyItem) => historyItem.
|
|
61
|
+
if (historyList.value.some((historyItem) => historyItem.cityId === item.cityId)) {
|
|
62
62
|
historyList.value = historyList.value.filter(
|
|
63
|
-
(historyItem) => historyItem.
|
|
63
|
+
(historyItem) => historyItem.cityId !== item.cityId,
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
66
|
historyList.value.unshift(item)
|
package/constants.ts
CHANGED
package/global.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
// Helper for Volar
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
-
'lcb-absolute-config-layout': (typeof import('
|
|
5
|
-
'lcb-action-view': (typeof import('
|
|
6
|
-
'lcb-advert': (typeof import('
|
|
7
|
-
'lcb-area-picker': (typeof import('
|
|
8
|
-
'lcb-banner': (typeof import('
|
|
9
|
-
'lcb-banner-block': (typeof import('
|
|
10
|
-
'lcb-block': (typeof import('
|
|
11
|
-
'lcb-button': (typeof import('
|
|
12
|
-
'lcb-calendar': (typeof import('
|
|
13
|
-
'lcb-calendar-search': (typeof import('
|
|
14
|
-
'lcb-city-select': (typeof import('
|
|
15
|
-
'lcb-dynamic-data': (typeof import('
|
|
16
|
-
'lcb-gap': (typeof import('
|
|
17
|
-
'lcb-grid': (typeof import('
|
|
18
|
-
'lcb-home-search': (typeof import('
|
|
19
|
-
'lcb-image': (typeof import('
|
|
20
|
-
'lcb-img-nav': (typeof import('
|
|
21
|
-
'lcb-list': (typeof import('
|
|
22
|
-
'lcb-map': (typeof import('
|
|
23
|
-
'lcb-nav': (typeof import('
|
|
24
|
-
'lcb-notice': (typeof import('
|
|
25
|
-
'lcb-poster': (typeof import('
|
|
26
|
-
'lcb-product': (typeof import('
|
|
27
|
-
'lcb-product-item': (typeof import('
|
|
28
|
-
'lcb-rich-text': (typeof import('
|
|
29
|
-
'lcb-swiper': (typeof import('
|
|
30
|
-
'lcb-tags': (typeof import('
|
|
31
|
-
'lcb-text': (typeof import('
|
|
32
|
-
'lcb-title': (typeof import('
|
|
33
|
-
'lcb-user-order': (typeof import('
|
|
34
|
-
'lcb-user-top': (typeof import('
|
|
35
|
-
'lcb-video': (typeof import('
|
|
36
|
-
'lcb-vip': (typeof import('
|
|
37
|
-
'lcb-waterfall-item': (typeof import('
|
|
38
|
-
'lcb-waterfall': (typeof import('
|
|
4
|
+
'lcb-absolute-config-layout': (typeof import('@tplc/business/components/lcb-absolute-config-layout/lcb-absolute-config-layout.vue'))['default']
|
|
5
|
+
'lcb-action-view': (typeof import('@tplc/business/components/lcb-action-view/lcb-action-view.vue'))['default']
|
|
6
|
+
'lcb-advert': (typeof import('@tplc/business/components/lcb-advert/lcb-advert.vue'))['default']
|
|
7
|
+
'lcb-area-picker': (typeof import('@tplc/business/components/lcb-area-picker/lcb-area-picker.vue'))['default']
|
|
8
|
+
'lcb-banner': (typeof import('@tplc/business/components/lcb-banner/lcb-banner.vue'))['default']
|
|
9
|
+
'lcb-banner-block': (typeof import('@tplc/business/components/lcb-banner-block/lcb-banner-block.vue'))['default']
|
|
10
|
+
'lcb-block': (typeof import('@tplc/business/components/lcb-block/lcb-block.vue'))['default']
|
|
11
|
+
'lcb-button': (typeof import('@tplc/business/components/lcb-button/lcb-button.vue'))['default']
|
|
12
|
+
'lcb-calendar': (typeof import('@tplc/business/components/lcb-calendar/lcb-calendar.vue'))['default']
|
|
13
|
+
'lcb-calendar-search': (typeof import('@tplc/business/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
|
|
14
|
+
'lcb-city-select': (typeof import('@tplc/business/components/lcb-city-select/lcb-city-select.vue'))['default']
|
|
15
|
+
'lcb-dynamic-data': (typeof import('@tplc/business/components/lcb-dynamic-data/lcb-dynamic-data.vue'))['default']
|
|
16
|
+
'lcb-gap': (typeof import('@tplc/business/components/lcb-gap/lcb-gap.vue'))['default']
|
|
17
|
+
'lcb-grid': (typeof import('@tplc/business/components/lcb-grid/lcb-grid.vue'))['default']
|
|
18
|
+
'lcb-home-search': (typeof import('@tplc/business/components/lcb-home-search/lcb-home-search.vue'))['default']
|
|
19
|
+
'lcb-image': (typeof import('@tplc/business/components/lcb-image/lcb-image.vue'))['default']
|
|
20
|
+
'lcb-img-nav': (typeof import('@tplc/business/components/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
21
|
+
'lcb-list': (typeof import('@tplc/business/components/lcb-list/lcb-list.vue'))['default']
|
|
22
|
+
'lcb-map': (typeof import('@tplc/business/components/lcb-map/lcb-map.vue'))['default']
|
|
23
|
+
'lcb-nav': (typeof import('@tplc/business/components/lcb-nav/lcb-nav.vue'))['default']
|
|
24
|
+
'lcb-notice': (typeof import('@tplc/business/components/lcb-notice/lcb-notice.vue'))['default']
|
|
25
|
+
'lcb-poster': (typeof import('@tplc/business/components/lcb-poster/lcb-poster.vue'))['default']
|
|
26
|
+
'lcb-product': (typeof import('@tplc/business/components/lcb-product/lcb-product.vue'))['default']
|
|
27
|
+
'lcb-product-item': (typeof import('@tplc/business/components/lcb-product-item/lcb-product-item.vue'))['default']
|
|
28
|
+
'lcb-rich-text': (typeof import('@tplc/business/components/lcb-rich-text/lcb-rich-text.vue'))['default']
|
|
29
|
+
'lcb-swiper': (typeof import('@tplc/business/components/lcb-swiper/lcb-swiper.vue'))['default']
|
|
30
|
+
'lcb-tags': (typeof import('@tplc/business/components/lcb-tags/lcb-tags.vue'))['default']
|
|
31
|
+
'lcb-text': (typeof import('@tplc/business/components/lcb-text/lcb-text.vue'))['default']
|
|
32
|
+
'lcb-title': (typeof import('@tplc/business/components/lcb-title/lcb-title.vue'))['default']
|
|
33
|
+
'lcb-user-order': (typeof import('@tplc/business/components/lcb-user-order/lcb-user-order.vue'))['default']
|
|
34
|
+
'lcb-user-top': (typeof import('@tplc/business/components/lcb-user-top/lcb-user-top.vue'))['default']
|
|
35
|
+
'lcb-video': (typeof import('@tplc/business/components/lcb-video/lcb-video.vue'))['default']
|
|
36
|
+
'lcb-vip': (typeof import('@tplc/business/components/lcb-vip/lcb-vip.vue'))['default']
|
|
37
|
+
'lcb-waterfall-item': (typeof import('@tplc/business/components/lcb-waterfall/lcb-waterfall-item.vue'))['default']
|
|
38
|
+
'lcb-waterfall': (typeof import('@tplc/business/components/lcb-waterfall/lcb-waterfall.vue'))['default']
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
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": "0.1.
|
|
14
|
+
"@tplc/wot": "0.1.50"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
package/types/constants.d.ts
CHANGED