@vxe-ui/core 3.0.16 → 3.0.17
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 +91 -1
- package/es/src/config.js +26 -0
- package/es/src/core.js +4 -146
- package/es/src/i18n.js +13 -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 +276 -5
- package/lib/index.umd.js +109 -91
- 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 -322
- package/lib/src/core.min.js +1 -1
- package/lib/src/i18n.js +17 -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 +112 -1
- package/packages/src/config.ts +30 -0
- package/packages/src/core.ts +5 -175
- package/packages/src/i18n.ts +15 -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
|
@@ -1673,6 +1673,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1673
1673
|
// EXPORTS
|
|
1674
1674
|
__webpack_require__.d(__webpack_exports__, {
|
|
1675
1675
|
GLOBAL_EVENT_KEYS: function() { return /* reexport */ GLOBAL_EVENT_KEYS; },
|
|
1676
|
+
VxeCore: function() { return /* reexport */ VxeCore; },
|
|
1676
1677
|
VxeUI: function() { return /* reexport */ VxeUI; },
|
|
1677
1678
|
clipboard: function() { return /* reexport */ clipboard; },
|
|
1678
1679
|
commands: function() { return /* reexport */ commands; },
|
|
@@ -1729,6 +1730,13 @@ if (typeof window !== 'undefined') {
|
|
|
1729
1730
|
|
|
1730
1731
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
1731
1732
|
var es_array_push = __webpack_require__(4114);
|
|
1733
|
+
;// CONCATENATED MODULE: ./packages/src/core.ts
|
|
1734
|
+
const coreVersion = "3.0.17";
|
|
1735
|
+
const VxeCore = {
|
|
1736
|
+
coreVersion,
|
|
1737
|
+
uiVersion: '',
|
|
1738
|
+
tableVersion: ''
|
|
1739
|
+
};
|
|
1732
1740
|
// EXTERNAL MODULE: external {"root":"XEUtils","commonjs":"xe-utils","commonjs2":"xe-utils","amd":"xe-utils"}
|
|
1733
1741
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_ = __webpack_require__(8871);
|
|
1734
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_);
|
|
@@ -1874,28 +1882,71 @@ const globalConfigStore = {
|
|
|
1874
1882
|
zIndex: 999,
|
|
1875
1883
|
resizeInterval: 500
|
|
1876
1884
|
};
|
|
1877
|
-
;// CONCATENATED MODULE: ./packages/src/dataStore.ts
|
|
1878
|
-
const globalStore = {};
|
|
1879
|
-
;// CONCATENATED MODULE: ./packages/src/iconStore.ts
|
|
1880
|
-
const iconConfigStore = {};
|
|
1881
1885
|
;// CONCATENATED MODULE: ./packages/src/themeStore.ts
|
|
1882
1886
|
const themeConfigStore = {
|
|
1883
1887
|
theme: ''
|
|
1884
1888
|
};
|
|
1885
|
-
|
|
1886
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
1887
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
1888
|
-
;// CONCATENATED MODULE: ./packages/src/i18nStore.ts
|
|
1889
|
+
;// CONCATENATED MODULE: ./packages/src/theme.ts
|
|
1889
1890
|
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1891
|
+
|
|
1892
|
+
function setTheme(name) {
|
|
1893
|
+
const theme = !name || name === 'default' ? 'light' : name;
|
|
1894
|
+
themeConfigStore.theme = theme;
|
|
1895
|
+
if (typeof document !== 'undefined') {
|
|
1896
|
+
const documentElement = document.documentElement;
|
|
1897
|
+
if (documentElement) {
|
|
1898
|
+
documentElement.setAttribute('data-vxe-ui-theme', theme);
|
|
1899
|
+
}
|
|
1896
1900
|
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1901
|
+
return VxeCore;
|
|
1902
|
+
}
|
|
1903
|
+
function getTheme() {
|
|
1904
|
+
return themeConfigStore.theme;
|
|
1905
|
+
}
|
|
1906
|
+
;// CONCATENATED MODULE: ./packages/src/config.ts
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* 全局参数设置
|
|
1914
|
+
*/
|
|
1915
|
+
function setConfig(options) {
|
|
1916
|
+
if (options) {
|
|
1917
|
+
if (options.zIndex) {
|
|
1918
|
+
index_esm.setCurrent(options.zIndex);
|
|
1919
|
+
}
|
|
1920
|
+
if (options.theme) {
|
|
1921
|
+
setTheme(options.theme);
|
|
1922
|
+
}
|
|
1923
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(globalConfigStore, options);
|
|
1924
|
+
}
|
|
1925
|
+
return VxeCore;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* 获取全局参数
|
|
1929
|
+
*/
|
|
1930
|
+
function getConfig(key, defaultValue) {
|
|
1931
|
+
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
1932
|
+
}
|
|
1933
|
+
;// CONCATENATED MODULE: ./packages/src/dataStore.ts
|
|
1934
|
+
const globalStore = {};
|
|
1935
|
+
;// CONCATENATED MODULE: ./packages/src/iconStore.ts
|
|
1936
|
+
const iconConfigStore = {};
|
|
1937
|
+
;// CONCATENATED MODULE: ./packages/src/icon.ts
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
function setIcon(options) {
|
|
1942
|
+
if (options) {
|
|
1943
|
+
Object.assign(iconConfigStore, options);
|
|
1944
|
+
}
|
|
1945
|
+
return VxeCore;
|
|
1946
|
+
}
|
|
1947
|
+
function getIcon(key) {
|
|
1948
|
+
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
1949
|
+
}
|
|
1899
1950
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1900
1951
|
function _typeof(o) {
|
|
1901
1952
|
"@babel/helpers - typeof";
|
|
@@ -2135,10 +2186,25 @@ const globalResize = {
|
|
|
2135
2186
|
return new XEResizeObserver(callback);
|
|
2136
2187
|
}
|
|
2137
2188
|
};
|
|
2189
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
2190
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
2191
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
2192
|
+
;// CONCATENATED MODULE: ./packages/src/i18nStore.ts
|
|
2193
|
+
|
|
2194
|
+
const I18nStore = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
2195
|
+
data() {
|
|
2196
|
+
return {
|
|
2197
|
+
language: '',
|
|
2198
|
+
langMaps: {}
|
|
2199
|
+
};
|
|
2200
|
+
}
|
|
2201
|
+
});
|
|
2202
|
+
const i18nConfigStore = new I18nStore();
|
|
2138
2203
|
;// CONCATENATED MODULE: ./packages/src/i18n.ts
|
|
2139
2204
|
|
|
2140
2205
|
|
|
2141
2206
|
|
|
2207
|
+
|
|
2142
2208
|
let checkInstall = false;
|
|
2143
2209
|
function getI18n(key, args) {
|
|
2144
2210
|
const {
|
|
@@ -2153,12 +2219,25 @@ function getI18n(key, args) {
|
|
|
2153
2219
|
}
|
|
2154
2220
|
if (!checkInstall) {
|
|
2155
2221
|
if (!langMaps[language]) {
|
|
2156
|
-
console.error(
|
|
2222
|
+
console.error(`[vxe core] 语言包未安装。Language not installed. https://${VxeCore.uiVersion ? 'vxeui.com' : 'vxetable.cn'}/#/start/i18n`);
|
|
2157
2223
|
}
|
|
2158
2224
|
checkInstall = true;
|
|
2159
2225
|
}
|
|
2160
2226
|
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);
|
|
2161
2227
|
}
|
|
2228
|
+
function setLanguage(locale) {
|
|
2229
|
+
i18nConfigStore.language = locale || 'zh-CN';
|
|
2230
|
+
return VxeCore;
|
|
2231
|
+
}
|
|
2232
|
+
function setI18n(locale, data) {
|
|
2233
|
+
const {
|
|
2234
|
+
langMaps
|
|
2235
|
+
} = i18nConfigStore;
|
|
2236
|
+
i18nConfigStore.langMaps = Object.assign({}, langMaps, {
|
|
2237
|
+
[locale]: Object.assign({}, data)
|
|
2238
|
+
});
|
|
2239
|
+
return VxeCore;
|
|
2240
|
+
}
|
|
2162
2241
|
function hasLanguage(language) {
|
|
2163
2242
|
const {
|
|
2164
2243
|
langMaps
|
|
@@ -2180,7 +2259,7 @@ function createLog(type, name) {
|
|
|
2180
2259
|
return msg;
|
|
2181
2260
|
};
|
|
2182
2261
|
}
|
|
2183
|
-
const version = "3.0.
|
|
2262
|
+
const version = "3.0.17";
|
|
2184
2263
|
const log = {
|
|
2185
2264
|
create: createLog,
|
|
2186
2265
|
warn: createLog('warn', `v${version}`),
|
|
@@ -2658,9 +2737,7 @@ const globalMixins = {
|
|
|
2658
2737
|
sizeMixin,
|
|
2659
2738
|
permissionMixin
|
|
2660
2739
|
};
|
|
2661
|
-
;// CONCATENATED MODULE: ./packages/
|
|
2662
|
-
|
|
2663
|
-
|
|
2740
|
+
;// CONCATENATED MODULE: ./packages/index.ts
|
|
2664
2741
|
|
|
2665
2742
|
|
|
2666
2743
|
|
|
@@ -2680,64 +2757,6 @@ const globalMixins = {
|
|
|
2680
2757
|
|
|
2681
2758
|
|
|
2682
2759
|
|
|
2683
|
-
function setTheme(name) {
|
|
2684
|
-
const theme = !name || name === 'default' ? 'light' : name;
|
|
2685
|
-
themeConfigStore.theme = theme;
|
|
2686
|
-
if (typeof document !== 'undefined') {
|
|
2687
|
-
const documentElement = document.documentElement;
|
|
2688
|
-
if (documentElement) {
|
|
2689
|
-
documentElement.setAttribute('data-vxe-ui-theme', theme);
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
return VxeUI;
|
|
2693
|
-
}
|
|
2694
|
-
function getTheme() {
|
|
2695
|
-
return themeConfigStore.theme;
|
|
2696
|
-
}
|
|
2697
|
-
function setLanguage(locale) {
|
|
2698
|
-
i18nConfigStore.language = locale || 'zh-CN';
|
|
2699
|
-
return VxeUI;
|
|
2700
|
-
}
|
|
2701
|
-
function setI18n(locale, data) {
|
|
2702
|
-
const {
|
|
2703
|
-
langMaps
|
|
2704
|
-
} = i18nConfigStore;
|
|
2705
|
-
i18nConfigStore.langMaps = Object.assign({}, langMaps, {
|
|
2706
|
-
[locale]: Object.assign({}, data)
|
|
2707
|
-
});
|
|
2708
|
-
return VxeUI;
|
|
2709
|
-
}
|
|
2710
|
-
/**
|
|
2711
|
-
* 全局参数设置
|
|
2712
|
-
*/
|
|
2713
|
-
function setConfig(options) {
|
|
2714
|
-
if (options) {
|
|
2715
|
-
if (options.zIndex) {
|
|
2716
|
-
index_esm.setCurrent(options.zIndex);
|
|
2717
|
-
}
|
|
2718
|
-
if (options.theme) {
|
|
2719
|
-
setTheme(options.theme);
|
|
2720
|
-
}
|
|
2721
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(globalConfigStore, options);
|
|
2722
|
-
}
|
|
2723
|
-
return VxeUI;
|
|
2724
|
-
}
|
|
2725
|
-
/**
|
|
2726
|
-
* 获取全局参数
|
|
2727
|
-
*/
|
|
2728
|
-
function getConfig(key, defaultValue) {
|
|
2729
|
-
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
2730
|
-
}
|
|
2731
|
-
function setIcon(options) {
|
|
2732
|
-
if (options) {
|
|
2733
|
-
Object.assign(iconConfigStore, options);
|
|
2734
|
-
}
|
|
2735
|
-
return VxeUI;
|
|
2736
|
-
}
|
|
2737
|
-
function getIcon(key) {
|
|
2738
|
-
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
2739
|
-
}
|
|
2740
|
-
const coreVersion = "3.0.16";
|
|
2741
2760
|
const installedPlugins = [];
|
|
2742
2761
|
function use(Plugin, options) {
|
|
2743
2762
|
if (Plugin && Plugin.install) {
|
|
@@ -2763,19 +2782,18 @@ function renderEmptyElement(_vm) {
|
|
|
2763
2782
|
} = _vm;
|
|
2764
2783
|
return _e();
|
|
2765
2784
|
}
|
|
2766
|
-
const VxeUI = {
|
|
2767
|
-
coreVersion,
|
|
2785
|
+
const VxeUI = Object.assign(VxeCore, {
|
|
2768
2786
|
renderEmptyElement,
|
|
2769
|
-
setTheme,
|
|
2770
|
-
getTheme,
|
|
2771
|
-
setConfig,
|
|
2787
|
+
setTheme: setTheme,
|
|
2788
|
+
getTheme: getTheme,
|
|
2789
|
+
setConfig: setConfig,
|
|
2772
2790
|
getConfig: getConfig,
|
|
2773
|
-
setIcon,
|
|
2791
|
+
setIcon: setIcon,
|
|
2774
2792
|
getIcon: getIcon,
|
|
2775
|
-
setLanguage,
|
|
2793
|
+
setLanguage: setLanguage,
|
|
2776
2794
|
hasLanguage: hasLanguage,
|
|
2777
2795
|
getLanguage: getLanguage,
|
|
2778
|
-
setI18n,
|
|
2796
|
+
setI18n: setI18n,
|
|
2779
2797
|
getI18n: getI18n,
|
|
2780
2798
|
globalEvents: globalEvents,
|
|
2781
2799
|
GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS,
|
|
@@ -2795,7 +2813,7 @@ const VxeUI = {
|
|
|
2795
2813
|
getComponent,
|
|
2796
2814
|
globalMixins: globalMixins,
|
|
2797
2815
|
use
|
|
2798
|
-
};
|
|
2816
|
+
});
|
|
2799
2817
|
setTheme();
|
|
2800
2818
|
|
|
2801
2819
|
|
|
@@ -2811,11 +2829,11 @@ setTheme();
|
|
|
2811
2829
|
|
|
2812
2830
|
|
|
2813
2831
|
|
|
2814
|
-
/* harmony default export */ var core = (VxeUI);
|
|
2815
|
-
;// CONCATENATED MODULE: ./packages/index.ts
|
|
2816
2832
|
|
|
2817
2833
|
|
|
2818
|
-
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
/* harmony default export */ var packages_0 = (VxeUI);
|
|
2819
2837
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
2820
2838
|
|
|
2821
2839
|
|
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(wt,Et){{var Ot={9274:function(t){t.exports=wt},8871:function(t){t.exports=Et},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}},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)}},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(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 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}}},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(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}},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={}},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,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(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))}},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(4576),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.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(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+""}},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(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]}},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}})}},D={};function W(t){var e=D[t];return void 0!==e||(e=D[t]={exports:{}},Ot[t].call(e.exports,e,e.exports,W)),e.exports}W.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return W.d(e,{a:e}),e},W.d=function(t,e){for(var n in e)W.o(e,n)&&!W.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},W.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),W.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},W.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},W.p="";var V={},B=(W.r(V),W.d(V,{GLOBAL_EVENT_KEYS:function(){return o},VxeUI:function(){return _},clipboard:function(){return M},commands:function(){return E},component:function(){return At},coreVersion:function(){return A},createEvent:function(){return s},default:function(){return zt},formats:function(){return w},getComponent:function(){return Lt},getConfig:function(){return Mt},getI18n:function(){return lt},getIcon:function(){return Ct},getLanguage:function(){return dt},getTheme:function(){return mt},globalEvents:function(){return l},globalMixins:function(){return L},globalResize:function(){return h},globalStore:function(){return t},handleCheckInfo:function(){return vt},hasLanguage:function(){return pt},interceptor:function(){return S},log:function(){return g},menus:function(){return x},permission:function(){return T},permissionMixin:function(){return I},renderEmptyElement:function(){return Rt},renderer:function(){return b},setConfig:function(){return xt},setI18n:function(){return yt},setIcon:function(){return Tt},setLanguage:function(){return bt},setTheme:function(){return gt},sizeMixin:function(){return C},use:function(){return It},validators:function(){return y}}),"undefined"!=typeof window&&(B=(B=window.document.currentScript)&&B.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(W.p=B[1]),W(4114),W(8871)),U=W.n(B),$=null,G="z-index-manage",q=null,X="z-index-style",H={m:1e3,s:1e3};function K(){return"undefined"!=typeof document}function Y(){var t;q||!K()||(q=document.getElementById(X))||((q=document.createElement("style")).id=X,document.getElementsByTagName("head")[0].appendChild(q)),q&&(q.innerHTML=":root{--dom-main"+(t="-z-index")+":"+et()+";--dom-sub"+t+":"+it()+"}")}function Z(){return $||!K()||($=document.getElementById(G))||(($=document.createElement("div")).id=G,$.style.display="none",document.body.appendChild($),Q(H.m),rt(H.s)),$}function J(n){return function(t){var e;return t&&(t=Number(t),H[n]=t,e=Z())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),Y(),H[n]}}var Q=J("m");function tt(r,o){return function(t){var e=Z(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||H[r];return t?Number(t)<n?o():t:n}}var et=tt("m",nt);function nt(){return Q(et()+1)}var rt=J("s"),ot=tt("s",ut);function it(){return et()+ot()}function ut(){return rt(ot()+1),it()}var B={setCurrent:Q,getCurrent:et,getNext:nt,setSubCurrent:rt,getSubCurrent:it,getSubNext:ut,getMax:function(){var t=0;if(K())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}},St=(Y(),B);let f={size:"",version:1,zIndex:999,resizeInterval:500},t={},e={},n={theme:""},N=W(9274),r=W.n(N),i=new(r().extend({data(){return{language:"",langMaps:{}}}}));function ct(t){return(ct="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 jt(t){t=((t,e)=>{if("object"!=ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=ct(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==ct(t)?t:t+""}function at(t,e,n){(e=jt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}let o={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"},u=(B=U().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=B.firefox?"DOMMouseScroll":"mousewheel",a=[];function st(n){let r=n.type===c;a.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class _t{constructor(t,e,n){at(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()}}let s=(t,e,n)=>new _t(t,e,n),l={on(t,e,n){a.push({comp:t,type:e,cb:n})},off(e,n){U().remove(a,t=>t.comp===e&&t.type===n)},hasKey(t,e){t=t.key;return e=e.toLowerCase(),!(!t||e!==t.toLowerCase()&&(!u[t]||u[t].toLowerCase()!==e))}};B.isDoc&&(B.msie||(window.addEventListener("copy",st,!1),window.addEventListener("cut",st,!1),window.addEventListener("paste",st,!1)),document.addEventListener("keydown",st,!1),document.addEventListener("contextmenu",st,!1),window.addEventListener("mousedown",st,!1),window.addEventListener("blur",st,!1),window.addEventListener("resize",st,!1),window.addEventListener(c,U().throttle(st,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let p,d=[],k=500;function Pt(){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))})}),ft())}function ft(){clearTimeout(p),p=setTimeout(Pt,f.resizeInterval||k)}class Nt{constructor(t){at(this,"tarList",[]),at(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||ft(),d.some(t=>t===this)||d.push(this))}unobserve(e){U().remove(d,t=>t.tarList.some(t=>t.target===e))}disconnect(){U().remove(d,t=>t===this)}}let h={create(t){return new(window.ResizeObserver||Nt)(t)}},v=!1;function lt(t,e){var{langMaps:n,language:r}=i,o=f.i18n;return o?""+(o(t,e)||""):(v||(n[r]||console.error("[vxe] Language not installed. https://vxeui.com/#/start/i18n"),v=!0),U().toFormatString(U().get(n[r],t,t),e))}function pt(t){var e=i.langMaps;return!!e[t]}function dt(){var t=i.language;return t}function ht(n,r){return function(t,e){t=`[vxe ${r||""}] `+lt(t,e);return console[n](t),t}}let g={create:ht,warn:ht("warn","v3.0.16"),err:ht("error","v3.0.16")},m={},b={mixin(t){return U().each(t,(t,e)=>b.add(e,t)),b},get(t){return m[t]||null},add(r,t){if(r&&t){let n=m[r];n?(U().each(t,(t,e)=>{U().eqNull(n[e])||n[e]===t||g.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):m[r]=t}return b},forEach(t){return U().objectEach(m,t),b},delete(t){return delete m[t],b}},F=class{constructor(){at(this,"store",{})}mixin(t){return U().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];{let n=U().keys(e);U().each(t,(t,e)=>{n.includes(e)&&g.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?U().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){U().objectEach(this.store,t)}},y=new F,x=(Object.assign(y,{_name:"Validators"}),new class{constructor(){at(this,"store",{})}mixin(t){return U().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];U().isFunction(t)&&(g.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});{let n=U().keys(e);U().each(t,(t,e)=>{n.includes(e)&&g.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?U().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){U().objectEach(this.store,t)}}),w=(Object.assign(x,{_name:"Menus"}),new class{constructor(){at(this,"store",{})}mixin(t){return U().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];U().isFunction(t)&&(g.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});{let n=U().keys(e);U().each(t,(t,e)=>{n.includes(e)&&g.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?U().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){U().objectEach(this.store,t)}}),E=(Object.assign(w,{_name:"Formats"}),new class{constructor(){at(this,"store",{})}mixin(t){return U().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];U().isFunction(t)&&(g.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});{let n=U().keys(e);U().each(t,(t,e)=>{n.includes(e)&&g.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?U().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){U().objectEach(this.store,t)}}),O=(Object.assign(E,{_name:"Commands"}),{}),S={mixin(t){return U().each(t,(t,e)=>{S.add(e,t)}),S},get(t){return O[t]||[]},add(e,n){n=(n=U().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=O[e];-1<(t=t||(O[e]=[])).indexOf(n)&&g.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return S},delete(t,n){var r=O[t];if(r){let e=(n=U().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?U().remove(r,t=>t===e):delete O[t]}}},j,P={text:"",html:""},M={getStore(){return P},setStore(t){Object.assign(P,t||{})},copy(t){let e=!1;try{var n=U().toValueString(t);r=n,j||((j=document.createElement("textarea")).id="$VxeCopy",(o=j.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(j)),j.value=r,j.select(),j.setSelectionRange(0,j.value.length),e=document.execCommand("copy"),j.blur(),P.text=n,P.html=""}catch(t){}var r,o;return e}};function vt(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(U().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 T={getCheckInfo(t){return vt(t)},checkVisible(t){return vt(t).visible},checkDisable(t){return vt(t).disabled}},C=r().extend({inject:{$xeSizeInfo:{default:null}},provide(){return{$xeSizeInfo:{size:this.computeSize}}},computed:{computeSize(){var t=this.size,e=this.$xeSizeInfo;return t||(e?e.size:null)}}}),I=r().extend({computed:{computePermissionInfo(){return vt(this.permissionCode,this.permissionMethod)}}}),L={sizeMixin:C,permissionMixin:I};function gt(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),_}function mt(){return n.theme}function bt(t){return i.language=t||"zh-CN",_}function yt(t,e){var n=i.langMaps;return i.langMaps=Object.assign({},n,{[t]:Object.assign({},e)}),_}function xt(t){return t&&(t.zIndex&&St.setCurrent(t.zIndex),t.theme&>(t.theme),U().merge(f,t)),_}function Mt(t,e){return arguments.length?U().get(f,t,e):f}function Tt(t){return t&&Object.assign(e,t),_}function Ct(t){return arguments.length?U().get(e,t):e}let A="3.0.16",R=[];function It(t,e){return t&&t.install&&-1===R.indexOf(t)&&(t.install(_,e),R.push(t)),_}let z={};function Lt(t){return z[t]||null}function At(t){t&&t.name&&(z[t.name]=t)}function Rt(t){t=t._e;return t()}let _={coreVersion:A,renderEmptyElement:Rt,setTheme:gt,getTheme:mt,setConfig:xt,getConfig:Mt,setIcon:Tt,getIcon:Ct,setLanguage:bt,hasLanguage:pt,getLanguage:dt,setI18n:yt,getI18n:lt,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:b,validators:y,menus:x,formats:w,commands:E,interceptor:S,clipboard:M,log:g,permission:T,globalStore:t,component:At,getComponent:Lt,globalMixins:L,use:It};gt();var zt=_;return V}});
|
|
1
|
+
((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("xe-utils")):"function"==typeof define&&define.amd?define([,"xe-utils"],t):"object"==typeof exports?exports.VxeUI=t(require("vue"),require("xe-utils")):e.VxeUI=t(e.Vue,e.XEUtils)})("undefined"!=typeof self?self:this,function(Oe,Se){{var je={9274:function(e){e.exports=Oe},8871:function(e){e.exports=Se},9306:function(e,t,n){var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},8551:function(e,t,n){var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,n){function r(c){return function(e,t,n){var r=a(e),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&t!=t){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===t)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);e.exports={includes:r(!0),indexOf:r(!1)}},4527:function(e,t,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(e){return e instanceof TypeError}}();e.exports=n?function(e,t){if(o(e)&&!u(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},2195:function(e,t,n){var n=n(9504),r=n({}.toString),o=n("".slice);e.exports=function(e){return o(r(e),8,-1)}},7740:function(e,t,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);e.exports=function(e,t,n){for(var r=s(t),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(e,c)||n&&a(n,c)||o(e,c,i(t,c))}}},6699:function(e,t,n){var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6840:function(e,t,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);e.exports=function(e,t,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:t;if(u(n)&&a(n,i,r),r.global)o?e[t]=n:s(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:c.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}},9433:function(e,t,n){var r=n(4576),o=Object.defineProperty;e.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},3724:function(e,t,n){n=n(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,n){var r=n(4576),n=n(34),o=r.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},6837:function(e){var t=TypeError;e.exports=function(e){if(9007199254740991<e)throw t("Maximum allowed index exceeded");return e}},8727:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(e,t,n){n=n(4576).navigator,n=n&&n.userAgent;e.exports=n?String(n):""},9519:function(e,t,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]),e.exports=o},6518:function(e,t,n){var s=n(4576),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);e.exports=function(e,t){var n,r,o,i=e.target,u=e.global,c=e.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in t){if(r=t[n],o=e.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(e.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,e)}}},9039:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},616:function(e,t,n){n=n(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565:function(e,t,n){var n=n(616),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(e,t,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);e.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},9504:function(e,t,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);e.exports=n?r:function(e){return function(){return o.apply(e,arguments)}}},7751:function(e,t,n){var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},5966:function(e,t,n){var r=n(9306),o=n(4117);e.exports=function(e,t){e=e[t];return o(e)?void 0:r(e)}},4576:function(e,t,n){function r(e){return e&&e.Math===Math&&e}e.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(e,t,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){e.exports={}},5917:function(e,t,n){var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,n){var r=n(9504),o=n(9039),i=n(2195),u=Object,c=r("".split);e.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?c(e,""):u(e)}:u},3706:function(e,t,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(e){return i(e)}),e.exports=n.inspectSource},1181:function(e,t,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,g=c||p.state?((i=p.state||(p.state=new a)).get=i.get,i.has=i.has,i.set=i.set,r=function(e,t){if(i.has(e))throw new v(h);return t.facade=e,i.set(e,t),t},o=function(e){return i.get(e)||{}},function(e){return i.has(e)}):(n[u=d("state")]=!0,r=function(e,t){if(l(e,u))throw new v(h);return t.facade=e,f(e,u,t),t},o=function(e){return l(e,u)?e[u]:{}},function(e){return l(e,u)});e.exports={set:r,get:o,has:g,enforce:function(e){return g(e)?o(e):r(e,{})},getterFor:function(t){return function(e){if(s(e)&&(e=o(e)).type===t)return e;throw new v("Incompatible receiver, "+t+" required")}}}},4376:function(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,n){function r(e,t){return(e=a[c(e)])===f||e!==s&&(i(t)?o(t):!!t)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(e){return String(e).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";e.exports=r},4117:function(e){e.exports=function(e){return null==e}},34:function(e,t,n){var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},6395:function(e){e.exports=!1},757:function(e,t,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;e.exports=n?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,u(e))}},6198:function(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,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=e.exports=function(e,t,n){"Symbol("===h(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!u(e,"name")||a&&e.name!==t)&&(c?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&u(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=f(e);return u(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){e=+e;return(0<e?n:t)(e)}},4913:function(e,t,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";t.f=r?i?function(e,t,n){var r;return u(e),t=c(t),u(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]&&(r=f(e,t))&&r[d]&&(e[t]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(e,t,n)}:s:function(e,t,n){if(u(e),t=c(t),u(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,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;t.f=r?l:function(e,t){if(e=c(e),t=a(t),f)try{return l(e,t)}catch(e){}if(s(e,t))return u(!o(i.f,e,t),e[t])}},8480:function(e,t,n){var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3717:function(e,t){t.f=Object.getOwnPropertySymbols},1625:function(e,t,n){n=n(9504);e.exports=n({}.isPrototypeOf)},1828:function(e,t,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);e.exports=function(e,t){var n,r=c(e),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;t.length>o;)!u(r,n=t[o++])||~a(i,n)||f(i,n);return i}},8773:function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){e=r(this,e);return!!e&&e.enumerable}:n},4270:function(e,t,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!u(r=o(n,e)))return r;if(i(n=e.valueOf)&&!u(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!u(r=o(n,e)))return r;throw new c("Can't convert object to primitive value")}},5031:function(e,t,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=u.f;return n?a(t,n(e)):t}},7750:function(e,t,n){var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},6119:function(e,t,n){var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,n){var r=n(6395),o=n(4576),n=n(9433),i="__core-js_shared__",e=e.exports=o[i]||n(i,{});(e.versions||(e.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},4495:function(e,t,n){var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(e,t,n){var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){e=r(e);return e<0?o(e+t,0):i(e,t)}},5397:function(e,t,n){var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},1291:function(e,t,n){var r=n(741);e.exports=function(e){e=+e;return e!=e||0==e?0:r(e)}},8014:function(e,t,n){var r=n(1291),o=Math.min;e.exports=function(e){e=r(e);return 0<e?o(e,9007199254740991):0}},8981:function(e,t,n){var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},2777:function(e,t,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");e.exports=function(e,t){if(!o(e)||i(e))return e;var n=u(e,s);if(n){if(n=r(n,e,t=void 0===t?"default":t),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(e,t=void 0===t?"number":t)}},6969:function(e,t,n){var r=n(2777),o=n(757);e.exports=function(e){e=r(e,"string");return o(e)?e:e+""}},6823:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){var n=n(9504),r=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+o,36)}},7040:function(e,t,n){n=n(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){var r=n(3724),n=n(9039);e.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(e,t,n){var r=n(4576),n=n(4901),r=r.WeakMap;e.exports=n(r)&&/native code/.test(String(r))},8227:function(e,t,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;e.exports=function(e){return i(s,e)||(s[e]=c&&i(a,e)?a[e]:f("Symbol."+e)),s[e]}},4114:function(e,t,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(e){return e instanceof TypeError}})()},{push:function(e){var t=i(this),n=u(t),r=arguments.length;a(n+r);for(var o=0;o<r;o++)t[n]=arguments[o],n++;return c(t,n),n}})}},W={};function B(e){var t=W[e];return void 0!==t||(t=W[e]={exports:{}},je[e].call(t.exports,t,t.exports,B)),t.exports}B.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return B.d(t,{a:t}),t},B.d=function(e,t){for(var n in t)B.o(t,n)&&!B.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},B.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),B.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},B.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},B.p="";var U={};B.r(U),B.d(U,{GLOBAL_EVENT_KEYS:function(){return o},VxeCore:function(){return i},VxeUI:function(){return _},clipboard:function(){return C},commands:function(){return S},component:function(){return ze},coreVersion:function(){return e},createEvent:function(){return s},default:function(){return Ne},formats:function(){return O},getComponent:function(){return Re},getConfig:function(){return pe},getI18n:function(){return ye},getIcon:function(){return he},getLanguage:function(){return Le},getTheme:function(){return fe},globalEvents:function(){return l},globalMixins:function(){return R},globalResize:function(){return h},globalStore:function(){return t},handleCheckInfo:function(){return Ee},hasLanguage:function(){return Ie},interceptor:function(){return P},log:function(){return b},menus:function(){return E},permission:function(){return I},permissionMixin:function(){return A},renderEmptyElement:function(){return _e},renderer:function(){return x},setConfig:function(){return le},setI18n:function(){return Ce},setIcon:function(){return de},setLanguage:function(){return xe},setTheme:function(){return se},sizeMixin:function(){return L},use:function(){return Ae},validators:function(){return w}}),"undefined"!=typeof window&&(ae=(ae=window.document.currentScript)&&ae.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(B.p=ae[1]),B(4114);let e="3.0.17",i={coreVersion:e,uiVersion:"",tableVersion:""},N=B(8871);var $=B.n(N),G=null,q="z-index-manage",X=null,H="z-index-style",K={m:1e3,s:1e3};function Y(){return"undefined"!=typeof document}function Z(){var e;X||!Y()||(X=document.getElementById(H))||((X=document.createElement("style")).id=H,document.getElementsByTagName("head")[0].appendChild(X)),X&&(X.innerHTML=":root{--dom-main"+(e="-z-index")+":"+ne()+";--dom-sub"+e+":"+ue()+"}")}function J(){return G||!Y()||(G=document.getElementById(q))||((G=document.createElement("div")).id=q,G.style.display="none",document.body.appendChild(G),ee(K.m),oe(K.s)),G}function Q(n){return function(e){var t;return e&&(e=Number(e),K[n]=e,t=J())&&(t.dataset?t.dataset[n]=e+"":t.setAttribute("data-"+n,e+"")),Z(),K[n]}}var ee=Q("m");function te(r,o){return function(e){var t=J(),n=(n=t&&(t=t.dataset?t.dataset[r]:t.getAttribute("data-"+r))?Number(t):n)||K[r];return e?Number(e)<n?o():e:n}}var ne=te("m",re);function re(){return ee(ne()+1)}var oe=Q("s"),ie=te("s",ce);function ue(){return ne()+ie()}function ce(){return oe(ie()+1),ue()}var ae={setCurrent:ee,getCurrent:ne,getNext:re,setSubCurrent:oe,getSubCurrent:ue,getSubNext:ce,getMax:function(){var e=0;if(Y())for(var t=document.body.getElementsByTagName("*"),n=0;n<t.length;n++){var r=t[n];r&&r.style&&1===r.nodeType&&(r=r.style.zIndex)&&/^\d+$/.test(r)&&(e=Math.max(e,Number(r)))}return e}},Pe=(Z(),ae);let f={size:"",version:1,zIndex:999,resizeInterval:500},n={theme:""};function se(e){var t,e=e&&"default"!==e?e:"light";return n.theme=e,"undefined"!=typeof document&&(t=document.documentElement)&&t.setAttribute("data-vxe-ui-theme",e),i}function fe(){return n.theme}function le(e){return e&&(e.zIndex&&Pe.setCurrent(e.zIndex),e.theme&&se(e.theme),$().merge(f,e)),i}function pe(e,t){return arguments.length?$().get(f,e,t):f}let t={},r={};function de(e){return e&&Object.assign(r,e),i}function he(e){return arguments.length?$().get(r,e):r}function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e){e=((e,t)=>{if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=ve(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string");return"symbol"==ve(e)?e:e+""}function ge(e,t,n){(t=Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}let o={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"},u=(ae=$().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=ae.firefox?"DOMMouseScroll":"mousewheel",a=[];function me(n){let r=n.type===c;a.forEach(({type:e,cb:t})=>{n.cancelBubble||(e===n.type||r&&"mousewheel"===e)&&t(n)})}class ke{constructor(e,t,n){ge(this,"$event",void 0),this.$event=e,Object.assign(this,t,n)}stopPropagation(){var e=this.$event;e&&e.stopPropagation()}preventDefault(){var e=this.$event;e&&e.preventDefault()}}let s=(e,t,n)=>new ke(e,t,n),l={on(e,t,n){a.push({comp:e,type:t,cb:n})},off(t,n){$().remove(a,e=>e.comp===t&&e.type===n)},hasKey(e,t){e=e.key;return t=t.toLowerCase(),!(!e||t!==e.toLowerCase()&&(!u[e]||u[e].toLowerCase()!==t))}};ae.isDoc&&(ae.msie||(window.addEventListener("copy",me,!1),window.addEventListener("cut",me,!1),window.addEventListener("paste",me,!1)),document.addEventListener("keydown",me,!1),document.addEventListener("contextmenu",me,!1),window.addEventListener("mousedown",me,!1),window.addEventListener("blur",me,!1),window.addEventListener("resize",me,!1),window.addEventListener(c,$().throttle(me,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let p,d=[],k=500;function Te(){d.length&&(d.forEach(i=>{i.tarList.forEach(e=>{var{target:t,width:n,heighe:r}=e,o=t.clientWidth,t=t.clientHeight;(o&&n!==o||t&&r!==t)&&(e.width=o,e.heighe=t,setTimeout(i.callback))})}),be())}function be(){clearTimeout(p),p=setTimeout(Te,f.resizeInterval||k)}class Fe{constructor(e){ge(this,"tarList",[]),ge(this,"callback",void 0),this.callback=e}observe(t){var e;t&&(e=this.tarList,e.some(e=>e.target===t)||e.push({target:t,width:t.clientWidth,heighe:t.clientHeight}),d.length||be(),d.some(e=>e===this)||d.push(this))}unobserve(t){$().remove(d,e=>e.tarList.some(e=>e.target===t))}disconnect(){$().remove(d,e=>e===this)}}let h={create(e){return new(window.ResizeObserver||Fe)(e)}},F=B(9274),v=B.n(F),g=new(v().extend({data(){return{language:"",langMaps:{}}}})),m=!1;function ye(e,t){var{langMaps:n,language:r}=g,o=f.i18n;return o?""+(o(e,t)||""):(m||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),m=!0),$().toFormatString($().get(n[r],e,e),t))}function xe(e){return g.language=e||"zh-CN",i}function Ce(e,t){var n=g.langMaps;return g.langMaps=Object.assign({},n,{[e]:Object.assign({},t)}),i}function Ie(e){var t=g.langMaps;return!!t[e]}function Le(){var e=g.language;return e}function we(n,r){return function(e,t){e=`[vxe ${r||""}] `+ye(e,t);return console[n](e),e}}let b={create:we,warn:we("warn","v3.0.17"),err:we("error","v3.0.17")},y={},x={mixin(e){return $().each(e,(e,t)=>x.add(t,e)),x},get(e){return y[e]||null},add(r,e){if(r&&e){let n=y[r];n?($().each(e,(e,t)=>{$().eqNull(n[t])||n[t]===e||b.warn("vxe.error.coverProp",["Renderer."+r,t])}),Object.assign(n,e)):y[r]=e}return x},forEach(e){return $().objectEach(y,e),x},delete(e){return delete y[e],x}},D=class{constructor(){ge(this,"store",{})}mixin(e){return $().each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(r,e){var t=this.store[r];{let n=$().keys(t);$().each(e,(e,t)=>{n.includes(t)&&b.warn("vxe.error.coverProp",[r,t])})}return this.store[r]=t?$().merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){$().objectEach(this.store,e)}},w=new D,E=(Object.assign(w,{_name:"Validators"}),new class{constructor(){ge(this,"store",{})}mixin(e){return $().each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(r,e){var t=this.store[r];$().isFunction(e)&&(b.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),e={menuMethod:e});{let n=$().keys(t);$().each(e,(e,t)=>{n.includes(t)&&b.warn("vxe.error.coverProp",[r,t])})}return this.store[r]=t?$().merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){$().objectEach(this.store,e)}}),O=(Object.assign(E,{_name:"Menus"}),new class{constructor(){ge(this,"store",{})}mixin(e){return $().each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(r,e){var t=this.store[r];$().isFunction(e)&&(b.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),e={cellFormatMethod:e});{let n=$().keys(t);$().each(e,(e,t)=>{n.includes(t)&&b.warn("vxe.error.coverProp",[r,t])})}return this.store[r]=t?$().merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){$().objectEach(this.store,e)}}),S=(Object.assign(O,{_name:"Formats"}),new class{constructor(){ge(this,"store",{})}mixin(e){return $().each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(r,e){var t=this.store[r];$().isFunction(e)&&(b.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),e={commandMethod:e});{let n=$().keys(t);$().each(e,(e,t)=>{n.includes(t)&&b.warn("vxe.error.coverProp",[r,t])})}return this.store[r]=t?$().merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){$().objectEach(this.store,e)}}),j=(Object.assign(S,{_name:"Commands"}),{}),P={mixin(e){return $().each(e,(e,t)=>{P.add(t,e)}),P},get(e){return j[e]||[]},add(t,n){n=(n=$().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let e=j[t];-1<(e=e||(j[t]=[])).indexOf(n)&&b.warn("vxe.error.coverProp",["Interceptor",t]),e.push(n)}return P},delete(e,n){var r=j[e];if(r){let t=(n=$().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;t?$().remove(r,e=>e===t):delete j[e]}}},M,T={text:"",html:""},C={getStore(){return T},setStore(e){Object.assign(T,e||{})},copy(e){let t=!1;try{var n=$().toValueString(e);r=n,M||((M=document.createElement("textarea")).id="$VxeCopy",(o=M.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(M)),M.value=r,M.select(),M.setSelectionRange(0,M.value.length),t=document.execCommand("copy"),M.blur(),T.text=n,T.html=""}catch(e){}var r,o;return t}};function Ee(e,t){let i=!0,u=!1;var c=t||f.permissionMethod;if(e&&c){i=!1;let r=!(u=!0),o=!1;var a=String(e).split("|");for(let n=0;n<a.length;n++){let e=!0,t=!1;var s=c({code:a[n]});if($().isBoolean(s)?e=s:s&&(e=!!s.visible,t=!!s.disabled),t||o||(o=!0,u=t),e&&!r&&(r=!0,i=e),r&&o)break}}return{code:e,visible:i,disabled:u}}let I={getCheckInfo(e){return Ee(e)},checkVisible(e){return Ee(e).visible},checkDisable(e){return Ee(e).disabled}},L=v().extend({inject:{$xeSizeInfo:{default:null}},provide(){return{$xeSizeInfo:{size:this.computeSize}}},computed:{computeSize(){var e=this.size,t=this.$xeSizeInfo;return e||(t?t.size:null)}}}),A=v().extend({computed:{computePermissionInfo(){return Ee(this.permissionCode,this.permissionMethod)}}}),R={sizeMixin:L,permissionMixin:A},z=[];function Ae(e,t){return e&&e.install&&-1===z.indexOf(e)&&(e.install(_,t),z.push(e)),_}let V={};function Re(e){return V[e]||null}function ze(e){e&&e.name&&(V[e.name]=e)}function _e(e){e=e._e;return e()}let _=Object.assign(i,{renderEmptyElement:_e,setTheme:se,getTheme:fe,setConfig:le,getConfig:pe,setIcon:de,getIcon:he,setLanguage:xe,hasLanguage:Ie,getLanguage:Le,setI18n:Ce,getI18n:ye,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:x,validators:w,menus:E,formats:O,commands:S,interceptor:P,clipboard:C,log:b,permission:I,globalStore:t,component:ze,getComponent:Re,globalMixins:R,use:Ae});se();var Ne=_;return U}});
|
|
@@ -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
|
+
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}
|