@tplc/business 0.4.113 → 0.4.114

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,13 @@
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.114](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.113...v0.4.114) (2025-05-14)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * wec ([86e30e1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/86e30e1b610da8c4441b264cf2e0cefe35739af6))
11
+
5
12
  ### [0.4.113](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.111...v0.4.113) (2025-05-14)
6
13
 
7
14
 
@@ -48,6 +48,7 @@ import { LcbButtonProps } from './types'
48
48
  import { PAGE_PROVIDE_KEY } from '../../constants'
49
49
  import { getFlexStyle, transformValueUnit } from '../../utils/transform'
50
50
  import { getDynamicData } from '../../utils/utils'
51
+ import { get } from 'lodash-es'
51
52
  defineOptions({
52
53
  name: 'LcbButton',
53
54
  options: {
@@ -67,12 +68,13 @@ const pageInfo = inject(PAGE_PROVIDE_KEY) as Ref<Record<string, any>>
67
68
  const userStore = uni.$lcb.userStore?.()
68
69
 
69
70
  const dynamicValue = computed(() => {
70
- let value = ''
71
+ let value = props.textDefaultValue
71
72
  if (props.dynamicKey) {
72
- value = getDynamicData(props.dynamicKey, {
73
- store: props.keyFromUser ? userStore?.userInfo : pageInfo.value,
74
- defaultText: props.textDefaultValue,
75
- })
73
+ value = get(
74
+ props.keyFromUser ? userStore?.userInfo : pageInfo.value,
75
+ props.dynamicKey,
76
+ props.textDefaultValue,
77
+ )
76
78
  }
77
79
  return value
78
80
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.113",
3
+ "version": "0.4.114",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],