@tplc/business 0.3.91 → 0.3.93

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,15 @@
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.93](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.92...v0.3.93) (2025-03-20)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 搜索支持输入 ([345275a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/345275a417f3399739c512d628796d163862f0cc))
11
+
12
+ ### [0.3.92](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.91...v0.3.92) (2025-03-20)
13
+
5
14
  ### [0.3.91](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.72...v0.3.91) (2025-03-20)
6
15
 
7
16
  ### [0.3.90](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.86...v0.3.90) (2025-03-20)
@@ -49,6 +49,7 @@ watchEffect(() => {
49
49
  watch(
50
50
  () => [props.url, props.baseParam, form?.value],
51
51
  async () => {
52
+ console.log('props.url', props)
52
53
  paging.value?.reload()
53
54
  },
54
55
  {
@@ -316,9 +316,15 @@ const value = computed(() => {
316
316
  <view>{{ value }}</view>
317
317
  </view>
318
318
  </slot>
319
+ <slot :value="value" v-if="prop === 'orderSkuCountTips'" name="orderSkuCountTips">
320
+ <view :class="className" :style="style" class="text-22rpx text-gray-500 flex items-center">
321
+ <view>{{ value }}</view>
322
+ </view>
323
+ </slot>
324
+
319
325
  <slot :value="value" v-if="prop === 'distanceTips'" name="distanceTips">
320
326
  <view :class="className" :style="style" class="text-22rpx text-gray-500 flex items-center">
321
- <lcb-icon name="location" />
327
+ <wd-icon name="location" />
322
328
  <view>{{ value }}</view>
323
329
  </view>
324
330
  </slot>
@@ -184,11 +184,12 @@ const itemStyle = computed(() => {
184
184
  <!-- </template> -->
185
185
  </ItemValue>
186
186
 
187
- <ItemValue prop="orderTips">
188
- <!-- <template #orderTips="{ value }"> -->
189
- <!-- <slot name="orderTips" :value="value" /> -->
190
- <!-- </template> -->
191
- </ItemValue>
187
+ <view class="flex gap-1 items-center">
188
+ <ItemValue prop="orderSkuCountTips" />
189
+ <view class="text-3.5 text-#969696" v-if="orderSkuCountTips && orderTips">·</view>
190
+ <ItemValue prop="orderTips" />
191
+ </view>
192
+
192
193
  <ItemValue prop="distanceTips">
193
194
  <!-- <template #distanceTips="{ value }"> -->
194
195
  <!-- <slot name="distanceTips" :value="value" /> -->
@@ -325,12 +326,15 @@ const itemStyle = computed(() => {
325
326
  <slot name="tags" :value="value" />
326
327
  </template> -->
327
328
  </ItemValue>
328
-
329
- <ItemValue prop="orderTips">
330
- <!-- <template #orderTips="{ value }">
329
+ <view class="flex gap-1 items-center">
330
+ <ItemValue prop="orderSkuCountTips"></ItemValue>
331
+ <view class="text-3.5 text-#969696" v-if="orderSkuCountTips && orderTips">·</view>
332
+ <ItemValue prop="orderTips">
333
+ <!-- <template #orderTips="{ value }">
331
334
  <slot name="orderTips" :value="value" />
332
335
  </template> -->
333
- </ItemValue>
336
+ </ItemValue>
337
+ </view>
334
338
  <ItemValue prop="distanceTips"></ItemValue>
335
339
  </view>
336
340
  <view class="flex-1"></view>
@@ -106,10 +106,9 @@ const { getLocation, userLocation } = useLocation()
106
106
  const addressCity = ref<ChildHotAddress | undefined>(getHistoryCity())
107
107
  getLocation()
108
108
  const form = inject<Ref<Record<string, any>>>(FORM_KEY)
109
- const onSearch = ({ value }: { value: string }) => {
110
- console.log('value', value)
109
+ const onSearch = (e: { detail: { value: string } }) => {
111
110
  if (form) {
112
- form.value.search = value
111
+ form.value.search = e.detail.value
113
112
  }
114
113
  }
115
114
  </script>
@@ -1,27 +1,28 @@
1
1
  <template>
2
2
  <view v-for="(item, index) in items" :key="index" class="px-8rpx py-5rpx">
3
- <view class="border-solid border-1 flex py-4rpx px-6rpx leading-none" :style="{
4
- borderRadius: transformValueUnit(tagRadius),
5
- fontSize: transformValueUnit(fontSize),
6
- color: tagColor,
7
- borderColor: tagColor,
8
- }">
3
+ <view
4
+ class="border-solid border-1 flex py-4rpx px-6rpx leading-none"
5
+ :style="{
6
+ borderRadius: transformValueUnit(tagRadius),
7
+ fontSize: transformValueUnit(fontSize),
8
+ color: tagColor,
9
+ borderColor: tagColor,
10
+ }"
11
+ >
9
12
  <view>{{ item }}</view>
10
13
  </view>
11
14
  </view>
12
-
13
15
  </template>
14
16
 
15
17
  <script setup lang="ts">
16
- import type { LcbTagsItemProps } from '../types';
18
+ import type { LcbTagsItemProps } from '../types'
17
19
  import { transformValueUnit } from '../../../utils/transform'
18
20
 
19
21
  // defineProps<LcbImageProps>() @click="onClickItem(each.urlObj)"
20
22
 
21
- const props = withDefaults(defineProps<LcbTagsItemProps>(), {
22
-
23
- })
23
+ const props = withDefaults(defineProps<LcbTagsItemProps>(), {})
24
24
  </script>
25
25
  <style lang="scss" scoped>
26
- .tag {}
26
+ .tag {
27
+ }
27
28
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.91",
3
+ "version": "0.3.93",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],