@tplc/business 0.3.8 → 0.3.10

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,25 @@
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.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.9...v0.3.10) (2025-01-23)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 新增float ([c47d77c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c47d77c1da0349ac9a23fc91a612fe935d768a06))
11
+ * 类型调整 ([061ecc5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/061ecc5631da0d6ccd69b82d3ac567a8ab4d6233))
12
+
13
+ ### [0.3.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.55...v0.3.9) (2025-01-23)
14
+
15
+
16
+ ### ✨ Features | 新功能
17
+
18
+ * docs ([900d1fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/900d1fefb37d6c1dbeb8b5d7640b191ae45f8aa7))
19
+ * input-number 支持重写 ([f117837](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f1178374db3091157005890b6407db445ab1dd3e))
20
+ * input-number 默认不触发change ([0e5bf05](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e5bf05516748d09ba647280eb43114fdda4fc22))
21
+ * 新增文档 ([13e339a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13e339a31dd3e12f3ddc0e5270fb88676cd676f3))
22
+ * 新增配置 ([22fa600](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fa6000042103d54e709a40eeed1438739e8c7b))
23
+
5
24
  ### [0.3.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.6...v0.3.8) (2025-01-19)
6
25
 
7
26
 
@@ -6,6 +6,7 @@
6
6
  @getphonenumber="getPhoneNumber"
7
7
  @chooseavatar="onChooseAvatar"
8
8
  :class="customClass"
9
+ :style="customStyle"
9
10
  >
10
11
  <slot />
11
12
  </button>
@@ -1,7 +1,11 @@
1
+ import { StyleValue } from 'vue'
2
+
1
3
  export type LcbActionViewProps = {
2
4
  /** 跳转路径 */
3
5
  jumpUrl?: string
4
6
  urlParams?: string
7
+ customClass?: string
8
+ customStyle?: StyleValue
5
9
  } & (
6
10
  | {
7
11
  /**
@@ -35,7 +39,6 @@ export type LcbActionViewProps = {
35
39
  jumpAppid?: string
36
40
  /** 手机号 */
37
41
  phoneNumber?: string
38
- customClass?: string
39
42
  /** 弹窗文案 */
40
43
  content?: string
41
44
  /** 弹窗标题 */
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <lcb-action-view
3
+ v-bind="$props.link"
4
+ custom-class="!fixed !z-2 flex items-center overflow-hidden !text-center justify-center flex-col box-border shadow break-after-all"
5
+ :customStyle="customStyle"
6
+ >
7
+ <wd-icon
8
+ v-if="type === 'icon' && icon"
9
+ :name="icon"
10
+ class-prefix="lcb"
11
+ :color="color"
12
+ :size="transformValueUnit(fontSize)"
13
+ />
14
+ <template v-else>{{ text }}</template>
15
+ </lcb-action-view>
16
+ </template>
17
+
18
+ <script setup lang="ts">
19
+ import { LcbFabProps } from './types'
20
+ import { transformValueUnit } from '../..//utils/transform'
21
+ import { computed } from 'vue'
22
+ defineOptions({
23
+ name: 'LcbFab',
24
+ options: {
25
+ addGlobalClass: true,
26
+ virtualHost: true,
27
+ styleIsolation: 'shared',
28
+ },
29
+ })
30
+ const props = withDefaults(defineProps<LcbFabProps>(), {})
31
+ const customStyle = computed(() => {
32
+ const {
33
+ right,
34
+ bottom,
35
+ link,
36
+ width,
37
+ borderRadius,
38
+ backgroundColor,
39
+ backgroundImage,
40
+ fontSize,
41
+ padding,
42
+ ...reset
43
+ } = props
44
+ return {
45
+ ...reset,
46
+ right: transformValueUnit(right),
47
+ bottom: transformValueUnit(bottom),
48
+ width: transformValueUnit(width),
49
+ borderRadius: transformValueUnit(borderRadius),
50
+ backgroundColor,
51
+ backgroundImage: `url(${backgroundImage})`,
52
+ height: transformValueUnit(width),
53
+ fontSize: transformValueUnit(fontSize),
54
+ padding: `0 ${transformValueUnit(padding)}`,
55
+ }
56
+ })
57
+ </script>
58
+
59
+ <style lang="scss" scoped></style>
@@ -0,0 +1,18 @@
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+
3
+ export interface LcbFabProps {
4
+ right: number
5
+ bottom: number
6
+ backgroundColor?: string
7
+ backgroundImage?: string
8
+ width: number
9
+ borderRadius: number
10
+ text?: string
11
+ padding?: number
12
+ color?: string
13
+ fontSize?: number
14
+ fontWeight?: number
15
+ type?: 'icon' | 'text'
16
+ icon?: string
17
+ link?: LcbActionViewProps
18
+ }
package/global.d.ts CHANGED
@@ -13,6 +13,7 @@ declare module 'vue' {
13
13
  'lcb-calendar-search': (typeof import('@tplc/business/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
14
14
  'lcb-city-select': (typeof import('@tplc/business/components/lcb-city-select/lcb-city-select.vue'))['default']
15
15
  'lcb-dynamic-data': (typeof import('@tplc/business/components/lcb-dynamic-data/lcb-dynamic-data.vue'))['default']
16
+ 'lcb-fab': (typeof import('@tplc/business/components/lcb-fab/lcb-fab.vue'))['default']
16
17
  'lcb-gap': (typeof import('@tplc/business/components/lcb-gap/lcb-gap.vue'))['default']
17
18
  'lcb-grid': (typeof import('@tplc/business/components/lcb-grid/lcb-grid.vue'))['default']
18
19
  'lcb-home-search': (typeof import('@tplc/business/components/lcb-home-search/lcb-home-search.vue'))['default']
@@ -1,9 +1,9 @@
1
1
  @font-face {
2
2
  font-family: 'lcb'; /* Project id 4710234 */
3
3
  src:
4
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.woff2?t=1735307783373') format('woff2'),
5
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.woff?t=1735307783373') format('woff'),
6
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.ttf?t=1735307783373') format('truetype');
4
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.woff2?t=1737644309894') format('woff2'),
5
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.woff?t=1737644309894') format('woff'),
6
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.ttf?t=1737644309894') format('truetype');
7
7
  }
8
8
 
9
9
  .lcb {
@@ -14,6 +14,106 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .lcb-xinzeng:before {
18
+ content: '\e6c1';
19
+ }
20
+
21
+ .lcb-xiyiqusong-suo:before {
22
+ content: '\e6b0';
23
+ }
24
+
25
+ .lcb-jianshenfang-suo:before {
26
+ content: '\e6b1';
27
+ }
28
+
29
+ .lcb-chenxinchenyi-suo:before {
30
+ content: '\e6b2';
31
+ }
32
+
33
+ .lcb-zhuanshukefu-suo:before {
34
+ content: '\e6b3';
35
+ }
36
+
37
+ .lcb-zaocandabao-suo:before {
38
+ content: '\e6b4';
39
+ }
40
+
41
+ .lcb-kafeiquan-suo:before {
42
+ content: '\e6b5';
43
+ }
44
+
45
+ .lcb-mianfeijiesong:before {
46
+ content: '\e6b6';
47
+ }
48
+
49
+ .lcb-zaocandabao:before {
50
+ content: '\e6b7';
51
+ }
52
+
53
+ .lcb-huiyuanzhuanxiangquan-suo:before {
54
+ content: '\e6b8';
55
+ }
56
+
57
+ .lcb-yaoqingtequan:before {
58
+ content: '\e6b9';
59
+ }
60
+
61
+ .lcb-huiyuanzhuanxiangquan:before {
62
+ content: '\e6ba';
63
+ }
64
+
65
+ .lcb-xiyifang:before {
66
+ content: '\e6bb';
67
+ }
68
+
69
+ .lcb-xiyiqusong:before {
70
+ content: '\e6bc';
71
+ }
72
+
73
+ .lcb-mianfeijiesong-suo:before {
74
+ content: '\e6bd';
75
+ }
76
+
77
+ .lcb-kafeiquan:before {
78
+ content: '\e6be';
79
+ }
80
+
81
+ .lcb-xiyifang-suo:before {
82
+ content: '\e6bf';
83
+ }
84
+
85
+ .lcb-jianshenfang:before {
86
+ content: '\e6c0';
87
+ }
88
+
89
+ .lcb-yaoqingtequan-suo:before {
90
+ content: '\e6a9';
91
+ }
92
+
93
+ .lcb-shengfangquan:before {
94
+ content: '\e6aa';
95
+ }
96
+
97
+ .lcb-zhuanshukefu:before {
98
+ content: '\e6ab';
99
+ }
100
+
101
+ .lcb-shengfangquan-suo:before {
102
+ content: '\e6ac';
103
+ }
104
+
105
+ .lcb-shunfengbaoyou:before {
106
+ content: '\e6ad';
107
+ }
108
+
109
+ .lcb-shunfengbaoyou-suo:before {
110
+ content: '\e6ae';
111
+ }
112
+
113
+ .lcb-chenxinchenyi:before {
114
+ content: '\e6af';
115
+ }
116
+
17
117
  .lcb-ditu:before {
18
118
  content: '\e6a8';
19
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
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.54"
14
+ "@tplc/wot": "0.1.56"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -1,7 +1,10 @@
1
+ import { StyleValue } from 'vue'
1
2
  export type LcbActionViewProps = {
2
3
  /** 跳转路径 */
3
4
  jumpUrl?: string
4
5
  urlParams?: string
6
+ customClass?: string
7
+ customStyle?: StyleValue
5
8
  } & (
6
9
  | {
7
10
  /**
@@ -34,7 +37,6 @@ export type LcbActionViewProps = {
34
37
  jumpAppid?: string
35
38
  /** 手机号 */
36
39
  phoneNumber?: string
37
- customClass?: string
38
40
  /** 弹窗文案 */
39
41
  content?: string
40
42
  /** 弹窗标题 */
@@ -0,0 +1,42 @@
1
+ import { LcbFabProps } from './types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_WithDefaults<__VLS_TypePropsToOption<LcbFabProps>, {}>,
4
+ {},
5
+ unknown,
6
+ {},
7
+ {},
8
+ import('vue').ComponentOptionsMixin,
9
+ import('vue').ComponentOptionsMixin,
10
+ {},
11
+ string,
12
+ import('vue').PublicProps,
13
+ Readonly<
14
+ import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbFabProps>, {}>>
15
+ >,
16
+ {},
17
+ {}
18
+ >
19
+ export default _default
20
+ type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
22
+ ? __VLS_Prettify<
23
+ P[K] & {
24
+ default: D[K]
25
+ }
26
+ >
27
+ : P[K]
28
+ }
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K]
31
+ } & {}
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K>
35
+ ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
37
+ }
38
+ : {
39
+ type: import('vue').PropType<T[K]>
40
+ required: true
41
+ }
42
+ }
@@ -0,0 +1,17 @@
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+ export interface LcbFabProps {
3
+ right: number
4
+ bottom: number
5
+ backgroundColor?: string
6
+ backgroundImage?: string
7
+ width: number
8
+ borderRadius: number
9
+ text?: string
10
+ padding?: number
11
+ color?: string
12
+ fontSize?: number
13
+ fontWeight?: number
14
+ type?: 'icon' | 'text'
15
+ icon?: string
16
+ link?: LcbActionViewProps
17
+ }
@@ -59,13 +59,13 @@ declare const _default: import('vue').DefineComponent<
59
59
  lineWidth: number
60
60
  marginHorizontal: number
61
61
  fontSize: number
62
+ fontWeight: number
62
63
  justify:
63
64
  | 'justify-start'
64
65
  | 'justify-end'
65
66
  | 'justify-center'
66
67
  | 'justify-between'
67
68
  | 'justify-around'
68
- fontWeight: number
69
69
  hintColor: string
70
70
  hintFontSize: number
71
71
  hintVerticalAlign: 'end' | 'center'
@@ -63,8 +63,8 @@ declare const _default: import('vue').DefineComponent<
63
63
  >,
64
64
  {
65
65
  item: Record<string, any>
66
- gutter: number
67
66
  animation: boolean
67
+ gutter: number
68
68
  skeletonHeight: number
69
69
  showSkeleton: boolean
70
70
  },
@@ -179,10 +179,10 @@ declare const _default: import('vue').DefineComponent<
179
179
  modelValue: unknown[]
180
180
  width: string | number
181
181
  height: string | number
182
- idKey: string
183
- addTime: number
184
182
  columnCount: string | number
185
183
  columnGap: string | number
184
+ idKey: string
185
+ addTime: number
186
186
  leftGap: string | number
187
187
  rightGap: string | number
188
188
  showScrollbar: boolean