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,6 +14,7 @@ const defaultProps = {
14 class Element { 14 class Element {
15 constructor (ele) { 15 constructor (ele) {
16 this.name = ele.name 16 this.name = ele.name
  17 + this.uuid = +new Date()
17 this.editorConfig = ele.editorConfig || {} 18 this.editorConfig = ele.editorConfig || {}
18 this.pluginProps = {} 19 this.pluginProps = {}
19 this.commonStyle = {} 20 this.commonStyle = {}