@tplc/business 0.5.76 → 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 +39 -0
- package/components/lcb-area/lcb-area.vue +4 -4
- package/components/lcb-block/lcb-block.vue +1 -1
- 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,45 @@
|
|
|
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
|
+
|
|
23
|
+
### [0.5.77](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.74...v0.5.77) (2025-12-05)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
27
|
+
|
|
28
|
+
* area child width ([c97b8a6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c97b8a6992daf9b07d722a2f46eaf182eb69e1be))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
32
|
+
|
|
33
|
+
* **release:** 0.5.75 ([e30a9aa](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e30a9aab9464f9ead19d6c9d483b5506101af8e5))
|
|
34
|
+
* **release:** 0.5.76 ([2a61454](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2a61454515c983b29e5213914435470b99852b0e))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### ✨ Features | 新功能
|
|
38
|
+
|
|
39
|
+
* 兼容h5 ([a4bf8f6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a4bf8f60cda7afb3bcf3e8b3a99641c3b0c2e0f9))
|
|
40
|
+
* 动态样式 ([85a6aa5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/85a6aa5f60780d6c9e11e12fa7686cab958084cb))
|
|
41
|
+
* 支持属性上下文修改 ([e4a9f58](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e4a9f583dd701f15cad9f656566e17fdaa6886fe))
|
|
42
|
+
* 调整布局 ([2011392](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2011392224dc40ab6f7a7dae9f0a4d88a3d882dd))
|
|
43
|
+
|
|
5
44
|
### [0.5.76](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.75...v0.5.76) (2025-12-05)
|
|
6
45
|
|
|
7
46
|
|
|
@@ -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
|
}
|
|
@@ -62,7 +62,7 @@ const innerBackgroundColor = computed(() => {
|
|
|
62
62
|
})
|
|
63
63
|
|
|
64
64
|
const getInnerStyle = computed(() => {
|
|
65
|
-
const innerStyle = Object.keys(props.dynamicStyleOptions).reduce(
|
|
65
|
+
const innerStyle = Object.keys(props.dynamicStyleOptions || {}).reduce(
|
|
66
66
|
(acc, key) => {
|
|
67
67
|
const currentOptions = props.dynamicStyleOptions[key]
|
|
68
68
|
if (key) {
|
|
@@ -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