@tplc/business 0.2.16 → 0.2.18
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 +19 -0
- package/components/lcb-action-view/lcb-action-view.vue +2 -7
- package/components/lcb-grid/lcb-grid.vue +1 -0
- package/components/lcb-list/components/FilterList/index.vue +1 -1
- package/components/lcb-list/components/FilterList/type.ts +0 -1
- package/components/lcb-list/lcb-list.vue +8 -23
- package/components/lcb-nav/Search/index.vue +18 -14
- package/package.json +1 -1
- package/types/components/lcb-list/components/FilterList/type.d.ts +0 -1
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.14...v0.2.18) (2024-12-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.2.15 ([e76284f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e76284f9cc838ccfb9c479659f1fe2252b7e494c))
|
|
11
|
+
* **release:** 0.2.16 ([447a7e6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/447a7e61aded089df4a338f841915ab71bf01d22))
|
|
12
|
+
* **release:** 0.2.17 ([26a6d05](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/26a6d05ee3a179e58bd9299016e25ddf529135e0))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* action-view pop ([3695f0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3695f0be2d1bfb025822be3190c96bb9cb71ea05))
|
|
18
|
+
* nav search ([bcc5d98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bcc5d98257b1a10cb5c3621df266867c657c3a95))
|
|
19
|
+
* search 调整查询模式 ([7fa381d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fa381daab8935c27005615ddc15252ec01f8399))
|
|
20
|
+
* 调整action样式 ([04ed49d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/04ed49dd37e2db636f2a2dd02064bd869f0bb550))
|
|
21
|
+
|
|
22
|
+
### [0.2.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.16...v0.2.17) (2024-12-05)
|
|
23
|
+
|
|
5
24
|
### [0.2.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.15...v0.2.16) (2024-12-05)
|
|
6
25
|
|
|
7
26
|
### [0.2.15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.11...v0.2.15) (2024-12-05)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<button
|
|
3
|
-
@click="onActionClick"
|
|
3
|
+
@click.stop="onActionClick"
|
|
4
4
|
class="lcb-action-btn"
|
|
5
5
|
:open-type="openType"
|
|
6
6
|
@getphonenumber="getPhoneNumber"
|
|
@@ -10,18 +10,17 @@
|
|
|
10
10
|
<slot />
|
|
11
11
|
</button>
|
|
12
12
|
<wd-popup
|
|
13
|
-
custom-class="!bg-transparent"
|
|
14
13
|
v-model="show"
|
|
15
14
|
:safe-area-inset-bottom="true"
|
|
16
15
|
closable
|
|
17
16
|
:position="position"
|
|
18
17
|
v-if="props.jumpType === 14"
|
|
18
|
+
:custom-class="position === 'bottom' ? '!rounded-t-20rpx' : '!rounded-20rpx'"
|
|
19
19
|
>
|
|
20
20
|
<view
|
|
21
21
|
class="popup-view"
|
|
22
22
|
:style="{
|
|
23
23
|
width: position === 'bottom' ? '100vw' : '90vw',
|
|
24
|
-
borderRadius: position === 'bottom' ? '20rpx 20rpx 0 0' : '20rpx',
|
|
25
24
|
}"
|
|
26
25
|
>
|
|
27
26
|
<view class="title">
|
|
@@ -201,10 +200,6 @@ const onChooseAvatar = async (e) => {
|
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
.popup-view {
|
|
204
|
-
border-top-left-radius: 20rpx;
|
|
205
|
-
border-top-right-radius: 20rpx;
|
|
206
|
-
background: #fff;
|
|
207
|
-
width: 100vw;
|
|
208
203
|
.title {
|
|
209
204
|
position: relative;
|
|
210
205
|
font-size: 32rpx;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<FilterView
|
|
10
10
|
v-bind="$props"
|
|
11
11
|
:info="info"
|
|
12
|
-
v-model="
|
|
12
|
+
v-model="form"
|
|
13
13
|
:titleObj="titleObj"
|
|
14
14
|
:sticky="sticky"
|
|
15
15
|
/>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
v-else
|
|
19
19
|
v-bind="$props"
|
|
20
20
|
:info="info"
|
|
21
|
-
v-model="
|
|
21
|
+
v-model="form"
|
|
22
22
|
:titleObj="titleObj"
|
|
23
23
|
:sticky="sticky"
|
|
24
24
|
/>
|
|
@@ -66,7 +66,6 @@ defineOptions({
|
|
|
66
66
|
})
|
|
67
67
|
const titleObj = ref<Record<string, any>>({})
|
|
68
68
|
const form = inject<Ref<Record<string, any>>>(FORM_KEY)
|
|
69
|
-
const filter = ref<Record<string, any>>({})
|
|
70
69
|
const props = withDefaults(defineProps<LcbListProps>(), {
|
|
71
70
|
pageFilterType: 'hotelTravelFilter',
|
|
72
71
|
border: true,
|
|
@@ -82,41 +81,27 @@ const props = withDefaults(defineProps<LcbListProps>(), {
|
|
|
82
81
|
}),
|
|
83
82
|
} as LcbListProps as any)
|
|
84
83
|
const info = ref<LcbFilterResult>()
|
|
85
|
-
|
|
86
|
-
() => filter.value,
|
|
87
|
-
async (val) => {
|
|
88
|
-
if (form && Object.keys(val).length) {
|
|
89
|
-
form.value = {
|
|
90
|
-
...form.value,
|
|
91
|
-
...val,
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
immediate: true,
|
|
97
|
-
deep: true,
|
|
98
|
-
},
|
|
99
|
-
)
|
|
84
|
+
|
|
100
85
|
watch(
|
|
101
86
|
() => props.pageFilterType,
|
|
102
87
|
async (val) => {
|
|
103
|
-
if (val) {
|
|
88
|
+
if (val && form) {
|
|
104
89
|
const { data } = await getFilterDetail(val)
|
|
105
90
|
data.filterComponent.forEach((item) => {
|
|
106
|
-
|
|
91
|
+
form.value[item.valueName] = item.defaultValue
|
|
107
92
|
titleObj.value[item.valueName] = item.filterName
|
|
108
93
|
if (item.componentProps?.componentList) {
|
|
109
94
|
item.componentProps.componentList.forEach((data) => {
|
|
110
|
-
|
|
95
|
+
form.value[data.valueName] = data.defaultValue
|
|
111
96
|
})
|
|
112
97
|
}
|
|
113
98
|
})
|
|
114
99
|
if (data.filterTags) {
|
|
115
|
-
|
|
100
|
+
form.value[data.filterTags.valueName] = data.filterTags.defaultValue
|
|
116
101
|
titleObj.value[data.filterTags.valueName] = data.filterTags.defaultName
|
|
117
102
|
}
|
|
118
103
|
if (data.filterTabs) {
|
|
119
|
-
|
|
104
|
+
form.value[data.filterTabs.valueName] =
|
|
120
105
|
data.filterTabs.defaultValue || data.filterTabs.componentProps.options?.[0]?.value
|
|
121
106
|
}
|
|
122
107
|
info.value = data
|
|
@@ -6,14 +6,21 @@
|
|
|
6
6
|
'pr-90px': hasCapsule,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
<wd-search
|
|
10
|
+
class="search-input !px-0"
|
|
11
|
+
:placeholder="searchText"
|
|
12
|
+
placeholder-left
|
|
13
|
+
hide-cancel
|
|
14
|
+
@search="onSearch"
|
|
15
|
+
@clear="onSearch"
|
|
16
|
+
/>
|
|
13
17
|
</view>
|
|
14
18
|
</template>
|
|
15
19
|
|
|
16
20
|
<script setup lang="ts">
|
|
21
|
+
import { FORM_KEY } from '../../../constants'
|
|
22
|
+
import { inject, Ref } from 'vue'
|
|
23
|
+
|
|
17
24
|
const hasCapsule = Boolean(uni.getMenuButtonBoundingClientRect)
|
|
18
25
|
defineOptions({
|
|
19
26
|
name: 'LcbNavSearch',
|
|
@@ -35,6 +42,13 @@ defineProps({
|
|
|
35
42
|
type: Boolean,
|
|
36
43
|
},
|
|
37
44
|
})
|
|
45
|
+
const form = inject<Ref<Record<string, any>>>(FORM_KEY)
|
|
46
|
+
const onSearch = ({ value }: { value: string }) => {
|
|
47
|
+
console.log('xx')
|
|
48
|
+
if (form) {
|
|
49
|
+
form.value.search = value
|
|
50
|
+
}
|
|
51
|
+
}
|
|
38
52
|
</script>
|
|
39
53
|
<style lang="scss" scoped>
|
|
40
54
|
.center_mod {
|
|
@@ -46,21 +60,11 @@ defineProps({
|
|
|
46
60
|
justify-content: center;
|
|
47
61
|
width: 100%;
|
|
48
62
|
height: 64rpx;
|
|
49
|
-
padding: 0 20rpx;
|
|
50
63
|
box-sizing: border-box;
|
|
51
64
|
font-size: 26rpx;
|
|
52
65
|
font-weight: 400;
|
|
53
66
|
color: #a1a1a1;
|
|
54
67
|
background: #f5f5f5;
|
|
55
68
|
border-radius: 32rpx;
|
|
56
|
-
|
|
57
|
-
.search-text {
|
|
58
|
-
flex: 1 1;
|
|
59
|
-
margin-left: 12rpx;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
text-align: left;
|
|
62
|
-
text-overflow: ellipsis;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
}
|
|
65
69
|
}
|
|
66
70
|
</style>
|
package/package.json
CHANGED
|
@@ -70,7 +70,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
70
70
|
>
|
|
71
71
|
>,
|
|
72
72
|
{
|
|
73
|
-
borderRadius: number
|
|
74
73
|
duration: number
|
|
75
74
|
autoplay: boolean
|
|
76
75
|
direction: 'horizontal' | 'vertical'
|
|
@@ -88,6 +87,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
88
87
|
| 'right'
|
|
89
88
|
indicator: boolean
|
|
90
89
|
styleGroup: 1 | 2 | 3 | 4
|
|
90
|
+
borderRadius: number
|
|
91
91
|
indicatorType: 'dots' | 'dots-bar' | 'fraction'
|
|
92
92
|
},
|
|
93
93
|
{}
|