@tplc/business 0.4.86 → 0.4.87

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,8 @@
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.87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.86...v0.4.87) (2025-05-04)
6
+
5
7
  ### [0.4.86](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.83...v0.4.86) (2025-05-04)
6
8
 
7
9
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <lcb-block v-bind="$props">
2
+ <lcb-block v-bind="$props" v-if="renderItems?.length">
3
3
  <lcb-title
4
4
  v-if="showTitle"
5
5
  v-bind="{
@@ -131,6 +131,7 @@ const props = withDefaults(defineProps<LcbImgNavProps>(), {
131
131
  divider: true,
132
132
  arrowSize: 44,
133
133
  arrowColor: '#212121',
134
+ reverse: false,
134
135
  })
135
136
 
136
137
  const renderItems = computed(() => {
@@ -138,9 +139,13 @@ const renderItems = computed(() => {
138
139
  props.items?.filter((item) => {
139
140
  if (item.dependKey) {
140
141
  if (item.keyFromUser) {
141
- return Boolean(userStore?.userInfo?.[item.dependKey])
142
+ return props.reverse
143
+ ? !userStore?.userInfo?.[item.dependKey]
144
+ : Boolean(userStore?.userInfo?.[item.dependKey])
142
145
  } else {
143
- return Boolean(pageInfo.value?.[item.dependKey])
146
+ return props.reverse
147
+ ? !pageInfo.value?.[item.dependKey]
148
+ : Boolean(pageInfo.value?.[item.dependKey])
144
149
  }
145
150
  }
146
151
  return true
@@ -18,6 +18,8 @@ export interface LcbImgNavProps extends LcbBlockProps {
18
18
  dependKey?: string
19
19
  /** 依赖值类型 */
20
20
  keyFromUser?: boolean
21
+ /** 依赖值反选 */
22
+ reverse?: boolean
21
23
  })[]
22
24
  /** 排布方式每行几个 */
23
25
  pictureDistribution?: 3 | 4 | 5
@@ -95,7 +95,7 @@ const value = computed(() => {
95
95
 
96
96
  const coverImgWidth = computed(() => {
97
97
  if (style.value.width) {
98
- return style.value.width.replace('rpx', '')
98
+ return style.value.width
99
99
  }
100
100
  return '100%'
101
101
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.86",
3
+ "version": "0.4.87",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -21,6 +21,7 @@ declare const _default: import('vue').DefineComponent<
21
21
  divider: boolean
22
22
  arrowSize: number
23
23
  arrowColor: string
24
+ reverse: boolean
24
25
  }
25
26
  >,
26
27
  {},
@@ -57,6 +58,7 @@ declare const _default: import('vue').DefineComponent<
57
58
  divider: boolean
58
59
  arrowSize: number
59
60
  arrowColor: string
61
+ reverse: boolean
60
62
  }
61
63
  >
62
64
  >
@@ -17,6 +17,8 @@ export interface LcbImgNavProps extends LcbBlockProps {
17
17
  dependKey?: string
18
18
  /** 依赖值类型 */
19
19
  keyFromUser?: boolean
20
+ /** 依赖值反选 */
21
+ reverse?: boolean
20
22
  })[]
21
23
  /** 排布方式每行几个 */
22
24
  pictureDistribution?: 3 | 4 | 5