@tplc/business 0.7.58 → 0.7.60
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 +31 -0
- package/components/lcb-image/{Image → LcbWrapperImage}/index.vue +1 -1
- package/components/lcb-image/lcb-image.vue +3 -3
- package/components/lcb-nav/{Title → LcbNavTitle}/index.vue +1 -1
- package/components/lcb-nav/lcb-nav.vue +3 -3
- package/components/lcb-tabs/components/Tabs/index.vue +7 -2
- package/package.json +1 -1
- /package/types/components/lcb-image/{Image → LcbWrapperImage}/index.vue.d.ts +0 -0
- /package/types/components/lcb-nav/{Title → LcbNavTitle}/index.vue.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
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.7.60](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.59...v0.7.60) (2026-01-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ♻️ Code Refactoring | 代码重构
|
|
9
|
+
|
|
10
|
+
* **lcb-image:** replace Image component with LcbWrapperImage and remove unused Image file ([d489b3b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d489b3b226d158cc17abff03b5152ca9398c97ce))
|
|
11
|
+
* **lcb-nav:** replace Title component with LcbNavTitle and remove unused Title file ([d51695b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d51695bfe336809741d4743356e35d12d2707f83))
|
|
12
|
+
|
|
13
|
+
### [0.7.59](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.56...v0.7.59) (2026-01-09)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
17
|
+
|
|
18
|
+
* **release:** 0.7.57 ([335581c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/335581c24bb3e9434fb02894a9d68312ca4ac8c0))
|
|
19
|
+
* **release:** 0.7.58 ([e293b2c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e293b2c5adbbc2c73d673518415baaa03ddcf0a4))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ✨ Features | 新功能
|
|
23
|
+
|
|
24
|
+
* **lcb-product-item, lcb-tabs, wd-img, wd-tab:** enhance component functionality with new computed properties and style adjustments ([45f0e74](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/45f0e749af0ae4425588b6e5ec44eac8c4a61b6a))
|
|
25
|
+
* **lcb-tabs, lcb-title:** replace tag color and radius props with lineWidth, lineHeight, and slidable props; add moreFontWeight prop for title customization ([be1834a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/be1834a33cc23e862a4574dcabc962b3d93efec3))
|
|
26
|
+
* **lcb-title:** add moreFontWeight prop to customize font weight ([882ca54](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/882ca542b69a87852b136839997ab6b35c687744))
|
|
27
|
+
* **lcb-title:** introduce moreFontWeight prop for enhanced font weight customization ([c67c765](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c67c76567c4bea97920e5e440914cce5022db0f7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
31
|
+
|
|
32
|
+
* **lcb-tabs:** initialize currentTab on component mount to ensure correct default tab selection ([3bd2024](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3bd2024c1a654897a621ea8f559ac2c12ffb86b0))
|
|
33
|
+
* **lcb-tabs:** update currentTab initialization to use item name based on defaultIndex ([aad2d22](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/aad2d22403c8c3ee8987fcdeb153f4637c9594a0))
|
|
34
|
+
* **lcb-wrapper-list:** update dynamicScope handling and improve page limit configuration ([871bd0d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/871bd0dae7c499bd184b7fcfc1b09ecae4553d22))
|
|
35
|
+
|
|
5
36
|
### [0.7.58](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.57...v0.7.58) (2026-01-09)
|
|
6
37
|
|
|
7
38
|
|
|
@@ -69,7 +69,7 @@ import { transformValueUnit } from '../../../utils/transform'
|
|
|
69
69
|
import { calcAutoHeight, getOssImageSize } from '../../../utils/utils'
|
|
70
70
|
import { getCurrentInstance, onMounted, ref } from 'vue'
|
|
71
71
|
defineOptions({
|
|
72
|
-
name: '
|
|
72
|
+
name: 'LcbWrapperImage',
|
|
73
73
|
options: {
|
|
74
74
|
addGlobalClass: true,
|
|
75
75
|
virtualHost: true,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
marginTop: transformValueUnit(-(floatUp || 0)),
|
|
21
21
|
}"
|
|
22
22
|
>
|
|
23
|
-
<
|
|
23
|
+
<LcbWrapperImage v-bind="$props" />
|
|
24
24
|
</view>
|
|
25
25
|
|
|
26
26
|
<scroll-view
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
}"
|
|
35
35
|
>
|
|
36
36
|
<view class="flex shrink-0">
|
|
37
|
-
<
|
|
37
|
+
<LcbWrapperImage v-bind="$props" />
|
|
38
38
|
</view>
|
|
39
39
|
</scroll-view>
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
43
|
import { transformValueUnit } from '../../utils/transform'
|
|
44
|
-
import
|
|
44
|
+
import LcbWrapperImage from './LcbWrapperImage/index.vue'
|
|
45
45
|
import { LcbImageProps } from './types'
|
|
46
46
|
defineOptions({
|
|
47
47
|
name: 'LcbImage',
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
left
|
|
96
96
|
v-if="styleGroup === 2 && titleLocation === 'left'"
|
|
97
97
|
/>
|
|
98
|
-
<
|
|
98
|
+
<LcbNavTitle v-bind="titleProps" v-else-if="topStyle !== 2" :opacity="titleOpacity" />
|
|
99
99
|
</view>
|
|
100
100
|
</view>
|
|
101
101
|
<!-- 中间布局 -->
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
:back="canBack"
|
|
106
106
|
:link="searchLink"
|
|
107
107
|
/>
|
|
108
|
-
<
|
|
108
|
+
<LcbNavTitle
|
|
109
109
|
v-bind="titleProps"
|
|
110
110
|
v-else-if="styleGroup === 2 || titleLocation === 'center'"
|
|
111
111
|
:opacity="titleOpacity"
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
import { addUnit } from '@tplc/wot/components/common/util'
|
|
144
144
|
import { computed, inject, ref, Ref } from 'vue'
|
|
145
145
|
import { ICapsule, NavProps } from './types'
|
|
146
|
-
import
|
|
146
|
+
import LcbNavTitle from './LcbNavTitle/index.vue'
|
|
147
147
|
import Search from './Search/index.vue'
|
|
148
148
|
import { Locale } from '@tplc/wot'
|
|
149
149
|
import usePageScroll from '../../hooks/usePageScroll'
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup lang="ts">
|
|
26
|
-
import { ref, watch } from 'vue'
|
|
26
|
+
import { onMounted, ref, watch } from 'vue'
|
|
27
27
|
import useSyncForm from '../../../../hooks/useSyncForm'
|
|
28
28
|
import { LcbTabsProps } from '../../types'
|
|
29
29
|
defineOptions({
|
|
@@ -43,7 +43,7 @@ const props = withDefaults(defineProps<LcbTabsProps>(), {
|
|
|
43
43
|
slidableNum: 6,
|
|
44
44
|
defaultIndex: 0,
|
|
45
45
|
})
|
|
46
|
-
const currentTab = ref(
|
|
46
|
+
const currentTab = ref()
|
|
47
47
|
const { syncForm } = useSyncForm({
|
|
48
48
|
dynamicScope: props.dynamicScope,
|
|
49
49
|
visibleScope: props.visibleScope,
|
|
@@ -57,6 +57,11 @@ watch(
|
|
|
57
57
|
tabs.value.updateLineStyle(true)
|
|
58
58
|
},
|
|
59
59
|
)
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
currentTab.value = props.items?.[props.defaultIndex]?.name
|
|
63
|
+
}, 100)
|
|
64
|
+
})
|
|
60
65
|
</script>
|
|
61
66
|
|
|
62
67
|
<style lang="scss" scoped></style>
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|