@tplc/business 0.4.67 → 0.4.68

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,28 @@
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.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.64...v0.4.68) (2025-04-09)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.1.79 ([f3280eb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f3280ebc71c45e36968d70b449608d6eaaeb1a16))
11
+ * **release:** 0.1.80 ([a53c579](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a53c5791278fe2f89eebb5ce42d4210d71a05956))
12
+ * **release:** 0.4.65 ([f14557e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f14557e81b735e781902d82cd93bc16426d7a160))
13
+ * **release:** 0.4.66 ([bbecd40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bbecd40845d9896f5decb7ed7fe8c28f86d9732b))
14
+ * **release:** 0.4.67 ([5cc61f3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5cc61f382292c7321ffb5ab9bb669003604c6463))
15
+
16
+
17
+ ### ✨ Features | 新功能
18
+
19
+ * level colver ([a8cf74e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a8cf74e83723e9d5fe820ea1cd1743e439af7a46))
20
+ * search 回车 带上keywords ([ce99896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ce998961a0b52d9a4e2d2018489d22175c5bb227))
21
+ * 修改ui ([9ad7fc6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9ad7fc61715f24ad63bddfb5739c3129444f5487))
22
+ * 兼容多行文案 ([466da44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/466da4433988e497d086c7e02c152492a49b0476))
23
+ * 列表 星星对齐 ([4d95ff9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4d95ff99fc85a4f643dab9beaaca6816869d5193))
24
+ * 调整图片存储 ([629dc80](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/629dc8060f9519b016419175017d76f3ebfeb557))
25
+ * 调整样式 ([2b912d5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2b912d5e319a65aa391a1a859fbe7dc202d12305))
26
+
5
27
  ### [0.4.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.66...v0.4.67) (2025-04-08)
6
28
 
7
29
 
@@ -74,14 +74,13 @@ const dynamicValue = computed(() => {
74
74
  return value
75
75
  })
76
76
  const innerValue = computed(() => {
77
+ if (props.mode === 'image') {
78
+ return dynamicValue.value
79
+ }
77
80
  let value = ''
78
- if (props.text.includes('${')) {
79
- value = props.text.replace(/\$\{([^}]+)\}/g, (_, p1) => {
80
- if (props.keyFromUser) {
81
- return userStore?.userInfo?.[p1] ?? ''
82
- } else {
83
- return pageInfo.value?.[p1] ?? ''
84
- }
81
+ if (props.text && props.text.includes('${')) {
82
+ value = props.text.replace(/\$\{([^}]+)\}/g, () => {
83
+ return dynamicValue.value || props.textDefaultValue || ''
85
84
  })
86
85
  }
87
86
  return value
@@ -18,6 +18,8 @@ export interface LcbButtonProps extends LcbBlockProps {
18
18
  iconGap?: number
19
19
  // 动态值不存在就不显示
20
20
  hideWhenDynamicKeyNotExist?: boolean
21
+ // 动态值不存在时显示的默认值
22
+ textDefaultValue?: string
21
23
  itemAlign?:
22
24
  | 'top-left'
23
25
  | 'top-center'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.67",
3
+ "version": "0.4.68",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.79"
14
+ "@tplc/wot": "0.1.80"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -16,6 +16,7 @@ export interface LcbButtonProps extends LcbBlockProps {
16
16
  iconColor?: string
17
17
  iconGap?: number
18
18
  hideWhenDynamicKeyNotExist?: boolean
19
+ textDefaultValue?: string
19
20
  itemAlign?:
20
21
  | 'top-left'
21
22
  | 'top-center'