@tplc/business 0.4.37 → 0.4.39
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 +46 -0
- package/components/lcb-dynamic-data/lcb-dynamic-data.vue +4 -3
- package/components/lcb-dynamic-data/types.ts +2 -0
- package/components/lcb-form/lcb-form.vue +2 -1
- package/components/lcb-form/types.ts +1 -0
- package/components/lcb-product-item/components/ItemValue.vue +12 -12
- package/components/lcb-search/lcb-search.vue +18 -6
- package/package.json +1 -1
- package/types/components/lcb-dynamic-data/types.d.ts +2 -0
- package/types/components/lcb-form/lcb-form.vue.d.ts +3 -0
- package/types/components/lcb-form/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,52 @@
|
|
|
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.39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.31...v0.4.39) (2025-03-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
9
|
+
|
|
10
|
+
* fab 兼容ios ([354fd16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/354fd16004779f1ecd192f524c680b63143117e5))
|
|
11
|
+
* ui ([9d087bb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9d087bb527f4f68b8146b7e6914c4633b3ff08e2))
|
|
12
|
+
* 兼容瀑布流 ([0e1d50e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e1d50edf49bc853f6da3d2f1c3ea33871b2475a))
|
|
13
|
+
* 胖头鱼 ([4a1b827](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4a1b8278d6a1b67b477cfd9c7a3576e345bad395))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
17
|
+
|
|
18
|
+
* **release:** 0.1.76 ([063d619](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/063d61944f884a94bf7ada52a996e7c691c21637))
|
|
19
|
+
* **release:** 0.4.32 ([bae1857](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bae1857a3973e58d043133e7e15a3e66608f9963))
|
|
20
|
+
* **release:** 0.4.33 ([c9c4f09](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c9c4f09ec2e50fa735ef28ce7a24aa297af90b78))
|
|
21
|
+
* **release:** 0.4.34 ([b384165](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b384165429e37ee12e546c026775624a405dd916))
|
|
22
|
+
* **release:** 0.4.35 ([ec38bf8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ec38bf8625d016c65ab575e3b40f845c741f7076))
|
|
23
|
+
* **release:** 0.4.36 ([2ad2b36](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2ad2b360cb91730e68bf8a984c21014b2cb19519))
|
|
24
|
+
* **release:** 0.4.37 ([8f6f89a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8f6f89a2c5438497fc042f6de4be2534053f94d0))
|
|
25
|
+
* **release:** 0.4.38 ([0101725](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0101725cadc93859fe08d53dd221857edddc03e1))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### ✨ Features | 新功能
|
|
29
|
+
|
|
30
|
+
* action 支持view ([1e4eb10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1e4eb108272db236548b3450aee3648f37beec4c))
|
|
31
|
+
* form 数据转换 ([779c3d6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/779c3d6f8be76f67a82645ffacf648d7669cca3d))
|
|
32
|
+
* h5 不需要这样 ([6498ea3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6498ea38727aff5d9e1f2db95f83a5ad133f9e34))
|
|
33
|
+
* lcb-search zindex ([07277f4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/07277f4b15c3f7f0ba62e312b907a69fd9362134))
|
|
34
|
+
* nav back ([134b9e4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/134b9e47a3840313080b78a8eed6b67c2d748fce))
|
|
35
|
+
* 不能返回 ([946f96c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/946f96c28d154888dcc3af3865ffe7ccfecb1844))
|
|
36
|
+
* 修改属性 ([e8ab53e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e8ab53eec1f85e74fe901f3971a557713bee5486))
|
|
37
|
+
* 动态数据跳转 ([0c0cbc9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0c0cbc94c0cee42bd4d4f7940c991a5e1cad6c0a))
|
|
38
|
+
* 支持修改确认文案 ([7412dd3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7412dd3d7dd9ef5cf90867005fcc01d93aa9b8ee))
|
|
39
|
+
* 支持颜色切换 ([b6cc634](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b6cc63429d2d307afa5efbd6fae34a5cf482c79e))
|
|
40
|
+
* 新增标签 ([7fc17bb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fc17bb599fb1fd57c522b0c34ef6ae5d33ba6c6))
|
|
41
|
+
* 样式调整 ([be16331](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/be163315ece2f853a4996ec784dca2ac21fc27a2))
|
|
42
|
+
* 调整数据结构 ([7b66284](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b6628421608c136498860f267c461eda7b078fa))
|
|
43
|
+
|
|
44
|
+
### [0.4.38](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.37...v0.4.38) (2025-03-30)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### ✨ Features | 新功能
|
|
48
|
+
|
|
49
|
+
* 新增标签 ([7fc17bb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fc17bb599fb1fd57c522b0c34ef6ae5d33ba6c6))
|
|
50
|
+
|
|
5
51
|
### [0.4.37](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.36...v0.4.37) (2025-03-30)
|
|
6
52
|
|
|
7
53
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lcb-block v-bind="$props">
|
|
3
3
|
<view class="flex justify-between items-center text-28rpx">
|
|
4
|
-
<view
|
|
4
|
+
<lcb-action-view
|
|
5
5
|
v-for="item in items"
|
|
6
6
|
:key="item.title"
|
|
7
|
-
class="flex flex-col items-center justify-center"
|
|
7
|
+
custom-class="flex flex-col items-center justify-center"
|
|
8
|
+
v-bind="item.link"
|
|
8
9
|
>
|
|
9
10
|
<view class="flex mb-12rpx">
|
|
10
11
|
<view class="text-24rpx mr-4rpx mt-12rpx">{{ item.unit }}</view>
|
|
11
12
|
<view class="font-500 text-36rpx">{{ pageInfo[item.key] || '0.00' }}</view>
|
|
12
13
|
</view>
|
|
13
14
|
<view>{{ item.title }}</view>
|
|
14
|
-
</view>
|
|
15
|
+
</lcb-action-view>
|
|
15
16
|
</view>
|
|
16
17
|
</lcb-block>
|
|
17
18
|
</template>
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
<view class="text-center text-3 mt-6" v-if="agreementType && fields">
|
|
138
138
|
<wd-checkbox v-model="form.agreement">
|
|
139
139
|
<view class="flex">
|
|
140
|
-
<text>{{
|
|
140
|
+
<text>{{ affirmText }}</text>
|
|
141
141
|
<view @click.stop>
|
|
142
142
|
<lcb-agreement-view :type="agreementType">
|
|
143
143
|
<template v-slot="{ text }">
|
|
@@ -185,6 +185,7 @@ const imgList = ref({})
|
|
|
185
185
|
const formRef = ref()
|
|
186
186
|
const props = withDefaults(defineProps<LcbFormProps>(), {
|
|
187
187
|
submitText: '提交',
|
|
188
|
+
affirmText: '同意',
|
|
188
189
|
})
|
|
189
190
|
const fields = ref<LcbFormField[]>()
|
|
190
191
|
watch(
|
|
@@ -191,7 +191,7 @@ const value = computed(() => {
|
|
|
191
191
|
<view
|
|
192
192
|
:class="className"
|
|
193
193
|
:style="style"
|
|
194
|
-
class="text
|
|
194
|
+
class="text-#969696 text-26rpx flex gap-3rpx items-center"
|
|
195
195
|
>
|
|
196
196
|
<!-- <wd-icon name="location" size="32rpx"></wd-icon> -->
|
|
197
197
|
<view class="text-ellipsis line-clamp-1">{{ value }}</view>
|
|
@@ -215,7 +215,7 @@ const value = computed(() => {
|
|
|
215
215
|
<view
|
|
216
216
|
:class="className"
|
|
217
217
|
:style="style"
|
|
218
|
-
class="text
|
|
218
|
+
class="text-#969696 text-22rpx flex gap-3rpx items-center"
|
|
219
219
|
>
|
|
220
220
|
<wd-icon name="location" size="32rpx"></wd-icon>
|
|
221
221
|
<view class="text-ellipsis line-clamp-1">
|
|
@@ -254,7 +254,7 @@ const value = computed(() => {
|
|
|
254
254
|
|
|
255
255
|
<!-- 价格单位 -->
|
|
256
256
|
<slot :value="value" v-if="prop === 'priceUnit'" name="priceUnit">
|
|
257
|
-
<view :class="className" :style="style" class="text-
|
|
257
|
+
<view :class="className" :style="style" class="text-price font-bold text-22rpx">
|
|
258
258
|
<view>{{ value }}</view>
|
|
259
259
|
</view>
|
|
260
260
|
</slot>
|
|
@@ -265,7 +265,7 @@ const value = computed(() => {
|
|
|
265
265
|
:class="className"
|
|
266
266
|
:style="style"
|
|
267
267
|
:value="value"
|
|
268
|
-
class="text-
|
|
268
|
+
class="text-price font-bold text-27rpx"
|
|
269
269
|
>
|
|
270
270
|
<view>{{ value }}</view>
|
|
271
271
|
</view>
|
|
@@ -277,7 +277,7 @@ const value = computed(() => {
|
|
|
277
277
|
:class="className"
|
|
278
278
|
:style="style"
|
|
279
279
|
:value="value"
|
|
280
|
-
class="text-
|
|
280
|
+
class="text-primary text-20rpx bg-[#FCF2E7] pl-1 py-[1px] flex gap-1rpx items-center"
|
|
281
281
|
>
|
|
282
282
|
<view class="text-ellipsis line-clamp-1">{{ value }}</view>
|
|
283
283
|
<wd-icon name="arrow-right" size="12px"></wd-icon>
|
|
@@ -286,45 +286,45 @@ const value = computed(() => {
|
|
|
286
286
|
|
|
287
287
|
<!-- 价格后缀 -->
|
|
288
288
|
<slot :value="value" v-if="prop === 'priceSuffix'" name="priceSuffix">
|
|
289
|
-
<view :class="className" :style="style" class="text-22rpx
|
|
289
|
+
<view :class="className" :style="style" class="text-22rpx">
|
|
290
290
|
<view>{{ value }}</view>
|
|
291
291
|
</view>
|
|
292
292
|
</slot>
|
|
293
293
|
|
|
294
294
|
<!-- 原始价格单位 -->
|
|
295
295
|
<slot :value="value" v-if="prop === 'scribePriceUnit'" name="scribePriceUnit">
|
|
296
|
-
<view :class="className" :style="style" class="text
|
|
296
|
+
<view :class="className" :style="style" class="text-#969696 font-bold text-19rpx">
|
|
297
297
|
<view>{{ value }}</view>
|
|
298
298
|
</view>
|
|
299
299
|
</slot>
|
|
300
300
|
|
|
301
301
|
<!-- 原始价格 -->
|
|
302
302
|
<slot :value="value" v-if="prop === 'scribePrice'" name="scribePrice">
|
|
303
|
-
<view :class="className" :style="style" class="text
|
|
303
|
+
<view :class="className" :style="style" class="text-#969696 font-bold text-20rpx">
|
|
304
304
|
<view>{{ value }}</view>
|
|
305
305
|
</view>
|
|
306
306
|
</slot>
|
|
307
307
|
|
|
308
308
|
<!-- 原始价格后缀 -->
|
|
309
309
|
<slot :value="value" v-if="prop === 'scribePriceSuffix'" name="scribePriceSuffix">
|
|
310
|
-
<view :class="className" :style="style" class="text
|
|
310
|
+
<view :class="className" :style="style" class="text-#969696 text-20rpx">
|
|
311
311
|
<view>{{ value }}</view>
|
|
312
312
|
</view>
|
|
313
313
|
</slot>
|
|
314
314
|
|
|
315
315
|
<slot :value="value" v-if="prop === 'orderTips'" name="orderTips">
|
|
316
|
-
<view :class="className" :style="style" class="text-22rpx text
|
|
316
|
+
<view :class="className" :style="style" class="text-22rpx text-#969696">
|
|
317
317
|
<view>{{ value }}</view>
|
|
318
318
|
</view>
|
|
319
319
|
</slot>
|
|
320
320
|
<slot :value="value" v-if="prop === 'orderSkuCountTips'" name="orderSkuCountTips">
|
|
321
|
-
<view :class="className" :style="style" class="text-22rpx text
|
|
321
|
+
<view :class="className" :style="style" class="text-22rpx text-#969696 flex items-center">
|
|
322
322
|
<view>{{ value }}</view>
|
|
323
323
|
</view>
|
|
324
324
|
</slot>
|
|
325
325
|
|
|
326
326
|
<slot :value="value" v-if="prop === 'distanceTips'" name="distanceTips">
|
|
327
|
-
<view :class="className" :style="style" class="text-22rpx text
|
|
327
|
+
<view :class="className" :style="style" class="text-22rpx text-#969696 flex items-center">
|
|
328
328
|
<wd-icon name="location" />
|
|
329
329
|
<view>{{ value }}</view>
|
|
330
330
|
</view>
|
|
@@ -180,14 +180,26 @@ const popupProvide = inject('wd-popup', {
|
|
|
180
180
|
})
|
|
181
181
|
getLocation()
|
|
182
182
|
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
183
|
-
const onSearch = async (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
const onSearch = async () => {
|
|
184
|
+
const options = getCurrentPage().options
|
|
185
|
+
if (options.backPageType) {
|
|
186
|
+
onSelect({
|
|
187
|
+
link: {
|
|
188
|
+
jumpUrl: `/pages/lowcode/lowcode?pageType=${options.backPageType}`,
|
|
189
|
+
},
|
|
190
|
+
} as unknown as ProductInfo)
|
|
191
|
+
} else {
|
|
192
|
+
uni.$emit(`${getPreviousPageId()}_filter_change`, {
|
|
193
|
+
keywords: form?.value?.keywords,
|
|
194
|
+
})
|
|
195
|
+
uni.navigateBack()
|
|
196
|
+
}
|
|
188
197
|
}
|
|
189
198
|
const onSelect = (keyword: ProductInfo) => {
|
|
190
|
-
|
|
199
|
+
if (keyword.productInfoId) {
|
|
200
|
+
searchHistoryRef.value?.saveHistory(keyword)
|
|
201
|
+
}
|
|
202
|
+
|
|
191
203
|
const [path, query] = keyword.link.jumpUrl.split('?')
|
|
192
204
|
const params = parse(query)
|
|
193
205
|
let queryParams = query ? params : {}
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
4
4
|
__VLS_TypePropsToOption<LcbFormProps>,
|
|
5
5
|
{
|
|
6
6
|
submitText: string
|
|
7
|
+
affirmText: string
|
|
7
8
|
}
|
|
8
9
|
>,
|
|
9
10
|
{},
|
|
@@ -21,12 +22,14 @@ declare const _default: import('vue').DefineComponent<
|
|
|
21
22
|
__VLS_TypePropsToOption<LcbFormProps>,
|
|
22
23
|
{
|
|
23
24
|
submitText: string
|
|
25
|
+
affirmText: string
|
|
24
26
|
}
|
|
25
27
|
>
|
|
26
28
|
>
|
|
27
29
|
>,
|
|
28
30
|
{
|
|
29
31
|
submitText: string
|
|
32
|
+
affirmText: string
|
|
30
33
|
},
|
|
31
34
|
{}
|
|
32
35
|
>
|