@tplc/business 0.4.57 → 0.4.59

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.4.59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.58...v0.4.59) (2025-04-05)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 调整数据 ([ba5f1e2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba5f1e2bbb877ae791a9a09f640e2de95a6a1efc))
11
+
12
+ ### [0.4.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.57...v0.4.58) (2025-04-05)
13
+
5
14
  ### [0.4.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.56...v0.4.57) (2025-04-05)
6
15
 
7
16
 
@@ -12,6 +12,7 @@
12
12
  <view
13
13
  v-for="(item, index) in list"
14
14
  :key="item.id"
15
+ class="slot-wrapper"
15
16
  :style="{
16
17
  gridColumn:
17
18
  areaItems?.[index]?.colSpan && display === 'grid'
@@ -59,4 +60,14 @@ const innerStyle = computed(() => {
59
60
  })
60
61
  </script>
61
62
 
62
- <style lang="scss" scoped></style>
63
+ <style lang="scss" scoped>
64
+ // 小程序的情况
65
+ // #ifdef MP-WEIXIN
66
+ .slot-wrapper {
67
+ :deep(> view) {
68
+ width: 100%;
69
+ height: 100%;
70
+ }
71
+ }
72
+ // #endif
73
+ </style>
@@ -20,6 +20,7 @@
20
20
  shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
21
21
  textAlign,
22
22
  ...customStyle,
23
+ ...getFlexStyle(align),
23
24
  }"
24
25
  class="box-border overflow-hidden relative"
25
26
  :class="customClass"
@@ -30,7 +31,7 @@
30
31
 
31
32
  <script setup lang="ts">
32
33
  import { LcbBlockInnerProps } from './types'
33
- import { transformValueUnit } from '../../utils/transform'
34
+ import { transformValueUnit, getFlexStyle } from '../../utils/transform'
34
35
  import { computed } from 'vue'
35
36
  defineOptions({
36
37
  name: 'LcbBlock',
@@ -40,6 +40,16 @@ export interface LcbBlockProps {
40
40
  borderWidth?: number
41
41
  textAlign?: 'left' | 'center' | 'right'
42
42
  customStyle?: StyleValue
43
+ align?:
44
+ | 'top-left'
45
+ | 'top-center'
46
+ | 'top-right'
47
+ | 'center-left'
48
+ | 'center-center'
49
+ | 'center-right'
50
+ | 'bottom-left'
51
+ | 'bottom-center'
52
+ | 'bottom-right'
43
53
  }
44
54
  export interface LcbBlockInnerProps extends LcbBlockProps {
45
55
  [key: string]: any
@@ -12,17 +12,6 @@ export interface LcbButtonProps extends LcbBlockProps {
12
12
  keyFromUser?: boolean
13
13
  fillWidth?: boolean
14
14
  fillHeight?: boolean
15
- align?:
16
- | 'top-left'
17
- | 'top-center'
18
- | 'top-right'
19
- | 'center-left'
20
- | 'center-center'
21
- | 'center-right'
22
- | 'bottom-left'
23
- | 'bottom-center'
24
- | 'bottom-right'
25
-
26
15
  itemAlign?:
27
16
  | 'top-left'
28
17
  | 'top-center'
@@ -17,16 +17,16 @@
17
17
  <view
18
18
  class="title-view"
19
19
  :style="{
20
- backgroundColor: item.statusInfo.statusColor,
20
+ backgroundColor: item.statusInfo?.statusColor,
21
21
  }"
22
22
  ></view>
23
23
  </view>
24
24
  <view
25
25
  :style="{
26
- color: item.statusInfo.statusColor,
26
+ color: item.statusInfo?.statusColor,
27
27
  }"
28
28
  >
29
- {{ item.statusInfo.statusName }}
29
+ {{ item.statusInfo?.statusName }}
30
30
  </view>
31
31
  </view>
32
32
  <view class="text-#333 mt-1" v-if="item.subTitle">{{ item.subTitle }}</view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.57",
3
+ "version": "0.4.59",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -38,6 +38,16 @@ export interface LcbBlockProps {
38
38
  borderWidth?: number
39
39
  textAlign?: 'left' | 'center' | 'right'
40
40
  customStyle?: StyleValue
41
+ align?:
42
+ | 'top-left'
43
+ | 'top-center'
44
+ | 'top-right'
45
+ | 'center-left'
46
+ | 'center-center'
47
+ | 'center-right'
48
+ | 'bottom-left'
49
+ | 'bottom-center'
50
+ | 'bottom-right'
41
51
  }
42
52
  export interface LcbBlockInnerProps extends LcbBlockProps {
43
53
  [key: string]: any
@@ -11,16 +11,6 @@ export interface LcbButtonProps extends LcbBlockProps {
11
11
  keyFromUser?: boolean
12
12
  fillWidth?: boolean
13
13
  fillHeight?: boolean
14
- align?:
15
- | 'top-left'
16
- | 'top-center'
17
- | 'top-right'
18
- | 'center-left'
19
- | 'center-center'
20
- | 'center-right'
21
- | 'bottom-left'
22
- | 'bottom-center'
23
- | 'bottom-right'
24
14
  itemAlign?:
25
15
  | 'top-left'
26
16
  | 'top-center'
@@ -49,6 +49,16 @@ declare const __VLS_component: import('vue').DefineComponent<
49
49
  borderColor: string
50
50
  borderWidth: number
51
51
  textAlign: 'left' | 'center' | 'right'
52
+ align:
53
+ | 'top-left'
54
+ | 'top-center'
55
+ | 'top-right'
56
+ | 'center-left'
57
+ | 'center-center'
58
+ | 'center-right'
59
+ | 'bottom-left'
60
+ | 'bottom-center'
61
+ | 'bottom-right'
52
62
  imageWidth: number
53
63
  borderRadius: number
54
64
  imageHeight: number