@zhangqingcq/vgce 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -188,11 +188,9 @@
188
188
  continue
189
189
  }
190
190
 
191
- console.log(t, e)
192
-
193
191
  for (let a of e.attrs) {
194
- if (t.state && t.state.hasOwnProperty(a.key)) {
195
- t.state[a.key].default = valFormat(a.val)
192
+ if (a.key === 'state') {
193
+ t.defaultState = valFormat(a.val)
196
194
  } else if (t.props.hasOwnProperty(a.key)) {
197
195
  t.props[a.key].val = valFormat(a.val)
198
196
  }