@aks-dev/easyui 1.2.1 → 1.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/EchartsView/helper.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,GAAI,OAAO;IAAE,eAAe,EAAE,GAAG,CAAA;CAAE,WAoCpD,CAAA;AAED;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAcnC,CAAA"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/EchartsView/helper.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO,GAAI,OAAO;IAAE,eAAe,EAAE,GAAG,CAAA;CAAE,WAoCtD,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAiBnC,CAAC"}
@@ -32,7 +32,7 @@ export const getHtml = (props) => {
32
32
  }
33
33
 
34
34
  </style>
35
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.1/echarts.min.js"></script>
35
+ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/6.0.0/echarts.min.js"></script>
36
36
  </head>
37
37
 
38
38
  <body style="background-color:${props.backgroundColor}">
@@ -50,15 +50,18 @@ export const getHtml = (props) => {
50
50
  export const toString = (obj) => {
51
51
  let result = JSON.stringify(obj, function (key, val) {
52
52
  // 对function进行特殊处理
53
- if (typeof val === 'function') {
53
+ if (typeof val === "function") {
54
54
  return `~ha~${val}~ha~`;
55
55
  }
56
56
  return val;
57
57
  });
58
58
  // 再进行还原
59
59
  do {
60
- result = result.replace('\"~ha~', '').replace('~ha~\"', '').replace(/\\\"/g, "\""); //最后一个replace将release模式中莫名生成的\"转换成"
61
- } while (result.indexOf('~ha~') >= 0);
60
+ result = result
61
+ .replace('\"~ha~', "")
62
+ .replace('~ha~\"', "")
63
+ .replace(/\\\"/g, '"'); //最后一个replace将release模式中莫名生成的\"转换成"
64
+ } while (result.indexOf("~ha~") >= 0);
62
65
  return result;
63
66
  };
64
67
  ///.replace(/\\n/g, '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "工具箱",
5
5
  "exports": {
6
6
  ".": {