@tplc/business 0.4.73 → 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,16 @@
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
+
5
15
  ### [0.4.73](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.72...v0.4.73) (2025-04-17)
6
16
 
7
17
 
@@ -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] =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.73",
3
+ "version": "0.4.74",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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?: {