@dhccmobile/vue3-lo-form 2.1.1 → 2.1.2
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/README.md +2 -0
- package/dist/vue3-lo-form.common.js +3 -2
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.umd.js +3 -2
- package/dist/vue3-lo-form.umd.js.map +1 -1
- package/dist/vue3-lo-form.umd.min.js +1 -1
- package/dist/vue3-lo-form.umd.min.js.map +1 -1
- package/package.json +3 -2
- package/src/core/FormApi.ts +3 -2
- package/src/main.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhccmobile/vue3-lo-form",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "VUE3动态表单",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/vue3-lo-form.umd.js",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"clean:lib": "rimraf types && rimraf dist",
|
|
15
15
|
"build:lib": "npm run clean:lib && npm run tsc && npm run lib && npm pack",
|
|
16
16
|
"publish": "npm publish --registry https://registry.npmjs.org --access public",
|
|
17
|
-
"publish:lib": "npm run build:lib && npm run publish"
|
|
17
|
+
"publish:lib": "npm run build:lib && npm run publish",
|
|
18
|
+
"publish:lib1": "npm run publish"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"@ant-design/icons-vue": "^6.1.0",
|
package/src/core/FormApi.ts
CHANGED
|
@@ -138,10 +138,11 @@ export class FormApi {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
// 追加表单中没有的字段 2026年5月13日 20:39:24 用于处理字段脱敏
|
|
141
|
-
if (this.srcData) {
|
|
141
|
+
if (this.srcData && obj) {
|
|
142
142
|
for (const key in this.srcData) {
|
|
143
|
+
// 把所有以Enc结尾的字段都追加到obj中,用于处理字段脱敏
|
|
143
144
|
// eslint-disable-next-line no-prototype-builtins
|
|
144
|
-
if (
|
|
145
|
+
if (key.endsWith("Enc") && !obj.hasOwnProperty(key)) {
|
|
145
146
|
obj[key] = this.srcData[key];
|
|
146
147
|
}
|
|
147
148
|
}
|
package/src/main.ts
CHANGED
|
@@ -9,10 +9,9 @@ const app = createApp(App);
|
|
|
9
9
|
app.config.performance = true;
|
|
10
10
|
app
|
|
11
11
|
.use(VueLoForm, {
|
|
12
|
-
url: "
|
|
13
|
-
appId: "
|
|
12
|
+
url: "http://10.7.114.81:30570",
|
|
13
|
+
appId: "1009549605007003648,1014269796445605888,1015215693289242624,1028015525370548224",
|
|
14
14
|
onlySimpleLoadConfig: false,
|
|
15
15
|
loadMode: "dynamic",
|
|
16
|
-
desApiAddr: "http://82.156.213.34:8080/ms-loong/api/v1/des-cache-info/xxx-yyy-zzz",
|
|
17
16
|
})
|
|
18
17
|
.mount("#app");
|