@tplc/business 0.3.46 → 0.3.47

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.3.47](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.46...v0.3.47) (2025-02-13)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 兼容map ([78f054d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/78f054d3e73179da26f17d46c07a92a5cf066267))
11
+
5
12
  ### [0.3.46](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.45...v0.3.46) (2025-02-13)
6
13
 
7
14
 
@@ -17,7 +17,6 @@
17
17
  :step="50"
18
18
  unit="¥"
19
19
  />
20
- {{ innerValue }}
21
20
  <view class="grid grid-cols-4 gap-4 mt-2" v-if="options.length">
22
21
  <SelectTagView
23
22
  v-for="item in options"
@@ -103,23 +103,28 @@ watch(
103
103
  async (val) => {
104
104
  if (val && form) {
105
105
  const { data } = await getFilterDetail(val)
106
+ const initForm = {} as Record<string, any>
106
107
  data.filterComponent.forEach((item) => {
107
- form.value[item.valueName] = item.defaultValue
108
+ initForm[item.valueName] = item.defaultValue
108
109
  titleObj.value[item.valueName] = item.filterName
109
110
  if (item.componentProps?.componentList) {
110
111
  item.componentProps.componentList.forEach((data) => {
111
- form.value[data.valueName] = data.defaultValue
112
+ initForm[data.valueName] = data.defaultValue
112
113
  })
113
114
  }
114
115
  })
115
116
  if (data.filterTags) {
116
- form.value[data.filterTags.valueName] = data.filterTags.defaultValue
117
+ initForm[data.filterTags.valueName] = data.filterTags.defaultValue
117
118
  titleObj.value[data.filterTags.valueName] = data.filterTags.defaultName
118
119
  }
119
120
  if (data.filterTabs) {
120
- form.value[data.filterTabs.valueName] =
121
+ initForm[data.filterTabs.valueName] =
121
122
  data.filterTabs.defaultValue || data.filterTabs.componentProps.options?.[0]?.value
122
123
  }
124
+ form.value = {
125
+ ...initForm,
126
+ ...form.value,
127
+ }
123
128
  info.value = data
124
129
  }
125
130
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],