@tplc/business 0.4.68 → 0.4.69

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,19 @@
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.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.80...v0.4.69) (2025-04-10)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.68 ([1d4e0de](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1d4e0de1dbfeacb26b4ba47fd471f6ee3a40585a))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * 调整图片存储 ([629dc80](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/629dc8060f9519b016419175017d76f3ebfeb557))
16
+ * 调整按钮配置 ([db5503f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/db5503f9e94ba00bc37947c401a3e4d5b52abb4d))
17
+
5
18
  ### [0.4.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.64...v0.4.68) (2025-04-09)
6
19
 
7
20
 
@@ -25,14 +25,9 @@
25
25
  :color="iconColor"
26
26
  />
27
27
  <template v-if="mode === 'image'">
28
- <wd-img
29
- :src="innerValue || props.url"
30
- :width="imageWidth"
31
- :height="imageHeight"
32
- mode="aspectFit"
33
- />
28
+ <wd-img :src="innerValue" :width="imageWidth" :height="imageHeight" mode="aspectFit" />
34
29
  </template>
35
- <template v-else>{{ innerValue || props.text }}</template>
30
+ <template v-else>{{ innerValue }}</template>
36
31
  </view>
37
32
  </lcb-action-view>
38
33
  </lcb-block>
@@ -75,12 +70,16 @@ const dynamicValue = computed(() => {
75
70
  })
76
71
  const innerValue = computed(() => {
77
72
  if (props.mode === 'image') {
78
- return dynamicValue.value
73
+ return dynamicValue.value || props.url
79
74
  }
80
- let value = ''
75
+ let value = props.text
81
76
  if (props.text && props.text.includes('${')) {
82
- value = props.text.replace(/\$\{([^}]+)\}/g, () => {
83
- return dynamicValue.value || props.textDefaultValue || ''
77
+ value = props.text.replace(/\$\{([^}]+)\}/g, (_, p) => {
78
+ if (props.keyFromUser) {
79
+ return userStore?.userInfo?.[p] ?? props.textDefaultValue ?? ''
80
+ } else {
81
+ return pageInfo.value?.[p] ?? props.textDefaultValue ?? ''
82
+ }
84
83
  })
85
84
  }
86
85
  return value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.68",
3
+ "version": "0.4.69",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],