@tplc/business 0.4.51 → 0.4.52
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 +7 -0
- package/components/lcb-area/lcb-area.vue +2 -0
- package/components/lcb-area/types.ts +1 -0
- package/components/lcb-list/components/FilterList/index.vue +2 -2
- package/components/lcb-tabs/components/Tabs/index.vue +14 -16
- package/components/lcb-tabs/components/Tags/index.vue +20 -22
- package/components/lcb-tabs/lcb-tabs.vue +4 -2
- package/package.json +1 -1
- package/types/components/lcb-area/lcb-area.vue.d.ts +3 -0
- package/types/components/lcb-area/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.51...v0.4.52) (2025-04-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 兼容数据 ([acaf31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaf31bd203f7725a139bc2e2e312debb00ce7dd))
|
|
11
|
+
|
|
5
12
|
### [0.4.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.50...v0.4.51) (2025-04-02)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
? `span ${areaItems?.[index]?.colSpan} / span ${areaItems?.[index]?.colSpan}`
|
|
19
19
|
: undefined,
|
|
20
20
|
flex: display === 'flex' ? '1 1 0' : undefined,
|
|
21
|
+
overflowX,
|
|
21
22
|
}"
|
|
22
23
|
>
|
|
23
24
|
<slot :item="item" />
|
|
@@ -41,6 +42,7 @@ defineOptions({
|
|
|
41
42
|
const props = withDefaults(defineProps<LcbAreaProps>(), {
|
|
42
43
|
displayFlex: 'row',
|
|
43
44
|
display: 'flex',
|
|
45
|
+
overflowX: 'initial',
|
|
44
46
|
})
|
|
45
47
|
|
|
46
48
|
const innerStyle = computed(() => {
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</lcb-block>
|
|
17
|
-
</view>
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
|
+
<wd-tabs
|
|
4
|
+
custom-class="!bg-transparent"
|
|
5
|
+
@change="handleChange"
|
|
6
|
+
:lineWidth="lineWidth"
|
|
7
|
+
:lineHeight="lineHeight"
|
|
8
|
+
:slidable="slidable"
|
|
9
|
+
:slidableNum="slidableNum"
|
|
10
|
+
:itemFontSize="itemFontSize"
|
|
11
|
+
ref="tabs"
|
|
12
|
+
>
|
|
13
|
+
<wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
|
|
14
|
+
</wd-tabs>
|
|
15
|
+
</lcb-block>
|
|
18
16
|
</template>
|
|
19
17
|
|
|
20
18
|
<script setup lang="ts">
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
|
+
<view
|
|
4
|
+
:class="{
|
|
5
|
+
'flex flex-wrap': tagsMode === 'tiled',
|
|
6
|
+
'flex whitespace-nowrap overflow-x-auto': tagsMode === 'scroll',
|
|
7
|
+
}"
|
|
8
|
+
:style="{
|
|
9
|
+
gap: transformValueUnit(gap),
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
4
12
|
<view
|
|
13
|
+
v-for="(item, index) in items"
|
|
14
|
+
:key="index"
|
|
15
|
+
class="lcb-tag"
|
|
5
16
|
:class="{
|
|
6
|
-
'
|
|
7
|
-
'
|
|
17
|
+
'lcb-tag-active': current === index,
|
|
18
|
+
'inline-block': tagsMode === 'scroll',
|
|
8
19
|
}"
|
|
9
20
|
:style="{
|
|
10
|
-
|
|
21
|
+
fontSize: transformValueUnit(itemFontSize),
|
|
11
22
|
}"
|
|
23
|
+
@click="handleTagClick(item.name, index)"
|
|
12
24
|
>
|
|
13
|
-
|
|
14
|
-
v-for="(item, index) in items"
|
|
15
|
-
:key="index"
|
|
16
|
-
class="lcb-tag"
|
|
17
|
-
:class="{
|
|
18
|
-
'lcb-tag-active': current === index,
|
|
19
|
-
'inline-block': tagsMode === 'scroll',
|
|
20
|
-
}"
|
|
21
|
-
:style="{
|
|
22
|
-
fontSize: transformValueUnit(itemFontSize),
|
|
23
|
-
}"
|
|
24
|
-
@click="handleTagClick(item.name, index)"
|
|
25
|
-
>
|
|
26
|
-
{{ item.title }}
|
|
27
|
-
</view>
|
|
25
|
+
{{ item.title }}
|
|
28
26
|
</view>
|
|
29
|
-
</
|
|
30
|
-
</
|
|
27
|
+
</view>
|
|
28
|
+
</lcb-block>
|
|
31
29
|
</template>
|
|
32
30
|
|
|
33
31
|
<script setup lang="ts">
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wd-sticky v-if="sticky">
|
|
3
|
-
<
|
|
4
|
-
|
|
3
|
+
<view class="w-100vw">
|
|
4
|
+
<Tabs v-bind="$props" v-if="mode === 'tabs'" />
|
|
5
|
+
<Tags v-bind="$props" v-else />
|
|
6
|
+
</view>
|
|
5
7
|
</wd-sticky>
|
|
6
8
|
<Tabs v-else-if="mode === 'tabs'" v-bind="$props" />
|
|
7
9
|
<Tags v-else v-bind="$props" />
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
8
8
|
{
|
|
9
9
|
displayFlex: string
|
|
10
10
|
display: string
|
|
11
|
+
overflowX: string
|
|
11
12
|
}
|
|
12
13
|
>,
|
|
13
14
|
{},
|
|
@@ -26,6 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
26
27
|
{
|
|
27
28
|
displayFlex: string
|
|
28
29
|
display: string
|
|
30
|
+
overflowX: string
|
|
29
31
|
}
|
|
30
32
|
>
|
|
31
33
|
>
|
|
@@ -33,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
33
35
|
{
|
|
34
36
|
display: 'flex' | 'grid'
|
|
35
37
|
displayFlex: 'row' | 'column'
|
|
38
|
+
overflowX: 'hidden' | 'initial' | 'auto'
|
|
36
39
|
},
|
|
37
40
|
{}
|
|
38
41
|
>
|