@tplc/business 0.7.48 → 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,35 @@
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
+
12
+ ### [0.7.49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.45...v0.7.49) (2026-01-06)
13
+
14
+
15
+ ### ♻️ Code Refactoring | 代码重构
16
+
17
+ * **lcb-img-nav, lcb-tags:** restructure item properties for enhanced customization and consistency ([f669990](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f6699906d64889c1582a15daf5b965fd00d42814))
18
+ * **lcb-img-nav:** update item styling properties to use rowItemProps for better customization ([8709982](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8709982e6e81f907bdabcc1c004d56ea31ff1645))
19
+
20
+
21
+ ### ✨ Features | 新功能
22
+
23
+ * **lcb-button:** add fontFamily prop to customize button text styling ([9f4ccd4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9f4ccd497cbf49f0bf406da3f805f0662ed21cfe))
24
+ * **lcb-img-nav:** add multi-line horizontal card layout with icon border customization ([34d1f27](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/34d1f27d0d8073eefcf3867ef6cc608d297de84c))
25
+ * **lcb-nav:** enhance navigation behavior for Alipay mini program with fallback icon and capsule offset adjustments ([1f72adc](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1f72adc1cf8ee7b33f6619bf4923bb032e2c2a0c))
26
+
27
+
28
+ ### 🚀 Chore | 构建/工程依赖/工具
29
+
30
+ * **release:** 0.7.46 ([e2763d0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e2763d06ddd6939c103716319b956342d5d45183))
31
+ * **release:** 0.7.47 ([a3f9c17](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f9c17a11ebe5856dbb64c2391f77e73fc126ad))
32
+ * **release:** 0.7.48 ([1d08038](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1d08038be82c4ae68c32855286a6ae0fe445a441))
33
+
5
34
  ### [0.7.48](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.47...v0.7.48) (2026-01-06)
6
35
 
7
36
 
package/action.d.ts CHANGED
@@ -115,4 +115,5 @@ export interface TextRenderViewItem {
115
115
  export interface DynamicOptions {
116
116
  keyFrom?: 'user' | 'context'
117
117
  dynamicKey?: string
118
+ styleKey?: string
118
119
  }
@@ -192,7 +192,7 @@ const showArea = computed(() => {
192
192
  return false
193
193
  }
194
194
 
195
- if (props.dependKeyCompareValue) {
195
+ if (props.compareType) {
196
196
  const compareValue = `${props.dependKeyCompareValue}`
197
197
  return compareValues(value, compareValue, props.compareType || '=')
198
198
  }
@@ -48,16 +48,16 @@ const innerBackgroundColor = computed(() => {
48
48
  })
49
49
 
50
50
  const getInnerStyle = computed(() => {
51
- const innerStyle = Object.keys(props.dynamicStyleOptions || {}).reduce(
52
- (acc, key) => {
53
- const currentOptions = props.dynamicStyleOptions?.[key]
54
- if (key) {
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[key] = data
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?: Record<string, DynamicOptions>
60
+ dynamicStyleOptions?: DynamicOptions[]
62
61
  dynamicBgImage?: string
63
62
  }
64
63
  export interface LcbBlockInnerProps extends LcbBlockProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.48",
3
+ "version": "0.7.50",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -54,7 +54,7 @@ export interface LcbBlockProps {
54
54
  | 'bottom-left'
55
55
  | 'bottom-center'
56
56
  | 'bottom-right'
57
- dynamicStyleOptions?: Record<string, DynamicOptions>
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: Record<string, import('../../action').DynamicOptions>
69
+ dynamicStyleOptions: import('../../action').DynamicOptions[]
70
70
  dynamicBgImage: string
71
71
  gap: number
72
72
  imageWidth: number