@tplc/business 0.3.56 → 0.3.58
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,28 @@
|
|
|
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.3.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.55...v0.3.58) (2025-02-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.3.56 ([b52b4c9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b52b4c9080dbc0e1158c9a12e6ed03f96200723a))
|
|
11
|
+
* **release:** 0.3.57 ([cf2efc1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cf2efc1f4be407966ed83e8ce22e0ec673861d22))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* getFinalUrl 调整不插入其他数据 ([a96a25f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a96a25ffe3f82475c20b2166aef45cb5ae53308a))
|
|
17
|
+
* 支持时间同步 ([9a24a96](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a24a96d0a87e4b49362ff6a3602a15ed27b86c5))
|
|
18
|
+
* 新增241 ([3550874](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/355087493cc8275a2602bb51bafed07f1d3c9658))
|
|
19
|
+
|
|
20
|
+
### [0.3.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.56...v0.3.57) (2025-02-21)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### ✨ Features | 新功能
|
|
24
|
+
|
|
25
|
+
* 支持时间同步 ([9a24a96](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a24a96d0a87e4b49362ff6a3602a15ed27b86c5))
|
|
26
|
+
|
|
5
27
|
### [0.3.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.54...v0.3.56) (2025-02-21)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -44,6 +44,7 @@ defineSlots<{
|
|
|
44
44
|
titleIcon(props: { value: any }): any
|
|
45
45
|
userInteractionInfo(props: { value: any }): any
|
|
46
46
|
orderTips(props: { value: any }): any
|
|
47
|
+
priceTips(props: { value: any }): any
|
|
47
48
|
}>()
|
|
48
49
|
|
|
49
50
|
const visible = computed(() => {
|
|
@@ -67,17 +68,19 @@ const style = computed(() => {
|
|
|
67
68
|
}
|
|
68
69
|
// return itemProps?.[`${props?.prop}Style`] ?? ''
|
|
69
70
|
})
|
|
71
|
+
const imageIndex = computed(() => {
|
|
72
|
+
return (
|
|
73
|
+
{
|
|
74
|
+
vertical: 0,
|
|
75
|
+
horizontal: 1,
|
|
76
|
+
square: 2,
|
|
77
|
+
}[itemProps?.imageType] ?? 0
|
|
78
|
+
)
|
|
79
|
+
})
|
|
70
80
|
const value = computed(() => {
|
|
71
81
|
if (props?.prop === 'coverImg') {
|
|
72
82
|
const imgArr = formatJson(itemProps?.[props?.prop], [])
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
vertical: 0,
|
|
76
|
-
horizontal: 1,
|
|
77
|
-
square: 2,
|
|
78
|
-
}[itemProps?.imageType] ?? 0
|
|
79
|
-
|
|
80
|
-
return imgArr?.[imageIndex]
|
|
83
|
+
return imgArr?.[imageIndex.value]
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
if (props?.prop === 'tags') {
|
|
@@ -106,7 +109,7 @@ const value = computed(() => {
|
|
|
106
109
|
v-if="itemProps.imgBottomIcon && itemProps.imgBottomIconVisible"
|
|
107
110
|
>
|
|
108
111
|
<wd-img
|
|
109
|
-
:src="itemProps.imgBottomIcon"
|
|
112
|
+
:src="formatJson(itemProps.imgBottomIcon, [])?.[imageIndex]"
|
|
110
113
|
custom-class="block"
|
|
111
114
|
mode="widthFix"
|
|
112
115
|
width="100%"
|
|
@@ -119,7 +122,7 @@ const value = computed(() => {
|
|
|
119
122
|
v-if="itemProps.imgCornerIcon && itemProps.imgCornerIconVisible"
|
|
120
123
|
>
|
|
121
124
|
<wd-img
|
|
122
|
-
:src="itemProps.imgCornerIcon"
|
|
125
|
+
:src="formatJson(itemProps.imgCornerIcon, [])?.[imageIndex]"
|
|
123
126
|
width="auto"
|
|
124
127
|
height="100%"
|
|
125
128
|
custom-class="block"
|
|
@@ -146,7 +149,7 @@ const value = computed(() => {
|
|
|
146
149
|
</slot>
|
|
147
150
|
|
|
148
151
|
<slot :value="value" v-if="prop === 'level' && value && Number(value)" name="level">
|
|
149
|
-
<view :class="className" :style="style" class="inline
|
|
152
|
+
<view :class="className" :style="style" class="inline relative top-[-3px]">
|
|
150
153
|
<wd-rate
|
|
151
154
|
:model-value="Number(value)"
|
|
152
155
|
:num="Number(value)"
|
|
@@ -157,12 +160,8 @@ const value = computed(() => {
|
|
|
157
160
|
</view>
|
|
158
161
|
</slot>
|
|
159
162
|
<slot :value="value" v-if="prop === 'titleIcon'" name="titleIcon">
|
|
160
|
-
<view :class="className" :style="style" class="inline
|
|
161
|
-
<wd-
|
|
162
|
-
name="thumb-up"
|
|
163
|
-
size="12px"
|
|
164
|
-
custom-class="bg-[#EB723F] text-white p-[1px] rounded"
|
|
165
|
-
></wd-icon>
|
|
163
|
+
<view :class="className" :style="style" class="inline-flex ml-1">
|
|
164
|
+
<wd-img :src="itemProps.titleIcon" width="12px" height="12px" />
|
|
166
165
|
</view>
|
|
167
166
|
</slot>
|
|
168
167
|
|
|
@@ -136,7 +136,7 @@ const itemStyle = computed(() => {
|
|
|
136
136
|
<view class="flex flex-col flex-1 text-26rpx overflow-hidden relative">
|
|
137
137
|
<slot name="contentSection" />
|
|
138
138
|
<view class="flex flex-col gap-[5px] overflow-hidden">
|
|
139
|
-
<view class="text-ellipsis line-clamp-2">
|
|
139
|
+
<view class="text-ellipsis line-clamp-2 flex flex-wrap">
|
|
140
140
|
<ItemValue prop="productName">
|
|
141
141
|
<!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
|
|
142
142
|
</ItemValue>
|
|
@@ -273,7 +273,7 @@ const itemStyle = computed(() => {
|
|
|
273
273
|
<view class="p-2 flex flex-col flex-1 text-26rpx overflow-hidden relative">
|
|
274
274
|
<slot name="contentSection" />
|
|
275
275
|
<view class="flex flex-col gap-[5px] overflow-hidden">
|
|
276
|
-
<view class="text-ellipsis line-clamp-2">
|
|
276
|
+
<view class="text-ellipsis line-clamp-2 flex flex-wrap">
|
|
277
277
|
<ItemValue prop="productName">
|
|
278
278
|
<!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
|
|
279
279
|
</ItemValue>
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ declare function __VLS_template(): Readonly<{
|
|
|
21
21
|
titleIcon(props: { value: any }): any
|
|
22
22
|
userInteractionInfo(props: { value: any }): any
|
|
23
23
|
orderTips(props: { value: any }): any
|
|
24
|
+
priceTips(props: { value: any }): any
|
|
24
25
|
}> & {
|
|
25
26
|
coverImg(props: { value: any }): any
|
|
26
27
|
headImg(props: { value: any }): any
|
|
@@ -44,6 +45,7 @@ declare function __VLS_template(): Readonly<{
|
|
|
44
45
|
titleIcon(props: { value: any }): any
|
|
45
46
|
userInteractionInfo(props: { value: any }): any
|
|
46
47
|
orderTips(props: { value: any }): any
|
|
48
|
+
priceTips(props: { value: any }): any
|
|
47
49
|
}
|
|
48
50
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
49
51
|
__VLS_WithDefaults<
|
package/utils/utils.ts
CHANGED
|
@@ -35,11 +35,11 @@ export const getCurrentPage = () => {
|
|
|
35
35
|
}
|
|
36
36
|
/** 合并url参数 url = /pages/data/index?id=1&name=2 urlParams = id=1&name=2&type=1 */
|
|
37
37
|
export const getFinalUrl = (url: string, urlParams?: string) => {
|
|
38
|
-
|
|
39
|
-
const
|
|
38
|
+
if (!urlParams) return url
|
|
39
|
+
const params = parse(urlParams)
|
|
40
|
+
const query = parse(url.split('?')[1])
|
|
40
41
|
const path = url.split('?')[0]
|
|
41
42
|
return `${path}?${stringify({
|
|
42
|
-
...getCurrentPage().options,
|
|
43
43
|
...query,
|
|
44
44
|
...params,
|
|
45
45
|
})}`
|