@tplc/business 0.5.77 → 0.5.78
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 +18 -0
- package/components/lcb-area/lcb-area.vue +4 -4
- package/components/lcb-button/lcb-button.vue +1 -1
- package/components/lcb-button/types.ts +1 -0
- package/components/lcb-wrapper-list/lcb-wrapper-list.vue +11 -2
- package/package.json +1 -1
- package/types/components/lcb-button/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.5.78](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.76...v0.5.78) (2025-12-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.5.77 ([3ab3f4e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3ab3f4ec0c8a1355818b4f8ee4ba24ca981d068d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
14
|
+
|
|
15
|
+
* dynamicStyleOptions 支持旧数据 ([2317541](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/23175418f5306e754ae29d58779d7d51fc507a31))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ✨ Features | 新功能
|
|
19
|
+
|
|
20
|
+
* wrapper 支持嵌套 ([1bed138](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1bed138292c76209e91588b49474903d9a89b9da))
|
|
21
|
+
* 支持属性上下文修改 ([e4a9f58](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e4a9f583dd701f15cad9f656566e17fdaa6886fe))
|
|
22
|
+
|
|
5
23
|
### [0.5.77](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.74...v0.5.77) (2025-12-05)
|
|
6
24
|
|
|
7
25
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:style="{
|
|
6
6
|
display: display,
|
|
7
7
|
gap: transformValueUnit(gap),
|
|
8
|
-
overflowX: scrollX ? 'auto' : '
|
|
8
|
+
overflowX: scrollX ? 'auto' : 'hidden',
|
|
9
9
|
...innerStyle,
|
|
10
10
|
}"
|
|
11
11
|
class="h-full"
|
|
@@ -75,11 +75,11 @@ const getStyle = (index: number) => {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const getData = async () => {
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
78
|
+
const dynamicData = await dynamicRequest(props.dataSource, pageInfo.value, userStore?.userInfo)
|
|
79
|
+
if (dynamicData) {
|
|
80
80
|
pageInfo.value = {
|
|
81
81
|
...pageInfo.value,
|
|
82
|
-
...
|
|
82
|
+
...dynamicData,
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<script setup lang="ts">
|
|
17
17
|
import { computed, inject, Ref, ref, watchEffect } from 'vue'
|
|
18
18
|
import { LcbWrapperListProps } from './types'
|
|
19
|
-
import { PAGE_PROVIDE_KEY } from '@tplc/business/constants'
|
|
19
|
+
import { PAGE_PROVIDE_KEY, WRAPPER_ITEM_KEY } from '@tplc/business/constants'
|
|
20
20
|
import { transformValueUnit } from '@tplc/business/utils/transform'
|
|
21
21
|
import { dynamicRequest } from '../../utils/request'
|
|
22
22
|
defineOptions({
|
|
@@ -33,6 +33,7 @@ const props = withDefaults(defineProps<LcbWrapperListProps>(), {
|
|
|
33
33
|
})
|
|
34
34
|
const pageInfo = inject(PAGE_PROVIDE_KEY) as Ref<Record<string, any>>
|
|
35
35
|
const userStore = uni.$lcb.userStore?.()
|
|
36
|
+
const wrapperItemData = inject(WRAPPER_ITEM_KEY, undefined) as unknown as Ref<Record<string, any>>
|
|
36
37
|
const renderList = ref<unknown[]>([{ walletAmount: 1 }])
|
|
37
38
|
|
|
38
39
|
const transformStringArrayToObjectArray = (data: unknown[]): unknown[] => {
|
|
@@ -46,9 +47,17 @@ const transformStringArrayToObjectArray = (data: unknown[]): unknown[] => {
|
|
|
46
47
|
|
|
47
48
|
watchEffect(async () => {
|
|
48
49
|
let data: unknown[] = []
|
|
49
|
-
const daynamicData = await dynamicRequest(
|
|
50
|
+
const daynamicData = await dynamicRequest(
|
|
51
|
+
props.dataSource,
|
|
52
|
+
{
|
|
53
|
+
...pageInfo.value,
|
|
54
|
+
...(wrapperItemData?.value || {}),
|
|
55
|
+
},
|
|
56
|
+
userStore?.userInfo,
|
|
57
|
+
)
|
|
50
58
|
if (daynamicData) {
|
|
51
59
|
data = daynamicData
|
|
60
|
+
console.log('daynamicData', data, props.dataSource)
|
|
52
61
|
}
|
|
53
62
|
// 转换字符串数组为对象数组的辅助函数
|
|
54
63
|
renderList.value = Array.isArray(data) ? transformStringArrayToObjectArray(data) : []
|
package/package.json
CHANGED