We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e68ae4 commit c66e32bCopy full SHA for c66e32b
lib/EleForm.vue
@@ -417,16 +417,16 @@ export default {
417
}
418
419
// 隐藏属性
420
- // Object.keys(desc[field]).forEach(key => {
421
- // if (key.startsWith('_')) {
422
- // Object.defineProperty(desc[field], key, {
423
- // enumerable: false,
424
- // writable: true,
425
- // configurable: true,
426
- // value: desc[field][key]
427
- // })
428
- // }
429
+ Object.keys(desc[field]).forEach(key => {
+ if (key.startsWith('_')) {
+ Object.defineProperty(desc[field], key, {
+ enumerable: false,
+ writable: true,
+ configurable: true,
+ value: desc[field][key]
+ })
+ }
430
})
431
return desc
432
0 commit comments