dlt-for-react 2.0.8 → 2.0.9

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/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:2.0.8
11
+ ##### 当前最新版本:2.0.9
12
12
 
13
13
  ##### 安装依赖
14
14
 
@@ -16,7 +16,7 @@ npm publish
16
16
 
17
17
  ##### 版本修改记录
18
18
 
19
- #### V2.0.8—2024 年 4 月 10 日
19
+ #### V2.0.9—2024 年 4 月 10 日
20
20
 
21
21
  1. 修改 countNumber 方法的传参类型
22
22
  2. 新增 getScale 获取移动端转换比例方法
@@ -24,7 +24,7 @@ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
24
24
  exports.loadScript = loadScript;
25
25
  exports.animationFramePolyfill = animationFramePolyfill;
26
26
 
27
- var _index = require("./index");
27
+ var _common = require("./common");
28
28
 
29
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
30
 
@@ -238,7 +238,7 @@ var getScale = exports.getScale = function getScale() {
238
238
 
239
239
  var htmlElement = document.documentElement;
240
240
  var fontSize = window.getComputedStyle(htmlElement).fontSize;
241
- var scale = (0, _index.countNumber)(parseFloat(fontSize), size, "divide");
241
+ var scale = (0, _common.countNumber)(parseFloat(fontSize), size, "divide");
242
242
  return scale;
243
243
  };
244
244
 
@@ -248,7 +248,7 @@ var getScale = exports.getScale = function getScale() {
248
248
  */
249
249
  var sizeConvert = exports.sizeConvert = function sizeConvert(number, fontSize) {
250
250
  var scale = getScale(fontSize);
251
- var value = (0, _index.countNumber)(number, scale, "multiply");
251
+ var value = (0, _common.countNumber)(number, scale, "multiply");
252
252
  return value;
253
253
  };
254
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlt-for-react",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "dlt for react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {