@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 +2 -0
- package/components/lcb-img-nav/lcb-img-nav.vue +8 -3
- package/components/lcb-img-nav/types.ts +2 -0
- package/components/lcb-product-item/components/ItemValue.vue +1 -1
- package/package.json +1 -1
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +2 -0
- package/types/components/lcb-img-nav/types.d.ts +2 -0
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
|
|
142
|
+
return props.reverse
|
|
143
|
+
? !userStore?.userInfo?.[item.dependKey]
|
|
144
|
+
: Boolean(userStore?.userInfo?.[item.dependKey])
|
|
142
145
|
} else {
|
|
143
|
-
return
|
|
146
|
+
return props.reverse
|
|
147
|
+
? !pageInfo.value?.[item.dependKey]
|
|
148
|
+
: Boolean(pageInfo.value?.[item.dependKey])
|
|
144
149
|
}
|
|
145
150
|
}
|
|
146
151
|
return true
|
package/package.json
CHANGED
|
@@ -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
|
>
|