Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/esm/getComputedStyle.js 318 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  import ownerWindow from './ownerWindow';
  /**
   * Returns one or all computed style properties of an element.
   * 
   * @param node the element
   * @param psuedoElement the style property
   */
  
  export default function getComputedStyle(node, psuedoElement) {
    return ownerWindow(node).getComputedStyle(node, psuedoElement);
  }