@vxe-ui/core 4.0.19 → 4.0.21
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/es/index.esm.js +94 -1
- package/es/src/config.js +26 -0
- package/es/src/core.js +4 -146
- package/es/src/event.js +18 -0
- package/es/src/i18n.js +10 -1
- package/es/src/icon.js +12 -0
- package/es/src/log.js +1 -1
- package/es/src/theme.js +16 -0
- package/lib/index.common.js +287 -5
- package/lib/index.umd.js +107 -81
- package/lib/index.umd.min.js +1 -1
- package/lib/src/config.js +34 -0
- package/lib/src/config.min.js +1 -0
- package/lib/src/core.js +6 -328
- package/lib/src/core.min.js +1 -1
- package/lib/src/event.js +18 -0
- package/lib/src/event.min.js +1 -1
- package/lib/src/i18n.js +12 -1
- package/lib/src/i18n.min.js +1 -1
- package/lib/src/icon.js +20 -0
- package/lib/src/icon.min.js +1 -0
- package/lib/src/log.js +1 -1
- package/lib/src/log.min.js +1 -1
- package/lib/src/theme.js +23 -0
- package/lib/src/theme.min.js +1 -0
- package/package.json +1 -1
- package/packages/index.ts +114 -1
- package/packages/src/config.ts +30 -0
- package/packages/src/core.ts +5 -175
- package/packages/src/event.ts +8 -0
- package/packages/src/i18n.ts +12 -1
- package/packages/src/icon.ts +16 -0
- package/packages/src/theme.ts +20 -0
- package/types/core/index.d.ts +9 -1
package/lib/index.umd.js
CHANGED
|
@@ -1670,6 +1670,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1670
1670
|
// EXPORTS
|
|
1671
1671
|
__webpack_require__.d(__webpack_exports__, {
|
|
1672
1672
|
GLOBAL_EVENT_KEYS: function() { return /* reexport */ GLOBAL_EVENT_KEYS; },
|
|
1673
|
+
VxeCore: function() { return /* reexport */ VxeCore; },
|
|
1673
1674
|
VxeUI: function() { return /* reexport */ VxeUI; },
|
|
1674
1675
|
clipboard: function() { return /* reexport */ clipboard; },
|
|
1675
1676
|
commands: function() { return /* reexport */ commands; },
|
|
@@ -1727,6 +1728,15 @@ if (typeof window !== 'undefined') {
|
|
|
1727
1728
|
|
|
1728
1729
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
1729
1730
|
var es_array_push = __webpack_require__(4114);
|
|
1731
|
+
;// CONCATENATED MODULE: ./packages/src/core.ts
|
|
1732
|
+
const coreVersion = "4.0.21";
|
|
1733
|
+
const VxeCore = {
|
|
1734
|
+
coreVersion,
|
|
1735
|
+
uiVersion: '',
|
|
1736
|
+
tableVersion: ''
|
|
1737
|
+
};
|
|
1738
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1739
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
1730
1740
|
// EXTERNAL MODULE: external {"root":"XEUtils","commonjs":"xe-utils","commonjs2":"xe-utils","amd":"xe-utils"}
|
|
1731
1741
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_ = __webpack_require__(8871);
|
|
1732
1742
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_);
|
|
@@ -1840,8 +1850,6 @@ var DomZIndex = {
|
|
|
1840
1850
|
getMax: getDomMaxZIndex
|
|
1841
1851
|
};
|
|
1842
1852
|
/* harmony default export */ var index_esm = (DomZIndex);
|
|
1843
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1844
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
1845
1853
|
;// CONCATENATED MODULE: ./packages/src/configStore.ts
|
|
1846
1854
|
const globalConfigStore = {
|
|
1847
1855
|
size: '',
|
|
@@ -1849,20 +1857,71 @@ const globalConfigStore = {
|
|
|
1849
1857
|
zIndex: 999,
|
|
1850
1858
|
resizeInterval: 500
|
|
1851
1859
|
};
|
|
1852
|
-
;// CONCATENATED MODULE: ./packages/src/dataStore.ts
|
|
1853
|
-
const globalStore = {};
|
|
1854
|
-
;// CONCATENATED MODULE: ./packages/src/iconStore.ts
|
|
1855
|
-
const iconConfigStore = {};
|
|
1856
1860
|
;// CONCATENATED MODULE: ./packages/src/themeStore.ts
|
|
1857
1861
|
const themeConfigStore = {
|
|
1858
1862
|
theme: ''
|
|
1859
1863
|
};
|
|
1860
|
-
;// CONCATENATED MODULE: ./packages/src/
|
|
1864
|
+
;// CONCATENATED MODULE: ./packages/src/theme.ts
|
|
1861
1865
|
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
+
|
|
1867
|
+
function setTheme(name) {
|
|
1868
|
+
const theme = !name || name === 'default' ? 'light' : name;
|
|
1869
|
+
themeConfigStore.theme = theme;
|
|
1870
|
+
if (typeof document !== 'undefined') {
|
|
1871
|
+
const documentElement = document.documentElement;
|
|
1872
|
+
if (documentElement) {
|
|
1873
|
+
documentElement.setAttribute('data-vxe-ui-theme', theme);
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
return VxeCore;
|
|
1877
|
+
}
|
|
1878
|
+
function getTheme() {
|
|
1879
|
+
return themeConfigStore.theme;
|
|
1880
|
+
}
|
|
1881
|
+
;// CONCATENATED MODULE: ./packages/src/config.ts
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* 全局参数设置
|
|
1889
|
+
*/
|
|
1890
|
+
function setConfig(options) {
|
|
1891
|
+
if (options) {
|
|
1892
|
+
if (options.zIndex) {
|
|
1893
|
+
index_esm.setCurrent(options.zIndex);
|
|
1894
|
+
}
|
|
1895
|
+
if (options.theme) {
|
|
1896
|
+
setTheme(options.theme);
|
|
1897
|
+
}
|
|
1898
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(globalConfigStore, options);
|
|
1899
|
+
}
|
|
1900
|
+
return VxeCore;
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* 获取全局参数
|
|
1904
|
+
*/
|
|
1905
|
+
function getConfig(key, defaultValue) {
|
|
1906
|
+
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
1907
|
+
}
|
|
1908
|
+
;// CONCATENATED MODULE: ./packages/src/dataStore.ts
|
|
1909
|
+
const globalStore = {};
|
|
1910
|
+
;// CONCATENATED MODULE: ./packages/src/iconStore.ts
|
|
1911
|
+
const iconConfigStore = {};
|
|
1912
|
+
;// CONCATENATED MODULE: ./packages/src/icon.ts
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
function setIcon(options) {
|
|
1917
|
+
if (options) {
|
|
1918
|
+
Object.assign(iconConfigStore, options);
|
|
1919
|
+
}
|
|
1920
|
+
return VxeCore;
|
|
1921
|
+
}
|
|
1922
|
+
function getIcon(key) {
|
|
1923
|
+
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
1924
|
+
}
|
|
1866
1925
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1867
1926
|
function _typeof(o) {
|
|
1868
1927
|
"@babel/helpers - typeof";
|
|
@@ -1963,7 +2022,15 @@ function triggerEvent(evnt) {
|
|
|
1963
2022
|
class VxeComponentEvent {
|
|
1964
2023
|
constructor(evnt, params1, params2) {
|
|
1965
2024
|
_defineProperty(this, "$event", void 0);
|
|
2025
|
+
_defineProperty(this, "key", '');
|
|
2026
|
+
_defineProperty(this, "code", '');
|
|
1966
2027
|
this.$event = evnt;
|
|
2028
|
+
if (evnt.key) {
|
|
2029
|
+
this.key = evnt.key;
|
|
2030
|
+
}
|
|
2031
|
+
if (evnt.code) {
|
|
2032
|
+
this.code = evnt.code;
|
|
2033
|
+
}
|
|
1967
2034
|
Object.assign(this, params1, params2);
|
|
1968
2035
|
}
|
|
1969
2036
|
stopPropagation() {
|
|
@@ -2102,10 +2169,17 @@ const globalResize = {
|
|
|
2102
2169
|
return new XEResizeObserver(callback);
|
|
2103
2170
|
}
|
|
2104
2171
|
};
|
|
2172
|
+
;// CONCATENATED MODULE: ./packages/src/i18nStore.ts
|
|
2173
|
+
|
|
2174
|
+
const i18nConfigStore = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
2175
|
+
language: '',
|
|
2176
|
+
langMaps: {}
|
|
2177
|
+
});
|
|
2105
2178
|
;// CONCATENATED MODULE: ./packages/src/i18n.ts
|
|
2106
2179
|
|
|
2107
2180
|
|
|
2108
2181
|
|
|
2182
|
+
|
|
2109
2183
|
let checkInstall = false;
|
|
2110
2184
|
function getI18n(key, args) {
|
|
2111
2185
|
const {
|
|
@@ -2120,12 +2194,20 @@ function getI18n(key, args) {
|
|
|
2120
2194
|
}
|
|
2121
2195
|
if (!checkInstall) {
|
|
2122
2196
|
if (!langMaps[language]) {
|
|
2123
|
-
console.error(
|
|
2197
|
+
console.error(`[vxe core] 语言包未安装。Language not installed. https://${VxeCore.uiVersion ? 'vxeui.com' : 'vxetable.cn'}/#/start/i18n`);
|
|
2124
2198
|
}
|
|
2125
2199
|
checkInstall = true;
|
|
2126
2200
|
}
|
|
2127
2201
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(langMaps[language], key, key), args);
|
|
2128
2202
|
}
|
|
2203
|
+
function setLanguage(locale) {
|
|
2204
|
+
i18nConfigStore.language = locale || 'zh-CN';
|
|
2205
|
+
return VxeCore;
|
|
2206
|
+
}
|
|
2207
|
+
function setI18n(locale, data) {
|
|
2208
|
+
i18nConfigStore.langMaps[locale] = Object.assign({}, data);
|
|
2209
|
+
return VxeCore;
|
|
2210
|
+
}
|
|
2129
2211
|
function hasLanguage(language) {
|
|
2130
2212
|
const {
|
|
2131
2213
|
langMaps
|
|
@@ -2147,7 +2229,7 @@ function createLog(type, name) {
|
|
|
2147
2229
|
return msg;
|
|
2148
2230
|
};
|
|
2149
2231
|
}
|
|
2150
|
-
const version = "4.0.
|
|
2232
|
+
const version = "4.0.21";
|
|
2151
2233
|
const log = {
|
|
2152
2234
|
create: createLog,
|
|
2153
2235
|
warn: createLog('warn', `v${version}`),
|
|
@@ -2617,9 +2699,7 @@ const useFns = {
|
|
|
2617
2699
|
useSize,
|
|
2618
2700
|
usePermission
|
|
2619
2701
|
};
|
|
2620
|
-
;// CONCATENATED MODULE: ./packages/
|
|
2621
|
-
|
|
2622
|
-
|
|
2702
|
+
;// CONCATENATED MODULE: ./packages/index.ts
|
|
2623
2703
|
|
|
2624
2704
|
|
|
2625
2705
|
|
|
@@ -2641,59 +2721,6 @@ const useFns = {
|
|
|
2641
2721
|
|
|
2642
2722
|
|
|
2643
2723
|
|
|
2644
|
-
function setTheme(name) {
|
|
2645
|
-
const theme = !name || name === 'default' ? 'light' : name;
|
|
2646
|
-
themeConfigStore.theme = theme;
|
|
2647
|
-
if (typeof document !== 'undefined') {
|
|
2648
|
-
const documentElement = document.documentElement;
|
|
2649
|
-
if (documentElement) {
|
|
2650
|
-
documentElement.setAttribute('data-vxe-ui-theme', theme);
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
return VxeUI;
|
|
2654
|
-
}
|
|
2655
|
-
function getTheme() {
|
|
2656
|
-
return themeConfigStore.theme;
|
|
2657
|
-
}
|
|
2658
|
-
function setLanguage(locale) {
|
|
2659
|
-
i18nConfigStore.language = locale || 'zh-CN';
|
|
2660
|
-
return VxeUI;
|
|
2661
|
-
}
|
|
2662
|
-
function setI18n(locale, data) {
|
|
2663
|
-
i18nConfigStore.langMaps[locale] = Object.assign({}, data);
|
|
2664
|
-
return VxeUI;
|
|
2665
|
-
}
|
|
2666
|
-
/**
|
|
2667
|
-
* 全局参数设置
|
|
2668
|
-
*/
|
|
2669
|
-
function setConfig(options) {
|
|
2670
|
-
if (options) {
|
|
2671
|
-
if (options.zIndex) {
|
|
2672
|
-
index_esm.setCurrent(options.zIndex);
|
|
2673
|
-
}
|
|
2674
|
-
if (options.theme) {
|
|
2675
|
-
setTheme(options.theme);
|
|
2676
|
-
}
|
|
2677
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(globalConfigStore, options);
|
|
2678
|
-
}
|
|
2679
|
-
return VxeUI;
|
|
2680
|
-
}
|
|
2681
|
-
/**
|
|
2682
|
-
* 获取全局参数
|
|
2683
|
-
*/
|
|
2684
|
-
function getConfig(key, defaultValue) {
|
|
2685
|
-
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
2686
|
-
}
|
|
2687
|
-
function setIcon(options) {
|
|
2688
|
-
if (options) {
|
|
2689
|
-
Object.assign(iconConfigStore, options);
|
|
2690
|
-
}
|
|
2691
|
-
return VxeUI;
|
|
2692
|
-
}
|
|
2693
|
-
function getIcon(key) {
|
|
2694
|
-
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
2695
|
-
}
|
|
2696
|
-
const coreVersion = "4.0.19";
|
|
2697
2724
|
const installedPlugins = [];
|
|
2698
2725
|
function use(Plugin, options) {
|
|
2699
2726
|
if (Plugin && Plugin.install) {
|
|
@@ -2716,19 +2743,18 @@ function component(comp) {
|
|
|
2716
2743
|
function renderEmptyElement() {
|
|
2717
2744
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
2718
2745
|
}
|
|
2719
|
-
const VxeUI = {
|
|
2720
|
-
coreVersion,
|
|
2746
|
+
const VxeUI = Object.assign(VxeCore, {
|
|
2721
2747
|
renderEmptyElement,
|
|
2722
|
-
setTheme,
|
|
2723
|
-
getTheme,
|
|
2724
|
-
setConfig,
|
|
2748
|
+
setTheme: setTheme,
|
|
2749
|
+
getTheme: getTheme,
|
|
2750
|
+
setConfig: setConfig,
|
|
2725
2751
|
getConfig: getConfig,
|
|
2726
|
-
setIcon,
|
|
2752
|
+
setIcon: setIcon,
|
|
2727
2753
|
getIcon: getIcon,
|
|
2728
|
-
setLanguage,
|
|
2754
|
+
setLanguage: setLanguage,
|
|
2729
2755
|
hasLanguage: hasLanguage,
|
|
2730
2756
|
getLanguage: getLanguage,
|
|
2731
|
-
setI18n,
|
|
2757
|
+
setI18n: setI18n,
|
|
2732
2758
|
getI18n: getI18n,
|
|
2733
2759
|
globalEvents: globalEvents,
|
|
2734
2760
|
GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS,
|
|
@@ -2749,7 +2775,7 @@ const VxeUI = {
|
|
|
2749
2775
|
getComponent,
|
|
2750
2776
|
useFns: useFns,
|
|
2751
2777
|
use
|
|
2752
|
-
};
|
|
2778
|
+
});
|
|
2753
2779
|
setTheme();
|
|
2754
2780
|
|
|
2755
2781
|
|
|
@@ -2766,11 +2792,11 @@ setTheme();
|
|
|
2766
2792
|
|
|
2767
2793
|
|
|
2768
2794
|
|
|
2769
|
-
/* harmony default export */ var core = (VxeUI);
|
|
2770
|
-
;// CONCATENATED MODULE: ./packages/index.ts
|
|
2771
2795
|
|
|
2772
2796
|
|
|
2773
|
-
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
/* harmony default export */ var packages_0 = (VxeUI);
|
|
2774
2800
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
2775
2801
|
|
|
2776
2802
|
|
package/lib/index.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(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(It,Lt){return function(){"use strict";var i={9274:function(t){t.exports=It},8871:function(t){t.exports=Lt},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")}},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}},4576:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},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))}}},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}}},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(4475),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(4475),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 e("Maximum allowed index exceeded");return t}},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,n){var r,o,i=n(4475),n=n(9392),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},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,e,n){var s=n(4475),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}}},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}},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(4475),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}},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)}},4475: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={}},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(4576),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(4475),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,g=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:g,enforce:function(t){return g(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")}}}},4376:function(t,e,n){var r=n(4576);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))}},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),g=r([].join),m=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),m&&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=g(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)}},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},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}},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(4475),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/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(7388),o=n(9039),i=n(4475).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+""}},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..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(4475),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4475),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]}},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)})||!function(){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}})}},u={};function r(t){var e=u[t];return void 0!==e||(e=u[t]={exports:{}},i[t].call(e.exports,e,e.exports,r)),e.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.p="";var e={};{r.r(e),r.d(e,{GLOBAL_EVENT_KEYS:function(){return j},VxeUI:function(){return F},clipboard:function(){return Et},commands:function(){return _},component:function(){return lt},coreVersion:function(){return Pt},createEvent:function(){return mt},default:function(){return dt},formats:function(){return R},getComponent:function(){return ft},getConfig:function(){return ut},getI18n:function(){return g},getIcon:function(){return at},getLanguage:function(){return Q},getTheme:function(){return nt},globalEvents:function(){return bt},globalResize:function(){return wt},globalStore:function(){return w},handleCheckInfo:function(){return b},hasLanguage:function(){return J},hooks:function(){return St},interceptor:function(){return N},log:function(){return T},menus:function(){return A},permission:function(){return Ot},renderEmptyElement:function(){return pt},renderer:function(){return L},setConfig:function(){return it},setI18n:function(){return ot},setIcon:function(){return ct},setLanguage:function(){return rt},setTheme:function(){return y},use:function(){return st},useFns:function(){return jt},usePermission:function(){return et},useSize:function(){return tt},validators:function(){return M}}),"undefined"!=typeof window&&(n=(n=window.document.currentScript)&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]),r(4114);var n=r(8871),f=r.n(n),o=null,D="z-index-manage",c={m:1e3,s:1e3};function V(){return"undefined"!=typeof document}function W(){return o||!V()||(o=document.getElementById(D))||((o=document.createElement("div")).id=D,o.style.display="none",document.body.appendChild(o),a(c.m),l(c.s)),o}function U(n){return function(t){var e;return t&&(t=Number(t),c[n]=t,e=W())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),c[n]}}var a=U("m");function B(r,o){return function(t){var e=W(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||c[r];return t?Number(t)<n?o():t:n}}var s=B("m",$);function $(){return a(s()+1)}var l=U("s"),G=B("s",X);function q(){return s()+G()}function X(){return l(G()+1),q()}var K={setCurrent:a,getCurrent:s,getNext:$,setSubCurrent:l,getSubCurrent:q,getSubNext:X,getMax:function(){var t=0;if(V())for(var e=document.body.getElementsByTagName("*"),n=0;n<e.length;n++){var r=e[n];r&&r.style&&1===r.nodeType&&(r=r.style.zIndex)&&/^\d+$/.test(r)&&(t=Math.max(t,Number(r)))}return t}},p=r(9274);const x={size:"",version:1,zIndex:999,resizeInterval:500},w={},E={},O={theme:""},S=(0,p.reactive)({language:"",langMaps:{}});function d(t){return(d="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 H(t){t=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=d(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==d(t)?t:t+""}function h(t,e,n){(e=H(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}const j={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",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",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},ht=(n=f().browse(),{" ":"Spacebar",Apps:j.CONTEXT_MENU,Del:j.DELETE,Up:j.ARROW_UP,Down:j.ARROW_DOWN,Left:j.ARROW_LEFT,Right:j.ARROW_RIGHT}),vt=n.firefox?"DOMMouseScroll":"mousewheel",P=[];function v(n){const r=n.type===vt;P.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class gt{constructor(t,e,n){h(this,"$event",void 0),this.$event=t,Object.assign(this,e,n)}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}const mt=(t,e,n)=>new gt(t,e,n),bt={on(t,e,n){P.push({comp:t,type:e,cb:n})},off(e,n){f().remove(P,t=>t.comp===e&&t.type===n)},hasKey(t,e){t=t.key;return e=e.toLowerCase(),!(!t||e!==t.toLowerCase()&&(!ht[t]||ht[t].toLowerCase()!==e))}};n.isDoc&&(n.msie||(window.addEventListener("copy",v,!1),window.addEventListener("cut",v,!1),window.addEventListener("paste",v,!1)),document.addEventListener("keydown",v,!1),document.addEventListener("contextmenu",v,!1),window.addEventListener("mousedown",v,!1),window.addEventListener("blur",v,!1),window.addEventListener("resize",v,!1),window.addEventListener(vt,f().throttle(v,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let t;const C=[],yt=500;function Y(){C.length&&(C.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))})}),Z())}function Z(){clearTimeout(t),t=setTimeout(Y,x.resizeInterval||yt)}class xt{constructor(t){h(this,"tarList",[]),h(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}),C.length||Z(),C.some(t=>t===this)||C.push(this))}unobserve(e){f().remove(C,t=>t.tarList.some(t=>t.target===e))}disconnect(){f().remove(C,t=>t===this)}}const wt={create(t){return new(window.ResizeObserver||xt)(t)}};let i=!1;function g(t,e){var{langMaps:n,language:r}=S,o=x["i18n"];return o?""+(o(t,e)||""):(i||(n[r]||console.error("[vxe] Language not installed. https://vxeui.com/#/start/i18n"),i=!0),f().toFormatString(f().get(n[r],t,t),e))}function J(t){var e=S["langMaps"];return!!e[t]}function Q(){var t=S["language"];return t}function m(n,r){return function(t,e){t=`[vxe ${r||""}] `+g(t,e);return console[n](t),t}}const T={create:m,warn:m("warn","v4.0.19"),err:m("error","v4.0.19")},I={},L={mixin(t){return f().each(t,(t,e)=>L.add(e,t)),L},get(t){return I[t]||null},add(n,t){if(n&&t){const r=I[n];r?(f().each(t,(t,e)=>{f().eqNull(r[e])||r[e]===t||T.warn("vxe.error.coverProp",["Renderer."+n,e])}),Object.assign(r,t)):I[n]=t}return L},forEach(t){return f().objectEach(I,t),L},delete(t){return delete I[t],L}},M=new(n=class{constructor(){h(this,"store",{})}mixin(t){return f().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];{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),A=(Object.assign(M,{_name:"Validators"}),new class{constructor(){h(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),R=(Object.assign(A,{_name:"Menus"}),new class{constructor(){h(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),_=(Object.assign(R,{_name:"Formats"}),new class{constructor(){h(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),k=(Object.assign(_,{_name:"Commands"}),{}),N={mixin(t){return f().each(t,(t,e)=>{N.add(e,t)}),N},get(t){return k[t]||[]},add(e,n){n=(n=f().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=k[e];-1<(t=t||(k[e]=[])).indexOf(n)&&T.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return N},delete(t,e){var n=k[t];if(n){const r=(e=f().isFunction(e)?{tableInterceptorMethod:e}:e)?e.tableInterceptorMethod:null;r?f().remove(n,t=>t===r):delete k[t]}}};let u;const z={text:"",html:""},Et={getStore(){return z},setStore(t){Object.assign(z,t||{})},copy(t){let e=!1;try{var n=f().toValueString(t);r=n,u||((u=document.createElement("textarea")).id="$VxeCopy",(o=u.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(u)),u.value=r,u.select(),u.setSelectionRange(0,u.value.length),e=document.execCommand("copy"),u.blur(),z.text=n,z.html=""}catch(t){}var r,o;return e}};function b(t,e){let i=!0,u=!1;var c=e||x.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(f().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}}const Ot={getCheckInfo(t){return b(t)},checkVisible(t){return b(t).visible},checkDisable(t){return b(t).disabled}},St=new n;function tt(t){const e=(0,p.inject)("xeSizeInfo",null);var n=(0,p.computed)(()=>t.size||(e?e.value:null));return(0,p.provide)("xeSizeInfo",n),{computeSize:n}}function et(t){return{computePermissionInfo:(0,p.computed)(()=>b(t.permissionCode,t.permissionMethod))}}const jt={useSize:tt,usePermission:et};function y(t){var e,t=t&&"default"!==t?t:"light";return O.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),F}function nt(){return O.theme}function rt(t){return S.language=t||"zh-CN",F}function ot(t,e){return S.langMaps[t]=Object.assign({},e),F}function it(t){return t&&(t.zIndex&&K.setCurrent(t.zIndex),t.theme&&y(t.theme),f().merge(x,t)),F}function ut(t,e){return arguments.length?f().get(x,t,e):x}function ct(t){return t&&Object.assign(E,t),F}function at(t){return arguments.length?f().get(E,t):E}const Pt="4.0.19",Ct=[];function st(t,e){return t&&t.install&&-1===Ct.indexOf(t)&&(t.install(F,e),Ct.push(t)),F}const Tt={};function ft(t){return Tt[t]||null}function lt(t){t&&t.name&&(Tt[t.name]=t)}function pt(){return(0,p.createCommentVNode)()}const F={coreVersion:Pt,renderEmptyElement:pt,setTheme:y,getTheme:nt,setConfig:it,getConfig:ut,setIcon:ct,getIcon:at,setLanguage:rt,hasLanguage:J,getLanguage:Q,setI18n:ot,getI18n:g,globalEvents:bt,GLOBAL_EVENT_KEYS:j,createEvent:mt,globalResize:wt,renderer:L,validators:M,menus:A,formats:R,commands:_,interceptor:N,clipboard:Et,log:T,permission:Ot,globalStore:w,hooks:St,component:lt,getComponent:ft,useFns:jt,use:st};y();var dt=F}return e}()});
|
|
1
|
+
!function(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(Lt,Mt){return function(){"use strict";var i={9274:function(t){t.exports=Lt},8871:function(t){t.exports=Mt},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")}},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}},4576:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},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))}}},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}}},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(4475),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(4475),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 e("Maximum allowed index exceeded");return t}},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,n){var r,o,i=n(4475),n=n(9392),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},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,e,n){var s=n(4475),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}}},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}},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(4475),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}},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)}},4475: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={}},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(4576),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(4475),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,g=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:g,enforce:function(t){return g(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")}}}},4376:function(t,e,n){var r=n(4576);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))}},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),g=r([].join),m=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),m&&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=g(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)}},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},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}},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(4475),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/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(7388),o=n(9039),i=n(4475).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+""}},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..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(4475),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4475),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]}},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)})||!function(){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}})}},u={};function r(t){var e=u[t];return void 0!==e||(e=u[t]={exports:{}},i[t].call(e.exports,e,e.exports,r)),e.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.p="";var e={};{r.r(e),r.d(e,{GLOBAL_EVENT_KEYS:function(){return S},VxeCore:function(){return w},VxeUI:function(){return F},clipboard:function(){return St},commands:function(){return k},component:function(){return lt},coreVersion:function(){return x},createEvent:function(){return yt},default:function(){return dt},formats:function(){return R},getComponent:function(){return ft},getConfig:function(){return Z},getI18n:function(){return m},getIcon:function(){return Q},getLanguage:function(){return ut},getTheme:function(){return H},globalEvents:function(){return xt},globalResize:function(){return Ot},globalStore:function(){return vt},handleCheckInfo:function(){return y},hasLanguage:function(){return it},hooks:function(){return Pt},interceptor:function(){return N},log:function(){return T},menus:function(){return A},permission:function(){return jt},renderEmptyElement:function(){return pt},renderer:function(){return L},setConfig:function(){return Y},setI18n:function(){return ot},setIcon:function(){return J},setLanguage:function(){return rt},setTheme:function(){return d},use:function(){return st},useFns:function(){return Ct},usePermission:function(){return at},useSize:function(){return ct},validators:function(){return M}}),"undefined"!=typeof window&&(n=(n=window.document.currentScript)&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]),r(4114);const x="4.0.21",w={coreVersion:x,uiVersion:"",tableVersion:""};var o=r(9274),n=r(8871),f=r.n(n),c=null,D="z-index-manage",a={m:1e3,s:1e3};function V(){return"undefined"!=typeof document}function W(){return c||!V()||(c=document.getElementById(D))||((c=document.createElement("div")).id=D,c.style.display="none",document.body.appendChild(c),s(a.m),p(a.s)),c}function U(n){return function(t){var e;return t&&(t=Number(t),a[n]=t,e=W())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),a[n]}}var s=U("m");function B(r,o){return function(t){var e=W(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||a[r];return t?Number(t)<n?o():t:n}}var l=B("m",$);function $(){return s(l()+1)}var p=U("s"),G=B("s",X);function q(){return l()+G()}function X(){return p(G()+1),q()}var K={setCurrent:s,getCurrent:l,getNext:$,setSubCurrent:p,getSubCurrent:q,getSubNext:X,getMax:function(){var t=0;if(V())for(var e=document.body.getElementsByTagName("*"),n=0;n<e.length;n++){var r=e[n];r&&r.style&&1===r.nodeType&&(r=r.style.zIndex)&&/^\d+$/.test(r)&&(t=Math.max(t,Number(r)))}return t}};const E={size:"",version:1,zIndex:999,resizeInterval:500},ht={theme:""};function d(t){var e,t=t&&"default"!==t?t:"light";return ht.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),w}function H(){return ht.theme}function Y(t){return t&&(t.zIndex&&K.setCurrent(t.zIndex),t.theme&&d(t.theme),f().merge(E,t)),w}function Z(t,e){return arguments.length?f().get(E,t,e):E}const vt={},O={};function J(t){return t&&Object.assign(O,t),w}function Q(t){return arguments.length?f().get(O,t):O}function h(t){return(h="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 tt(t){t=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=h(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==h(t)?t:t+""}function v(t,e,n){(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}const S={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",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",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},gt=(n=f().browse(),{" ":"Spacebar",Apps:S.CONTEXT_MENU,Del:S.DELETE,Up:S.ARROW_UP,Down:S.ARROW_DOWN,Left:S.ARROW_LEFT,Right:S.ARROW_RIGHT}),mt=n.firefox?"DOMMouseScroll":"mousewheel",j=[];function g(n){const r=n.type===mt;j.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class bt{constructor(t,e,n){v(this,"$event",void 0),v(this,"key",""),v(this,"code",""),(this.$event=t).key&&(this.key=t.key),t.code&&(this.code=t.code),Object.assign(this,e,n)}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}const yt=(t,e,n)=>new bt(t,e,n),xt={on(t,e,n){j.push({comp:t,type:e,cb:n})},off(e,n){f().remove(j,t=>t.comp===e&&t.type===n)},hasKey(t,e){t=t.key;return e=e.toLowerCase(),!(!t||e!==t.toLowerCase()&&(!gt[t]||gt[t].toLowerCase()!==e))}};n.isDoc&&(n.msie||(window.addEventListener("copy",g,!1),window.addEventListener("cut",g,!1),window.addEventListener("paste",g,!1)),document.addEventListener("keydown",g,!1),document.addEventListener("contextmenu",g,!1),window.addEventListener("mousedown",g,!1),window.addEventListener("blur",g,!1),window.addEventListener("resize",g,!1),window.addEventListener(mt,f().throttle(g,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let t;const P=[],wt=500;function et(){P.length&&(P.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))})}),nt())}function nt(){clearTimeout(t),t=setTimeout(et,E.resizeInterval||wt)}class Et{constructor(t){v(this,"tarList",[]),v(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}),P.length||nt(),P.some(t=>t===this)||P.push(this))}unobserve(e){f().remove(P,t=>t.tarList.some(t=>t.target===e))}disconnect(){f().remove(P,t=>t===this)}}const Ot={create(t){return new(window.ResizeObserver||Et)(t)}},C=(0,o.reactive)({language:"",langMaps:{}});let i=!1;function m(t,e){var{langMaps:n,language:r}=C,o=E["i18n"];return o?""+(o(t,e)||""):(i||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${w.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),i=!0),f().toFormatString(f().get(n[r],t,t),e))}function rt(t){return C.language=t||"zh-CN",w}function ot(t,e){return C.langMaps[t]=Object.assign({},e),w}function it(t){var e=C["langMaps"];return!!e[t]}function ut(){var t=C["language"];return t}function b(n,r){return function(t,e){t=`[vxe ${r||""}] `+m(t,e);return console[n](t),t}}const T={create:b,warn:b("warn","v4.0.21"),err:b("error","v4.0.21")},I={},L={mixin(t){return f().each(t,(t,e)=>L.add(e,t)),L},get(t){return I[t]||null},add(n,t){if(n&&t){const r=I[n];r?(f().each(t,(t,e)=>{f().eqNull(r[e])||r[e]===t||T.warn("vxe.error.coverProp",["Renderer."+n,e])}),Object.assign(r,t)):I[n]=t}return L},forEach(t){return f().objectEach(I,t),L},delete(t){return delete I[t],L}},M=new(n=class{constructor(){v(this,"store",{})}mixin(t){return f().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];{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),A=(Object.assign(M,{_name:"Validators"}),new class{constructor(){v(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),R=(Object.assign(A,{_name:"Menus"}),new class{constructor(){v(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),k=(Object.assign(R,{_name:"Formats"}),new class{constructor(){v(this,"store",{})}mixin(t){return f().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];f().isFunction(t)&&(T.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&T.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),_=(Object.assign(k,{_name:"Commands"}),{}),N={mixin(t){return f().each(t,(t,e)=>{N.add(e,t)}),N},get(t){return _[t]||[]},add(e,n){n=(n=f().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=_[e];-1<(t=t||(_[e]=[])).indexOf(n)&&T.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return N},delete(t,e){var n=_[t];if(n){const r=(e=f().isFunction(e)?{tableInterceptorMethod:e}:e)?e.tableInterceptorMethod:null;r?f().remove(n,t=>t===r):delete _[t]}}};let u;const z={text:"",html:""},St={getStore(){return z},setStore(t){Object.assign(z,t||{})},copy(t){let e=!1;try{var n=f().toValueString(t);r=n,u||((u=document.createElement("textarea")).id="$VxeCopy",(o=u.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(u)),u.value=r,u.select(),u.setSelectionRange(0,u.value.length),e=document.execCommand("copy"),u.blur(),z.text=n,z.html=""}catch(t){}var r,o;return e}};function y(t,e){let i=!0,u=!1;var c=e||E.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(f().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}}const jt={getCheckInfo(t){return y(t)},checkVisible(t){return y(t).visible},checkDisable(t){return y(t).disabled}},Pt=new n;function ct(t){const e=(0,o.inject)("xeSizeInfo",null);var n=(0,o.computed)(()=>t.size||(e?e.value:null));return(0,o.provide)("xeSizeInfo",n),{computeSize:n}}function at(t){return{computePermissionInfo:(0,o.computed)(()=>y(t.permissionCode,t.permissionMethod))}}const Ct={useSize:ct,usePermission:at},Tt=[];function st(t,e){return t&&t.install&&-1===Tt.indexOf(t)&&(t.install(F,e),Tt.push(t)),F}const It={};function ft(t){return It[t]||null}function lt(t){t&&t.name&&(It[t.name]=t)}function pt(){return(0,o.createCommentVNode)()}const F=Object.assign(w,{renderEmptyElement:pt,setTheme:d,getTheme:H,setConfig:Y,getConfig:Z,setIcon:J,getIcon:Q,setLanguage:rt,hasLanguage:it,getLanguage:ut,setI18n:ot,getI18n:m,globalEvents:xt,GLOBAL_EVENT_KEYS:S,createEvent:yt,globalResize:Ot,renderer:L,validators:M,menus:A,formats:R,commands:k,interceptor:N,clipboard:St,log:T,permission:jt,globalStore:vt,hooks:Pt,component:lt,getComponent:ft,useFns:Ct,use:st});d();var dt=F}return e}()});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getConfig = getConfig;
|
|
7
|
+
exports.setConfig = setConfig;
|
|
8
|
+
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
9
|
+
var _domZindex = _interopRequireDefault(require("dom-zindex"));
|
|
10
|
+
var _core = require("./core");
|
|
11
|
+
var _configStore = require("./configStore");
|
|
12
|
+
var _theme = require("./theme");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* 全局参数设置
|
|
16
|
+
*/
|
|
17
|
+
function setConfig(options) {
|
|
18
|
+
if (options) {
|
|
19
|
+
if (options.zIndex) {
|
|
20
|
+
_domZindex.default.setCurrent(options.zIndex);
|
|
21
|
+
}
|
|
22
|
+
if (options.theme) {
|
|
23
|
+
(0, _theme.setTheme)(options.theme);
|
|
24
|
+
}
|
|
25
|
+
_xeUtils.default.merge(_configStore.globalConfigStore, options);
|
|
26
|
+
}
|
|
27
|
+
return _core.VxeCore;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 获取全局参数
|
|
31
|
+
*/
|
|
32
|
+
function getConfig(key, defaultValue) {
|
|
33
|
+
return arguments.length ? _xeUtils.default.get(_configStore.globalConfigStore, key, defaultValue) : _configStore.globalConfigStore;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getConfig=getConfig,exports.setConfig=setConfig;var _xeUtils=_interopRequireDefault(require("xe-utils")),_domZindex=_interopRequireDefault(require("dom-zindex")),_core=require("./core"),_configStore=require("./configStore"),_theme=require("./theme");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function setConfig(e){return e&&(e.zIndex&&_domZindex.default.setCurrent(e.zIndex),e.theme&&(0,_theme.setTheme)(e.theme),_xeUtils.default.merge(_configStore.globalConfigStore,e)),_core.VxeCore}function getConfig(e,t){return arguments.length?_xeUtils.default.get(_configStore.globalConfigStore,e,t):_configStore.globalConfigStore}
|