@tplc/business 0.3.90 → 0.3.92

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 CHANGED
@@ -2,6 +2,10 @@
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.92](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.91...v0.3.92) (2025-03-20)
6
+
7
+ ### [0.3.91](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.72...v0.3.91) (2025-03-20)
8
+
5
9
  ### [0.3.90](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.86...v0.3.90) (2025-03-20)
6
10
 
7
11
 
@@ -44,6 +44,8 @@ defineSlots<{
44
44
  titleIcon(props: { value: any }): any
45
45
  userInteractionInfo(props: { value: any }): any
46
46
  orderTips(props: { value: any }): any
47
+ distanceTips(props: { value: any }): any
48
+ orderSkuCountTips(props: { value: any }): any
47
49
  priceTips(props: { value: any }): any
48
50
  }>()
49
51
 
@@ -314,6 +316,13 @@ const value = computed(() => {
314
316
  <view>{{ value }}</view>
315
317
  </view>
316
318
  </slot>
319
+ <slot :value="value" v-if="prop === 'distanceTips'" name="distanceTips">
320
+ <view :class="className" :style="style" class="text-22rpx text-gray-500 flex items-center">
321
+ <lcb-icon name="location" />
322
+ <view>{{ value }}</view>
323
+ </view>
324
+ </slot>
325
+
317
326
  <slot :value="value" v-if="prop === 'headImg'" name="headImg">
318
327
  <img
319
328
  :src="value + `?x-oss-process=image/resize,m_mfit,w_${64}&imageView2/2/w/${64}`"
@@ -31,6 +31,8 @@ const props = withDefaults(defineProps<LcbProductItemProps>(), {
31
31
  priceVisible: true,
32
32
  userInfoVisible: false,
33
33
  priceTipsVisible: true,
34
+ distanceTipsVisible: false,
35
+ orderSkuCountTipsVisible: false,
34
36
  priceUnitVisible: true,
35
37
  priceSuffixVisible: true,
36
38
  scribePriceVisible: true,
@@ -80,6 +82,8 @@ defineSlots<{
80
82
  userInteractionInfo(props: { value: any }): any
81
83
  orderTips(props: { value: any }): any
82
84
  priceTips(props: { value: any }): any
85
+ distanceTips(props: { value: any }): any
86
+ orderSkuCountTips(props: { value: any }): any
83
87
 
84
88
  itemSection(): any
85
89
  itemTopSection(): any
@@ -185,6 +189,11 @@ const itemStyle = computed(() => {
185
189
  <!-- <slot name="orderTips" :value="value" /> -->
186
190
  <!-- </template> -->
187
191
  </ItemValue>
192
+ <ItemValue prop="distanceTips">
193
+ <!-- <template #distanceTips="{ value }"> -->
194
+ <!-- <slot name="distanceTips" :value="value" /> -->
195
+ <!-- </template> -->
196
+ </ItemValue>
188
197
  </view>
189
198
  <view class="flex-1"></view>
190
199
  <view class="flex flex-col gap-1 items-end leading-none">
@@ -322,6 +331,7 @@ const itemStyle = computed(() => {
322
331
  <slot name="orderTips" :value="value" />
323
332
  </template> -->
324
333
  </ItemValue>
334
+ <ItemValue prop="distanceTips"></ItemValue>
325
335
  </view>
326
336
  <view class="flex-1"></view>
327
337
  <view class="flex flex-col gap-1 items-end leading-none">
@@ -39,6 +39,8 @@ export interface LcbProductItemProps {
39
39
  titleIcon?: any
40
40
  userInteractionInfo?: any
41
41
  orderTips?: any
42
+ distanceTips?: any
43
+ orderSkuCountTips?: any
42
44
 
43
45
  coverImgVisible?: boolean
44
46
  productNameVisible?: boolean
@@ -62,6 +64,8 @@ export interface LcbProductItemProps {
62
64
  titleIconVisible?: boolean
63
65
  userInteractionInfoVisible?: boolean
64
66
  orderTipsVisible?: boolean
67
+ distanceTipsVisible?: boolean
68
+ orderSkuCountTipsVisible?: boolean
65
69
 
66
70
  coverImgClass?: string
67
71
  productNameClass?: string
@@ -85,6 +89,8 @@ export interface LcbProductItemProps {
85
89
  titleIconClass?: string
86
90
  userInteractionInfoClass?: string
87
91
  orderTipsClass?: string
92
+ distanceTipsClass?: string
93
+ orderSkuCountTipsClass?: string
88
94
 
89
95
  coverImgStyle?: CSSProperties
90
96
  productNameStyle?: CSSProperties
@@ -108,6 +114,8 @@ export interface LcbProductItemProps {
108
114
  titleIconStyle?: CSSProperties
109
115
  userInteractionInfoStyle?: CSSProperties
110
116
  orderTipsStyle?: CSSProperties
117
+ distanceTipsStyle?: CSSProperties
118
+ orderSkuCountTipsStyle?: CSSProperties
111
119
  blurSize?: number
112
120
  shadowColor?: string
113
121
  shadowSize?: number
@@ -52,6 +52,9 @@
52
52
  <input
53
53
  v-if="mode === 'search'"
54
54
  class="search-input"
55
+ :style="{
56
+ fontSize: transformValueUnit(fontSize),
57
+ }"
55
58
  confirm-type="search"
56
59
  :placeholder="placeholder"
57
60
  @confirm="onSearch"
@@ -97,15 +100,15 @@ withDefaults(defineProps<LcbSearchProps>(), {
97
100
  lineHeight: 24,
98
101
  iconType: 'icon',
99
102
  mode: 'link',
103
+ fontSize: 24,
100
104
  })
101
105
  const { getLocation, userLocation } = useLocation()
102
106
  const addressCity = ref<ChildHotAddress | undefined>(getHistoryCity())
103
107
  getLocation()
104
108
  const form = inject<Ref<Record<string, any>>>(FORM_KEY)
105
- const onSearch = ({ value }: { value: string }) => {
106
- console.log('value', value)
109
+ const onSearch = (e: { detail: { value: string } }) => {
107
110
  if (form) {
108
- form.value.search = value
111
+ form.value.search = e.detail.value
109
112
  }
110
113
  }
111
114
  </script>
@@ -1,4 +1,5 @@
1
- import { LcbActionViewProps } from 'components/lcb-action-view/types'
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+ import { LcbBlockProps } from '../lcb-block/types'
2
3
 
3
4
  export type LcbSearchProps = {
4
5
  // Define the component's prop types here
@@ -23,4 +24,5 @@ export type LcbSearchProps = {
23
24
  lineWidth?: number
24
25
  linePadding?: number
25
26
  lineHeight?: number
26
- } & LcbActionViewProps
27
+ } & LcbActionViewProps &
28
+ LcbBlockProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.90",
3
+ "version": "0.3.92",
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.70"
14
+ "@tplc/wot": "0.1.72"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -21,6 +21,8 @@ declare function __VLS_template(): Readonly<{
21
21
  titleIcon(props: { value: any }): any
22
22
  userInteractionInfo(props: { value: any }): any
23
23
  orderTips(props: { value: any }): any
24
+ distanceTips(props: { value: any }): any
25
+ orderSkuCountTips(props: { value: any }): any
24
26
  priceTips(props: { value: any }): any
25
27
  }> & {
26
28
  coverImg(props: { value: any }): any
@@ -45,6 +47,8 @@ declare function __VLS_template(): Readonly<{
45
47
  titleIcon(props: { value: any }): any
46
48
  userInteractionInfo(props: { value: any }): any
47
49
  orderTips(props: { value: any }): any
50
+ distanceTips(props: { value: any }): any
51
+ orderSkuCountTips(props: { value: any }): any
48
52
  priceTips(props: { value: any }): any
49
53
  }
50
54
  declare const __VLS_component: import('vue').DefineComponent<
@@ -23,6 +23,8 @@ declare function __VLS_template(): Readonly<{
23
23
  userInteractionInfo(props: { value: any }): any
24
24
  orderTips(props: { value: any }): any
25
25
  priceTips(props: { value: any }): any
26
+ distanceTips(props: { value: any }): any
27
+ orderSkuCountTips(props: { value: any }): any
26
28
  itemSection(): any
27
29
  itemTopSection(): any
28
30
  itemBottomSection(): any
@@ -54,6 +56,8 @@ declare function __VLS_template(): Readonly<{
54
56
  userInteractionInfo(props: { value: any }): any
55
57
  orderTips(props: { value: any }): any
56
58
  priceTips(props: { value: any }): any
59
+ distanceTips(props: { value: any }): any
60
+ orderSkuCountTips(props: { value: any }): any
57
61
  itemSection(): any
58
62
  itemTopSection(): any
59
63
  itemBottomSection(): any
@@ -83,6 +87,8 @@ declare const __VLS_component: import('vue').DefineComponent<
83
87
  priceVisible: boolean
84
88
  userInfoVisible: boolean
85
89
  priceTipsVisible: boolean
90
+ distanceTipsVisible: boolean
91
+ orderSkuCountTipsVisible: boolean
86
92
  priceUnitVisible: boolean
87
93
  priceSuffixVisible: boolean
88
94
  scribePriceVisible: boolean
@@ -136,6 +142,8 @@ declare const __VLS_component: import('vue').DefineComponent<
136
142
  priceVisible: boolean
137
143
  userInfoVisible: boolean
138
144
  priceTipsVisible: boolean
145
+ distanceTipsVisible: boolean
146
+ orderSkuCountTipsVisible: boolean
139
147
  priceUnitVisible: boolean
140
148
  priceSuffixVisible: boolean
141
149
  scribePriceVisible: boolean
@@ -198,6 +206,8 @@ declare const __VLS_component: import('vue').DefineComponent<
198
206
  titleIconVisible: boolean
199
207
  userInteractionInfoVisible: boolean
200
208
  orderTipsVisible: boolean
209
+ distanceTipsVisible: boolean
210
+ orderSkuCountTipsVisible: boolean
201
211
  },
202
212
  {}
203
213
  >
@@ -37,6 +37,8 @@ export interface LcbProductItemProps {
37
37
  titleIcon?: any
38
38
  userInteractionInfo?: any
39
39
  orderTips?: any
40
+ distanceTips?: any
41
+ orderSkuCountTips?: any
40
42
  coverImgVisible?: boolean
41
43
  productNameVisible?: boolean
42
44
  subTitleVisible?: boolean
@@ -59,6 +61,8 @@ export interface LcbProductItemProps {
59
61
  titleIconVisible?: boolean
60
62
  userInteractionInfoVisible?: boolean
61
63
  orderTipsVisible?: boolean
64
+ distanceTipsVisible?: boolean
65
+ orderSkuCountTipsVisible?: boolean
62
66
  coverImgClass?: string
63
67
  productNameClass?: string
64
68
  subTitleClass?: string
@@ -81,6 +85,8 @@ export interface LcbProductItemProps {
81
85
  titleIconClass?: string
82
86
  userInteractionInfoClass?: string
83
87
  orderTipsClass?: string
88
+ distanceTipsClass?: string
89
+ orderSkuCountTipsClass?: string
84
90
  coverImgStyle?: CSSProperties
85
91
  productNameStyle?: CSSProperties
86
92
  subTitleStyle?: CSSProperties
@@ -103,6 +109,8 @@ export interface LcbProductItemProps {
103
109
  titleIconStyle?: CSSProperties
104
110
  userInteractionInfoStyle?: CSSProperties
105
111
  orderTipsStyle?: CSSProperties
112
+ distanceTipsStyle?: CSSProperties
113
+ orderSkuCountTipsStyle?: CSSProperties
106
114
  blurSize?: number
107
115
  shadowColor?: string
108
116
  shadowSize?: number
@@ -19,6 +19,7 @@ declare const _default: import('vue').DefineComponent<
19
19
  lineHeight: number
20
20
  iconType: string
21
21
  mode: string
22
+ fontSize: number
22
23
  }
23
24
  >,
24
25
  {},
@@ -87,7 +88,7 @@ declare const _default: import('vue').DefineComponent<
87
88
  content?: string
88
89
  title?: string
89
90
  position?: string
90
- }
91
+ } & import('../lcb-block/types').LcbBlockProps
91
92
  >,
92
93
  {
93
94
  placeholder: string
@@ -106,6 +107,7 @@ declare const _default: import('vue').DefineComponent<
106
107
  lineHeight: number
107
108
  iconType: string
108
109
  mode: string
110
+ fontSize: number
109
111
  }
110
112
  >
111
113
  >
@@ -145,7 +147,7 @@ declare const _default: import('vue').DefineComponent<
145
147
  requestUrl: string
146
148
  requestParams: Record<string, any>
147
149
  }
148
- }
150
+ } & import('../lcb-block/types').LcbBlockProps
149
151
  >,
150
152
  {
151
153
  placeholder: string
@@ -164,6 +166,7 @@ declare const _default: import('vue').DefineComponent<
164
166
  lineHeight: number
165
167
  iconType: string
166
168
  mode: string
169
+ fontSize: number
167
170
  }
168
171
  >
169
172
  >
@@ -205,7 +208,7 @@ declare const _default: import('vue').DefineComponent<
205
208
  longitude: number
206
209
  name: string
207
210
  }
208
- }
211
+ } & import('../lcb-block/types').LcbBlockProps
209
212
  >,
210
213
  {
211
214
  placeholder: string
@@ -224,6 +227,7 @@ declare const _default: import('vue').DefineComponent<
224
227
  lineHeight: number
225
228
  iconType: string
226
229
  mode: string
230
+ fontSize: number
227
231
  }
228
232
  >
229
233
  >
@@ -260,7 +264,7 @@ declare const _default: import('vue').DefineComponent<
260
264
  } & {
261
265
  jumpType: 106
262
266
  requestParam?: Record<string, any>
263
- }
267
+ } & import('../lcb-block/types').LcbBlockProps
264
268
  >,
265
269
  {
266
270
  placeholder: string
@@ -279,6 +283,7 @@ declare const _default: import('vue').DefineComponent<
279
283
  lineHeight: number
280
284
  iconType: string
281
285
  mode: string
286
+ fontSize: number
282
287
  }
283
288
  >
284
289
  >
@@ -314,7 +319,7 @@ declare const _default: import('vue').DefineComponent<
314
319
  customStyle?: import('vue').StyleValue
315
320
  } & {
316
321
  jumpType: 141
317
- }
322
+ } & import('../lcb-block/types').LcbBlockProps
318
323
  >,
319
324
  {
320
325
  placeholder: string
@@ -333,17 +338,20 @@ declare const _default: import('vue').DefineComponent<
333
338
  lineHeight: number
334
339
  iconType: string
335
340
  mode: string
341
+ fontSize: number
336
342
  }
337
343
  >
338
344
  >
339
345
  >,
340
346
  | {
341
347
  mode: 'search' | 'link'
348
+ color: string
342
349
  lineHeight: number
343
350
  iconSize: string
344
351
  iconColor: string
345
352
  placeholder: string
346
353
  lineWidth: number
354
+ fontSize: number
347
355
  gap: number
348
356
  iconType: 'icon' | 'img'
349
357
  borderWidth: number
@@ -356,11 +364,13 @@ declare const _default: import('vue').DefineComponent<
356
364
  }
357
365
  | {
358
366
  mode: 'search' | 'link'
367
+ color: string
359
368
  lineHeight: number
360
369
  iconSize: string
361
370
  iconColor: string
362
371
  placeholder: string
363
372
  lineWidth: number
373
+ fontSize: number
364
374
  gap: number
365
375
  iconType: 'icon' | 'img'
366
376
  borderWidth: number
@@ -373,11 +383,13 @@ declare const _default: import('vue').DefineComponent<
373
383
  }
374
384
  | {
375
385
  mode: 'search' | 'link'
386
+ color: string
376
387
  lineHeight: number
377
388
  iconSize: string
378
389
  iconColor: string
379
390
  placeholder: string
380
391
  lineWidth: number
392
+ fontSize: number
381
393
  gap: number
382
394
  iconType: 'icon' | 'img'
383
395
  borderWidth: number
@@ -390,11 +402,13 @@ declare const _default: import('vue').DefineComponent<
390
402
  }
391
403
  | {
392
404
  mode: 'search' | 'link'
405
+ color: string
393
406
  lineHeight: number
394
407
  iconSize: string
395
408
  iconColor: string
396
409
  placeholder: string
397
410
  lineWidth: number
411
+ fontSize: number
398
412
  gap: number
399
413
  iconType: 'icon' | 'img'
400
414
  borderWidth: number
@@ -407,11 +421,13 @@ declare const _default: import('vue').DefineComponent<
407
421
  }
408
422
  | {
409
423
  mode: 'search' | 'link'
424
+ color: string
410
425
  lineHeight: number
411
426
  iconSize: string
412
427
  iconColor: string
413
428
  placeholder: string
414
429
  lineWidth: number
430
+ fontSize: number
415
431
  gap: number
416
432
  iconType: 'icon' | 'img'
417
433
  borderWidth: number
@@ -1,4 +1,5 @@
1
- import { LcbActionViewProps } from 'components/lcb-action-view/types'
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+ import { LcbBlockProps } from '../lcb-block/types'
2
3
  export type LcbSearchProps = {
3
4
  placeholder?: string
4
5
  icon?: string
@@ -19,4 +20,5 @@ export type LcbSearchProps = {
19
20
  lineWidth?: number
20
21
  linePadding?: number
21
22
  lineHeight?: number
22
- } & LcbActionViewProps
23
+ } & LcbActionViewProps &
24
+ LcbBlockProps