@tplc/business 0.4.72 → 0.4.74

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,30 @@
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.74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.73...v0.4.74) (2025-04-20)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 兼容h5 ([0f89d4e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0f89d4e59e1fbe73da2abdf420e6dd7d53967262))
11
+ * 调整fitler ([e67ce6c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e67ce6c0eebf1b44264b6e6589d35b383a99a5f9))
12
+ * 调整图片尺寸 ([55e45aa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/55e45aa30a4f3ec4a260f8b6b9b70253e3baadd4))
13
+ * 调整布局 ([4025835](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4025835a804275eaff4ec6b26ef8c5cc2c2d822d))
14
+
15
+ ### [0.4.73](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.72...v0.4.73) (2025-04-17)
16
+
17
+
18
+ ### 🚀 Chore | 构建/工程依赖/工具
19
+
20
+ * **release:** 0.1.82 ([2e0e855](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2e0e8552da56973441187066b53c7fa50b3f80be))
21
+
22
+
23
+ ### ✨ Features | 新功能
24
+
25
+ * 新增tabs字体粗细 ([314c20b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/314c20b7f512b7a7285b3543494e69e24b23d5b1))
26
+ * 调整form底部层级 ([0f0dffb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0f0dffb074033d4c270c7222c5ec4d76e172c374))
27
+ * 调整测试 ([987ae45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/987ae45c379759df9b48f925e29f1f3be06a5de1))
28
+
5
29
  ### [0.4.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.71...v0.4.72) (2025-04-13)
6
30
 
7
31
 
@@ -327,7 +327,7 @@ watch(
327
327
  left: 0;
328
328
  right: 0;
329
329
  background-color: #fff;
330
- z-index: 1;
330
+ z-index: 5;
331
331
  box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
332
332
  }
333
333
  </style>
@@ -6,7 +6,7 @@ export interface LcbListInfo {
6
6
  }
7
7
  export interface LcbFilterResult {
8
8
  btnComponent: BtnComponent
9
- filterTags: FilterTags
9
+ filterTags: FilterTags[]
10
10
  filterComponent: FilterComponent[]
11
11
  listInfo: LcbListInfo
12
12
  filterTabs?: {
@@ -63,12 +63,13 @@
63
63
  >
64
64
  <view class="flex gap-3.5 flex-1">
65
65
  <TagSelect
66
- v-if="info.filterTags"
66
+ v-for="tag in info.filterTags"
67
+ :key="tag.valueName"
67
68
  size="small"
68
- v-bind="info.filterTags.componentProps"
69
- v-model="filter[info.filterTags.valueName]"
70
- :value-name="info.filterTags.valueName"
71
- :sort-type="info.filterTags.sortType"
69
+ v-bind="tag.componentProps"
70
+ v-model="filter[tag.valueName]"
71
+ :value-name="tag.valueName"
72
+ :sort-type="tag.sortType"
72
73
  />
73
74
  </view>
74
75
  <wd-button v-if="info?.btnComponent" custom-class="!h-60rpx opacity-primary">
@@ -119,7 +120,10 @@ const onSubmit = (index: number, filterObj?: Record<string, any>) => {
119
120
  }
120
121
  const getSelect = (item: FilterComponent, index: number) => {
121
122
  if (item.component === 'componentGroup') {
122
- return item.componentProps.componentList?.some((v) => filter.value[v.valueName])
123
+ return item.componentProps.componentList?.some((v) => {
124
+ const value = filter.value[v.valueName]
125
+ return Array.isArray(value) ? value.length > 0 : Boolean(value)
126
+ })
123
127
  } else if (dynamicKeys.value[index]) {
124
128
  return dynamicKeys.value[index].some((v) => filter.value[v])
125
129
  } else {
@@ -117,8 +117,10 @@ watch(
117
117
  }
118
118
  })
119
119
  if (data.filterTags) {
120
- initForm[data.filterTags.valueName] = data.filterTags.defaultValue
121
- titleObj.value[data.filterTags.valueName] = data.filterTags.defaultName
120
+ data.filterTags.forEach((item) => {
121
+ initForm[item.valueName] = item.defaultValue
122
+ titleObj.value[item.valueName] = item.defaultName
123
+ })
122
124
  }
123
125
  if (data.filterTabs) {
124
126
  initForm[data.filterTabs.valueName] =
@@ -92,6 +92,13 @@ const value = computed(() => {
92
92
 
93
93
  return itemProps?.[props?.prop]
94
94
  })
95
+
96
+ const coverImgWidth = computed(() => {
97
+ if (style.value.width) {
98
+ return style.value.width.replace('rpx', '')
99
+ }
100
+ return '100%'
101
+ })
95
102
  </script>
96
103
 
97
104
  <template>
@@ -103,7 +110,14 @@ const value = computed(() => {
103
110
  <!-- 图片 -->
104
111
  <block :value="value" v-if="prop === 'coverImg'">
105
112
  <view :class="`relative ${className}`" :style="style">
106
- <wd-img :src="value" mode="aspectFill" width="100%" height="100%" v-if="!$slots.coverImg" />
113
+ <wd-img
114
+ :src="value"
115
+ mode="aspectFill"
116
+ :width="coverImgWidth"
117
+ height="100%"
118
+ lazyLoad
119
+ v-if="!$slots.coverImg"
120
+ />
107
121
  <slot name="coverImg" :value="value" v-else />
108
122
  <!-- imgBottomIcon -->
109
123
  <view
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.72",
3
+ "version": "0.4.74",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.81"
14
+ "@tplc/wot": "0.1.82"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -6,7 +6,7 @@ export interface LcbListInfo {
6
6
  }
7
7
  export interface LcbFilterResult {
8
8
  btnComponent: BtnComponent
9
- filterTags: FilterTags
9
+ filterTags: FilterTags[]
10
10
  filterComponent: FilterComponent[]
11
11
  listInfo: LcbListInfo
12
12
  filterTabs?: {