@vxe-ui/core 4.4.32 → 4.4.33
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/all.esm.js +73 -2
- package/es/src/base-utils.js +15 -0
- package/es/src/core.js +1 -1
- package/es/src/dom-utils.js +56 -0
- package/es/src/log.js +1 -1
- package/lib/index.umd.js +73 -2
- package/lib/index.umd.min.js +1 -1
- package/lib/src/base-utils.js +15 -0
- package/lib/src/base-utils.min.js +1 -1
- package/lib/src/core.js +1 -1
- package/lib/src/core.min.js +1 -1
- package/lib/src/dom-utils.js +56 -0
- package/lib/src/dom-utils.min.js +1 -1
- package/lib/src/log.js +1 -1
- package/lib/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/src/base-utils.ts +15 -0
- package/packages/src/dom-utils.ts +60 -0
- package/types/core/base-utils.d.ts +18 -0
- package/types/core/dom-utils.d.ts +28 -0
package/dist/all.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h, reactive, computed, inject, provide, createCommentVNode } from 'vue'
|
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
3
|
import DomZIndex from 'dom-zindex';
|
|
4
4
|
|
|
5
|
-
const coreVersion = "4.4.
|
|
5
|
+
const coreVersion = "4.4.33";
|
|
6
6
|
const VxeCore = {
|
|
7
7
|
coreVersion,
|
|
8
8
|
uiVersion: '',
|
|
@@ -402,7 +402,7 @@ function createLog(type, name) {
|
|
|
402
402
|
return msg;
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
const version = "4.4.
|
|
405
|
+
const version = "4.4.33";
|
|
406
406
|
const log = {
|
|
407
407
|
create: createLog,
|
|
408
408
|
warn: createLog('warn', `v${version}`),
|
|
@@ -837,10 +837,81 @@ const baseUtils = {
|
|
|
837
837
|
*/
|
|
838
838
|
getDefVal(value, defVal) {
|
|
839
839
|
return XEUtils.eqNull(value) ? defVal : value;
|
|
840
|
+
},
|
|
841
|
+
/**
|
|
842
|
+
* 判断是否启用
|
|
843
|
+
*/
|
|
844
|
+
isEnabled(conf) {
|
|
845
|
+
return !!(conf && conf.enabled !== false);
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
* 用于开关类型的配置项
|
|
849
|
+
* 局部启用规则:conf={}
|
|
850
|
+
* 局部禁用规则:conf={enabled:false}
|
|
851
|
+
* 全局默认启用规则:conf.enabled=true
|
|
852
|
+
*/
|
|
853
|
+
hasEnableConf(conf, opts) {
|
|
854
|
+
return !!(opts && (conf ? opts.enabled !== false : opts.enabled));
|
|
840
855
|
}
|
|
841
856
|
};
|
|
842
857
|
|
|
858
|
+
const reClsMap = {};
|
|
859
|
+
function getClsRE(cls) {
|
|
860
|
+
if (!reClsMap[cls]) {
|
|
861
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
862
|
+
}
|
|
863
|
+
return reClsMap[cls];
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* 判断元素是否包含 class
|
|
867
|
+
*/
|
|
868
|
+
function hasClass(elem, cls) {
|
|
869
|
+
if (elem) {
|
|
870
|
+
if (elem.classList) {
|
|
871
|
+
return elem.classList.contains(cls);
|
|
872
|
+
}
|
|
873
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
874
|
+
}
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* 给元素删除 class
|
|
879
|
+
*/
|
|
880
|
+
function removeClass(elem, cls) {
|
|
881
|
+
if (elem && hasClass(elem, cls)) {
|
|
882
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
883
|
+
}
|
|
884
|
+
}
|
|
843
885
|
const domUtils = {
|
|
886
|
+
/**
|
|
887
|
+
* 判断是否像素px单位 '100px' | 100
|
|
888
|
+
*/
|
|
889
|
+
isPx(val) {
|
|
890
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* 判断是否百分比%单位 '100%'
|
|
894
|
+
*/
|
|
895
|
+
isScale(val) {
|
|
896
|
+
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
* 判断元素是否包含 class
|
|
900
|
+
*/
|
|
901
|
+
hasClass,
|
|
902
|
+
/**
|
|
903
|
+
* 给元素删除 class
|
|
904
|
+
*/
|
|
905
|
+
removeClass,
|
|
906
|
+
/**
|
|
907
|
+
* 给元素增加 class
|
|
908
|
+
*/
|
|
909
|
+
addClass(elem, cls) {
|
|
910
|
+
if (elem && !hasClass(elem, cls)) {
|
|
911
|
+
removeClass(elem, cls);
|
|
912
|
+
elem.className = elem.className + ' ' + cls;
|
|
913
|
+
}
|
|
914
|
+
},
|
|
844
915
|
/**
|
|
845
916
|
* 生成 className
|
|
846
917
|
*/
|
package/es/src/base-utils.js
CHANGED
|
@@ -20,5 +20,20 @@ export const baseUtils = {
|
|
|
20
20
|
*/
|
|
21
21
|
getDefVal(value, defVal) {
|
|
22
22
|
return XEUtils.eqNull(value) ? defVal : value;
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* 判断是否启用
|
|
26
|
+
*/
|
|
27
|
+
isEnabled(conf) {
|
|
28
|
+
return !!(conf && conf.enabled !== false);
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 用于开关类型的配置项
|
|
32
|
+
* 局部启用规则:conf={}
|
|
33
|
+
* 局部禁用规则:conf={enabled:false}
|
|
34
|
+
* 全局默认启用规则:conf.enabled=true
|
|
35
|
+
*/
|
|
36
|
+
hasEnableConf(conf, opts) {
|
|
37
|
+
return !!(opts && (conf ? opts.enabled !== false : opts.enabled));
|
|
23
38
|
}
|
|
24
39
|
};
|
package/es/src/core.js
CHANGED
package/es/src/dom-utils.js
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils';
|
|
2
|
+
const reClsMap = {};
|
|
3
|
+
function getClsRE(cls) {
|
|
4
|
+
if (!reClsMap[cls]) {
|
|
5
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
6
|
+
}
|
|
7
|
+
return reClsMap[cls];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 判断元素是否包含 class
|
|
11
|
+
*/
|
|
12
|
+
function hasClass(elem, cls) {
|
|
13
|
+
if (elem) {
|
|
14
|
+
if (elem.classList) {
|
|
15
|
+
return elem.classList.contains(cls);
|
|
16
|
+
}
|
|
17
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 给元素删除 class
|
|
23
|
+
*/
|
|
24
|
+
function removeClass(elem, cls) {
|
|
25
|
+
if (elem && hasClass(elem, cls)) {
|
|
26
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
2
29
|
export const domUtils = {
|
|
30
|
+
/**
|
|
31
|
+
* 判断是否像素px单位 '100px' | 100
|
|
32
|
+
*/
|
|
33
|
+
isPx(val) {
|
|
34
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* 判断是否百分比%单位 '100%'
|
|
38
|
+
*/
|
|
39
|
+
isScale(val) {
|
|
40
|
+
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* 判断元素是否包含 class
|
|
44
|
+
*/
|
|
45
|
+
hasClass,
|
|
46
|
+
/**
|
|
47
|
+
* 给元素删除 class
|
|
48
|
+
*/
|
|
49
|
+
removeClass,
|
|
50
|
+
/**
|
|
51
|
+
* 给元素增加 class
|
|
52
|
+
*/
|
|
53
|
+
addClass(elem, cls) {
|
|
54
|
+
if (elem && !hasClass(elem, cls)) {
|
|
55
|
+
removeClass(elem, cls);
|
|
56
|
+
elem.className = elem.className + ' ' + cls;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
3
59
|
/**
|
|
4
60
|
* 生成 className
|
|
5
61
|
*/
|
package/es/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2572,7 +2572,7 @@ if (typeof window !== 'undefined') {
|
|
|
2572
2572
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2573
2573
|
var es_array_push = __webpack_require__(4114);
|
|
2574
2574
|
;// ./packages/src/core.ts
|
|
2575
|
-
const coreVersion = "4.4.
|
|
2575
|
+
const coreVersion = "4.4.33";
|
|
2576
2576
|
const VxeCore = {
|
|
2577
2577
|
coreVersion,
|
|
2578
2578
|
uiVersion: '',
|
|
@@ -3215,7 +3215,7 @@ function createLog(type, name) {
|
|
|
3215
3215
|
return msg;
|
|
3216
3216
|
};
|
|
3217
3217
|
}
|
|
3218
|
-
const version = "4.4.
|
|
3218
|
+
const version = "4.4.33";
|
|
3219
3219
|
const log = {
|
|
3220
3220
|
create: createLog,
|
|
3221
3221
|
warn: createLog('warn', `v${version}`),
|
|
@@ -3665,12 +3665,83 @@ const baseUtils = {
|
|
|
3665
3665
|
*/
|
|
3666
3666
|
getDefVal(value, defVal) {
|
|
3667
3667
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(value) ? defVal : value;
|
|
3668
|
+
},
|
|
3669
|
+
/**
|
|
3670
|
+
* 判断是否启用
|
|
3671
|
+
*/
|
|
3672
|
+
isEnabled(conf) {
|
|
3673
|
+
return !!(conf && conf.enabled !== false);
|
|
3674
|
+
},
|
|
3675
|
+
/**
|
|
3676
|
+
* 用于开关类型的配置项
|
|
3677
|
+
* 局部启用规则:conf={}
|
|
3678
|
+
* 局部禁用规则:conf={enabled:false}
|
|
3679
|
+
* 全局默认启用规则:conf.enabled=true
|
|
3680
|
+
*/
|
|
3681
|
+
hasEnableConf(conf, opts) {
|
|
3682
|
+
return !!(opts && (conf ? opts.enabled !== false : opts.enabled));
|
|
3668
3683
|
}
|
|
3669
3684
|
};
|
|
3670
3685
|
;// ./packages/src/dom-utils.ts
|
|
3671
3686
|
|
|
3672
3687
|
|
|
3688
|
+
const reClsMap = {};
|
|
3689
|
+
function getClsRE(cls) {
|
|
3690
|
+
if (!reClsMap[cls]) {
|
|
3691
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
3692
|
+
}
|
|
3693
|
+
return reClsMap[cls];
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* 判断元素是否包含 class
|
|
3697
|
+
*/
|
|
3698
|
+
function hasClass(elem, cls) {
|
|
3699
|
+
if (elem) {
|
|
3700
|
+
if (elem.classList) {
|
|
3701
|
+
return elem.classList.contains(cls);
|
|
3702
|
+
}
|
|
3703
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
3704
|
+
}
|
|
3705
|
+
return false;
|
|
3706
|
+
}
|
|
3707
|
+
/**
|
|
3708
|
+
* 给元素删除 class
|
|
3709
|
+
*/
|
|
3710
|
+
function removeClass(elem, cls) {
|
|
3711
|
+
if (elem && hasClass(elem, cls)) {
|
|
3712
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3673
3715
|
const domUtils = {
|
|
3716
|
+
/**
|
|
3717
|
+
* 判断是否像素px单位 '100px' | 100
|
|
3718
|
+
*/
|
|
3719
|
+
isPx(val) {
|
|
3720
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
3721
|
+
},
|
|
3722
|
+
/**
|
|
3723
|
+
* 判断是否百分比%单位 '100%'
|
|
3724
|
+
*/
|
|
3725
|
+
isScale(val) {
|
|
3726
|
+
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
3727
|
+
},
|
|
3728
|
+
/**
|
|
3729
|
+
* 判断元素是否包含 class
|
|
3730
|
+
*/
|
|
3731
|
+
hasClass,
|
|
3732
|
+
/**
|
|
3733
|
+
* 给元素删除 class
|
|
3734
|
+
*/
|
|
3735
|
+
removeClass,
|
|
3736
|
+
/**
|
|
3737
|
+
* 给元素增加 class
|
|
3738
|
+
*/
|
|
3739
|
+
addClass(elem, cls) {
|
|
3740
|
+
if (elem && !hasClass(elem, cls)) {
|
|
3741
|
+
removeClass(elem, cls);
|
|
3742
|
+
elem.className = elem.className + ' ' + cls;
|
|
3743
|
+
}
|
|
3744
|
+
},
|
|
3674
3745
|
/**
|
|
3675
3746
|
* 生成 className
|
|
3676
3747
|
*/
|
package/lib/index.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("xe-utils")):"function"==typeof define&&define.amd?define([,"xe-utils"],e):"object"==typeof exports?exports.VxeUI=e(require("vue"),require("xe-utils")):t.VxeUI=e(t.Vue,t.XEUtils)})("undefined"!=typeof self?self:this,function(St,jt){{var Tt={9274:function(t){t.exports=St},8871:function(t){t.exports=jt},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},6469:function(t,e,n){var r=n(8227),o=n(2360),n=n(4913).f,i=r("unscopables"),u=Array.prototype;void 0===u[i]&&n(u,i,{configurable:!0,value:o(null)}),t.exports=function(t){u[i][t]=!0}},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),u=n(8227)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=c(t),u))?e:a?i(t):"Object"===(e=i(t))&&o(t.callee)?"Arguments":e}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},2211:function(t,e,n){n=n(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4576),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw new e("Maximum allowed index exceeded");return t}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){n=n(4576).navigator,n=n&&n.userAgent;t.exports=n?String(n):""},9519:function(t,e,n){var r,o,i=n(4576),n=n(2839),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},6518:function(t,e,n){var s=n(4576),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4576),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),u=n(6269),c=n(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[r(t)]}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),u=n(6823),c=n(851),a=TypeError;t.exports=function(t,e){e=arguments.length<2?c(t):e;if(o(e))return i(r(e,t));throw new a(u(t)+" is not iterable")}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4576:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},397:function(t,e,n){n=n(7751);t.exports=n("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4576),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",v=a.TypeError,a=a.WeakMap,m=c||p.state?((i=p.state||(p.state=new a)).get=i.get,i.has=i.has,i.set=i.set,r=function(t,e){if(i.has(t))throw new v(h);return e.facade=t,i.set(t,e),e},o=function(t){return i.get(t)||{}},function(t){return i.has(t)}):(n[u=d("state")]=!0,r=function(t,e){if(l(t,u))throw new v(h);return e.facade=t,f(t,u,e),e},o=function(t){return l(t,u)?t[u]:{}},function(t){return l(t,u)});t.exports={set:r,get:o,has:m,enforce:function(t){return m(t)?o(t):r(t,{})},getterFor:function(e){return function(t){if(s(t)&&(t=o(t)).type===e)return t;throw new v("Incompatible receiver, "+e+" required")}}}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},2652:function(t,e,n){function g(t,e){this.stopped=t,this.result=e}var b=n(6080),y=n(9565),x=n(8551),w=n(6823),E=n(4209),O=n(6198),S=n(1625),j=n(81),T=n(851),P=n(9539),I=TypeError,C=g.prototype;t.exports=function(t,e,n){function r(t){var e=i;return i=void 0,e&&P(e,"normal"),new g(!0,t)}function o(t){return l?(x(t),h?v(t[0],t[1],r):v(t[0],t[1])):h?v(t,r):v(t)}var i,u,c,a,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=b(e,f);if(p)i=t.iterator;else if(d)i=t;else{if(!(n=T(t)))throw new I(w(t)+" is not iterable");if(E(n)){for(u=0,c=O(t);u<c;u++)if((a=o(t[u]))&&S(C,a))return a;return new g(!1)}i=j(t,n)}for(s=(p?t:i).next;!(m=y(s,i)).done;){var m=m.value;try{a=o(m)}catch(t){if(!i)throw t;P(i,"throw",t)}if("object"==typeof a&&a&&S(C,a))return a}return new g(!1)}},9539:function(t,e,n){var i=n(9565),u=n(8551),c=n(5966);t.exports=function(t,e,n){var r,o;u(t);try{if(!(r=c(t,"return"))){if("throw"===e)throw n;return n}r=i(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return u(r),n}},4549:function(t,e,n){var o=n(4576);t.exports=function(t,e){var n=o.Iterator,n=n&&n.prototype,n=n&&n[t],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(t){t instanceof e||(r=!1)}if(!r)return n}},7657:function(t,e,n){var r,o,i=n(9039),u=n(4901),c=n(34),a=n(2360),s=n(2787),f=n(6840),l=n(8227),n=n(6395),p=l("iterator"),l=!1;[].keys&&("next"in(o=[].keys())?(s=s(s(o)))!==Object.prototype&&(r=s):l=!0),!c(r)||i(function(){var t={};return r[p].call(t)!==t})?r={}:n&&(r=a(r)),u(r[p])||f(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),v=r("".replace),m=r([].join),g=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===h(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||a&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&u(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=f(t);return u(n,"source")||(n.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},2360:function(t,e,n){function r(){}function o(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}var i,u=n(8551),c=n(6801),a=n(8727),s=n(421),f=n(397),l=n(4055),n=n(6119),p=">",d="<",h="prototype",v="script",m=n("IE_PROTO"),g=function(t){return d+v+p+t+d+"/"+v+p},b=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}b="undefined"==typeof document||document.domain&&i?o(i):(t=l("iframe"),e="java"+v+":",t.style.display="none",f.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var t,e,n=a.length;n--;)delete b[h][a[n]];return b()};s[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[h]=u(t),n=new r,r[h]=null,n[m]=t):n=b(),void 0===e?n:c.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),c=n(4913),a=n(8551),s=n(5397),f=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=f(e),i=o.length,u=0;u<i;)c.f(t,n=o[u++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),u=n(6119),n=n(2211),c=u("IE_PROTO"),a=Object,s=a.prototype;t.exports=n?a.getPrototypeOf:function(t){var e,t=i(t);return r(t,c)?t[c]:(e=t.constructor,o(e)&&t instanceof e?e.prototype:t instanceof a?s:null)}},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4576),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}},7040:function(t,e,n){n=n(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),n=n(9039);t.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(t,e,n){var r=n(4576),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),u=n(3392),c=n(4495),n=n(7040),a=r.Symbol,s=o("wks"),f=n?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(a,t)?a[t]:f("Symbol."+t)),s[t]}},4423:function(t,e,n){var r=n(6518),o=n(9617).includes,i=n(9039),n=n(6469),u=i(function(){return!Array(1).includes()}),i=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:u||i},{includes:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}}),n("includes")},4114:function(t,e,n){var r=n(6518),i=n(8981),u=n(6198),c=n(4527),a=n(6837);r({target:"Array",proto:!0,arity:1,forced:n(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!(()=>{try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}})()},{push:function(t){var e=i(this),n=u(e),r=arguments.length;a(n+r);for(var o=0;o<r;o++)e[n]=arguments[o],n++;return c(e,n),n}})},8111:function(t,e,n){function r(){if(c(this,m),f(this)===m)throw new x("Abstract class Iterator not directly constructable")}function o(e,t){g?l(m,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===m)throw new x("You can't redefine this property");h(this,e)?this[e]=t:p(this,e,t)}}):m[e]=t}var i=n(6518),u=n(4576),c=n(679),a=n(8551),s=n(4901),f=n(2787),l=n(2106),p=n(4659),d=n(9039),h=n(9297),v=n(8227),m=n(7657).IteratorPrototype,g=n(3724),n=n(6395),b="constructor",y="Iterator",v=v("toStringTag"),x=TypeError,w=u[y],u=n||!s(w)||w.prototype!==m||!d(function(){w({})});h(m,v)||o(v,y),!u&&h(m,b)&&m[b]!==Object||o(b,r),r.prototype=m,i({global:!0,constructor:!0,forced:u},{Iterator:r})},7588:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),u=n(9306),c=n(8551),a=n(1767),s=n(9539),f=n(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){c(this);try{u(e)}catch(t){s(this,"throw",t)}if(f)return o(f,this,e);var t=a(this),n=0;i(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},3579:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),u=n(9306),c=n(8551),a=n(1767),s=n(9539),f=n(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(n){c(this);try{u(n)}catch(t){s(this,"throw",t)}var t,r;return f?o(f,this,n):(t=a(this),i(t,function(t,e){if(n(t,r++))return e()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}})}},W={};function B(t){var e=W[t];return void 0!==e||(e=W[t]={exports:{}},Tt[t].call(e.exports,e,e.exports,B)),e.exports}B.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return B.d(e,{a:e}),e},B.d=function(t,e){for(var n in e)B.o(e,n)&&!B.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},B.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),B.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},B.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},B.p="";var G={};B.r(G),B.d(G,{GLOBAL_EVENT_KEYS:function(){return o},VxeCore:function(){return i},VxeUI:function(){return _},baseUtils:function(){return M},checkVersion:function(){return Zt},clipboard:function(){return R},commands:function(){return j},component:function(){return Yt},coreVersion:function(){return t},createEvent:function(){return s},default:function(){return Jt},domUtils:function(){return L},formats:function(){return S},getComponent:function(){return qt},getConfig:function(){return At},getI18n:function(){return xt},getIcon:function(){return vt},getLanguage:function(){return Vt},getSlotVNs:function(){return ht},getTheme:function(){return Ct},globalEvents:function(){return l},globalResize:function(){return h},globalStore:function(){return e},handleCheckInfo:function(){return Et},hasComponent:function(){return Xt},hasLanguage:function(){return Dt},hooks:function(){return D},interceptor:function(){return P},log:function(){return b},menus:function(){return O},permission:function(){return A},popperUtils:function(){return z},renderCustomIcon:function(){return mt},renderEmptyElement:function(){return Kt},renderGlobalIcon:function(){return Lt},renderer:function(){return x},scrollbarUtils:function(){return F},setConfig:function(){return Rt},setI18n:function(){return zt},setIcon:function(){return Mt},setLanguage:function(){return Ft},setTheme:function(){return dt},use:function(){return $t},useFns:function(){return V},usePermission:function(){return Ht},useSize:function(){return Gt},validators:function(){return E}}),"undefined"!=typeof window&&($=($=window.document.currentScript)&&$.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(B.p=$[1]),B(4114);let t="4.4.32",i={coreVersion:t,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};var H=B(9274),$=B(8871),q=B.n($),X=null,Y=null,K=null,Z="z-index-manage",J=null,Q="z-index-style",tt={m:1e3,s:1e3};function et(){return X||"undefined"!=typeof document&&(X=document),X}function nt(){return Y=X&&!Y?X.body||X.getElementsByTagName("body")[0]:Y}function rt(){var t;J||!(t=et())||(J=t.getElementById(Q))||((J=t.createElement("style")).id=Q,t.getElementsByTagName("head")[0].appendChild(J)),J&&(J.innerHTML=":root{--dom-main"+(t="-z-index")+":"+at()+";--dom-sub"+t+":"+pt()+"}")}function ot(){var t,e;return K||(t=et())&&!(K=t.getElementById(Z))&&(e=nt())&&((K=t.createElement("div")).id=Z,K.style.display="none",e.appendChild(K),ut(tt.m),ft(tt.s)),K}function it(n){return function(t){var e;return t&&(t=Number(t),tt[n]=t,e=ot())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),rt(),tt[n]}}var ut=it("m");function ct(r,o){return function(t){var e=ot(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||tt[r];return t?Number(t)<n?o():t:n}}var at=ct("m",st);function st(){return ut(at()+1)}var ft=it("s"),lt=ct("s",Pt);function pt(){return at()+lt()}function Pt(){return ft(lt()+1),pt()}var $={setCurrent:ut,getCurrent:at,getNext:st,setSubCurrent:ft,getSubCurrent:pt,getSubNext:Pt,getMax:function(){var t=0;if(et()){var e=nt();if(e)for(var n=e.getElementsByTagName("*"),r=0;r<n.length;r++){var o=n[r];o&&o.style&&1===o.nodeType&&(o=o.style.zIndex)&&/^\d+$/.test(o)&&(t=Math.max(t,Number(o)))}}return t}},It=(rt(),$);let f={size:"",version:1,zIndex:999,resizeInterval:500},n={theme:""};function dt(t){var e,t=t&&"default"!==t?t:"light";return n.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),i}function Ct(){return n.theme}function Rt(t){return t&&(t.zIndex&&It.setCurrent(t.zIndex),t.theme&&dt(t.theme),q().merge(f,t)),i}function At(t,e){return arguments.length?q().get(f,t,e):f}let e={},r={};function ht(t){return q().isArray(t)?t:t?[t]:[]}function Mt(t){return t&&Object.assign(r,t),i}function vt(t){return arguments.length?q().get(r,t):r}function Lt(t){return mt(vt(t),t)}function mt(t,e){return q().isFunction(t)?(0,H.h)("span",{},ht(t({name:e}))):(0,H.h)("i",{class:t})}function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t){t=((t,e)=>{if("object"!=gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=gt(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==gt(t)?t:t+""}function bt(t,e,n){(e=Nt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}let o={F2:"F2",F10:"F10",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",PROCESS:"Process",A:"A",X:"X",C:"C",V:"V",D:"D",F:"F",H:"H",M:"M",Y:"Y",Z:"Z",R:"R",P:"P"},u=($=q().browse(),{" ":"Spacebar",Apps:o.CONTEXT_MENU,Del:o.DELETE,Up:o.ARROW_UP,Down:o.ARROW_DOWN,Left:o.ARROW_LEFT,Right:o.ARROW_RIGHT}),c=$.firefox?"DOMMouseScroll":"mousewheel",a=[];function yt(n){let r=n.type===c;a.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class Ot{constructor(t,e,n){bt(this,"$event",void 0),bt(this,"type",""),bt(this,"key",""),bt(this,"code",""),(this.$event=t)&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code)&&(this.code=t.code),Object.assign(this,e),q().objectEach(n,(n,r)=>{if(q().isFunction(n)){let t=null,e=!1;Object.defineProperty(this,r,{get(){return e||(e=!0,t=n()),t}})}else this[r]=n})}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}let s=(t,e,n)=>(t instanceof Ot&&(t=t.$event),new Ot(t,e,n)),l={on(t,e,n){a.push({comp:t,type:e,cb:n})},off(e,n){q().remove(a,t=>t.comp===e&&t.type===n)},hasKey(t,e){return!(!e||(t=t.key,e=e.toLowerCase(),!t)||e!==t.toLowerCase()&&(!u[t]||u[t].toLowerCase()!==e))}},p=void($.isDoc&&($.msie||(window.addEventListener("copy",yt,!1),window.addEventListener("cut",yt,!1),window.addEventListener("paste",yt,!1)),document.addEventListener("scroll",yt,!0),document.addEventListener("keydown",yt,!1),document.addEventListener("contextmenu",yt,!1),window.addEventListener("mousedown",yt,!1),window.addEventListener("click",yt,!1),window.addEventListener("blur",yt,!1),window.addEventListener("resize",yt,!1),window.addEventListener(c,q().throttle(yt,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1})),B(8111),B(7588),B(3579)),d=[],k=500;function _t(){d.length&&(d.forEach(i=>{i.tarList.forEach(t=>{var{target:e,width:n,heighe:r}=t,o=e.clientWidth,e=e.clientHeight;(o&&n!==o||e&&r!==e)&&(t.width=o,t.heighe=e,setTimeout(i.callback))})}),kt())}function kt(){clearTimeout(p),p=setTimeout(_t,f.resizeInterval||k)}class Qt{constructor(t){bt(this,"tarList",[]),bt(this,"callback",void 0),this.callback=t}observe(e){var t;e&&(t=this.tarList,t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),d.length||kt(),d.some(t=>t===this)||d.push(this))}unobserve(e){q().remove(d,t=>t.tarList.some(t=>t.target===e))}disconnect(){q().remove(d,t=>t===this)}}let h={create(t){return new(window.ResizeObserver||Qt)(t)}},v=(0,H.reactive)({language:"",langMaps:{}}),m=!1,g={};function xt(t,e){var{langMaps:n,language:r}=v,o=f.i18n;return o?""+(o(t,e)||""):(m||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),m=!0),!e&&g[t]?g[t]:(o=q().toFormatString(q().get(n[r],t,t),e),e||(g[t]=o),o))}function Ft(t){var e=v.language,t=t||"zh-CN";return e!==t&&(v.language=t,g={}),i}function zt(t,e){return v.langMaps[t]=Object.assign({},(t=e)&&t.__esModule?t.default:t),i}function Dt(t){var e=v.langMaps;return!!e[t]}function Vt(){var t=v.language;return t}function wt(n,r){return function(t,e){t=`[vxe ${r||""}] `+xt(t,e);return console[n](t),t}}let b={create:wt,warn:wt("warn","v4.4.32"),err:wt("error","v4.4.32")},y={},x={mixin(t){return q().each(t,(t,e)=>{x.add(e,t)}),x},get(t){return y[t]||null},add(r,t){if(r&&t){let n=y[r];n?(q().each(t,(t,e)=>{q().eqNull(n[e])||n[e]===t||b.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):y[r]=t}return x},forEach(t){return q().objectEach(y,t),x},delete(t){return delete y[t],x}},w=(B(4423),class{constructor(){bt(this,"store",{})}mixin(t){return q().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];let r=q().keys(e);return q().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?q().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){q().objectEach(this.store,t)}}),E=new w,O=(Object.assign(E,{_name:"Validators"}),new class{constructor(){bt(this,"store",{})}mixin(t){return q().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];q().isFunction(t)&&(b.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});let r=q().keys(e);return q().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?q().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){q().objectEach(this.store,t)}}),S=(Object.assign(O,{_name:"Menus"}),new class{constructor(){bt(this,"store",{})}mixin(t){return q().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];q().isFunction(t)&&(b.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});let r=q().keys(e);return q().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?q().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){q().objectEach(this.store,t)}}),j=(Object.assign(S,{_name:"Formats"}),new class{constructor(){bt(this,"store",{})}mixin(t){return q().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];q().isFunction(t)&&(b.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});let r=q().keys(e);return q().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?q().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){q().objectEach(this.store,t)}}),T=(Object.assign(j,{_name:"Commands"}),{}),P={mixin(t){return q().each(t,(t,e)=>{P.add(e,t)}),P},get(t){return t&&T[t]||[]},add(e,n){n=(n=q().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=T[e];-1<(t=t||(T[e]=[])).indexOf(n)&&b.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return P},delete(t,n){var r=T[t];if(r){let e=(n=q().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?q().remove(r,t=>t===e):delete T[t]}}},I,C={text:"",html:""},R={getStore(){return C},setStore(t){Object.assign(C,t||{})},copy(t){let e=!1;try{var n=q().toValueString(t);r=n,I||((I=document.createElement("textarea")).id="$VxeCopy",(o=I.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(I)),I.value=r,I.select(),I.setSelectionRange(0,I.value.length),e=document.execCommand("copy"),I.blur(),C.text=n,C.html=""}catch(t){}var r,o;return e},getText(){return C.text||""}};function Et(t,e){let i=!0,u=!1;var c=e||f.permissionMethod;if(t&&c){i=!1;let r=!(u=!0),o=!1;var a=String(t).split("|");for(let n=0;n<a.length;n++){let t=!0,e=!1;var s=c({code:a[n]});if(q().isBoolean(s)?t=s:s&&(t=!!s.visible,e=!!s.disabled),e||o||(o=!0,u=e),t&&!r&&(r=!0,i=t),r&&o)break}}return{code:t,visible:i,disabled:u}}let A={getCheckInfo(t){return Et(t)},checkVisible(t){return Et(t).visible},checkDisable(t){return Et(t).disabled}},M={toString(t){return q().eqNull(t)?"":""+t},isEmpty(t){return null==t||""===t},getDefVal(t,e){return q().eqNull(t)?e:t}},L={buildClass(e,t){let n=[];if(e)for(let t=0;t<e.length;t++){var r=e[t];r&&n.push(""+r)}return q().each(t,(t,e)=>{t&&n.push(e)}),n.join(" ")}},F={getThumbSize(t,e,n){return e<=t?0:Math.max(20,Math.min(n*(t/e),n))},getThumbOffsetSize(t,e,n,r,o){n-=e;return n<=0||(e=r-o)<=0?0:Math.min(Math.max(t,0),n)/n*e},getScrollFromClick(t,e,n,r,o){r-=o,n-=e;return n<=0||r<=0?0:(e=t-o/2,(e=Math.min(Math.max(e,0),r))/r*n)},getScrollFromDrag(t,e,n,r,o,i){r-=n,n=o-i;return r<=0||n<=0?0:(o=t-e,(o=Math.min(Math.max(o,0),n))/n*r)}};function Ut(t){var e;return t&&(e=document.body,(t=t.parentElement)===e?document.documentElement:t)||null}function Wt(t){return(t&&q().isFunction(t)?t({}):t)||"body"}function Bt(t){t=Wt(t);return q().isString(t)?document.querySelector(t)||document.body:t}let z={updatePlacement(t,e,n){var{defaultTop:n,defaultLeft:r,placement:o,defaultPlacement:i,appendTo:u,teleportTo:c,marginSize:a,isMinWidth:s}=Object.assign({appendTo:"",teleportTo:!1,marginSize:18,isMinWidth:!0},n);let f="bottom",l="",p="",d=0;var h="";let v="";var m,g,b,y,x,w,E,O,S,j,T,P={};return e&&t&&(w=document.body,u=Ut(c?Bt(u):e))&&(m=t.offsetWidth,g=t.offsetHeight,b=e.offsetWidth,y=e.offsetHeight,S=u.getBoundingClientRect(),e=e.getBoundingClientRect(),T=t.getBoundingClientRect(),x=w.clientHeight,w=w.clientWidth,E=u.scrollLeft,u=u.scrollTop,O=S.left,S=S.top,j=T.left,T=T.top,h=t.offsetWidth,c?(d=(r||j-(b-m)/2)-E,l=(n||T+g)-u,"top"===o?(f="top",l=T-y):o||("top"===i?(f="top",(l=n?l:T-y)<a&&(f="bottom",l=T+g),l+y+a>x&&(f="top",l=T-y)):(l+y+a>x&&(f="top",l=T-y),l<a&&(f="bottom",l=T+g))),d+b+a>w&&(d-=d+b+a-w),d<a&&(d=a),l-=S,d-=O):("top"===o?(f="top",p=g):o||x<T+(l=g)+y+a&&a<T-g-y&&(f="top",l="",p=g),e.left+e.width+a>w&&(d=-(e.left+e.width+a-w))),q().isNumber(l)&&(P.top=l+"px"),q().isNumber(p)&&(P.bottom=p+"px"),q().isNumber(d)&&(P.left=d+"px"),s&&q().isNumber(h)&&(P.minWidth=h+"px"),d===j?m<=b&&(v=m/2):d<j&&(v=d+b>j+m?j-d+m/2:j-d+(b-(j-d))/2)),{top:l||0,bottom:p||0,left:d||0,arrowLeft:v||0,style:P,placement:f}},getWrapperElement:Ut,getAppendSelector:Wt,getAppendElement:Bt},D=new w;function Gt(t){let e=(0,H.inject)("xeSizeInfo",null);var n=(0,H.computed)(()=>t.size||(e?e.value:null));return(0,H.provide)("xeSizeInfo",n),{computeSize:n}}function Ht(t){return{computePermissionInfo:(0,H.computed)(()=>Et(t.permissionCode,t.permissionMethod))}}let V={useSize:Gt,usePermission:Ht},U=[];function $t(t,e){return t&&t.install&&-1===U.indexOf(t)&&(t.install(_,e),U.push(t)),_}let N={};function qt(t){return N[t]||null}function Xt(t){return!!N[t]}function Yt(t){t&&t.name&&(N[t.name]=t,N[q().kebabCase(t.name)]=t)}function Kt(){return(0,H.createCommentVNode)()}function Zt(t,e,n){if(t){var r,t=(""+t).match(/(\d+).(\d+).(\d+)/);if(t)return r=q().toNumber(t[1]),n?(t=q().toNumber(t[2]),e<=r&&n<=t):e<=r}return!1}let _=Object.assign(i,{renderEmptyElement:Kt,setTheme:dt,getTheme:Ct,setConfig:Rt,getConfig:At,setIcon:Mt,getIcon:vt,renderGlobalIcon:Lt,renderCustomIcon:mt,setLanguage:Ft,hasLanguage:Dt,getLanguage:Vt,setI18n:zt,getI18n:xt,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:x,validators:E,menus:O,formats:S,commands:j,interceptor:P,clipboard:R,log:b,permission:A,baseUtils:M,domUtils:L,scrollbarUtils:F,popperUtils:z,globalStore:e,hooks:D,component:Yt,getComponent:qt,hasComponent:Xt,useFns:V,getSlotVNs:ht,checkVersion:Zt,use:$t});dt();var Jt=_;return G}});
|
|
1
|
+
((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("xe-utils")):"function"==typeof define&&define.amd?define([,"xe-utils"],e):"object"==typeof exports?exports.VxeUI=e(require("vue"),require("xe-utils")):t.VxeUI=e(t.Vue,t.XEUtils)})("undefined"!=typeof self?self:this,function(jt,Tt){{var Pt={9274:function(t){t.exports=jt},8871:function(t){t.exports=Tt},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},6469:function(t,e,n){var r=n(8227),o=n(2360),n=n(4913).f,i=r("unscopables"),u=Array.prototype;void 0===u[i]&&n(u,i,{configurable:!0,value:o(null)}),t.exports=function(t){u[i][t]=!0}},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),u=n(8227)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=c(t),u))?e:a?i(t):"Object"===(e=i(t))&&o(t.callee)?"Arguments":e}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},2211:function(t,e,n){n=n(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4576),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw new e("Maximum allowed index exceeded");return t}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){n=n(4576).navigator,n=n&&n.userAgent;t.exports=n?String(n):""},9519:function(t,e,n){var r,o,i=n(4576),n=n(2839),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},6518:function(t,e,n){var s=n(4576),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),m=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!m(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4576),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),u=n(6269),c=n(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[r(t)]}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),u=n(6823),c=n(851),a=TypeError;t.exports=function(t,e){e=arguments.length<2?c(t):e;if(o(e))return i(r(e,t));throw new a(u(t)+" is not iterable")}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4576:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},397:function(t,e,n){n=n(7751);t.exports=n("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4576),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",m=a.TypeError,a=a.WeakMap,v=c||p.state?((i=p.state||(p.state=new a)).get=i.get,i.has=i.has,i.set=i.set,r=function(t,e){if(i.has(t))throw new m(h);return e.facade=t,i.set(t,e),e},o=function(t){return i.get(t)||{}},function(t){return i.has(t)}):(n[u=d("state")]=!0,r=function(t,e){if(l(t,u))throw new m(h);return e.facade=t,f(t,u,e),e},o=function(t){return l(t,u)?t[u]:{}},function(t){return l(t,u)});t.exports={set:r,get:o,has:v,enforce:function(t){return v(t)?o(t):r(t,{})},getterFor:function(e){return function(t){if(s(t)&&(t=o(t)).type===e)return t;throw new m("Incompatible receiver, "+e+" required")}}}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},2652:function(t,e,n){function g(t,e){this.stopped=t,this.result=e}var b=n(6080),y=n(9565),x=n(8551),w=n(6823),E=n(4209),O=n(6198),S=n(1625),j=n(81),T=n(851),P=n(9539),C=TypeError,I=g.prototype;t.exports=function(t,e,n){function r(t){var e=i;return i=void 0,e&&P(e,"normal"),new g(!0,t)}function o(t){return l?(x(t),h?m(t[0],t[1],r):m(t[0],t[1])):h?m(t,r):m(t)}var i,u,c,a,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=b(e,f);if(p)i=t.iterator;else if(d)i=t;else{if(!(n=T(t)))throw new C(w(t)+" is not iterable");if(E(n)){for(u=0,c=O(t);u<c;u++)if((a=o(t[u]))&&S(I,a))return a;return new g(!1)}i=j(t,n)}for(s=(p?t:i).next;!(v=y(s,i)).done;){var v=v.value;try{a=o(v)}catch(t){if(!i)throw t;P(i,"throw",t)}if("object"==typeof a&&a&&S(I,a))return a}return new g(!1)}},9539:function(t,e,n){var i=n(9565),u=n(8551),c=n(5966);t.exports=function(t,e,n){var r,o;u(t);try{if(!(r=c(t,"return"))){if("throw"===e)throw n;return n}r=i(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return u(r),n}},4549:function(t,e,n){var o=n(4576);t.exports=function(t,e){var n=o.Iterator,n=n&&n.prototype,n=n&&n[t],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(t){t instanceof e||(r=!1)}if(!r)return n}},7657:function(t,e,n){var r,o,i=n(9039),u=n(4901),c=n(34),a=n(2360),s=n(2787),f=n(6840),l=n(8227),n=n(6395),p=l("iterator"),l=!1;[].keys&&("next"in(o=[].keys())?(s=s(s(o)))!==Object.prototype&&(r=s):l=!0),!c(r)||i(function(){var t={};return r[p].call(t)!==t})?r={}:n&&(r=a(r)),u(r[p])||f(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),m=r("".replace),v=r([].join),g=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===h(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||a&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&u(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=f(t);return u(n,"source")||(n.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},2360:function(t,e,n){function r(){}function o(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}var i,u=n(8551),c=n(6801),a=n(8727),s=n(421),f=n(397),l=n(4055),n=n(6119),p=">",d="<",h="prototype",m="script",v=n("IE_PROTO"),g=function(t){return d+m+p+t+d+"/"+m+p},b=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}b="undefined"==typeof document||document.domain&&i?o(i):(t=l("iframe"),e="java"+m+":",t.style.display="none",f.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var t,e,n=a.length;n--;)delete b[h][a[n]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[h]=u(t),n=new r,r[h]=null,n[v]=t):n=b(),void 0===e?n:c.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),c=n(4913),a=n(8551),s=n(5397),f=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=f(e),i=o.length,u=0;u<i;)c.f(t,n=o[u++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),u=n(6119),n=n(2211),c=u("IE_PROTO"),a=Object,s=a.prototype;t.exports=n?a.getPrototypeOf:function(t){var e,t=i(t);return r(t,c)?t[c]:(e=t.constructor,o(e)&&t instanceof e?e.prototype:t instanceof a?s:null)}},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4576),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}},7040:function(t,e,n){n=n(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),n=n(9039);t.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(t,e,n){var r=n(4576),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),u=n(3392),c=n(4495),n=n(7040),a=r.Symbol,s=o("wks"),f=n?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(a,t)?a[t]:f("Symbol."+t)),s[t]}},4423:function(t,e,n){var r=n(6518),o=n(9617).includes,i=n(9039),n=n(6469),u=i(function(){return!Array(1).includes()}),i=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:u||i},{includes:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}}),n("includes")},4114:function(t,e,n){var r=n(6518),i=n(8981),u=n(6198),c=n(4527),a=n(6837);r({target:"Array",proto:!0,arity:1,forced:n(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!(()=>{try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}})()},{push:function(t){var e=i(this),n=u(e),r=arguments.length;a(n+r);for(var o=0;o<r;o++)e[n]=arguments[o],n++;return c(e,n),n}})},8111:function(t,e,n){function r(){if(c(this,v),f(this)===v)throw new x("Abstract class Iterator not directly constructable")}function o(e,t){g?l(v,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===v)throw new x("You can't redefine this property");h(this,e)?this[e]=t:p(this,e,t)}}):v[e]=t}var i=n(6518),u=n(4576),c=n(679),a=n(8551),s=n(4901),f=n(2787),l=n(2106),p=n(4659),d=n(9039),h=n(9297),m=n(8227),v=n(7657).IteratorPrototype,g=n(3724),n=n(6395),b="constructor",y="Iterator",m=m("toStringTag"),x=TypeError,w=u[y],u=n||!s(w)||w.prototype!==v||!d(function(){w({})});h(v,m)||o(m,y),!u&&h(v,b)&&v[b]!==Object||o(b,r),r.prototype=v,i({global:!0,constructor:!0,forced:u},{Iterator:r})},7588:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),u=n(9306),c=n(8551),a=n(1767),s=n(9539),f=n(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){c(this);try{u(e)}catch(t){s(this,"throw",t)}if(f)return o(f,this,e);var t=a(this),n=0;i(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},3579:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),u=n(9306),c=n(8551),a=n(1767),s=n(9539),f=n(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(n){c(this);try{u(n)}catch(t){s(this,"throw",t)}var t,r;return f?o(f,this,n):(t=a(this),i(t,function(t,e){if(n(t,r++))return e()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}})}},B={};function $(t){var e=B[t];return void 0!==e||(e=B[t]={exports:{}},Pt[t].call(e.exports,e,e.exports,$)),e.exports}$.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return $.d(e,{a:e}),e},$.d=function(t,e){for(var n in e)$.o(e,n)&&!$.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},$.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),$.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},$.p="";var G={};$.r(G),$.d(G,{GLOBAL_EVENT_KEYS:function(){return o},VxeCore:function(){return i},VxeUI:function(){return _},baseUtils:function(){return M},checkVersion:function(){return ee},clipboard:function(){return R},commands:function(){return j},component:function(){return Qt},coreVersion:function(){return t},createEvent:function(){return s},default:function(){return ne},domUtils:function(){return F},formats:function(){return S},getComponent:function(){return Zt},getConfig:function(){return Nt},getI18n:function(){return xt},getIcon:function(){return mt},getLanguage:function(){return Wt},getSlotVNs:function(){return ht},getTheme:function(){return At},globalEvents:function(){return l},globalResize:function(){return h},globalStore:function(){return e},handleCheckInfo:function(){return Et},hasComponent:function(){return Jt},hasLanguage:function(){return Ut},hooks:function(){return V},interceptor:function(){return P},log:function(){return b},menus:function(){return O},permission:function(){return A},popperUtils:function(){return D},renderCustomIcon:function(){return vt},renderEmptyElement:function(){return te},renderGlobalIcon:function(){return _t},renderer:function(){return x},scrollbarUtils:function(){return z},setConfig:function(){return Mt},setI18n:function(){return Vt},setIcon:function(){return Lt},setLanguage:function(){return Dt},setTheme:function(){return dt},use:function(){return Kt},useFns:function(){return U},usePermission:function(){return Yt},useSize:function(){return Xt},validators:function(){return E}}),"undefined"!=typeof window&&(q=(q=window.document.currentScript)&&q.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&($.p=q[1]),$(4114);let t="4.4.33",i={coreVersion:t,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};var H=$(9274),q=$(8871),X=$.n(q),Y=null,K=null,Z=null,J="z-index-manage",Q=null,tt="z-index-style",et={m:1e3,s:1e3};function nt(){return Y||"undefined"!=typeof document&&(Y=document),Y}function rt(){return K=Y&&!K?Y.body||Y.getElementsByTagName("body")[0]:K}function ot(){var t;Q||!(t=nt())||(Q=t.getElementById(tt))||((Q=t.createElement("style")).id=tt,t.getElementsByTagName("head")[0].appendChild(Q)),Q&&(Q.innerHTML=":root{--dom-main"+(t="-z-index")+":"+st()+";--dom-sub"+t+":"+pt()+"}")}function it(){var t,e;return Z||(t=nt())&&!(Z=t.getElementById(J))&&(e=rt())&&((Z=t.createElement("div")).id=J,Z.style.display="none",e.appendChild(Z),ct(et.m),lt(et.s)),Z}function ut(n){return function(t){var e;return t&&(t=Number(t),et[n]=t,e=it())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),ot(),et[n]}}var ct=ut("m");function at(r,o){return function(t){var e=it(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||et[r];return t?Number(t)<n?o():t:n}}var st=at("m",ft);function ft(){return ct(st()+1)}var lt=ut("s"),Ct=at("s",It);function pt(){return st()+Ct()}function It(){return lt(Ct()+1),pt()}var q={setCurrent:ct,getCurrent:st,getNext:ft,setSubCurrent:lt,getSubCurrent:pt,getSubNext:It,getMax:function(){var t=0;if(nt()){var e=rt();if(e)for(var n=e.getElementsByTagName("*"),r=0;r<n.length;r++){var o=n[r];o&&o.style&&1===o.nodeType&&(o=o.style.zIndex)&&/^\d+$/.test(o)&&(t=Math.max(t,Number(o)))}}return t}},Rt=(ot(),q);let f={size:"",version:1,zIndex:999,resizeInterval:500},n={theme:""};function dt(t){var e,t=t&&"default"!==t?t:"light";return n.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),i}function At(){return n.theme}function Mt(t){return t&&(t.zIndex&&Rt.setCurrent(t.zIndex),t.theme&&dt(t.theme),X().merge(f,t)),i}function Nt(t,e){return arguments.length?X().get(f,t,e):f}let e={},r={};function ht(t){return X().isArray(t)?t:t?[t]:[]}function Lt(t){return t&&Object.assign(r,t),i}function mt(t){return arguments.length?X().get(r,t):r}function _t(t){return vt(mt(t),t)}function vt(t,e){return X().isFunction(t)?(0,H.h)("span",{},ht(t({name:e}))):(0,H.h)("i",{class:t})}function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kt(t){t=((t,e)=>{if("object"!=gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=gt(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==gt(t)?t:t+""}function bt(t,e,n){(e=kt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}let o={F2:"F2",F10:"F10",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",PROCESS:"Process",A:"A",X:"X",C:"C",V:"V",D:"D",F:"F",H:"H",M:"M",Y:"Y",Z:"Z",R:"R",P:"P"},u=(q=X().browse(),{" ":"Spacebar",Apps:o.CONTEXT_MENU,Del:o.DELETE,Up:o.ARROW_UP,Down:o.ARROW_DOWN,Left:o.ARROW_LEFT,Right:o.ARROW_RIGHT}),c=q.firefox?"DOMMouseScroll":"mousewheel",a=[];function yt(n){let r=n.type===c;a.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class St{constructor(t,e,n){bt(this,"$event",void 0),bt(this,"type",""),bt(this,"key",""),bt(this,"code",""),(this.$event=t)&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code)&&(this.code=t.code),Object.assign(this,e),X().objectEach(n,(n,r)=>{if(X().isFunction(n)){let t=null,e=!1;Object.defineProperty(this,r,{get(){return e||(e=!0,t=n()),t}})}else this[r]=n})}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}let s=(t,e,n)=>(t instanceof St&&(t=t.$event),new St(t,e,n)),l={on(t,e,n){a.push({comp:t,type:e,cb:n})},off(e,n){X().remove(a,t=>t.comp===e&&t.type===n)},hasKey(t,e){return!(!e||(t=t.key,e=e.toLowerCase(),!t)||e!==t.toLowerCase()&&(!u[t]||u[t].toLowerCase()!==e))}},p=void(q.isDoc&&(q.msie||(window.addEventListener("copy",yt,!1),window.addEventListener("cut",yt,!1),window.addEventListener("paste",yt,!1)),document.addEventListener("scroll",yt,!0),document.addEventListener("keydown",yt,!1),document.addEventListener("contextmenu",yt,!1),window.addEventListener("mousedown",yt,!1),window.addEventListener("click",yt,!1),window.addEventListener("blur",yt,!1),window.addEventListener("resize",yt,!1),window.addEventListener(c,X().throttle(yt,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1})),$(8111),$(7588),$(3579)),d=[],k=500;function Ft(){d.length&&(d.forEach(i=>{i.tarList.forEach(t=>{var{target:e,width:n,heighe:r}=t,o=e.clientWidth,e=e.clientHeight;(o&&n!==o||e&&r!==e)&&(t.width=o,t.heighe=e,setTimeout(i.callback))})}),zt())}function zt(){clearTimeout(p),p=setTimeout(Ft,f.resizeInterval||k)}class re{constructor(t){bt(this,"tarList",[]),bt(this,"callback",void 0),this.callback=t}observe(e){var t;e&&(t=this.tarList,t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),d.length||zt(),d.some(t=>t===this)||d.push(this))}unobserve(e){X().remove(d,t=>t.tarList.some(t=>t.target===e))}disconnect(){X().remove(d,t=>t===this)}}let h={create(t){return new(window.ResizeObserver||re)(t)}},m=(0,H.reactive)({language:"",langMaps:{}}),v=!1,g={};function xt(t,e){var{langMaps:n,language:r}=m,o=f.i18n;return o?""+(o(t,e)||""):(v||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),v=!0),!e&&g[t]?g[t]:(o=X().toFormatString(X().get(n[r],t,t),e),e||(g[t]=o),o))}function Dt(t){var e=m.language,t=t||"zh-CN";return e!==t&&(m.language=t,g={}),i}function Vt(t,e){return m.langMaps[t]=Object.assign({},(t=e)&&t.__esModule?t.default:t),i}function Ut(t){var e=m.langMaps;return!!e[t]}function Wt(){var t=m.language;return t}function wt(n,r){return function(t,e){t=`[vxe ${r||""}] `+xt(t,e);return console[n](t),t}}let b={create:wt,warn:wt("warn","v4.4.33"),err:wt("error","v4.4.33")},y={},x={mixin(t){return X().each(t,(t,e)=>{x.add(e,t)}),x},get(t){return y[t]||null},add(r,t){if(r&&t){let n=y[r];n?(X().each(t,(t,e)=>{X().eqNull(n[e])||n[e]===t||b.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):y[r]=t}return x},forEach(t){return X().objectEach(y,t),x},delete(t){return delete y[t],x}},w=($(4423),class{constructor(){bt(this,"store",{})}mixin(t){return X().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];let r=X().keys(e);return X().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?X().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){X().objectEach(this.store,t)}}),E=new w,O=(Object.assign(E,{_name:"Validators"}),new class{constructor(){bt(this,"store",{})}mixin(t){return X().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];X().isFunction(t)&&(b.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});let r=X().keys(e);return X().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?X().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){X().objectEach(this.store,t)}}),S=(Object.assign(O,{_name:"Menus"}),new class{constructor(){bt(this,"store",{})}mixin(t){return X().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];X().isFunction(t)&&(b.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});let r=X().keys(e);return X().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?X().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){X().objectEach(this.store,t)}}),j=(Object.assign(S,{_name:"Formats"}),new class{constructor(){bt(this,"store",{})}mixin(t){return X().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];X().isFunction(t)&&(b.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});let r=X().keys(e);return X().each(t,(t,e)=>{r.includes(e)&&b.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?X().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){X().objectEach(this.store,t)}}),T=(Object.assign(j,{_name:"Commands"}),{}),P={mixin(t){return X().each(t,(t,e)=>{P.add(e,t)}),P},get(t){return t&&T[t]||[]},add(e,n){n=(n=X().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=T[e];-1<(t=t||(T[e]=[])).indexOf(n)&&b.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return P},delete(t,n){var r=T[t];if(r){let e=(n=X().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?X().remove(r,t=>t===e):delete T[t]}}},C,I={text:"",html:""},R={getStore(){return I},setStore(t){Object.assign(I,t||{})},copy(t){let e=!1;try{var n=X().toValueString(t);r=n,C||((C=document.createElement("textarea")).id="$VxeCopy",(o=C.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(C)),C.value=r,C.select(),C.setSelectionRange(0,C.value.length),e=document.execCommand("copy"),C.blur(),I.text=n,I.html=""}catch(t){}var r,o;return e},getText(){return I.text||""}};function Et(t,e){let i=!0,u=!1;var c=e||f.permissionMethod;if(t&&c){i=!1;let r=!(u=!0),o=!1;var a=String(t).split("|");for(let n=0;n<a.length;n++){let t=!0,e=!1;var s=c({code:a[n]});if(X().isBoolean(s)?t=s:s&&(t=!!s.visible,e=!!s.disabled),e||o||(o=!0,u=e),t&&!r&&(r=!0,i=t),r&&o)break}}return{code:t,visible:i,disabled:u}}let A={getCheckInfo(t){return Et(t)},checkVisible(t){return Et(t).visible},checkDisable(t){return Et(t).disabled}},M={toString(t){return X().eqNull(t)?"":""+t},isEmpty(t){return null==t||""===t},getDefVal(t,e){return X().eqNull(t)?e:t},isEnabled(t){return!(!t||!1===t.enabled)},hasEnableConf(t,e){return!(!e||(t?!1===e.enabled:!e.enabled))}},N={};function Bt(t){return N[t]||(N[t]=new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g")),N[t]}function Ot(t,e){return!!t&&(t.classList?t.classList.contains(e):!!(t.className&&t.className.match&&t.className.match(Bt(e))))}function $t(t,e){t&&Ot(t,e)&&(t.className=t.className.replace(Bt(e),""))}let F={isPx(t){return t&&/^\d+(\.\d+)?(px)?$/.test(t)},isScale(t){return t&&/^\d+(\.\d+)?%$/.test(t)},hasClass:Ot,removeClass:$t,addClass(t,e){t&&!Ot(t,e)&&($t(t,e),t.className=t.className+" "+e)},buildClass(e,t){let n=[];if(e)for(let t=0;t<e.length;t++){var r=e[t];r&&n.push(""+r)}return X().each(t,(t,e)=>{t&&n.push(e)}),n.join(" ")}},z={getThumbSize(t,e,n){return e<=t?0:Math.max(20,Math.min(n*(t/e),n))},getThumbOffsetSize(t,e,n,r,o){n-=e;return n<=0||(e=r-o)<=0?0:Math.min(Math.max(t,0),n)/n*e},getScrollFromClick(t,e,n,r,o){r-=o,n-=e;return n<=0||r<=0?0:(e=t-o/2,(e=Math.min(Math.max(e,0),r))/r*n)},getScrollFromDrag(t,e,n,r,o,i){r-=n,n=o-i;return r<=0||n<=0?0:(o=t-e,(o=Math.min(Math.max(o,0),n))/n*r)}};function Gt(t){var e;return t&&(e=document.body,(t=t.parentElement)===e?document.documentElement:t)||null}function Ht(t){return(t&&X().isFunction(t)?t({}):t)||"body"}function qt(t){t=Ht(t);return X().isString(t)?document.querySelector(t)||document.body:t}let D={updatePlacement(t,e,n){var{defaultTop:n,defaultLeft:r,placement:o,defaultPlacement:i,appendTo:u,teleportTo:c,marginSize:a,isMinWidth:s}=Object.assign({appendTo:"",teleportTo:!1,marginSize:18,isMinWidth:!0},n);let f="bottom",l="",p="",d=0;var h="";let m="";var v,g,b,y,x,w,E,O,S,j,T,P={};return e&&t&&(w=document.body,u=Gt(c?qt(u):e))&&(v=t.offsetWidth,g=t.offsetHeight,b=e.offsetWidth,y=e.offsetHeight,S=u.getBoundingClientRect(),e=e.getBoundingClientRect(),T=t.getBoundingClientRect(),x=w.clientHeight,w=w.clientWidth,E=u.scrollLeft,u=u.scrollTop,O=S.left,S=S.top,j=T.left,T=T.top,h=t.offsetWidth,c?(d=(r||j-(b-v)/2)-E,l=(n||T+g)-u,"top"===o?(f="top",l=T-y):o||("top"===i?(f="top",(l=n?l:T-y)<a&&(f="bottom",l=T+g),l+y+a>x&&(f="top",l=T-y)):(l+y+a>x&&(f="top",l=T-y),l<a&&(f="bottom",l=T+g))),d+b+a>w&&(d-=d+b+a-w),d<a&&(d=a),l-=S,d-=O):("top"===o?(f="top",p=g):o||x<T+(l=g)+y+a&&a<T-g-y&&(f="top",l="",p=g),e.left+e.width+a>w&&(d=-(e.left+e.width+a-w))),X().isNumber(l)&&(P.top=l+"px"),X().isNumber(p)&&(P.bottom=p+"px"),X().isNumber(d)&&(P.left=d+"px"),s&&X().isNumber(h)&&(P.minWidth=h+"px"),d===j?v<=b&&(m=v/2):d<j&&(m=d+b>j+v?j-d+v/2:j-d+(b-(j-d))/2)),{top:l||0,bottom:p||0,left:d||0,arrowLeft:m||0,style:P,placement:f}},getWrapperElement:Gt,getAppendSelector:Ht,getAppendElement:qt},V=new w;function Xt(t){let e=(0,H.inject)("xeSizeInfo",null);var n=(0,H.computed)(()=>t.size||(e?e.value:null));return(0,H.provide)("xeSizeInfo",n),{computeSize:n}}function Yt(t){return{computePermissionInfo:(0,H.computed)(()=>Et(t.permissionCode,t.permissionMethod))}}let U={useSize:Xt,usePermission:Yt},W=[];function Kt(t,e){return t&&t.install&&-1===W.indexOf(t)&&(t.install(_,e),W.push(t)),_}let L={};function Zt(t){return L[t]||null}function Jt(t){return!!L[t]}function Qt(t){t&&t.name&&(L[t.name]=t,L[X().kebabCase(t.name)]=t)}function te(){return(0,H.createCommentVNode)()}function ee(t,e,n){if(t){var r,t=(""+t).match(/(\d+).(\d+).(\d+)/);if(t)return r=X().toNumber(t[1]),n?(t=X().toNumber(t[2]),e<=r&&n<=t):e<=r}return!1}let _=Object.assign(i,{renderEmptyElement:te,setTheme:dt,getTheme:At,setConfig:Mt,getConfig:Nt,setIcon:Lt,getIcon:mt,renderGlobalIcon:_t,renderCustomIcon:vt,setLanguage:Dt,hasLanguage:Ut,getLanguage:Wt,setI18n:Vt,getI18n:xt,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:x,validators:E,menus:O,formats:S,commands:j,interceptor:P,clipboard:R,log:b,permission:A,baseUtils:M,domUtils:F,scrollbarUtils:z,popperUtils:D,globalStore:e,hooks:V,component:Qt,getComponent:Zt,hasComponent:Jt,useFns:U,getSlotVNs:ht,checkVersion:ee,use:Kt});dt();var ne=_;return G}});
|
package/lib/src/base-utils.js
CHANGED
|
@@ -27,5 +27,20 @@ const baseUtils = exports.baseUtils = {
|
|
|
27
27
|
*/
|
|
28
28
|
getDefVal(value, defVal) {
|
|
29
29
|
return _xeUtils.default.eqNull(value) ? defVal : value;
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* 判断是否启用
|
|
33
|
+
*/
|
|
34
|
+
isEnabled(conf) {
|
|
35
|
+
return !!(conf && conf.enabled !== false);
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* 用于开关类型的配置项
|
|
39
|
+
* 局部启用规则:conf={}
|
|
40
|
+
* 局部禁用规则:conf={enabled:false}
|
|
41
|
+
* 全局默认启用规则:conf.enabled=true
|
|
42
|
+
*/
|
|
43
|
+
hasEnableConf(conf, opts) {
|
|
44
|
+
return !!(opts && (conf ? opts.enabled !== false : opts.enabled));
|
|
30
45
|
}
|
|
31
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseUtils=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let baseUtils=exports.baseUtils={toString(e){return _xeUtils.default.eqNull(e)?"":""+e},isEmpty(e){return null==e||""===e},getDefVal(e,t){return _xeUtils.default.eqNull(e)?t:e}};
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseUtils=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let baseUtils=exports.baseUtils={toString(e){return _xeUtils.default.eqNull(e)?"":""+e},isEmpty(e){return null==e||""===e},getDefVal(e,t){return _xeUtils.default.eqNull(e)?t:e},isEnabled(e){return!(!e||!1===e.enabled)},hasEnableConf(e,t){return!(!t||(e?!1===t.enabled:!t.enabled))}};
|
package/lib/src/core.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.coreVersion = exports.VxeCore = void 0;
|
|
7
|
-
const coreVersion = exports.coreVersion = "4.4.
|
|
7
|
+
const coreVersion = exports.coreVersion = "4.4.33";
|
|
8
8
|
const VxeCore = exports.VxeCore = {
|
|
9
9
|
coreVersion,
|
|
10
10
|
uiVersion: '',
|
package/lib/src/core.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.coreVersion=exports.VxeCore=void 0;let coreVersion=exports.coreVersion="4.4.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.coreVersion=exports.VxeCore=void 0;let coreVersion=exports.coreVersion="4.4.33",VxeCore=exports.VxeCore={coreVersion:coreVersion,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};
|
package/lib/src/dom-utils.js
CHANGED
|
@@ -6,7 +6,63 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.domUtils = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const reClsMap = {};
|
|
10
|
+
function getClsRE(cls) {
|
|
11
|
+
if (!reClsMap[cls]) {
|
|
12
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
13
|
+
}
|
|
14
|
+
return reClsMap[cls];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 判断元素是否包含 class
|
|
18
|
+
*/
|
|
19
|
+
function hasClass(elem, cls) {
|
|
20
|
+
if (elem) {
|
|
21
|
+
if (elem.classList) {
|
|
22
|
+
return elem.classList.contains(cls);
|
|
23
|
+
}
|
|
24
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 给元素删除 class
|
|
30
|
+
*/
|
|
31
|
+
function removeClass(elem, cls) {
|
|
32
|
+
if (elem && hasClass(elem, cls)) {
|
|
33
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
9
36
|
const domUtils = exports.domUtils = {
|
|
37
|
+
/**
|
|
38
|
+
* 判断是否像素px单位 '100px' | 100
|
|
39
|
+
*/
|
|
40
|
+
isPx(val) {
|
|
41
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* 判断是否百分比%单位 '100%'
|
|
45
|
+
*/
|
|
46
|
+
isScale(val) {
|
|
47
|
+
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* 判断元素是否包含 class
|
|
51
|
+
*/
|
|
52
|
+
hasClass,
|
|
53
|
+
/**
|
|
54
|
+
* 给元素删除 class
|
|
55
|
+
*/
|
|
56
|
+
removeClass,
|
|
57
|
+
/**
|
|
58
|
+
* 给元素增加 class
|
|
59
|
+
*/
|
|
60
|
+
addClass(elem, cls) {
|
|
61
|
+
if (elem && !hasClass(elem, cls)) {
|
|
62
|
+
removeClass(elem, cls);
|
|
63
|
+
elem.className = elem.className + ' ' + cls;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
10
66
|
/**
|
|
11
67
|
* 生成 className
|
|
12
68
|
*/
|
package/lib/src/dom-utils.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.domUtils=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.domUtils=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(s){return s&&s.__esModule?s:{default:s}}let reClsMap={};function getClsRE(s){return reClsMap[s]||(reClsMap[s]=new RegExp(`(?:^|\\s)${s}(?!\\S)`,"g")),reClsMap[s]}function hasClass(s,e){return!!s&&(s.classList?s.classList.contains(e):!!(s.className&&s.className.match&&s.className.match(getClsRE(e))))}function removeClass(s,e){s&&hasClass(s,e)&&(s.className=s.className.replace(getClsRE(e),""))}let domUtils=exports.domUtils={isPx(s){return s&&/^\d+(\.\d+)?(px)?$/.test(s)},isScale(s){return s&&/^\d+(\.\d+)?%$/.test(s)},hasClass:hasClass,removeClass:removeClass,addClass(s,e){s&&!hasClass(s,e)&&(removeClass(s,e),s.className=s.className+" "+e)},buildClass(e,s){let a=[];if(e)for(let s=0;s<e.length;s++){var l=e[s];l&&a.push(""+l)}return _xeUtils.default.each(s,(s,e)=>{s&&a.push(e)}),a.join(" ")}};
|
package/lib/src/log.js
CHANGED
package/lib/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=void 0;var _i18n=require("./i18n");function createLog(o,n){return function(e,r){e=`[vxe ${n||""}] `+(0,_i18n.getI18n)(e,r);return console[o](e),e}}let version="4.4.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=void 0;var _i18n=require("./i18n");function createLog(o,n){return function(e,r){e=`[vxe ${n||""}] `+(0,_i18n.getI18n)(e,r);return console[o](e),e}}let version="4.4.33",log=exports.log={create:createLog,warn:createLog("warn","v"+version),err:createLog("error","v"+version)};
|
package/package.json
CHANGED
|
@@ -24,5 +24,20 @@ export const baseUtils: VxeBaseUtils = {
|
|
|
24
24
|
*/
|
|
25
25
|
getDefVal (value, defVal) {
|
|
26
26
|
return XEUtils.eqNull(value) ? defVal : value
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* 判断是否启用
|
|
30
|
+
*/
|
|
31
|
+
isEnabled (conf: any) {
|
|
32
|
+
return !!(conf && conf.enabled !== false)
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* 用于开关类型的配置项
|
|
36
|
+
* 局部启用规则:conf={}
|
|
37
|
+
* 局部禁用规则:conf={enabled:false}
|
|
38
|
+
* 全局默认启用规则:conf.enabled=true
|
|
39
|
+
*/
|
|
40
|
+
hasEnableConf (conf, opts) {
|
|
41
|
+
return !!(opts && (conf ? opts.enabled !== false : opts.enabled))
|
|
27
42
|
}
|
|
28
43
|
}
|
|
@@ -3,7 +3,67 @@ import XEUtils from 'xe-utils'
|
|
|
3
3
|
|
|
4
4
|
import { VxeDomUtils } from '../../types'
|
|
5
5
|
|
|
6
|
+
const reClsMap: { [key: string]: any } = {}
|
|
7
|
+
|
|
8
|
+
function getClsRE (cls: any) {
|
|
9
|
+
if (!reClsMap[cls]) {
|
|
10
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g')
|
|
11
|
+
}
|
|
12
|
+
return reClsMap[cls]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 判断元素是否包含 class
|
|
17
|
+
*/
|
|
18
|
+
function hasClass (elem: any, cls: any) {
|
|
19
|
+
if (elem) {
|
|
20
|
+
if (elem.classList) {
|
|
21
|
+
return elem.classList.contains(cls)
|
|
22
|
+
}
|
|
23
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)))
|
|
24
|
+
}
|
|
25
|
+
return false
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 给元素删除 class
|
|
30
|
+
*/
|
|
31
|
+
function removeClass (elem: any, cls: any) {
|
|
32
|
+
if (elem && hasClass(elem, cls)) {
|
|
33
|
+
elem.className = elem.className.replace(getClsRE(cls), '')
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
6
37
|
export const domUtils: VxeDomUtils = {
|
|
38
|
+
/**
|
|
39
|
+
* 判断是否像素px单位 '100px' | 100
|
|
40
|
+
*/
|
|
41
|
+
isPx (val: any) {
|
|
42
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val)
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* 判断是否百分比%单位 '100%'
|
|
46
|
+
*/
|
|
47
|
+
isScale (val: any) {
|
|
48
|
+
return val && /^\d+(\.\d+)?%$/.test(val)
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* 判断元素是否包含 class
|
|
52
|
+
*/
|
|
53
|
+
hasClass,
|
|
54
|
+
/**
|
|
55
|
+
* 给元素删除 class
|
|
56
|
+
*/
|
|
57
|
+
removeClass,
|
|
58
|
+
/**
|
|
59
|
+
* 给元素增加 class
|
|
60
|
+
*/
|
|
61
|
+
addClass (elem: any, cls: string) {
|
|
62
|
+
if (elem && !hasClass(elem, cls)) {
|
|
63
|
+
removeClass(elem, cls)
|
|
64
|
+
elem.className = elem.className + ' ' + cls
|
|
65
|
+
}
|
|
66
|
+
},
|
|
7
67
|
/**
|
|
8
68
|
* 生成 className
|
|
9
69
|
*/
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
type Nullish = null | undefined
|
|
3
3
|
export type VxeBaseEmptyValue = '' | Nullish
|
|
4
4
|
|
|
5
|
+
interface EnableConfOptions {
|
|
6
|
+
enabled?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
export interface VxeBaseUtils {
|
|
6
10
|
/**
|
|
7
11
|
* 转成字符串
|
|
@@ -19,4 +23,18 @@ export interface VxeBaseUtils {
|
|
|
19
23
|
* @param defVal
|
|
20
24
|
*/
|
|
21
25
|
getDefVal<T = any, D = any>(value: T, defVal: D): T | D
|
|
26
|
+
/**
|
|
27
|
+
* 判断配置项是否启用
|
|
28
|
+
* @param conf
|
|
29
|
+
*/
|
|
30
|
+
isEnabled(conf: EnableConfOptions): boolean
|
|
31
|
+
/**
|
|
32
|
+
* 用于判断开关类型的配置项
|
|
33
|
+
* 局部启用规则:conf={}
|
|
34
|
+
* 局部禁用规则:conf={enabled:false}
|
|
35
|
+
* 全局默认启用规则:conf.enabled=true
|
|
36
|
+
* @param conf
|
|
37
|
+
* @param opts
|
|
38
|
+
*/
|
|
39
|
+
hasEnableConf(conf: EnableConfOptions, opts: EnableConfOptions): boolean
|
|
22
40
|
}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
export interface VxeDomUtils {
|
|
3
|
+
/**
|
|
4
|
+
* 判断是否像素px单位 '100px' | 100
|
|
5
|
+
* @param val
|
|
6
|
+
*/
|
|
7
|
+
isPx(val: any): boolean
|
|
8
|
+
/**
|
|
9
|
+
* 判断是否百分比%单位 '100%'
|
|
10
|
+
* @param val
|
|
11
|
+
*/
|
|
12
|
+
isScale(val: any): boolean
|
|
13
|
+
/**
|
|
14
|
+
* 判断元素是否包含 class
|
|
15
|
+
* @param elem
|
|
16
|
+
* @param cls
|
|
17
|
+
*/
|
|
18
|
+
hasClass(elem: HTMLElement, cls: string): boolean
|
|
19
|
+
/**
|
|
20
|
+
* 给元素删除 class
|
|
21
|
+
* @param elem
|
|
22
|
+
* @param cls
|
|
23
|
+
*/
|
|
24
|
+
removeClass(elem: HTMLElement, cls: string): void
|
|
25
|
+
/**
|
|
26
|
+
* 给元素增加 class
|
|
27
|
+
* @param elem
|
|
28
|
+
* @param cls
|
|
29
|
+
*/
|
|
30
|
+
addClass(elem: HTMLElement, cls: string): void
|
|
3
31
|
/**
|
|
4
32
|
* 生成 className
|
|
5
33
|
* @param staticClassNames
|