Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/render/dom/style-computed.mjs 329 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  import { isCSSVar } from './is-css-var.mjs';
  
  function getComputedStyle(element, name) {
      const computedStyle = window.getComputedStyle(element);
      return isCSSVar(name)
          ? computedStyle.getPropertyValue(name)
          : computedStyle[name];
  }
  
  export { getComputedStyle };
  //# sourceMappingURL=style-computed.mjs.map