@tplc/business 0.2.67 → 0.2.68
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.2.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.67...v0.2.68) (2025-01-05)
|
|
6
|
+
|
|
5
7
|
### [0.2.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.66...v0.2.67) (2025-01-05)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -32,26 +32,27 @@
|
|
|
32
32
|
>
|
|
33
33
|
<slot name="list" :items="items" v-if="$slots.list" />
|
|
34
34
|
<template v-else>
|
|
35
|
-
<lcb-product v-bind="{ ...$props, form }" :items="items" v-if="$slots.item">
|
|
35
|
+
<lcb-product v-bind="{ ...$props, ...attrs, form }" :items="items" v-if="$slots.item">
|
|
36
36
|
<template #item="{ item }">
|
|
37
37
|
<slot name="item" :item="item"></slot>
|
|
38
38
|
</template>
|
|
39
39
|
</lcb-product>
|
|
40
|
-
<lcb-product v-bind="{ ...$props, form }" :items="items" v-else />
|
|
40
|
+
<lcb-product v-bind="{ ...$props, ...attrs, form }" :items="items" v-else />
|
|
41
41
|
</template>
|
|
42
42
|
</FilterList>
|
|
43
|
-
<lcb-map v-else-if="mode === 'map'" v-bind="{ ...info.listInfo, ...$props }" />
|
|
43
|
+
<lcb-map v-else-if="mode === 'map'" v-bind="{ ...info.listInfo, ...$props, ...attrs }" />
|
|
44
44
|
</template>
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script setup lang="ts">
|
|
48
|
-
import { inject, Ref, ref, watch } from 'vue'
|
|
48
|
+
import { inject, Ref, ref, watch, useAttrs } from 'vue'
|
|
49
49
|
import { getFilterDetail, LcbFilterResult } from './api'
|
|
50
50
|
import FilterList from './components/FilterList/index.vue'
|
|
51
51
|
import FilterView from './components/FilterView/index.vue'
|
|
52
52
|
import { LcbListProps } from './types'
|
|
53
53
|
import { FORM_KEY } from '../../constants'
|
|
54
54
|
import './index.scss'
|
|
55
|
+
const attrs = useAttrs()
|
|
55
56
|
/** 是否悬停 */
|
|
56
57
|
const sticky = ref(false)
|
|
57
58
|
const items = ref([])
|
|
@@ -14,6 +14,7 @@ defineOptions({
|
|
|
14
14
|
styleIsolation: 'shared',
|
|
15
15
|
},
|
|
16
16
|
})
|
|
17
|
+
const attrs = useAttrs()
|
|
17
18
|
const props = withDefaults(defineProps<LcbProductProps>(), {
|
|
18
19
|
listType: 'list',
|
|
19
20
|
items: [],
|
|
@@ -54,7 +55,7 @@ watch(
|
|
|
54
55
|
/>
|
|
55
56
|
<lcb-product-item
|
|
56
57
|
v-else
|
|
57
|
-
v-bind="{ ...item, ...$props }"
|
|
58
|
+
v-bind="{ ...item, ...$props, ...attrs }"
|
|
58
59
|
:layoutType="layoutType"
|
|
59
60
|
:coverImgStyle="{
|
|
60
61
|
width: layoutType === 'vertical' ? '100%' : transformValueUnit(imageWidth),
|
|
@@ -87,13 +88,13 @@ watch(
|
|
|
87
88
|
/>
|
|
88
89
|
<lcb-product-item
|
|
89
90
|
v-else
|
|
90
|
-
v-bind="{ ...item, ...$props }"
|
|
91
|
+
v-bind="{ ...item, ...$props, ...attrs }"
|
|
91
92
|
layoutType="vertical"
|
|
92
93
|
:coverImgStyle="{
|
|
93
94
|
width: '100%',
|
|
94
95
|
height: transformValueUnit(imageHeight),
|
|
95
96
|
borderRadius: imageRadius ? transformValueUnit(imageRadius) : undefined,
|
|
96
|
-
...(
|
|
97
|
+
...(attrs?.coverImgStyle ?? {}),
|
|
97
98
|
}"
|
|
98
99
|
></lcb-product-item>
|
|
99
100
|
</slot>
|
|
@@ -123,7 +124,7 @@ watch(
|
|
|
123
124
|
/>
|
|
124
125
|
<lcb-product-item
|
|
125
126
|
v-else
|
|
126
|
-
v-bind="{ ...item, ...$props }"
|
|
127
|
+
v-bind="{ ...item, ...$props, ...attrs }"
|
|
127
128
|
layoutType="vertical"
|
|
128
129
|
tag-overflow-wrap
|
|
129
130
|
>
|
|
@@ -155,7 +156,7 @@ watch(
|
|
|
155
156
|
/>
|
|
156
157
|
<lcb-product-item
|
|
157
158
|
v-else
|
|
158
|
-
v-bind="{ ...item, ...$props }"
|
|
159
|
+
v-bind="{ ...item, ...$props, ...attrs }"
|
|
159
160
|
layoutType="vertical"
|
|
160
161
|
tag-overflow-wrap
|
|
161
162
|
>
|
|
@@ -200,7 +201,7 @@ watch(
|
|
|
200
201
|
height: layoutType === 'vertical' ? transformValueUnit(imageHeight) : undefined,
|
|
201
202
|
minHeight: layoutType !== 'vertical' ? transformValueUnit(imageHeight) : undefined,
|
|
202
203
|
borderRadius: imageRadius ? transformValueUnit(imageRadius) : undefined,
|
|
203
|
-
...(
|
|
204
|
+
...(attrs?.coverImgStyle ?? {}),
|
|
204
205
|
}"
|
|
205
206
|
:titleLineClamp="titleLineClamp"
|
|
206
207
|
></lcb-product-item>
|