@tplc/business 0.3.55 → 0.3.57
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 +20 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +13 -8
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +5 -4
- package/components/lcb-city-select/components/lcb-city-list/index.vue +4 -3
- package/package.json +1 -1
- package/utils/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.3.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.56...v0.3.57) (2025-02-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 支持时间同步 ([9a24a96](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a24a96d0a87e4b49362ff6a3602a15ed27b86c5))
|
|
11
|
+
|
|
12
|
+
### [0.3.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.54...v0.3.56) (2025-02-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
16
|
+
|
|
17
|
+
* **release:** 0.3.55 ([887edd6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/887edd642400c561dcbf7a56746d9ef8564e5c17))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ✨ Features | 新功能
|
|
21
|
+
|
|
22
|
+
* cancel ([f63cd15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f63cd1541dac3a592233eb6479012d7869fde91d))
|
|
23
|
+
* 新增241 ([3550874](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/355087493cc8275a2602bb51bafed07f1d3c9658))
|
|
24
|
+
|
|
5
25
|
### [0.3.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.49...v0.3.55) (2025-02-20)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
import { useTranslate } from '@tplc/wot'
|
|
43
43
|
import dayjs from 'dayjs/esm'
|
|
44
44
|
import useLocation from '../../hooks/useLocation'
|
|
45
|
-
import { inject, Ref, ref, watch } from 'vue'
|
|
45
|
+
import { inject, onMounted, Ref, ref, watch } from 'vue'
|
|
46
46
|
import { LcbCalendarSearchProps } from './types'
|
|
47
47
|
import { LcbAddress } from '../lcb-city-select/api'
|
|
48
48
|
import { FORM_KEY } from '../../constants'
|
|
@@ -84,17 +84,22 @@ watch(
|
|
|
84
84
|
},
|
|
85
85
|
)
|
|
86
86
|
|
|
87
|
-
watch(
|
|
88
|
-
() => dayRange.value,
|
|
89
|
-
(val) => {
|
|
90
|
-
form.value.startDate = dayjs(val[0]).format('YYYY-MM-DD')
|
|
91
|
-
form.value.endDate = dayjs(val[1]).format('YYYY-MM-DD')
|
|
92
|
-
},
|
|
93
|
-
)
|
|
94
87
|
getLocation()
|
|
95
88
|
const onSearch = (e) => {
|
|
96
89
|
form.value.keywords = e.target.value
|
|
97
90
|
}
|
|
91
|
+
onMounted(() => {
|
|
92
|
+
if (form.value.startDate) {
|
|
93
|
+
dayRange.value = [dayjs(form.value.startDate).valueOf(), dayjs(form.value.endDate).valueOf()]
|
|
94
|
+
}
|
|
95
|
+
watch(
|
|
96
|
+
() => dayRange.value,
|
|
97
|
+
(val) => {
|
|
98
|
+
form.value.startDate = dayjs(val[0]).format('YYYY-MM-DD')
|
|
99
|
+
form.value.endDate = dayjs(val[1]).format('YYYY-MM-DD')
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
})
|
|
98
103
|
</script>
|
|
99
104
|
|
|
100
105
|
<style lang="scss" scoped>
|
|
@@ -127,10 +127,11 @@ const onAddrClick = (city: ChildHotAddress, letter = false) => {
|
|
|
127
127
|
className: '',
|
|
128
128
|
}
|
|
129
129
|
modelValue.value = currentCity
|
|
130
|
-
historyList.value =
|
|
131
|
-
(
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
historyList.value =
|
|
131
|
+
historyList.value?.filter(
|
|
132
|
+
(historyItem) =>
|
|
133
|
+
`${historyItem.keywords},${historyItem.addr}` !== `${city.keywords},${city.addr}`,
|
|
134
|
+
) || []
|
|
134
135
|
if (historyList.value.length === 8) {
|
|
135
136
|
historyList.value = [currentCity as unknown as LcbAddress, ...historyList.value.slice(0, 7)]
|
|
136
137
|
} else {
|
|
@@ -59,9 +59,10 @@ const getText = (text: string) => {
|
|
|
59
59
|
}
|
|
60
60
|
const onItemClick = (item: LcbAddress) => {
|
|
61
61
|
const addr = `${item.keywords},${item.addr}`
|
|
62
|
-
historyList.value =
|
|
63
|
-
(
|
|
64
|
-
|
|
62
|
+
historyList.value =
|
|
63
|
+
historyList.value?.filter(
|
|
64
|
+
(historyItem) => `${historyItem.keywords},${historyItem.addr}` !== addr,
|
|
65
|
+
) || []
|
|
65
66
|
historyList.value.unshift(item)
|
|
66
67
|
emits('click', item)
|
|
67
68
|
}
|
package/package.json
CHANGED
package/utils/utils.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function formatJson(str: string | object | undefined, defVal = {}) {
|
|
|
14
14
|
export const getExposed = () => {
|
|
15
15
|
const pages = getCurrentPages()
|
|
16
16
|
const page = pages[pages.length - 2]
|
|
17
|
-
return page
|
|
17
|
+
return page.$vm.$.exposed
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const getCurrentPage = () => {
|