@tplc/business 0.4.192 → 0.4.194
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 +16 -0
- package/components/lcb-banner/lcb-banner.vue +3 -0
- package/components/lcb-product-item/lcb-product-item.vue +7 -1
- package/components/lcb-product-item/types.ts +3 -0
- package/components/lcb-tabs/components/Tabs/index.vue +2 -0
- package/components/lcb-tabs/components/Tags/index.vue +8 -6
- package/components/lcb-tabs/types.ts +4 -0
- package/package.json +1 -1
- package/types/components/lcb-product-item/types.d.ts +1 -0
- package/types/components/lcb-tabs/components/Tags/index.vue.d.ts +26 -3
- package/types/components/lcb-tabs/types.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.194](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.193...v0.4.194) (2025-09-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改数据 ([dba6096](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba60960ab21422e8fc48362c520ea30a7546ada))
|
|
11
|
+
* 兼容showTabbar ([e33c2d1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e33c2d10c602dd5b188dfeff0a60a70f21e8d9bb))
|
|
12
|
+
* 补充部分文档 ([813e0f3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/813e0f36a61be48326e446c6ebbcab28102b9a33))
|
|
13
|
+
|
|
14
|
+
### [0.4.193](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.192...v0.4.193) (2025-08-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ✨ Features | 新功能
|
|
18
|
+
|
|
19
|
+
* 支持supportClickScroll ([1c0113f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1c0113f9574401a24a1482f92e242d2061a89362))
|
|
20
|
+
|
|
5
21
|
### [0.4.192](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.190...v0.4.192) (2025-08-18)
|
|
6
22
|
|
|
7
23
|
|
|
@@ -117,6 +117,9 @@ const showTabbar = inject(SHOW_TABBAR) as Ref<boolean>
|
|
|
117
117
|
const touchStartY = ref(0)
|
|
118
118
|
const touchStartX = ref(0)
|
|
119
119
|
const isTouching = ref(false)
|
|
120
|
+
if (props.supportClickScroll) {
|
|
121
|
+
showTabbar.value = false
|
|
122
|
+
}
|
|
120
123
|
|
|
121
124
|
const supplementProps = computed(() => {
|
|
122
125
|
if (props.styleGroup === 2) {
|
|
@@ -383,7 +383,13 @@ const itemStyle = computed(() => {
|
|
|
383
383
|
</view>
|
|
384
384
|
<view class="flex-1"></view>
|
|
385
385
|
<view class="flex flex-col gap-1 items-end leading-none">
|
|
386
|
-
<view
|
|
386
|
+
<view
|
|
387
|
+
class="flex gap-1 justify-end"
|
|
388
|
+
:style="{
|
|
389
|
+
flexFlow: !priceAlignLeft ? 'row' : 'row-reverse',
|
|
390
|
+
width: priceAlignLeft ? '100%' : 'auto',
|
|
391
|
+
}"
|
|
392
|
+
>
|
|
387
393
|
<view
|
|
388
394
|
class="flex gap-[2rpx] items-end line-through"
|
|
389
395
|
v-if="scribePriceVisible && isNumber(scribePrice)"
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
}"
|
|
20
20
|
:style="{
|
|
21
21
|
fontSize: transformValueUnit(itemFontSize),
|
|
22
|
+
backgroundColor: current === index ? tagActiveColor : tagInactiveColor,
|
|
23
|
+
color: current === index ? tagTitleActiveColor : tagTitleInactiveColor,
|
|
22
24
|
}"
|
|
23
25
|
@click="handleTagClick(item.name, index)"
|
|
24
26
|
>
|
|
@@ -33,7 +35,12 @@ import { ref } from 'vue'
|
|
|
33
35
|
import useSyncForm from '../../../../hooks/useSyncForm'
|
|
34
36
|
import { transformValueUnit } from '../../../../utils/transform'
|
|
35
37
|
import { LcbTabsProps } from '../../types'
|
|
36
|
-
const props = withDefaults(defineProps<LcbTabsProps>(), {
|
|
38
|
+
const props = withDefaults(defineProps<LcbTabsProps>(), {
|
|
39
|
+
tagActiveColor: 'var(--wot-color-theme)',
|
|
40
|
+
tagInactiveColor: '#eeeeee',
|
|
41
|
+
tagTitleActiveColor: '#ffffff',
|
|
42
|
+
tagTitleInactiveColor: '#000000',
|
|
43
|
+
})
|
|
37
44
|
const { syncForm } = useSyncForm(props.dynamicScope)
|
|
38
45
|
const current = ref()
|
|
39
46
|
defineOptions({
|
|
@@ -60,10 +67,5 @@ handleTagClick(props.items[0]?.name, 0)
|
|
|
60
67
|
.lcb-tag {
|
|
61
68
|
padding: 8rpx 32rpx;
|
|
62
69
|
border-radius: 10000rpx;
|
|
63
|
-
background-color: #eeeeee;
|
|
64
|
-
}
|
|
65
|
-
.lcb-tag-active {
|
|
66
|
-
background-color: $-color-theme;
|
|
67
|
-
color: #ffffff;
|
|
68
70
|
}
|
|
69
71
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { LcbTabsProps } from '../../types'
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
__VLS_WithDefaults<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbTabsProps>,
|
|
5
|
+
{
|
|
6
|
+
tagActiveColor: string
|
|
7
|
+
tagInactiveColor: string
|
|
8
|
+
tagTitleActiveColor: string
|
|
9
|
+
tagTitleInactiveColor: string
|
|
10
|
+
}
|
|
11
|
+
>,
|
|
4
12
|
{},
|
|
5
13
|
unknown,
|
|
6
14
|
{},
|
|
@@ -11,9 +19,24 @@ declare const _default: import('vue').DefineComponent<
|
|
|
11
19
|
string,
|
|
12
20
|
import('vue').PublicProps,
|
|
13
21
|
Readonly<
|
|
14
|
-
import('vue').ExtractPropTypes<
|
|
22
|
+
import('vue').ExtractPropTypes<
|
|
23
|
+
__VLS_WithDefaults<
|
|
24
|
+
__VLS_TypePropsToOption<LcbTabsProps>,
|
|
25
|
+
{
|
|
26
|
+
tagActiveColor: string
|
|
27
|
+
tagInactiveColor: string
|
|
28
|
+
tagTitleActiveColor: string
|
|
29
|
+
tagTitleInactiveColor: string
|
|
30
|
+
}
|
|
31
|
+
>
|
|
32
|
+
>
|
|
15
33
|
>,
|
|
16
|
-
{
|
|
34
|
+
{
|
|
35
|
+
tagActiveColor: string
|
|
36
|
+
tagInactiveColor: string
|
|
37
|
+
tagTitleActiveColor: string
|
|
38
|
+
tagTitleInactiveColor: string
|
|
39
|
+
},
|
|
17
40
|
{}
|
|
18
41
|
>
|
|
19
42
|
export default _default
|