@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
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
112
|
+
initForm[data.valueName] = data.defaultValue
|
|
112
113
|
})
|
|
113
114
|
}
|
|
114
115
|
})
|
|
115
116
|
if (data.filterTags) {
|
|
116
|
-
|
|
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
|
-
|
|
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
|
},
|