@tplc/business 0.3.89 → 0.3.90
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-nav/Search/index.vue +0 -1
- package/components/lcb-search/lcb-search.vue +67 -47
- package/components/lcb-search/types.ts +2 -0
- package/package.json +1 -1
- package/types/components/lcb-search/lcb-search.vue.d.ts +16 -0
- package/types/components/lcb-search/types.d.ts +1 -0
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.3.90](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.86...v0.3.90) (2025-03-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.1.70 ([8f53746](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8f53746e4eb21464008af99988609ca72e765f93))
|
|
11
|
+
* **release:** 0.3.87 ([eea281e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/eea281e8ae4592f85e2e082c22f02d4de294ca8e))
|
|
12
|
+
* **release:** 0.3.88 ([5976b7a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5976b7a436ac9dc479235e9ae15d69e30a523a04))
|
|
13
|
+
* **release:** 0.3.89 ([3ba3d7d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3ba3d7d2a0655d4c443f92e032bcef2e19591a1a))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ✨ Features | 新功能
|
|
17
|
+
|
|
18
|
+
* 修改ui ([68a2962](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/68a296215291241f71d8c52425e150685ccff6f7))
|
|
19
|
+
* 修改地图 ([21c29af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/21c29af3b75767e14c9706225773ea0ba07def16))
|
|
20
|
+
* 发布新版 ([44f0f9b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/44f0f9b524e9c8dea2a1092c651efb1bb7988dbd))
|
|
21
|
+
* 地图防抖 ([6e3aa28](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6e3aa28dc9fb36663553f02f8db2d12720d4a73e))
|
|
22
|
+
* 调整按钮样式 ([313aa60](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/313aa60b21a3abc1f001f25bec87f8715a9f7366))
|
|
23
|
+
|
|
5
24
|
### [0.3.89](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.88...v0.3.89) (2025-03-19)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -6,53 +6,60 @@
|
|
|
6
6
|
borderWidth: `${borderWidth}px`,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{{ addressCity?.addr || '全国' }}
|
|
32
|
-
</view>
|
|
33
|
-
<view
|
|
34
|
-
:style="{
|
|
35
|
-
backgroundColor: lineColor,
|
|
36
|
-
width: transformValueUnit(lineWidth),
|
|
37
|
-
margin: `0 ${transformValueUnit(linePadding)}`,
|
|
38
|
-
height: transformValueUnit(lineHeight),
|
|
39
|
-
}"
|
|
40
|
-
></view>
|
|
9
|
+
<view
|
|
10
|
+
class="flex items-center"
|
|
11
|
+
:style="{
|
|
12
|
+
gap: transformValueUnit(gap),
|
|
13
|
+
}"
|
|
14
|
+
>
|
|
15
|
+
<!-- v-if="city" -->
|
|
16
|
+
<lcb-city-select :location="userLocation" v-model="addressCity" v-if="city">
|
|
17
|
+
<view class="flex items-center h-full gap-1">
|
|
18
|
+
<wd-icon
|
|
19
|
+
name="location"
|
|
20
|
+
:size="transformValueUnit(cityIconSize)"
|
|
21
|
+
:color="cityIconColor"
|
|
22
|
+
/>
|
|
23
|
+
<view
|
|
24
|
+
class="max-w-13 truncate"
|
|
25
|
+
:style="{
|
|
26
|
+
color: cityColor,
|
|
27
|
+
fontSize: transformValueUnit(citySize),
|
|
28
|
+
}"
|
|
29
|
+
>
|
|
30
|
+
{{ addressCity?.addr || '全国' }}
|
|
41
31
|
</view>
|
|
42
|
-
|
|
32
|
+
<view
|
|
33
|
+
:style="{
|
|
34
|
+
backgroundColor: lineColor,
|
|
35
|
+
width: transformValueUnit(lineWidth),
|
|
36
|
+
margin: `0 ${transformValueUnit(linePadding)}`,
|
|
37
|
+
height: transformValueUnit(lineHeight),
|
|
38
|
+
}"
|
|
39
|
+
></view>
|
|
40
|
+
</view>
|
|
41
|
+
</lcb-city-select>
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
<lcb-icon
|
|
44
|
+
v-if="icon || url"
|
|
45
|
+
:url="url"
|
|
46
|
+
:size="iconSize"
|
|
47
|
+
:color="iconColor"
|
|
48
|
+
:icon="icon"
|
|
49
|
+
class-prefix="lcb"
|
|
50
|
+
:iconType="iconType"
|
|
51
|
+
/>
|
|
52
|
+
<input
|
|
53
|
+
v-if="mode === 'search'"
|
|
54
|
+
class="search-input"
|
|
55
|
+
confirm-type="search"
|
|
56
|
+
:placeholder="placeholder"
|
|
57
|
+
@confirm="onSearch"
|
|
58
|
+
/>
|
|
59
|
+
<lcb-action-view v-bind="link" :urlParams="stringify(addressCity)" v-else>
|
|
60
|
+
{{ placeholder }}
|
|
61
|
+
</lcb-action-view>
|
|
62
|
+
</view>
|
|
56
63
|
</lcb-block>
|
|
57
64
|
</template>
|
|
58
65
|
|
|
@@ -63,7 +70,8 @@ import { ChildHotAddress } from '../lcb-city-select/api'
|
|
|
63
70
|
import useLocation from '../../hooks/useLocation'
|
|
64
71
|
import { getHistoryCity } from '../../utils/history'
|
|
65
72
|
import { stringify } from 'qs'
|
|
66
|
-
import { ref } from 'vue'
|
|
73
|
+
import { inject, Ref, ref } from 'vue'
|
|
74
|
+
import { FORM_KEY } from '../../constants'
|
|
67
75
|
defineOptions({
|
|
68
76
|
name: 'LcbSearch',
|
|
69
77
|
options: {
|
|
@@ -88,10 +96,22 @@ withDefaults(defineProps<LcbSearchProps>(), {
|
|
|
88
96
|
linePadding: 24,
|
|
89
97
|
lineHeight: 24,
|
|
90
98
|
iconType: 'icon',
|
|
99
|
+
mode: 'link',
|
|
91
100
|
})
|
|
92
101
|
const { getLocation, userLocation } = useLocation()
|
|
93
102
|
const addressCity = ref<ChildHotAddress | undefined>(getHistoryCity())
|
|
94
103
|
getLocation()
|
|
104
|
+
const form = inject<Ref<Record<string, any>>>(FORM_KEY)
|
|
105
|
+
const onSearch = ({ value }: { value: string }) => {
|
|
106
|
+
console.log('value', value)
|
|
107
|
+
if (form) {
|
|
108
|
+
form.value.search = value
|
|
109
|
+
}
|
|
110
|
+
}
|
|
95
111
|
</script>
|
|
96
112
|
|
|
97
|
-
<style lang="scss" scoped
|
|
113
|
+
<style lang="scss" scoped>
|
|
114
|
+
.search-input {
|
|
115
|
+
flex: 1;
|
|
116
|
+
}
|
|
117
|
+
</style>
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
18
18
|
linePadding: number
|
|
19
19
|
lineHeight: number
|
|
20
20
|
iconType: string
|
|
21
|
+
mode: string
|
|
21
22
|
}
|
|
22
23
|
>,
|
|
23
24
|
{},
|
|
@@ -43,6 +44,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
43
44
|
gap?: number
|
|
44
45
|
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
45
46
|
iconType?: 'icon' | 'img'
|
|
47
|
+
mode?: 'search' | 'link'
|
|
46
48
|
city?: boolean
|
|
47
49
|
cityColor?: string
|
|
48
50
|
citySize?: number
|
|
@@ -103,6 +105,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
103
105
|
linePadding: number
|
|
104
106
|
lineHeight: number
|
|
105
107
|
iconType: string
|
|
108
|
+
mode: string
|
|
106
109
|
}
|
|
107
110
|
>
|
|
108
111
|
>
|
|
@@ -121,6 +124,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
121
124
|
gap?: number
|
|
122
125
|
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
123
126
|
iconType?: 'icon' | 'img'
|
|
127
|
+
mode?: 'search' | 'link'
|
|
124
128
|
city?: boolean
|
|
125
129
|
cityColor?: string
|
|
126
130
|
citySize?: number
|
|
@@ -159,6 +163,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
159
163
|
linePadding: number
|
|
160
164
|
lineHeight: number
|
|
161
165
|
iconType: string
|
|
166
|
+
mode: string
|
|
162
167
|
}
|
|
163
168
|
>
|
|
164
169
|
>
|
|
@@ -177,6 +182,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
177
182
|
gap?: number
|
|
178
183
|
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
179
184
|
iconType?: 'icon' | 'img'
|
|
185
|
+
mode?: 'search' | 'link'
|
|
180
186
|
city?: boolean
|
|
181
187
|
cityColor?: string
|
|
182
188
|
citySize?: number
|
|
@@ -217,6 +223,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
217
223
|
linePadding: number
|
|
218
224
|
lineHeight: number
|
|
219
225
|
iconType: string
|
|
226
|
+
mode: string
|
|
220
227
|
}
|
|
221
228
|
>
|
|
222
229
|
>
|
|
@@ -235,6 +242,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
235
242
|
gap?: number
|
|
236
243
|
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
237
244
|
iconType?: 'icon' | 'img'
|
|
245
|
+
mode?: 'search' | 'link'
|
|
238
246
|
city?: boolean
|
|
239
247
|
cityColor?: string
|
|
240
248
|
citySize?: number
|
|
@@ -270,6 +278,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
270
278
|
linePadding: number
|
|
271
279
|
lineHeight: number
|
|
272
280
|
iconType: string
|
|
281
|
+
mode: string
|
|
273
282
|
}
|
|
274
283
|
>
|
|
275
284
|
>
|
|
@@ -288,6 +297,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
288
297
|
gap?: number
|
|
289
298
|
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
290
299
|
iconType?: 'icon' | 'img'
|
|
300
|
+
mode?: 'search' | 'link'
|
|
291
301
|
city?: boolean
|
|
292
302
|
cityColor?: string
|
|
293
303
|
citySize?: number
|
|
@@ -322,11 +332,13 @@ declare const _default: import('vue').DefineComponent<
|
|
|
322
332
|
linePadding: number
|
|
323
333
|
lineHeight: number
|
|
324
334
|
iconType: string
|
|
335
|
+
mode: string
|
|
325
336
|
}
|
|
326
337
|
>
|
|
327
338
|
>
|
|
328
339
|
>,
|
|
329
340
|
| {
|
|
341
|
+
mode: 'search' | 'link'
|
|
330
342
|
lineHeight: number
|
|
331
343
|
iconSize: string
|
|
332
344
|
iconColor: string
|
|
@@ -343,6 +355,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
343
355
|
linePadding: number
|
|
344
356
|
}
|
|
345
357
|
| {
|
|
358
|
+
mode: 'search' | 'link'
|
|
346
359
|
lineHeight: number
|
|
347
360
|
iconSize: string
|
|
348
361
|
iconColor: string
|
|
@@ -359,6 +372,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
359
372
|
linePadding: number
|
|
360
373
|
}
|
|
361
374
|
| {
|
|
375
|
+
mode: 'search' | 'link'
|
|
362
376
|
lineHeight: number
|
|
363
377
|
iconSize: string
|
|
364
378
|
iconColor: string
|
|
@@ -375,6 +389,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
375
389
|
linePadding: number
|
|
376
390
|
}
|
|
377
391
|
| {
|
|
392
|
+
mode: 'search' | 'link'
|
|
378
393
|
lineHeight: number
|
|
379
394
|
iconSize: string
|
|
380
395
|
iconColor: string
|
|
@@ -391,6 +406,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
391
406
|
linePadding: number
|
|
392
407
|
}
|
|
393
408
|
| {
|
|
409
|
+
mode: 'search' | 'link'
|
|
394
410
|
lineHeight: number
|
|
395
411
|
iconSize: string
|
|
396
412
|
iconColor: string
|