@tplc/business 0.0.61 → 0.0.63

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,16 @@
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.0.63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.62...v0.0.63) (2024-11-20)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * lcb-nav 常规模式下新增gap 无需用户添加 ([1f9f7d6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f9f7d6f00e3435b353b67db6cb4db42843f54dc))
11
+ * 调整引擎组件配置 ([e150cad](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e150cad11c4183cce1b5e731a295d8a061389bdd))
12
+
13
+ ### [0.0.62](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.61...v0.0.62) (2024-11-20)
14
+
5
15
  ### [0.0.61](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.27...v0.0.61) (2024-11-20)
6
16
 
7
17
 
@@ -5,7 +5,7 @@
5
5
  marginLeft: transformValueUnit(marginHorizontal || 0),
6
6
  marginRight: transformValueUnit(marginHorizontal || 0),
7
7
  padding: `${transformValueUnit(paddingTop || paddingVertical || 0)} ${transformValueUnit(paddingRight || paddingHorizontal || 0)} ${transformValueUnit(paddingBottom || paddingVertical || 0)} ${transformValueUnit(paddingLeft || paddingHorizontal || 0)}`,
8
- borderRadius: transformValueUnit(radius),
8
+ borderRadius: `${transformValueUnit(topRadius || radius)} ${transformValueUnit(topRadius || radius)} ${transformValueUnit(bottomRadius || radius)} ${transformValueUnit(bottomRadius || radius)}`,
9
9
  color,
10
10
  backgroundColor: innerBackgroundColor,
11
11
  backgroundImage: backgroundImage ? `url('${backgroundImage}')` : '',
@@ -27,6 +27,8 @@ export interface LcbBlockProps {
27
27
  color?: string
28
28
  fontSize?: number
29
29
  radius?: number
30
+ topRadius?: number
31
+ bottomRadius?: number
30
32
  customClass?: string
31
33
  backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
32
34
  backgroundSize?: string
@@ -1,11 +1,13 @@
1
1
  <template>
2
- <wd-gap
3
- :height="transformValueUnit(height)"
4
- :safe-area-bottom="safeAreaBottom"
5
- :bg-color="bgColor"
6
- :safe-area-top="safeAreaTop"
7
- :custom-class="cutomClass"
8
- />
2
+ <lcb-block v-bind="$props">
3
+ <wd-gap
4
+ :height="transformValueUnit(height)"
5
+ :safe-area-bottom="safeAreaBottom"
6
+ :bg-color="bgColor"
7
+ :safe-area-top="safeAreaTop"
8
+ :custom-class="cutomClass"
9
+ />
10
+ </lcb-block>
9
11
  </template>
10
12
 
11
13
  <script setup lang="ts">
@@ -1,5 +1,7 @@
1
- export interface LcbGapProps {
2
- height?: number
1
+ import { LcbBlockProps } from '../lcb-block/types'
2
+
3
+ export interface LcbGapProps extends LcbBlockProps {
4
+ height?: number | string
3
5
  safeAreaBottom?: boolean
4
6
  bgColor?: string
5
7
  safeAreaTop?: boolean
@@ -75,7 +75,7 @@
75
75
  </view>
76
76
  </view>
77
77
  <!-- 常规默认底部弹一个高度的gap -->
78
- <lcb-gap v-if="topStyle === 1" :height="88" safe-area-top />
78
+ <lcb-gap v-if="topStyle === 1" height="44px" safe-area-top />
79
79
  </template>
80
80
 
81
81
  <script setup lang="ts">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -26,6 +26,8 @@ export interface LcbBlockProps {
26
26
  color?: string
27
27
  fontSize?: number
28
28
  radius?: number
29
+ topRadius?: number
30
+ bottomRadius?: number
29
31
  customClass?: string
30
32
  backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
31
33
  backgroundSize?: string
@@ -1,5 +1,6 @@
1
- export interface LcbGapProps {
2
- height?: number
1
+ import { LcbBlockProps } from '../lcb-block/types'
2
+ export interface LcbGapProps extends LcbBlockProps {
3
+ height?: number | string
3
4
  safeAreaBottom?: boolean
4
5
  bgColor?: string
5
6
  safeAreaTop?: boolean
@@ -1,4 +1,4 @@
1
- export declare const transformValueUnit: (value?: number, uni?: string) => string
1
+ export declare const transformValueUnit: (value?: number | string, uni?: string) => string
2
2
  /** 获取json字符串第一个url */
3
3
  export declare const getJsonStrFirstUrl: (jsonStr?: string) => any
4
4
  /** 获取json字符串列表 */
@@ -1,5 +1,5 @@
1
- export const transformValueUnit = (value?: number, uni = 'rpx') => {
2
- return typeof value === 'number' ? value + uni : '0rpx'
1
+ export const transformValueUnit = (value?: number | string, uni = 'rpx') => {
2
+ return typeof value === 'number' ? value + uni : typeof value === 'string' ? value : '0rpx'
3
3
  }
4
4
 
5
5
  /** 获取json字符串第一个url */