@tplc/business 0.4.10 → 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,8 @@
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
+
5
7
  ### [0.4.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.9...v0.4.10) (2025-03-25)
6
8
 
7
9
  ### [0.4.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.8...v0.4.9) (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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.10",
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
  }