@tplc/business 0.4.57 → 0.4.58

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.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.57...v0.4.58) (2025-04-05)
6
+
5
7
  ### [0.4.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.56...v0.4.57) (2025-04-05)
6
8
 
7
9
 
@@ -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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.57",
3
+ "version": "0.4.58",
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