@tplc/business 0.4.9 → 0.4.11

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.4.11](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.10...v0.4.11) (2025-03-25)
6
+
7
+ ### [0.4.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.9...v0.4.10) (2025-03-25)
8
+
5
9
  ### [0.4.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.8...v0.4.9) (2025-03-25)
6
10
 
7
11
  ### [0.4.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.7...v0.4.8) (2025-03-25)
@@ -29,7 +29,18 @@
29
29
  :value="form.keywords"
30
30
  @blur="onSearch"
31
31
  @submit="onSearch"
32
+ v-if="mode === 'search'"
32
33
  />
34
+ <lcb-action-view
35
+ v-else
36
+ v-bind="inputLink"
37
+ custom-class="!w-full"
38
+ :customStyle="{
39
+ color: form.keywords ? 'var(--content-color)' : '#969696',
40
+ }"
41
+ >
42
+ {{ form.keywords || placeholder }}
43
+ </lcb-action-view>
33
44
  </view>
34
45
  </view>
35
46
  <lcb-action-view v-bind="link" v-if="link" :url-params="form">
@@ -60,6 +71,7 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
60
71
  radius: 16,
61
72
  placeholder: '城市|地点|品牌',
62
73
  icon: 'search',
74
+ mode: 'search',
63
75
  })
64
76
 
65
77
  const form = inject(FORM_KEY) as Ref<Record<string, any>>
@@ -6,4 +6,6 @@ export interface LcbCalendarSearchProps extends LcbBlockProps {
6
6
  placeholder?: string
7
7
  link?: LcbActionViewProps
8
8
  icon?: string
9
+ mode?: 'link' | 'search'
10
+ inputLink?: LcbActionViewProps
9
11
  }
@@ -48,8 +48,8 @@
48
48
  }"
49
49
  />
50
50
  <lcb-action-view
51
- class="text-28rpx flex-1 mr-3"
52
- :style="{
51
+ custom-class="!text-28rpx !flex-1 !mr-3"
52
+ :customStyle="{
53
53
  color: form.keywords ? 'var(--content-color)' : '#969696',
54
54
  }"
55
55
  v-bind="inputLink"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<
7
7
  radius: number
8
8
  placeholder: string
9
9
  icon: string
10
+ mode: string
10
11
  }
11
12
  >,
12
13
  {},
@@ -27,11 +28,13 @@ declare const _default: import('vue').DefineComponent<
27
28
  radius: number
28
29
  placeholder: string
29
30
  icon: string
31
+ mode: string
30
32
  }
31
33
  >
32
34
  >
33
35
  >,
34
36
  {
37
+ mode: 'link' | 'search'
35
38
  icon: string
36
39
  radius: number
37
40
  placeholder: string
@@ -4,4 +4,6 @@ export interface LcbCalendarSearchProps extends LcbBlockProps {
4
4
  placeholder?: string
5
5
  link?: LcbActionViewProps
6
6
  icon?: string
7
+ mode?: 'link' | 'search'
8
+ inputLink?: LcbActionViewProps
7
9
  }
@@ -50,8 +50,8 @@ declare const __VLS_component: import('vue').DefineComponent<
50
50
  paddingHorizontal: number
51
51
  paddingVertical: number
52
52
  imageWidth: number
53
- imageHeight: number
54
53
  column: number
54
+ imageHeight: number
55
55
  listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
56
56
  titleLineClamp: number
57
57
  sourceMode: 1 | 2