emacroh5lib 1.0.42 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emacroh5lib",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -285,7 +285,11 @@
285
285
 
286
286
  // Set style by name
287
287
  setStyleByName(obj, key, value) {
288
- obj && (obj.style[key] = value);
288
+ try {
289
+ obj && (obj.style[key] = value);
290
+ } catch (error) {
291
+ console.log("setStyleByName", error, obj, key, value);
292
+ }
289
293
  },
290
294
 
291
295
  // Get element current transform