@tplc/business 0.7.49 → 0.7.50
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.7.50](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.49...v0.7.50) (2026-01-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ♻️ Code Refactoring | 代码重构
|
|
9
|
+
|
|
10
|
+
* **lcb-area:** update comparison logic to use compareType prop for improved clarity ([525e606](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/525e606ba08288fc1f048a68208575214cf8f274))
|
|
11
|
+
|
|
5
12
|
### [0.7.49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.45...v0.7.49) (2026-01-06)
|
|
6
13
|
|
|
7
14
|
|
package/action.d.ts
CHANGED
|
@@ -48,16 +48,16 @@ const innerBackgroundColor = computed(() => {
|
|
|
48
48
|
})
|
|
49
49
|
|
|
50
50
|
const getInnerStyle = computed(() => {
|
|
51
|
-
const innerStyle =
|
|
52
|
-
(acc,
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const innerStyle = props.dynamicStyleOptions?.reduce(
|
|
52
|
+
(acc, { styleKey }) => {
|
|
53
|
+
if (styleKey) {
|
|
54
|
+
const currentOptions = props.dynamicStyleOptions?.[styleKey]
|
|
55
55
|
const data = get(
|
|
56
56
|
currentOptions?.keyFrom === 'user' ? userStore?.userInfo : innerDynamicData.value,
|
|
57
57
|
currentOptions?.dynamicKey || '',
|
|
58
58
|
)
|
|
59
59
|
if (data) {
|
|
60
|
-
acc[
|
|
60
|
+
acc[styleKey] = data
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DynamicOptions } from 'action'
|
|
2
|
-
import { StyleValue } from 'vue'
|
|
3
2
|
|
|
4
3
|
export interface LcbBlockProps {
|
|
5
4
|
/** 左右外距 */
|
|
@@ -58,7 +57,7 @@ export interface LcbBlockProps {
|
|
|
58
57
|
| 'bottom-right'
|
|
59
58
|
|
|
60
59
|
// 动态样式集合
|
|
61
|
-
dynamicStyleOptions?:
|
|
60
|
+
dynamicStyleOptions?: DynamicOptions[]
|
|
62
61
|
dynamicBgImage?: string
|
|
63
62
|
}
|
|
64
63
|
export interface LcbBlockInnerProps extends LcbBlockProps {
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ export interface LcbBlockProps {
|
|
|
54
54
|
| 'bottom-left'
|
|
55
55
|
| 'bottom-center'
|
|
56
56
|
| 'bottom-right'
|
|
57
|
-
dynamicStyleOptions?:
|
|
57
|
+
dynamicStyleOptions?: DynamicOptions[]
|
|
58
58
|
dynamicBgImage?: string
|
|
59
59
|
}
|
|
60
60
|
export interface LcbBlockInnerProps extends LcbBlockProps {
|
|
@@ -66,7 +66,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
66
66
|
| 'bottom-left'
|
|
67
67
|
| 'bottom-center'
|
|
68
68
|
| 'bottom-right'
|
|
69
|
-
dynamicStyleOptions:
|
|
69
|
+
dynamicStyleOptions: import('../../action').DynamicOptions[]
|
|
70
70
|
dynamicBgImage: string
|
|
71
71
|
gap: number
|
|
72
72
|
imageWidth: number
|