@tplc/business 0.3.62 → 0.3.64

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.3.64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.63...v0.3.64) (2025-02-28)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 展示修改 ([19028e3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/19028e36a9a20a934d7eba6db0df949df3470405))
11
+ * 调整二维码 ([f41b055](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f41b05590ec8134b6f8bb8d4d86afcfac355150a))
12
+
13
+ ### [0.3.63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.62...v0.3.63) (2025-02-27)
14
+
5
15
  ### [0.3.62](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.62...v0.3.62) (2025-02-27)
6
16
 
7
17
 
@@ -15,7 +15,7 @@
15
15
  :safe-area-inset-bottom="position === 'bottom'"
16
16
  closable
17
17
  :position="position"
18
- v-if="[14, 141].includes(props.jumpType || 0)"
18
+ v-if="[14, 141].includes(props.jumpType || 0) && show"
19
19
  :custom-class="position === 'bottom' ? '!rounded-t-20rpx' : '!rounded-20rpx'"
20
20
  >
21
21
  <view
@@ -70,6 +70,7 @@
70
70
  class="title"
71
71
  :style="{
72
72
  fontSize: transformValueUnit(textSize),
73
+ color: textColor,
73
74
  }"
74
75
  >
75
76
  {{ item[titleKey] }}
@@ -103,11 +103,19 @@ const getData = async () => {
103
103
  page: getCurrentPage().route,
104
104
  ...props.params,
105
105
  })
106
+
106
107
  data.value = shareConfigList.map((v) => {
108
+ const staticParam = JSON.parse(v.staticParam || '{}')
109
+ // 删除空的属性
110
+ Object.keys(staticParam).forEach((v) => {
111
+ if (!staticParam[v]) {
112
+ delete staticParam[v]
113
+ }
114
+ })
107
115
  return getTemplateValues(v.styleConfig, {
108
116
  coverImg: v.coverImg,
109
117
  ...resets,
110
- ...JSON.parse(v.staticParam || '{}'),
118
+ ...staticParam,
111
119
  backgroundImage: v.backgroundImage,
112
120
  })
113
121
  })
@@ -8,7 +8,15 @@
8
8
  <view class="images mr-2" v-if="logoImg">
9
9
  <img :src="logoImg" />
10
10
  </view>
11
- <view class="title">{{ title }}</view>
11
+ <view
12
+ class="title"
13
+ :style="{
14
+ fontSize: transformValueUnit(textSize),
15
+ fontWeight: fontWeight,
16
+ }"
17
+ >
18
+ {{ title }}
19
+ </view>
12
20
  </view>
13
21
  <view class="images" v-else>
14
22
  <img :src="typographyTextBackground" />
@@ -18,6 +26,7 @@
18
26
 
19
27
  <script setup lang="ts">
20
28
  import { NavTitleProps } from '../types'
29
+ import { transformValueUnit } from '../../../utils/transform'
21
30
  defineOptions({
22
31
  name: 'LcbNavTitle',
23
32
  options: {
@@ -164,6 +164,9 @@ const props = withDefaults(defineProps<NavProps>(), {
164
164
  back: false,
165
165
  capsuleMode: 'light',
166
166
  immersionMode: 1,
167
+ textSize: 32,
168
+ fontWeight: 500,
169
+ textColor: '#000000',
167
170
  })
168
171
  const navbarBgColor = computed(() => {
169
172
  return props.backgroundType === 'color' ? props.backColor : ''
@@ -197,6 +200,8 @@ const titleProps = computed(() => {
197
200
  logoImg: props.logoImg,
198
201
  title: props.title,
199
202
  titleLocation: props.titleLocation,
203
+ textSize: props.textSize,
204
+ fontWeight: props.fontWeight,
200
205
  }
201
206
  })
202
207
 
@@ -17,6 +17,8 @@ export interface NavTitleProps {
17
17
  titleLocation?: 'left' | 'center'
18
18
  /** 是否沉浸式 */
19
19
  opacity?: number
20
+ textSize?: number
21
+ fontWeight?: number
20
22
  }
21
23
  export interface NavProps extends NavTitleProps {
22
24
  /** 是否固定 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.62",
3
+ "version": "0.3.64",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -16,6 +16,9 @@ declare const _default: import('vue').DefineComponent<
16
16
  back: boolean
17
17
  capsuleMode: string
18
18
  immersionMode: number
19
+ textSize: number
20
+ fontWeight: number
21
+ textColor: string
19
22
  }
20
23
  >,
21
24
  {},
@@ -45,6 +48,9 @@ declare const _default: import('vue').DefineComponent<
45
48
  back: boolean
46
49
  capsuleMode: string
47
50
  immersionMode: number
51
+ textSize: number
52
+ fontWeight: number
53
+ textColor: string
48
54
  }
49
55
  >
50
56
  >
@@ -52,6 +58,8 @@ declare const _default: import('vue').DefineComponent<
52
58
  {
53
59
  title: string
54
60
  styleGroup: 1 | 2 | 3 | 4
61
+ fontWeight: number
62
+ textSize: number
55
63
  back: boolean
56
64
  topStyle: 1 | 2
57
65
  immersionMode: 1 | 2
@@ -15,6 +15,8 @@ export interface NavTitleProps {
15
15
  titleLocation?: 'left' | 'center'
16
16
  /** 是否沉浸式 */
17
17
  opacity?: number
18
+ textSize?: number
19
+ fontWeight?: number
18
20
  }
19
21
  export interface NavProps extends NavTitleProps {
20
22
  /** 是否固定 */