@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 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(() => {
@@ -12,4 +12,5 @@ export interface LcbAreaProps extends LcbBlockProps {
12
12
  areaItems?: {
13
13
  colSpan?: number
14
14
  }[]
15
+ overflowX?: 'hidden' | 'initial' | 'auto'
15
16
  }
@@ -7,8 +7,8 @@
7
7
  v-model="dataList"
8
8
  @query="queryList"
9
9
  :fixed="false"
10
- :use-page-scroll="false"
11
- :height="height"
10
+ :use-page-scroll="autoHeight"
11
+ :height="autoHeight ? undefined : height"
12
12
  @onRefresh="onRefresh"
13
13
  :loading-more-enabled="!refreshed"
14
14
  >
@@ -1,20 +1,18 @@
1
1
  <template>
2
- <view class="w-full">
3
- <lcb-block v-bind="$props">
4
- <wd-tabs
5
- custom-class="!bg-transparent"
6
- @change="handleChange"
7
- :lineWidth="lineWidth"
8
- :lineHeight="lineHeight"
9
- :slidable="slidable"
10
- :slidableNum="slidableNum"
11
- :itemFontSize="itemFontSize"
12
- ref="tabs"
13
- >
14
- <wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
15
- </wd-tabs>
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
- <view class="w-100vw">
3
- <lcb-block v-bind="$props">
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
- 'flex flex-wrap': tagsMode === 'tiled',
7
- 'flex whitespace-nowrap overflow-x-auto': tagsMode === 'scroll',
17
+ 'lcb-tag-active': current === index,
18
+ 'inline-block': tagsMode === 'scroll',
8
19
  }"
9
20
  :style="{
10
- gap: transformValueUnit(gap),
21
+ fontSize: transformValueUnit(itemFontSize),
11
22
  }"
23
+ @click="handleTagClick(item.name, index)"
12
24
  >
13
- <view
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
- </lcb-block>
30
- </view>
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
- <Tabs v-bind="$props" v-if="mode === 'tabs'" />
4
- <Tags v-bind="$props" v-else />
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.51",
3
+ "version": "0.4.52",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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
  >
@@ -12,4 +12,5 @@ export interface LcbAreaProps extends LcbBlockProps {
12
12
  areaItems?: {
13
13
  colSpan?: number
14
14
  }[]
15
+ overflowX?: 'hidden' | 'initial' | 'auto'
15
16
  }