Commit fabad37796bb510ca68808a8bfba4502020ad6c7

Authored by ly525
1 parent 10750747

element model: add uuid to find element quickly

front-end/h5/src/components/core/models/element.js
... ... @@ -14,6 +14,7 @@ const defaultProps = {
14 14 class Element {
15 15 constructor (ele) {
16 16 this.name = ele.name
  17 + this.uuid = +new Date()
17 18 this.editorConfig = ele.editorConfig || {}
18 19 this.pluginProps = {}
19 20 this.commonStyle = {}
... ...