dlt-for-react 1.0.7 → 1.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
@@ -6,7 +6,7 @@ npm publish
6
6
 
7
7
  ## 前端dlt-for-react依赖包版本更新记录
8
8
 
9
- ##### 当前最新版本:1.0.7
9
+ ##### 当前最新版本:1.0.9
10
10
 
11
11
  ##### 安装依赖
12
12
  > cnpm install dlt-for-react --save
@@ -148,7 +148,7 @@ var KyUpload = function (_React$Component) {
148
148
  _initialiseProps.call(_this);
149
149
 
150
150
  var value = props.value || props.defaultValue;
151
- var urlTemp = props.xtglUrl || window.baseUrl;
151
+ var urlTemp = props.xtglUrl || window.xtglUrl || window.baseUrl;
152
152
  var xtglUrlTemp = urlTemp ? urlTemp : 'api/ky-core';
153
153
 
154
154
  _this.state = {
@@ -68,7 +68,7 @@ var getOffset = exports.getOffset = function getOffset(ele) {
68
68
  * @Author: admin
69
69
  * @Date: 2020-03-06 09:45:52
70
70
  * @LastEditors: jiangzhongxin
71
- * @LastEditTime: 2023-09-28 15:44:43
71
+ * @LastEditTime: 2023-10-17 09:46:26
72
72
  */
73
73
  var getSize = exports.getSize = function getSize() {
74
74
  var windowW = void 0,
@@ -490,6 +490,9 @@ var createScript = exports.createScript = function createScript() {
490
490
  * @returns
491
491
  */
492
492
  var createUuid = exports.createUuid = function createUuid() {
493
+ var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
494
+ var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
495
+
493
496
  var chars = '0123456789abcdefghijklmnopqrstuvwxyz'.split('');
494
497
  var uuid = [],
495
498
  i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlt-for-react",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "dlt for react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {