@tplc/business 0.3.72 → 0.3.73

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,22 @@
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.73](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.69...v0.3.73) (2025-03-08)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.3.70 ([5225f9c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5225f9c029f67f8bdb260cb4116e35b4e7bf2c8d))
11
+ * **release:** 0.3.71 ([4d93c94](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4d93c9439faf64d06ca38cbe0c24be0913a3a61f))
12
+ * **release:** 0.3.72 ([8747547](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8747547d4c92e46e7a7c15badf9570194e603150))
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 图片处理 ([bb8dfb8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bb8dfb854ff25447fa86c54d5ae8e065c75e0722))
18
+ * 城市数据cache ([5ca0c2a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ca0c2a88de63694f64c6c60c96621e705b01b72))
19
+ * 调整城市 ([0d04291](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0d0429144c4f6a468faa178513ecbda2bcc48ee9))
20
+
5
21
  ### [0.3.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.71...v0.3.72) (2025-03-07)
6
22
 
7
23
 
@@ -16,6 +16,7 @@
16
16
  borderColor,
17
17
  boxShadow:
18
18
  shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
19
+ ...customStyle,
19
20
  }"
20
21
  class="box-border overflow-hidden relative"
21
22
  :class="customClass"
@@ -1,3 +1,5 @@
1
+ import { StyleValue } from 'vue'
2
+
1
3
  export interface LcbBlockProps {
2
4
  /** 左右外距 */
3
5
  marginHorizontal?: number
@@ -35,6 +37,7 @@ export interface LcbBlockProps {
35
37
  backgroundPosition?: string
36
38
  borderColor?: string
37
39
  textAlign?: 'left' | 'center' | 'right'
40
+ customStyle?: StyleValue
38
41
  }
39
42
  export interface LcbBlockInnerProps extends LcbBlockProps {
40
43
  [key: string]: any
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <lcb-block
3
+ v-bind="$props"
4
+ customClass="border-solid"
5
+ :customStyle="{
6
+ borderWidth: `${borderWidth}px`,
7
+ }"
8
+ >
9
+ <lcb-action-view>
10
+ <view
11
+ class="flex items-center"
12
+ :style="{
13
+ gap: transformValueUnit(gap),
14
+ }"
15
+ >
16
+ <wd-icon :name="icon" :size="iconSize" class-prefix="lcb" :color="iconColor" v-if="icon" />
17
+ <view>{{ placeholder }}</view>
18
+ </view>
19
+ </lcb-action-view>
20
+ </lcb-block>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import { LcbSearchProps } from './types'
25
+ import { transformValueUnit } from '../../utils/transform'
26
+ defineOptions({
27
+ name: 'LcbSearch',
28
+ options: {
29
+ addGlobalClass: true,
30
+ virtualHost: true,
31
+ styleIsolation: 'shared',
32
+ },
33
+ })
34
+ withDefaults(defineProps<LcbSearchProps>(), {
35
+ placeholder: '搜索',
36
+ iconSize: '16',
37
+ borderWidth: 1,
38
+ iconColor: '#333',
39
+ gap: 16,
40
+ })
41
+ </script>
42
+
43
+ <style lang="scss" scoped></style>
@@ -0,0 +1,12 @@
1
+ import { LcbActionViewProps } from 'components/lcb-action-view/types'
2
+
3
+ export interface LcbSearchProps {
4
+ // Define the component's prop types here
5
+ placeholder?: string
6
+ icon?: string
7
+ iconSize?: string
8
+ borderWidth?: number
9
+ iconColor?: string
10
+ gap?: number
11
+ link?: LcbActionViewProps
12
+ }
package/global.d.ts CHANGED
@@ -29,6 +29,7 @@ declare module 'vue' {
29
29
  'lcb-product': (typeof import('@tplc/business/components/lcb-product/lcb-product.vue'))['default']
30
30
  'lcb-product-item': (typeof import('@tplc/business/components/lcb-product-item/lcb-product-item.vue'))['default']
31
31
  'lcb-rich-text': (typeof import('@tplc/business/components/lcb-rich-text/lcb-rich-text.vue'))['default']
32
+ 'lcb-search': (typeof import('@tplc/business/components/lcb-search/lcb-search.vue'))['default']
32
33
  'lcb-swiper': (typeof import('@tplc/business/components/lcb-swiper/lcb-swiper.vue'))['default']
33
34
  'lcb-tabs': (typeof import('@tplc/business/components/lcb-tabs/lcb-tabs.vue'))['default']
34
35
  'lcb-tags': (typeof import('@tplc/business/components/lcb-tags/lcb-tags.vue'))['default']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.72",
3
+ "version": "0.3.73",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -1,3 +1,4 @@
1
+ import { StyleValue } from 'vue'
1
2
  export interface LcbBlockProps {
2
3
  /** 左右外距 */
3
4
  marginHorizontal?: number
@@ -34,6 +35,7 @@ export interface LcbBlockProps {
34
35
  backgroundPosition?: string
35
36
  borderColor?: string
36
37
  textAlign?: 'left' | 'center' | 'right'
38
+ customStyle?: StyleValue
37
39
  }
38
40
  export interface LcbBlockInnerProps extends LcbBlockProps {
39
41
  [key: string]: any
@@ -22,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<
22
22
  mode: 'map' | 'list'
23
23
  backgroundColor: string
24
24
  color: string
25
+ customStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null
25
26
  customClass: string
26
27
  radius: number
27
28
  backgroundImage: string
@@ -0,0 +1,68 @@
1
+ import { LcbSearchProps } from './types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_WithDefaults<
4
+ __VLS_TypePropsToOption<LcbSearchProps>,
5
+ {
6
+ placeholder: string
7
+ iconSize: string
8
+ borderWidth: number
9
+ iconColor: string
10
+ gap: number
11
+ }
12
+ >,
13
+ {},
14
+ unknown,
15
+ {},
16
+ {},
17
+ import('vue').ComponentOptionsMixin,
18
+ import('vue').ComponentOptionsMixin,
19
+ {},
20
+ string,
21
+ import('vue').PublicProps,
22
+ Readonly<
23
+ import('vue').ExtractPropTypes<
24
+ __VLS_WithDefaults<
25
+ __VLS_TypePropsToOption<LcbSearchProps>,
26
+ {
27
+ placeholder: string
28
+ iconSize: string
29
+ borderWidth: number
30
+ iconColor: string
31
+ gap: number
32
+ }
33
+ >
34
+ >
35
+ >,
36
+ {
37
+ iconSize: string
38
+ iconColor: string
39
+ placeholder: string
40
+ gap: number
41
+ borderWidth: number
42
+ },
43
+ {}
44
+ >
45
+ export default _default
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
48
+ ? __VLS_Prettify<
49
+ P[K] & {
50
+ default: D[K]
51
+ }
52
+ >
53
+ : P[K]
54
+ }
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K]
57
+ } & {}
58
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
59
+ type __VLS_TypePropsToOption<T> = {
60
+ [K in keyof T]-?: {} extends Pick<T, K>
61
+ ? {
62
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
63
+ }
64
+ : {
65
+ type: import('vue').PropType<T[K]>
66
+ required: true
67
+ }
68
+ }
@@ -0,0 +1,10 @@
1
+ import { LcbActionViewProps } from 'components/lcb-action-view/types'
2
+ export interface LcbSearchProps {
3
+ placeholder?: string
4
+ icon?: string
5
+ iconSize?: string
6
+ borderWidth?: number
7
+ iconColor?: string
8
+ gap?: number
9
+ link?: LcbActionViewProps
10
+ }