@tplc/business 0.4.51 → 0.4.53

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,34 @@
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.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.47...v0.4.53) (2025-04-02)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.48 ([d31479c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d31479c3c006152b08307c1b1d706336e3b22530))
11
+ * **release:** 0.4.49 ([baafb8a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/baafb8ac60fd565e27824bc49a81a447f566e75c))
12
+ * **release:** 0.4.50 ([015bb4b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/015bb4b3dbd89ea206d6443cd820dc1e195de926))
13
+ * **release:** 0.4.51 ([e78ec4b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e78ec4b1d0dfc1937fc121d7606ce91431d487f9))
14
+ * **release:** 0.4.52 ([8aafc70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8aafc70b69345664393c45bbcb0e8c6e748309f8))
15
+
16
+
17
+ ### ✨ Features | 新功能
18
+
19
+ * 新增area ([8a3df72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8a3df72657f66016d22dd3d8a47ca45a7230a502))
20
+ * 兼容数据 ([acaf31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaf31bd203f7725a139bc2e2e312debb00ce7dd))
21
+ * 支持动态数据 ([03dcc17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/03dcc1731db0e756a5ff098a91c2cee31f63c139))
22
+ * 暂时提交arfea ([a26b628](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a26b628e8942b51e8b0baad4d798990569c0dc7f))
23
+ * 调整area ([90bf01b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/90bf01b9309537cc73493ec5366ea750fd7a1a9d))
24
+ * 调整图片 ([227c350](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/227c350287e154ee1bb30c6689cd64a8a97642f2))
25
+
26
+ ### [0.4.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.51...v0.4.52) (2025-04-02)
27
+
28
+
29
+ ### ✨ Features | 新功能
30
+
31
+ * 兼容数据 ([acaf31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaf31bd203f7725a139bc2e2e312debb00ce7dd))
32
+
5
33
  ### [0.4.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.50...v0.4.51) (2025-04-02)
6
34
 
7
35
 
@@ -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
  >
@@ -164,7 +164,7 @@ const value = computed(() => {
164
164
  </view>
165
165
  </slot>
166
166
  <slot :value="value" v-if="prop === 'titleIcon'" name="titleIcon">
167
- <view :class="className" :style="style" class="inline-flex ml-1">
167
+ <view :class="className" :style="style" class="inline-flex mr-1">
168
168
  <wd-img :src="itemProps.titleIcon" width="12px" height="12px" />
169
169
  </view>
170
170
  </slot>
@@ -144,12 +144,12 @@ const itemStyle = computed(() => {
144
144
  <ItemValue prop="productName">
145
145
  <!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
146
146
  </ItemValue>
147
- <ItemValue prop="level">
148
- <!-- <template #level="{ value }"><slot name="level" :value="value" /></template> -->
149
- </ItemValue>
150
147
  <ItemValue prop="titleIcon">
151
148
  <!-- <template #titleIcon="{ value }"><slot name="titleIcon" :value="value" /></template> -->
152
149
  </ItemValue>
150
+ <ItemValue prop="level">
151
+ <!-- <template #level="{ value }"><slot name="level" :value="value" /></template> -->
152
+ </ItemValue>
153
153
  </view>
154
154
 
155
155
  <view class="flex gap-1 items-center">
@@ -287,12 +287,12 @@ const itemStyle = computed(() => {
287
287
  <ItemValue prop="productName">
288
288
  <!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
289
289
  </ItemValue>
290
- <ItemValue prop="level">
291
- <!-- <template #level="{ value }"><slot name="level" :value="value" /></template> -->
292
- </ItemValue>
293
290
  <ItemValue prop="titleIcon">
294
291
  <!-- <template #titleIcon="{ value }"><slot name="titleIcon" :value="value" /></template> -->
295
292
  </ItemValue>
293
+ <ItemValue prop="level">
294
+ <!-- <template #level="{ value }"><slot name="level" :value="value" /></template> -->
295
+ </ItemValue>
296
296
  </view>
297
297
 
298
298
  <view class="flex gap-1 items-center">
@@ -102,24 +102,26 @@
102
102
  </view>
103
103
  </view>
104
104
  <view id="searchPagingTop"></view>
105
- <view
106
- class="fixed left-0 w-full z-2 bg-white"
107
- :style="{ height: height, top: top }"
108
- v-if="form?.keywords && productTypeList && top"
109
- >
110
- <lcb-search-list
111
- :productTypeList="productTypeList"
105
+ <template v-if="mode === 'search'">
106
+ <view
107
+ class="fixed left-0 w-full z-2 bg-white"
108
+ :style="{ height: height, top: top }"
109
+ v-if="form?.keywords && productTypeList && top"
110
+ >
111
+ <lcb-search-list
112
+ :productTypeList="productTypeList"
113
+ @select="onSelect"
114
+ :height="height"
115
+ ref="searchListRef"
116
+ />
117
+ </view>
118
+ <lcb-search-history
119
+ :historyKey="historyKey"
120
+ v-if="historyKey"
121
+ ref="searchHistoryRef"
112
122
  @select="onSelect"
113
- :height="height"
114
- ref="searchListRef"
115
123
  />
116
- </view>
117
- <lcb-search-history
118
- :historyKey="historyKey"
119
- v-if="historyKey"
120
- ref="searchHistoryRef"
121
- @select="onSelect"
122
- />
124
+ </template>
123
125
  </template>
124
126
 
125
127
  <script setup lang="ts">
@@ -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.53",
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
  }