Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/esm/hyphenateStyle.js 362 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
  /**
   * Copyright 2013-2014, Facebook, Inc.
   * All rights reserved.
   * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
   */
  import hyphenate from './hyphenate';
  var msPattern = /^ms-/;
  export default function hyphenateStyleName(string) {
    return hyphenate(string).replace(msPattern, '-ms-');
  }