@gx-design-vue/pro-utils 0.0.4 → 0.0.5
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/dist/index.es.js +1 -26
- package/dist/index.js +0 -28
- package/dist/utils/index.d.ts +0 -14
- package/dist/utils/validate.d.ts +0 -1
- package/package.json +1 -2
package/dist/index.es.js
CHANGED
|
@@ -2561,33 +2561,8 @@ function getRandomNumber() {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
|
-
/**
|
|
2565
|
-
* @Author gaoxiang
|
|
2566
|
-
* @DateTime 2020/11/13
|
|
2567
|
-
* @lastTime 2020/11/13
|
|
2568
|
-
* @description 截取视频时间戳
|
|
2569
|
-
*/
|
|
2570
|
-
function getVideoFileUrl(url = '') {
|
|
2571
|
-
const index = url.indexOf('?');
|
|
2572
|
-
return index > 0 ? `${url.substring(0, index)}` : url;
|
|
2573
|
-
}
|
|
2574
|
-
/**
|
|
2575
|
-
* @Author gaoxiang
|
|
2576
|
-
* @DateTime 2020/11/13
|
|
2577
|
-
* @lastTime 2020/11/13
|
|
2578
|
-
* @description 获取文件后缀名
|
|
2579
|
-
*/
|
|
2580
|
-
function getFileSuffix(url = '') {
|
|
2581
|
-
url = getVideoFileUrl(url);
|
|
2582
|
-
const index = url.lastIndexOf('.');
|
|
2583
|
-
return index > 0 ?
|
|
2584
|
-
`${url.substring(index).split('?')[0]}`.split('.')[1]
|
|
2585
|
-
:
|
|
2586
|
-
'';
|
|
2587
|
-
}
|
|
2588
2564
|
|
|
2589
2565
|
const toString = Object.prototype.toString;
|
|
2590
|
-
const noop = () => { };
|
|
2591
2566
|
function is(val, type) {
|
|
2592
2567
|
return toString.call(val) === `[object ${type}]`;
|
|
2593
2568
|
}
|
|
@@ -2631,4 +2606,4 @@ function isFunction(func) {
|
|
|
2631
2606
|
return (typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]');
|
|
2632
2607
|
}
|
|
2633
2608
|
|
|
2634
|
-
export { arrayRepeat, compareToMax, deepCopy, genColumnKey,
|
|
2609
|
+
export { arrayRepeat, compareToMax, deepCopy, genColumnKey, getRandomNumber, getSortIndex, handleCurrentPage, handleFormDefaultValue, handleShowIndex, hanndleField, is, isArray, isBoolean, isFunction, isNumber, isObject, isString, runFunction };
|
package/dist/index.js
CHANGED
|
@@ -2565,33 +2565,8 @@ function getRandomNumber() {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
|
-
/**
|
|
2569
|
-
* @Author gaoxiang
|
|
2570
|
-
* @DateTime 2020/11/13
|
|
2571
|
-
* @lastTime 2020/11/13
|
|
2572
|
-
* @description 截取视频时间戳
|
|
2573
|
-
*/
|
|
2574
|
-
function getVideoFileUrl(url = '') {
|
|
2575
|
-
const index = url.indexOf('?');
|
|
2576
|
-
return index > 0 ? `${url.substring(0, index)}` : url;
|
|
2577
|
-
}
|
|
2578
|
-
/**
|
|
2579
|
-
* @Author gaoxiang
|
|
2580
|
-
* @DateTime 2020/11/13
|
|
2581
|
-
* @lastTime 2020/11/13
|
|
2582
|
-
* @description 获取文件后缀名
|
|
2583
|
-
*/
|
|
2584
|
-
function getFileSuffix(url = '') {
|
|
2585
|
-
url = getVideoFileUrl(url);
|
|
2586
|
-
const index = url.lastIndexOf('.');
|
|
2587
|
-
return index > 0 ?
|
|
2588
|
-
`${url.substring(index).split('?')[0]}`.split('.')[1]
|
|
2589
|
-
:
|
|
2590
|
-
'';
|
|
2591
|
-
}
|
|
2592
2568
|
|
|
2593
2569
|
const toString = Object.prototype.toString;
|
|
2594
|
-
const noop = () => { };
|
|
2595
2570
|
function is(val, type) {
|
|
2596
2571
|
return toString.call(val) === `[object ${type}]`;
|
|
2597
2572
|
}
|
|
@@ -2639,10 +2614,8 @@ exports.arrayRepeat = arrayRepeat;
|
|
|
2639
2614
|
exports.compareToMax = compareToMax;
|
|
2640
2615
|
exports.deepCopy = deepCopy;
|
|
2641
2616
|
exports.genColumnKey = genColumnKey;
|
|
2642
|
-
exports.getFileSuffix = getFileSuffix;
|
|
2643
2617
|
exports.getRandomNumber = getRandomNumber;
|
|
2644
2618
|
exports.getSortIndex = getSortIndex;
|
|
2645
|
-
exports.getVideoFileUrl = getVideoFileUrl;
|
|
2646
2619
|
exports.handleCurrentPage = handleCurrentPage;
|
|
2647
2620
|
exports.handleFormDefaultValue = handleFormDefaultValue;
|
|
2648
2621
|
exports.handleShowIndex = handleShowIndex;
|
|
@@ -2654,5 +2627,4 @@ exports.isFunction = isFunction;
|
|
|
2654
2627
|
exports.isNumber = isNumber;
|
|
2655
2628
|
exports.isObject = isObject;
|
|
2656
2629
|
exports.isString = isString;
|
|
2657
|
-
exports.noop = noop;
|
|
2658
2630
|
exports.runFunction = runFunction;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -77,17 +77,3 @@ export declare function getRandomNumber(): {
|
|
|
77
77
|
uuidString(): string;
|
|
78
78
|
uuidCompact(): string;
|
|
79
79
|
};
|
|
80
|
-
/**
|
|
81
|
-
* @Author gaoxiang
|
|
82
|
-
* @DateTime 2020/11/13
|
|
83
|
-
* @lastTime 2020/11/13
|
|
84
|
-
* @description 截取视频时间戳
|
|
85
|
-
*/
|
|
86
|
-
export declare function getVideoFileUrl(url?: string): string;
|
|
87
|
-
/**
|
|
88
|
-
* @Author gaoxiang
|
|
89
|
-
* @DateTime 2020/11/13
|
|
90
|
-
* @lastTime 2020/11/13
|
|
91
|
-
* @description 获取文件后缀名
|
|
92
|
-
*/
|
|
93
|
-
export declare function getFileSuffix(url?: string): string;
|
package/dist/utils/validate.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "@gx-design-vue/pro-utils",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"ie >= 11"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"ant-design-vue": "3.2.13",
|
|
24
23
|
"vue": "3.2.39",
|
|
25
24
|
"lodash-es": "^4.17.21",
|
|
26
25
|
"@rollup/plugin-commonjs": "^21.0.1",
|