Commit abe1aa821c44cec9bf080d11aac2de7deec9c364
Committed by
小小鲁班
1 parent
d9049172
fix: #190
Showing
1 changed file
with
0 additions
and
5 deletions
front-end/h5/src/components/core/models/element.js
| ... | ... | @@ -61,11 +61,6 @@ class Element { |
| 61 | 61 | uuid: this.uuid |
| 62 | 62 | } |
| 63 | 63 | Object.keys(props).forEach(key => { |
| 64 | - // #6 | |
| 65 | - if (key === 'name') { | |
| 66 | - console.warn('Please do not use {name} as plugin prop') | |
| 67 | - return | |
| 68 | - } | |
| 69 | 64 | const defaultValue = props[key].default |
| 70 | 65 | pluginProps[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue |
| 71 | 66 | }) | ... | ... |