Skip to content

Commit

Permalink
fix: #190
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Jul 19, 2020
1 parent d904917 commit abe1aa8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions front-end/h5/src/components/core/models/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ class Element {
uuid: this.uuid
}
Object.keys(props).forEach(key => {
// #6
if (key === 'name') {
console.warn('Please do not use {name} as plugin prop')
return
}
const defaultValue = props[key].default
pluginProps[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue
})
Expand Down

0 comments on commit abe1aa8

Please sign in to comment.