eoss-ui 0.4.72 → 0.4.74

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/src/utils/util.js CHANGED
@@ -1440,8 +1440,8 @@ const getStorage = function (key) {
1440
1440
  * @param {String} [attr] - 样式属性名
1441
1441
  **/
1442
1442
 
1443
- const getStyle = function (dom, attr) {
1444
- if (dom.style[attr]) {
1443
+ const getStyle = function (dom, attr, exclude) {
1444
+ if (dom.style[attr] && dom.style[attr].indexOf(exclude) === -1) {
1445
1445
  return dom.style[attr];
1446
1446
  }
1447
1447
  if (win.getComputedStyle) {