@vxe-ui/core 4.2.5 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/es/index.esm.js +3 -1
- package/es/src/core.js +1 -1
- package/es/src/icon.js +14 -0
- package/es/src/log.js +1 -1
- package/es/src/vm.js +7 -0
- package/lib/index.common.js +2 -0
- package/lib/index.umd.js +30 -2
- package/lib/index.umd.min.js +1 -1
- package/lib/src/core.js +1 -1
- package/lib/src/core.min.js +1 -1
- package/lib/src/icon.js +18 -0
- package/lib/src/icon.min.js +1 -1
- package/lib/src/log.js +1 -1
- package/lib/src/log.min.js +1 -1
- package/lib/src/vm.js +14 -0
- package/lib/src/vm.min.js +1 -0
- package/package.json +2 -2
- package/packages/index.ts +5 -1
- package/packages/src/icon.ts +17 -1
- package/packages/src/vm.ts +10 -0
- package/types/core/global-icon.d.ts +5 -1
- package/types/core/index.d.ts +16 -2
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
简体中文 | [繁體中文](README.zh-TW.md) | [English](README.en.md)
|
|
4
4
|
|
|
5
|
+
[](https://gitee.com/x-extends/vxe-core/stargazers)
|
|
6
|
+
[](https://www.npmjs.com/package/vxe-core)
|
|
7
|
+
[](https://github.com/x-extends/vxe-core/actions/workflows/webpack.yml)
|
|
8
|
+
[](https://github.com/x-extends/vxe-core/issues)
|
|
9
|
+
[](https://github.com/x-extends/vxe-core/issues?q=is%3Aissue+is%3Aclosed)
|
|
10
|
+
[](https://github.com/x-extends/vxe-core/pulls)
|
|
11
|
+
[](https://github.com/x-extends/vxe-core/pulls?q=is%3Apr+is%3Aclosed)
|
|
12
|
+
[](LICENSE)
|
|
13
|
+
|
|
5
14
|
Vxe UI v4.x 核心库.
|
|
6
15
|
|
|
7
16
|
## 使用
|
package/es/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { VxeCore } from './src/core';
|
|
|
2
2
|
import { createCommentVNode } from 'vue';
|
|
3
3
|
import { setConfig, getConfig } from './src/config';
|
|
4
4
|
import { globalStore } from './src/dataStore';
|
|
5
|
-
import { setIcon, getIcon } from './src/icon';
|
|
5
|
+
import { setIcon, getIcon, renderGlobalIcon, renderCustomIcon } from './src/icon';
|
|
6
6
|
import { setTheme, getTheme } from './src/theme';
|
|
7
7
|
import { globalEvents, GLOBAL_EVENT_KEYS, createEvent } from './src/event';
|
|
8
8
|
import { globalResize } from './src/resize';
|
|
@@ -53,6 +53,8 @@ export const VxeUI = Object.assign(VxeCore, {
|
|
|
53
53
|
getConfig: getConfig,
|
|
54
54
|
setIcon,
|
|
55
55
|
getIcon: getIcon,
|
|
56
|
+
renderGlobalIcon,
|
|
57
|
+
renderCustomIcon,
|
|
56
58
|
setLanguage,
|
|
57
59
|
hasLanguage,
|
|
58
60
|
getLanguage,
|
package/es/src/core.js
CHANGED
package/es/src/icon.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { h } from 'vue';
|
|
1
2
|
import XEUtils from 'xe-utils';
|
|
2
3
|
import { VxeCore } from './core';
|
|
3
4
|
import { iconConfigStore } from './iconStore';
|
|
5
|
+
import { getSlotVNs } from './vm';
|
|
4
6
|
export function setIcon(options) {
|
|
5
7
|
if (options) {
|
|
6
8
|
Object.assign(iconConfigStore, options);
|
|
@@ -10,3 +12,15 @@ export function setIcon(options) {
|
|
|
10
12
|
export function getIcon(key) {
|
|
11
13
|
return arguments.length ? XEUtils.get(iconConfigStore, key) : iconConfigStore;
|
|
12
14
|
}
|
|
15
|
+
export function renderGlobalIcon(name) {
|
|
16
|
+
const icon = getIcon(name);
|
|
17
|
+
return renderCustomIcon(icon, name);
|
|
18
|
+
}
|
|
19
|
+
export function renderCustomIcon(icon, name) {
|
|
20
|
+
if (XEUtils.isFunction(icon)) {
|
|
21
|
+
return h('span', {}, getSlotVNs(icon({ name })));
|
|
22
|
+
}
|
|
23
|
+
return h('i', {
|
|
24
|
+
class: icon
|
|
25
|
+
});
|
|
26
|
+
}
|
package/es/src/log.js
CHANGED
package/es/src/vm.js
ADDED
package/lib/index.common.js
CHANGED
|
@@ -283,6 +283,8 @@ const VxeUI = exports.VxeUI = Object.assign(_core.VxeCore, {
|
|
|
283
283
|
getConfig: _config.getConfig,
|
|
284
284
|
setIcon: _icon.setIcon,
|
|
285
285
|
getIcon: _icon.getIcon,
|
|
286
|
+
renderGlobalIcon: _icon.renderGlobalIcon,
|
|
287
|
+
renderCustomIcon: _icon.renderCustomIcon,
|
|
286
288
|
setLanguage: _i18n.setLanguage,
|
|
287
289
|
hasLanguage: _i18n.hasLanguage,
|
|
288
290
|
getLanguage: _i18n.getLanguage,
|
package/lib/index.umd.js
CHANGED
|
@@ -2436,7 +2436,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2436
2436
|
log: function() { return /* reexport */ log; },
|
|
2437
2437
|
menus: function() { return /* reexport */ menus; },
|
|
2438
2438
|
permission: function() { return /* reexport */ permission; },
|
|
2439
|
+
renderCustomIcon: function() { return /* reexport */ renderCustomIcon; },
|
|
2439
2440
|
renderEmptyElement: function() { return /* reexport */ renderEmptyElement; },
|
|
2441
|
+
renderGlobalIcon: function() { return /* reexport */ renderGlobalIcon; },
|
|
2440
2442
|
renderer: function() { return /* reexport */ renderer; },
|
|
2441
2443
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
2442
2444
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
@@ -2470,7 +2472,7 @@ if (typeof window !== 'undefined') {
|
|
|
2470
2472
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2471
2473
|
var es_array_push = __webpack_require__(4114);
|
|
2472
2474
|
;// ./packages/src/core.ts
|
|
2473
|
-
const coreVersion = "4.2.
|
|
2475
|
+
const coreVersion = "4.2.6";
|
|
2474
2476
|
const VxeCore = {
|
|
2475
2477
|
coreVersion,
|
|
2476
2478
|
uiVersion: '',
|
|
@@ -2698,10 +2700,20 @@ function getConfig(key, defaultValue) {
|
|
|
2698
2700
|
const globalStore = {};
|
|
2699
2701
|
;// ./packages/src/iconStore.ts
|
|
2700
2702
|
const iconConfigStore = {};
|
|
2703
|
+
;// ./packages/src/vm.ts
|
|
2704
|
+
|
|
2705
|
+
function getSlotVNs(vns) {
|
|
2706
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(vns)) {
|
|
2707
|
+
return vns;
|
|
2708
|
+
}
|
|
2709
|
+
return vns ? [vns] : [];
|
|
2710
|
+
}
|
|
2701
2711
|
;// ./packages/src/icon.ts
|
|
2702
2712
|
|
|
2703
2713
|
|
|
2704
2714
|
|
|
2715
|
+
|
|
2716
|
+
|
|
2705
2717
|
function setIcon(options) {
|
|
2706
2718
|
if (options) {
|
|
2707
2719
|
Object.assign(iconConfigStore, options);
|
|
@@ -2711,6 +2723,20 @@ function setIcon(options) {
|
|
|
2711
2723
|
function getIcon(key) {
|
|
2712
2724
|
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
2713
2725
|
}
|
|
2726
|
+
function renderGlobalIcon(name) {
|
|
2727
|
+
const icon = getIcon(name);
|
|
2728
|
+
return renderCustomIcon(icon, name);
|
|
2729
|
+
}
|
|
2730
|
+
function renderCustomIcon(icon, name) {
|
|
2731
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(icon)) {
|
|
2732
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(icon({
|
|
2733
|
+
name
|
|
2734
|
+
})));
|
|
2735
|
+
}
|
|
2736
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
2737
|
+
class: icon
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2714
2740
|
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2715
2741
|
function _typeof(o) {
|
|
2716
2742
|
"@babel/helpers - typeof";
|
|
@@ -3066,7 +3092,7 @@ function createLog(type, name) {
|
|
|
3066
3092
|
return msg;
|
|
3067
3093
|
};
|
|
3068
3094
|
}
|
|
3069
|
-
const version = "4.2.
|
|
3095
|
+
const version = "4.2.6";
|
|
3070
3096
|
const log = {
|
|
3071
3097
|
create: createLog,
|
|
3072
3098
|
warn: createLog('warn', `v${version}`),
|
|
@@ -3568,6 +3594,8 @@ const VxeUI = Object.assign(VxeCore, {
|
|
|
3568
3594
|
getConfig: getConfig,
|
|
3569
3595
|
setIcon: setIcon,
|
|
3570
3596
|
getIcon: getIcon,
|
|
3597
|
+
renderGlobalIcon: renderGlobalIcon,
|
|
3598
|
+
renderCustomIcon: renderCustomIcon,
|
|
3571
3599
|
setLanguage: setLanguage,
|
|
3572
3600
|
hasLanguage: hasLanguage,
|
|
3573
3601
|
getLanguage: getLanguage,
|
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(xt,wt){{var Et={9274:function(t){t.exports=xt},8871:function(t){t.exports=wt},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")}},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),u=n(8227)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=c(t),u))?e:a?i(t):"Object"===(e=i(t))&&o(t.callee)?"Arguments":e}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},2211:function(t,e,n){n=n(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4576),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw e("Maximum allowed index exceeded");return t}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){n=n(4576).navigator,n=n&&n.userAgent;t.exports=n?String(n):""},9519:function(t,e,n){var r,o,i=n(4576),n=n(2839),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},6518:function(t,e,n){var s=n(4576),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4576),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),u=n(6269),c=n(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[r(t)]}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),u=n(6823),c=n(851),a=TypeError;t.exports=function(t,e){e=arguments.length<2?c(t):e;if(o(e))return i(r(e,t));throw new a(u(t)+" is not iterable")}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4576:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},397:function(t,e,n){n=n(7751);t.exports=n("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4576),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",v=a.TypeError,a=a.WeakMap,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")}}}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},2652:function(t,e,n){function m(t,e){this.stopped=t,this.result=e}var y=n(6080),b=n(9565),x=n(8551),w=n(6823),E=n(4209),O=n(6198),S=n(1625),j=n(81),P=n(851),T=n(9539),I=TypeError,C=m.prototype;t.exports=function(t,e,n){function r(t){return i&&T(i,"normal",t),new m(!0,t)}function o(t){return p?(x(t),v?g(t[0],t[1],r):g(t[0],t[1])):v?g(t,r):g(t)}var i,u,c,a,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=y(e,l);if(d)i=t.iterator;else if(h)i=t;else{if(!(n=P(t)))throw new I(w(t)+" is not iterable");if(E(n)){for(u=0,c=O(t);u<c;u++)if((a=o(t[u]))&&S(C,a))return a;return new m(!1)}i=j(t,n)}for(s=(d?t:i).next;!(f=b(s,i)).done;){try{a=o(f.value)}catch(t){T(i,"throw",t)}if("object"==typeof a&&a&&S(C,a))return a}return new m(!1)}},9539:function(t,e,n){var i=n(9565),u=n(8551),c=n(5966);t.exports=function(t,e,n){var r,o;u(t);try{if(!(r=c(t,"return"))){if("throw"===e)throw n;return n}r=i(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return u(r),n}},7657:function(t,e,n){var r,o,i=n(9039),u=n(4901),c=n(34),a=n(2360),s=n(2787),f=n(6840),l=n(8227),n=n(6395),p=l("iterator"),l=!1;[].keys&&("next"in(o=[].keys())?(s=s(s(o)))!==Object.prototype&&(r=s):l=!0),!c(r)||i(function(){var t={};return r[p].call(t)!==t})?r={}:n&&(r=a(r)),u(r[p])||f(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),v=r("".replace),g=r([].join),m=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),y=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(y,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},2360:function(t,e,n){function r(){}function o(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e}var i,u=n(8551),c=n(6801),a=n(8727),s=n(421),f=n(397),l=n(4055),n=n(6119),p=">",d="<",h="prototype",v="script",g=n("IE_PROTO"),m=function(t){return d+v+p+t+d+"/"+v+p},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}y="undefined"==typeof document||document.domain&&i?o(i):(t=l("iframe"),e="java"+v+":",t.style.display="none",f.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var t,e,n=a.length;n--;)delete y[h][a[n]];return y()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[h]=u(t),n=new r,r[h]=null,n[g]=t):n=y(),void 0===e?n:c.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),c=n(4913),a=n(8551),s=n(5397),f=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=f(e),i=o.length,u=0;u<i;)c.f(t,n=o[u++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),u=n(6119),n=n(2211),c=u("IE_PROTO"),a=Object,s=a.prototype;t.exports=n?a.getPrototypeOf:function(t){var e,t=i(t);return r(t,c)?t[c]:(e=t.constructor,o(e)&&t instanceof e?e.prototype:t instanceof a?s:null)}},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4576),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1..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}})},8111:function(t,e,n){function r(){if(c(this,g),f(this)===g)throw new x("Abstract class Iterator not directly constructable")}function o(e,t){m?l(g,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===g)throw new x("You can't redefine this property");h(this,e)?this[e]=t:p(this,e,t)}}):g[e]=t}var i=n(6518),u=n(4576),c=n(679),a=n(8551),s=n(4901),f=n(2787),l=n(2106),p=n(4659),d=n(9039),h=n(9297),v=n(8227),g=n(7657).IteratorPrototype,m=n(3724),n=n(6395),y="constructor",b="Iterator",v=v("toStringTag"),x=TypeError,w=u[b],u=n||!s(w)||w.prototype!==g||!d(function(){w({})});h(g,v)||o(v,b),!u&&h(g,y)&&g[y]!==Object||o(y,r),r.prototype=g,i({global:!0,constructor:!0,forced:u},{Iterator:r})},7588:function(t,e,n){var r=n(6518),o=n(2652),i=n(9306),u=n(8551),c=n(1767);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){u(this),i(e);var t=c(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},3579:function(t,e,n){var r=n(6518),o=n(2652),i=n(9306),u=n(8551),c=n(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(n){u(this),i(n);var t=c(this),r=0;return o(t,function(t,e){if(n(t,r++))return e()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8992:function(t,e,n){n(8111)},3949:function(t,e,n){n(7588)},7550:function(t,e,n){n(3579)}},z={};function D(t){var e=z[t];return void 0!==e||(e=z[t]={exports:{}},Et[t].call(e.exports,e,e.exports,D)),e.exports}D.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return D.d(e,{a:e}),e},D.d=function(t,e){for(var n in e)D.o(e,n)&&!D.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},D.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),D.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},D.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},D.p="";var V={};D.r(V),D.d(V,{GLOBAL_EVENT_KEYS:function(){return o},VxeCore:function(){return i},VxeUI:function(){return k},clipboard:function(){return R},commands:function(){return j},component:function(){return zt},coreVersion:function(){return t},createEvent:function(){return s},default:function(){return Vt},formats:function(){return S},getComponent:function(){return Nt},getConfig:function(){return dt},getI18n:function(){return mt},getIcon:function(){return jt},getLanguage:function(){return Lt},getTheme:function(){return lt},globalEvents:function(){return l},globalResize:function(){return h},globalStore:function(){return e},handleCheckInfo:function(){return bt},hasComponent:function(){return Ft},hasLanguage:function(){return At},hooks:function(){return L},interceptor:function(){return T},log:function(){return y},menus:function(){return O},permission:function(){return A},renderEmptyElement:function(){return Dt},renderer:function(){return x},setConfig:function(){return pt},setI18n:function(){return Rt},setIcon:function(){return St},setLanguage:function(){return Ct},setTheme:function(){return ft},use:function(){return kt},useFns:function(){return M},usePermission:function(){return _t},useSize:function(){return Mt},validators:function(){return E}}),"undefined"!=typeof window&&(W=(W=window.document.currentScript)&&W.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(D.p=W[1]),D(4114);let t="4.2.5",i={coreVersion:t,uiVersion:"",tableVersion:"",designVersion:""};var U=D(9274),W=D(8871),B=D.n(W),G=null,$=null,X=null,q="z-index-manage",H=null,K="z-index-style",Y={m:1e3,s:1e3};function Z(){return G||"undefined"!=typeof document&&(G=document),G}function J(){return $=G&&!$?G.body||G.getElementsByTagName("body")[0]:$}function Q(){var t;H||!(t=Z())||(H=t.getElementById(K))||((H=t.createElement("style")).id=K,t.getElementsByTagName("head")[0].appendChild(H)),H&&(H.innerHTML=":root{--dom-main"+(t="-z-index")+":"+ot()+";--dom-sub"+t+":"+at()+"}")}function tt(){var t,e;return X||(t=Z())&&!(X=t.getElementById(q))&&(e=J())&&((X=t.createElement("div")).id=q,X.style.display="none",e.appendChild(X),nt(Y.m),ut(Y.s)),X}function et(n){return function(t){var e;return t&&(t=Number(t),Y[n]=t,e=tt())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),Q(),Y[n]}}var nt=et("m");function rt(r,o){return function(t){var e=tt(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||Y[r];return t?Number(t)<n?o():t:n}}var ot=rt("m",it);function it(){return nt(ot()+1)}var ut=et("s"),ct=rt("s",st);function at(){return ot()+ct()}function st(){return ut(ct()+1),at()}var W={setCurrent:nt,getCurrent:ot,getNext:it,setSubCurrent:ut,getSubCurrent:at,getSubNext:st,getMax:function(){var t=0;if(Z()){var e=J();if(e)for(var n=e.getElementsByTagName("*"),r=0;r<n.length;r++){var o=n[r];o&&o.style&&1===o.nodeType&&(o=o.style.zIndex)&&/^\d+$/.test(o)&&(t=Math.max(t,Number(o)))}}return t}},Ot=(Q(),W);let f={size:"",version:1,zIndex:999,resizeInterval:500},n={theme:""};function ft(t){var e,t=t&&"default"!==t?t:"light";return n.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),i}function lt(){return n.theme}function pt(t){return t&&(t.zIndex&&Ot.setCurrent(t.zIndex),t.theme&&ft(t.theme),B().merge(f,t)),i}function dt(t,e){return arguments.length?B().get(f,t,e):f}let e={},r={};function St(t){return t&&Object.assign(r,t),i}function jt(t){return arguments.length?B().get(r,t):r}function ht(t){return(ht="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 Pt(t){t=((t,e)=>{if("object"!=ht(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=ht(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==ht(t)?t:t+""}function vt(t,e,n){(e=Pt(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",Control:"Control",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},u=(W=B().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=W.firefox?"DOMMouseScroll":"mousewheel",a=[];function gt(n){let r=n.type===c;a.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class Ut{constructor(t,e,n){vt(this,"$event",void 0),vt(this,"type",""),vt(this,"key",""),vt(this,"code",""),(this.$event=t)&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code)&&(this.code=t.code),Object.assign(this,e),B().objectEach(n,(n,r)=>{if(B().isFunction(n)){let t=null,e=!1;Object.defineProperty(this,r,{get(){return e||(e=!0,t=n()),t}})}else this[r]=n})}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}let s=(t,e,n)=>new Ut(t,e,n),l={on(t,e,n){a.push({comp:t,type:e,cb:n})},off(e,n){B().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))}},p=void(W.isDoc&&(W.msie||(window.addEventListener("copy",gt,!1),window.addEventListener("cut",gt,!1),window.addEventListener("paste",gt,!1)),document.addEventListener("keydown",gt,!1),document.addEventListener("contextmenu",gt,!1),window.addEventListener("mousedown",gt,!1),window.addEventListener("blur",gt,!1),window.addEventListener("resize",gt,!1),window.addEventListener(c,B().throttle(gt,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1})),D(8992),D(3949),D(7550)),d=[],N=500;function Tt(){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))})}),It())}function It(){clearTimeout(p),p=setTimeout(Tt,f.resizeInterval||N)}class Wt{constructor(t){vt(this,"tarList",[]),vt(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||It(),d.some(t=>t===this)||d.push(this))}unobserve(e){B().remove(d,t=>t.tarList.some(t=>t.target===e))}disconnect(){B().remove(d,t=>t===this)}}let h={create(t){return new(window.ResizeObserver||Wt)(t)}},v=(0,U.reactive)({language:"",langMaps:{}}),g=!1,m={};function mt(t,e){var{langMaps:n,language:r}=v,o=f.i18n;return o?""+(o(t,e)||""):(g||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),g=!0),!e&&m[t]?m[t]:(o=B().toFormatString(B().get(n[r],t,t),e),e||(m[t]=o),o))}function Ct(t){var e=v.language,t=t||"zh-CN";return e!==t&&(v.language=t,m={}),i}function Rt(t,e){return v.langMaps[t]=Object.assign({},e),i}function At(t){var e=v.langMaps;return!!e[t]}function Lt(){var t=v.language;return t}function yt(n,r){return function(t,e){t=`[vxe ${r||""}] `+mt(t,e);return console[n](t),t}}let y={create:yt,warn:yt("warn","v4.2.5"),err:yt("error","v4.2.5")},b={},x={mixin(t){return B().each(t,(t,e)=>x.add(e,t)),x},get(t){return b[t]||null},add(r,t){if(r&&t){let n=b[r];n?(B().each(t,(t,e)=>{B().eqNull(n[e])||n[e]===t||y.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):b[r]=t}return x},forEach(t){return B().objectEach(b,t),x},delete(t){return delete b[t],x}},w=class{constructor(){vt(this,"store",{})}mixin(t){return B().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}},E=new w,O=(Object.assign(E,{_name:"Validators"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),S=(Object.assign(O,{_name:"Menus"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),j=(Object.assign(S,{_name:"Formats"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),P=(Object.assign(j,{_name:"Commands"}),{}),T={mixin(t){return B().each(t,(t,e)=>{T.add(e,t)}),T},get(t){return P[t]||[]},add(e,n){n=(n=B().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=P[e];-1<(t=t||(P[e]=[])).indexOf(n)&&y.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return T},delete(t,n){var r=P[t];if(r){let e=(n=B().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?B().remove(r,t=>t===e):delete P[t]}}},I,C={text:"",html:""},R={getStore(){return C},setStore(t){Object.assign(C,t||{})},copy(t){let e=!1;try{var n=B().toValueString(t);r=n,I||((I=document.createElement("textarea")).id="$VxeCopy",(o=I.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(I)),I.value=r,I.select(),I.setSelectionRange(0,I.value.length),e=document.execCommand("copy"),I.blur(),C.text=n,C.html=""}catch(t){}var r,o;return e},getText(){return C.text||""}};function bt(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(B().isBoolean(s)?t=s:s&&(t=!!s.visible,e=!!s.disabled),e||o||(o=!0,u=e),t&&!r&&(r=!0,i=t),r&&o)break}}return{code:t,visible:i,disabled:u}}let A={getCheckInfo(t){return bt(t)},checkVisible(t){return bt(t).visible},checkDisable(t){return bt(t).disabled}},L=new w;function Mt(t){let e=(0,U.inject)("xeSizeInfo",null);var n=(0,U.computed)(()=>t.size||(e?e.value:null));return(0,U.provide)("xeSizeInfo",n),{computeSize:n}}function _t(t){return{computePermissionInfo:(0,U.computed)(()=>bt(t.permissionCode,t.permissionMethod))}}let M={useSize:Mt,usePermission:_t},F=[];function kt(t,e){return t&&t.install&&-1===F.indexOf(t)&&(t.install(k,e),F.push(t)),k}let _={};function Nt(t){return _[t]||null}function Ft(t){return!!_[t]}function zt(t){t&&t.name&&(_[t.name]=t,_[B().kebabCase(t.name)]=t)}function Dt(){return(0,U.createCommentVNode)()}let k=Object.assign(i,{renderEmptyElement:Dt,setTheme:ft,getTheme:lt,setConfig:pt,getConfig:dt,setIcon:St,getIcon:jt,setLanguage:Ct,hasLanguage:At,getLanguage:Lt,setI18n:Rt,getI18n:mt,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:x,validators:E,menus:O,formats:S,commands:j,interceptor:T,clipboard:R,log:y,permission:A,globalStore:e,hooks:L,component:zt,getComponent:Nt,hasComponent:Ft,useFns:M,use:kt});ft();var Vt=k;return V}});
|
|
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(xt,wt){{var Et={9274:function(t){t.exports=xt},8871:function(t){t.exports=wt},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")}},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),u=n(8227)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=c(t),u))?e:a?i(t):"Object"===(e=i(t))&&o(t.callee)?"Arguments":e}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},2211:function(t,e,n){n=n(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4576),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw e("Maximum allowed index exceeded");return t}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){n=n(4576).navigator,n=n&&n.userAgent;t.exports=n?String(n):""},9519:function(t,e,n){var r,o,i=n(4576),n=n(2839),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},6518:function(t,e,n){var s=n(4576),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4576),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),u=n(6269),c=n(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[r(t)]}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),u=n(6823),c=n(851),a=TypeError;t.exports=function(t,e){e=arguments.length<2?c(t):e;if(o(e))return i(r(e,t));throw new a(u(t)+" is not iterable")}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4576:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},397:function(t,e,n){n=n(7751);t.exports=n("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4576),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",v=a.TypeError,a=a.WeakMap,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")}}}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},2652:function(t,e,n){function m(t,e){this.stopped=t,this.result=e}var y=n(6080),b=n(9565),x=n(8551),w=n(6823),E=n(4209),O=n(6198),S=n(1625),j=n(81),P=n(851),I=n(9539),T=TypeError,C=m.prototype;t.exports=function(t,e,n){function r(t){return i&&I(i,"normal",t),new m(!0,t)}function o(t){return p?(x(t),v?g(t[0],t[1],r):g(t[0],t[1])):v?g(t,r):g(t)}var i,u,c,a,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=y(e,l);if(d)i=t.iterator;else if(h)i=t;else{if(!(n=P(t)))throw new T(w(t)+" is not iterable");if(E(n)){for(u=0,c=O(t);u<c;u++)if((a=o(t[u]))&&S(C,a))return a;return new m(!1)}i=j(t,n)}for(s=(d?t:i).next;!(f=b(s,i)).done;){try{a=o(f.value)}catch(t){I(i,"throw",t)}if("object"==typeof a&&a&&S(C,a))return a}return new m(!1)}},9539:function(t,e,n){var i=n(9565),u=n(8551),c=n(5966);t.exports=function(t,e,n){var r,o;u(t);try{if(!(r=c(t,"return"))){if("throw"===e)throw n;return n}r=i(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return u(r),n}},7657:function(t,e,n){var r,o,i=n(9039),u=n(4901),c=n(34),a=n(2360),s=n(2787),f=n(6840),l=n(8227),n=n(6395),p=l("iterator"),l=!1;[].keys&&("next"in(o=[].keys())?(s=s(s(o)))!==Object.prototype&&(r=s):l=!0),!c(r)||i(function(){var t={};return r[p].call(t)!==t})?r={}:n&&(r=a(r)),u(r[p])||f(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),v=r("".replace),g=r([].join),m=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),y=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(y,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},2360:function(t,e,n){function r(){}function o(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e}var i,u=n(8551),c=n(6801),a=n(8727),s=n(421),f=n(397),l=n(4055),n=n(6119),p=">",d="<",h="prototype",v="script",g=n("IE_PROTO"),m=function(t){return d+v+p+t+d+"/"+v+p},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}y="undefined"==typeof document||document.domain&&i?o(i):(t=l("iframe"),e="java"+v+":",t.style.display="none",f.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var t,e,n=a.length;n--;)delete y[h][a[n]];return y()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[h]=u(t),n=new r,r[h]=null,n[g]=t):n=y(),void 0===e?n:c.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),c=n(4913),a=n(8551),s=n(5397),f=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=f(e),i=o.length,u=0;u<i;)c.f(t,n=o[u++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),u=n(6119),n=n(2211),c=u("IE_PROTO"),a=Object,s=a.prototype;t.exports=n?a.getPrototypeOf:function(t){var e,t=i(t);return r(t,c)?t[c]:(e=t.constructor,o(e)&&t instanceof e?e.prototype:t instanceof a?s:null)}},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4576),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1..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}})},8111:function(t,e,n){function r(){if(c(this,g),f(this)===g)throw new x("Abstract class Iterator not directly constructable")}function o(e,t){m?l(g,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===g)throw new x("You can't redefine this property");h(this,e)?this[e]=t:p(this,e,t)}}):g[e]=t}var i=n(6518),u=n(4576),c=n(679),a=n(8551),s=n(4901),f=n(2787),l=n(2106),p=n(4659),d=n(9039),h=n(9297),v=n(8227),g=n(7657).IteratorPrototype,m=n(3724),n=n(6395),y="constructor",b="Iterator",v=v("toStringTag"),x=TypeError,w=u[b],u=n||!s(w)||w.prototype!==g||!d(function(){w({})});h(g,v)||o(v,b),!u&&h(g,y)&&g[y]!==Object||o(y,r),r.prototype=g,i({global:!0,constructor:!0,forced:u},{Iterator:r})},7588:function(t,e,n){var r=n(6518),o=n(2652),i=n(9306),u=n(8551),c=n(1767);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){u(this),i(e);var t=c(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},3579:function(t,e,n){var r=n(6518),o=n(2652),i=n(9306),u=n(8551),c=n(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(n){u(this),i(n);var t=c(this),r=0;return o(t,function(t,e){if(n(t,r++))return e()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8992:function(t,e,n){n(8111)},3949:function(t,e,n){n(7588)},7550:function(t,e,n){n(3579)}},z={};function D(t){var e=z[t];return void 0!==e||(e=z[t]={exports:{}},Et[t].call(e.exports,e,e.exports,D)),e.exports}D.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return D.d(e,{a:e}),e},D.d=function(t,e){for(var n in e)D.o(e,n)&&!D.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},D.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),D.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},D.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},D.p="";var V={};D.r(V),D.d(V,{GLOBAL_EVENT_KEYS:function(){return o},VxeCore:function(){return i},VxeUI:function(){return k},clipboard:function(){return R},commands:function(){return j},component:function(){return Vt},coreVersion:function(){return t},createEvent:function(){return s},default:function(){return Wt},formats:function(){return S},getComponent:function(){return zt},getConfig:function(){return jt},getI18n:function(){return mt},getIcon:function(){return pt},getLanguage:function(){return _t},getTheme:function(){return lt},globalEvents:function(){return l},globalResize:function(){return h},globalStore:function(){return e},handleCheckInfo:function(){return bt},hasComponent:function(){return Dt},hasLanguage:function(){return Mt},hooks:function(){return L},interceptor:function(){return I},log:function(){return y},menus:function(){return O},permission:function(){return A},renderCustomIcon:function(){return dt},renderEmptyElement:function(){return Ut},renderGlobalIcon:function(){return It},renderer:function(){return x},setConfig:function(){return St},setI18n:function(){return Lt},setIcon:function(){return Pt},setLanguage:function(){return At},setTheme:function(){return ft},use:function(){return Ft},useFns:function(){return M},usePermission:function(){return Nt},useSize:function(){return kt},validators:function(){return E}}),"undefined"!=typeof window&&(W=(W=window.document.currentScript)&&W.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(D.p=W[1]),D(4114);let t="4.2.6",i={coreVersion:t,uiVersion:"",tableVersion:"",designVersion:""};var U=D(9274),W=D(8871),B=D.n(W),G=null,$=null,X=null,q="z-index-manage",H=null,K="z-index-style",Y={m:1e3,s:1e3};function Z(){return G||"undefined"!=typeof document&&(G=document),G}function J(){return $=G&&!$?G.body||G.getElementsByTagName("body")[0]:$}function Q(){var t;H||!(t=Z())||(H=t.getElementById(K))||((H=t.createElement("style")).id=K,t.getElementsByTagName("head")[0].appendChild(H)),H&&(H.innerHTML=":root{--dom-main"+(t="-z-index")+":"+ot()+";--dom-sub"+t+":"+at()+"}")}function tt(){var t,e;return X||(t=Z())&&!(X=t.getElementById(q))&&(e=J())&&((X=t.createElement("div")).id=q,X.style.display="none",e.appendChild(X),nt(Y.m),ut(Y.s)),X}function et(n){return function(t){var e;return t&&(t=Number(t),Y[n]=t,e=tt())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),Q(),Y[n]}}var nt=et("m");function rt(r,o){return function(t){var e=tt(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||Y[r];return t?Number(t)<n?o():t:n}}var ot=rt("m",it);function it(){return nt(ot()+1)}var ut=et("s"),ct=rt("s",st);function at(){return ot()+ct()}function st(){return ut(ct()+1),at()}var W={setCurrent:nt,getCurrent:ot,getNext:it,setSubCurrent:ut,getSubCurrent:at,getSubNext:st,getMax:function(){var t=0;if(Z()){var e=J();if(e)for(var n=e.getElementsByTagName("*"),r=0;r<n.length;r++){var o=n[r];o&&o.style&&1===o.nodeType&&(o=o.style.zIndex)&&/^\d+$/.test(o)&&(t=Math.max(t,Number(o)))}}return t}},Ot=(Q(),W);let f={size:"",version:1,zIndex:999,resizeInterval:500},n={theme:""};function ft(t){var e,t=t&&"default"!==t?t:"light";return n.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),i}function lt(){return n.theme}function St(t){return t&&(t.zIndex&&Ot.setCurrent(t.zIndex),t.theme&&ft(t.theme),B().merge(f,t)),i}function jt(t,e){return arguments.length?B().get(f,t,e):f}let e={},r={};function Pt(t){return t&&Object.assign(r,t),i}function pt(t){return arguments.length?B().get(r,t):r}function It(t){return dt(pt(t),t)}function dt(t,e){return B().isFunction(t)?(0,U.h)("span",{},(e=t({name:e}),B().isArray(e)?e:e?[e]:[])):(0,U.h)("i",{class:t})}function ht(t){return(ht="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=((t,e)=>{if("object"!=ht(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=ht(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==ht(t)?t:t+""}function vt(t,e,n){(e=Tt(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",Control:"Control",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},u=(W=B().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=W.firefox?"DOMMouseScroll":"mousewheel",a=[];function gt(n){let r=n.type===c;a.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class Bt{constructor(t,e,n){vt(this,"$event",void 0),vt(this,"type",""),vt(this,"key",""),vt(this,"code",""),(this.$event=t)&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code)&&(this.code=t.code),Object.assign(this,e),B().objectEach(n,(n,r)=>{if(B().isFunction(n)){let t=null,e=!1;Object.defineProperty(this,r,{get(){return e||(e=!0,t=n()),t}})}else this[r]=n})}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}let s=(t,e,n)=>new Bt(t,e,n),l={on(t,e,n){a.push({comp:t,type:e,cb:n})},off(e,n){B().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))}},p=void(W.isDoc&&(W.msie||(window.addEventListener("copy",gt,!1),window.addEventListener("cut",gt,!1),window.addEventListener("paste",gt,!1)),document.addEventListener("keydown",gt,!1),document.addEventListener("contextmenu",gt,!1),window.addEventListener("mousedown",gt,!1),window.addEventListener("blur",gt,!1),window.addEventListener("resize",gt,!1),window.addEventListener(c,B().throttle(gt,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1})),D(8992),D(3949),D(7550)),d=[],N=500;function Ct(){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))})}),Rt())}function Rt(){clearTimeout(p),p=setTimeout(Ct,f.resizeInterval||N)}class Gt{constructor(t){vt(this,"tarList",[]),vt(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||Rt(),d.some(t=>t===this)||d.push(this))}unobserve(e){B().remove(d,t=>t.tarList.some(t=>t.target===e))}disconnect(){B().remove(d,t=>t===this)}}let h={create(t){return new(window.ResizeObserver||Gt)(t)}},v=(0,U.reactive)({language:"",langMaps:{}}),g=!1,m={};function mt(t,e){var{langMaps:n,language:r}=v,o=f.i18n;return o?""+(o(t,e)||""):(g||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),g=!0),!e&&m[t]?m[t]:(o=B().toFormatString(B().get(n[r],t,t),e),e||(m[t]=o),o))}function At(t){var e=v.language,t=t||"zh-CN";return e!==t&&(v.language=t,m={}),i}function Lt(t,e){return v.langMaps[t]=Object.assign({},e),i}function Mt(t){var e=v.langMaps;return!!e[t]}function _t(){var t=v.language;return t}function yt(n,r){return function(t,e){t=`[vxe ${r||""}] `+mt(t,e);return console[n](t),t}}let y={create:yt,warn:yt("warn","v4.2.6"),err:yt("error","v4.2.6")},b={},x={mixin(t){return B().each(t,(t,e)=>x.add(e,t)),x},get(t){return b[t]||null},add(r,t){if(r&&t){let n=b[r];n?(B().each(t,(t,e)=>{B().eqNull(n[e])||n[e]===t||y.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):b[r]=t}return x},forEach(t){return B().objectEach(b,t),x},delete(t){return delete b[t],x}},w=class{constructor(){vt(this,"store",{})}mixin(t){return B().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}},E=new w,O=(Object.assign(E,{_name:"Validators"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),S=(Object.assign(O,{_name:"Menus"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),j=(Object.assign(S,{_name:"Formats"}),new class{constructor(){vt(this,"store",{})}mixin(t){return B().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];B().isFunction(t)&&(y.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});let r=B().keys(e);return B().each(t,(t,e)=>{r.includes(e)&&y.warn("vxe.error.coverProp",[n,e])}),this.store[n]=e?B().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){B().objectEach(this.store,t)}}),P=(Object.assign(j,{_name:"Commands"}),{}),I={mixin(t){return B().each(t,(t,e)=>{I.add(e,t)}),I},get(t){return P[t]||[]},add(e,n){n=(n=B().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=P[e];-1<(t=t||(P[e]=[])).indexOf(n)&&y.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return I},delete(t,n){var r=P[t];if(r){let e=(n=B().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?B().remove(r,t=>t===e):delete P[t]}}},T,C={text:"",html:""},R={getStore(){return C},setStore(t){Object.assign(C,t||{})},copy(t){let e=!1;try{var n=B().toValueString(t);r=n,T||((T=document.createElement("textarea")).id="$VxeCopy",(o=T.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(T)),T.value=r,T.select(),T.setSelectionRange(0,T.value.length),e=document.execCommand("copy"),T.blur(),C.text=n,C.html=""}catch(t){}var r,o;return e},getText(){return C.text||""}};function bt(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(B().isBoolean(s)?t=s:s&&(t=!!s.visible,e=!!s.disabled),e||o||(o=!0,u=e),t&&!r&&(r=!0,i=t),r&&o)break}}return{code:t,visible:i,disabled:u}}let A={getCheckInfo(t){return bt(t)},checkVisible(t){return bt(t).visible},checkDisable(t){return bt(t).disabled}},L=new w;function kt(t){let e=(0,U.inject)("xeSizeInfo",null);var n=(0,U.computed)(()=>t.size||(e?e.value:null));return(0,U.provide)("xeSizeInfo",n),{computeSize:n}}function Nt(t){return{computePermissionInfo:(0,U.computed)(()=>bt(t.permissionCode,t.permissionMethod))}}let M={useSize:kt,usePermission:Nt},F=[];function Ft(t,e){return t&&t.install&&-1===F.indexOf(t)&&(t.install(k,e),F.push(t)),k}let _={};function zt(t){return _[t]||null}function Dt(t){return!!_[t]}function Vt(t){t&&t.name&&(_[t.name]=t,_[B().kebabCase(t.name)]=t)}function Ut(){return(0,U.createCommentVNode)()}let k=Object.assign(i,{renderEmptyElement:Ut,setTheme:ft,getTheme:lt,setConfig:St,getConfig:jt,setIcon:Pt,getIcon:pt,renderGlobalIcon:It,renderCustomIcon:dt,setLanguage:At,hasLanguage:Mt,getLanguage:_t,setI18n:Lt,getI18n:mt,globalEvents:l,GLOBAL_EVENT_KEYS:o,createEvent:s,globalResize:h,renderer:x,validators:E,menus:O,formats:S,commands:j,interceptor:I,clipboard:R,log:y,permission:A,globalStore:e,hooks:L,component:Vt,getComponent:zt,hasComponent:Dt,useFns:M,use:Ft});ft();var Wt=k;return V}});
|
package/lib/src/core.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.coreVersion = exports.VxeCore = void 0;
|
|
7
|
-
const coreVersion = exports.coreVersion = "4.2.
|
|
7
|
+
const coreVersion = exports.coreVersion = "4.2.6";
|
|
8
8
|
const VxeCore = exports.VxeCore = {
|
|
9
9
|
coreVersion,
|
|
10
10
|
uiVersion: '',
|
package/lib/src/core.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.coreVersion=exports.VxeCore=void 0;let coreVersion=exports.coreVersion="4.2.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.coreVersion=exports.VxeCore=void 0;let coreVersion=exports.coreVersion="4.2.6",VxeCore=exports.VxeCore={coreVersion:coreVersion,uiVersion:"",tableVersion:"",designVersion:""};
|
package/lib/src/icon.js
CHANGED
|
@@ -4,10 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getIcon = getIcon;
|
|
7
|
+
exports.renderCustomIcon = renderCustomIcon;
|
|
8
|
+
exports.renderGlobalIcon = renderGlobalIcon;
|
|
7
9
|
exports.setIcon = setIcon;
|
|
10
|
+
var _vue = require("vue");
|
|
8
11
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
9
12
|
var _core = require("./core");
|
|
10
13
|
var _iconStore = require("./iconStore");
|
|
14
|
+
var _vm = require("./vm");
|
|
11
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
16
|
function setIcon(options) {
|
|
13
17
|
if (options) {
|
|
@@ -17,4 +21,18 @@ function setIcon(options) {
|
|
|
17
21
|
}
|
|
18
22
|
function getIcon(key) {
|
|
19
23
|
return arguments.length ? _xeUtils.default.get(_iconStore.iconConfigStore, key) : _iconStore.iconConfigStore;
|
|
24
|
+
}
|
|
25
|
+
function renderGlobalIcon(name) {
|
|
26
|
+
const icon = getIcon(name);
|
|
27
|
+
return renderCustomIcon(icon, name);
|
|
28
|
+
}
|
|
29
|
+
function renderCustomIcon(icon, name) {
|
|
30
|
+
if (_xeUtils.default.isFunction(icon)) {
|
|
31
|
+
return (0, _vue.h)('span', {}, (0, _vm.getSlotVNs)(icon({
|
|
32
|
+
name
|
|
33
|
+
})));
|
|
34
|
+
}
|
|
35
|
+
return (0, _vue.h)('i', {
|
|
36
|
+
class: icon
|
|
37
|
+
});
|
|
20
38
|
}
|
package/lib/src/icon.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIcon=getIcon,exports.setIcon=setIcon;var _xeUtils=_interopRequireDefault(require("xe-utils")),_core=require("./core"),_iconStore=require("./iconStore");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function setIcon(e){return e&&Object.assign(_iconStore.iconConfigStore,e),_core.VxeCore}function getIcon(e){return arguments.length?_xeUtils.default.get(_iconStore.iconConfigStore,e):_iconStore.iconConfigStore}
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIcon=getIcon,exports.renderCustomIcon=renderCustomIcon,exports.renderGlobalIcon=renderGlobalIcon,exports.setIcon=setIcon;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_core=require("./core"),_iconStore=require("./iconStore"),_vm=require("./vm");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function setIcon(e){return e&&Object.assign(_iconStore.iconConfigStore,e),_core.VxeCore}function getIcon(e){return arguments.length?_xeUtils.default.get(_iconStore.iconConfigStore,e):_iconStore.iconConfigStore}function renderGlobalIcon(e){return renderCustomIcon(getIcon(e),e)}function renderCustomIcon(e,o){return _xeUtils.default.isFunction(e)?(0,_vue.h)("span",{},(0,_vm.getSlotVNs)(e({name:o}))):(0,_vue.h)("i",{class:e})}
|
package/lib/src/log.js
CHANGED
package/lib/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=void 0;var _i18n=require("./i18n");function createLog(o,n){return function(e,r){e=`[vxe ${n||""}] `+(0,_i18n.getI18n)(e,r);return console[o](e),e}}let version="4.2.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=void 0;var _i18n=require("./i18n");function createLog(o,n){return function(e,r){e=`[vxe ${n||""}] `+(0,_i18n.getI18n)(e,r);return console[o](e),e}}let version="4.2.6",log=exports.log={create:createLog,warn:createLog("warn","v"+version),err:createLog("error","v"+version)};
|
package/lib/src/vm.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSlotVNs = getSlotVNs;
|
|
7
|
+
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
function getSlotVNs(vns) {
|
|
10
|
+
if (_xeUtils.default.isArray(vns)) {
|
|
11
|
+
return vns;
|
|
12
|
+
}
|
|
13
|
+
return vns ? [vns] : [];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSlotVNs=getSlotVNs;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getSlotVNs(e){return _xeUtils.default.isArray(e)?e:e?[e]:[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxe-ui/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.6",
|
|
4
4
|
"description": "Vxe UI core library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"gulp-uglify": "^3.0.2",
|
|
58
58
|
"postcss": "^8.4.38",
|
|
59
59
|
"typescript": "~4.7.4",
|
|
60
|
-
"vue": "
|
|
60
|
+
"vue": "3.4.27"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|
|
63
63
|
"type": "git",
|
package/packages/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { VxeCore } from './src/core'
|
|
|
2
2
|
import { createCommentVNode } from 'vue'
|
|
3
3
|
import { setConfig, getConfig } from './src/config'
|
|
4
4
|
import { globalStore } from './src/dataStore'
|
|
5
|
-
import { setIcon, getIcon } from './src/icon'
|
|
5
|
+
import { setIcon, getIcon, renderGlobalIcon, renderCustomIcon } from './src/icon'
|
|
6
6
|
import { setTheme, getTheme } from './src/theme'
|
|
7
7
|
import { globalEvents, GLOBAL_EVENT_KEYS, createEvent } from './src/event'
|
|
8
8
|
import { globalResize } from './src/resize'
|
|
@@ -62,8 +62,12 @@ export const VxeUI = Object.assign(VxeCore, {
|
|
|
62
62
|
getTheme,
|
|
63
63
|
setConfig,
|
|
64
64
|
getConfig: getConfig as any,
|
|
65
|
+
|
|
65
66
|
setIcon,
|
|
66
67
|
getIcon: getIcon as any,
|
|
68
|
+
renderGlobalIcon,
|
|
69
|
+
renderCustomIcon,
|
|
70
|
+
|
|
67
71
|
setLanguage,
|
|
68
72
|
hasLanguage,
|
|
69
73
|
getLanguage,
|
package/packages/src/icon.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { h } from 'vue'
|
|
1
2
|
import XEUtils from 'xe-utils'
|
|
2
3
|
import { VxeCore } from './core'
|
|
3
4
|
import { iconConfigStore } from './iconStore'
|
|
5
|
+
import { getSlotVNs } from './vm'
|
|
4
6
|
|
|
5
|
-
import { VxeGlobalIcon } from '../../types'
|
|
7
|
+
import { VxeGlobalIcon, VxeGlobalIconConfig } from '../../types'
|
|
6
8
|
|
|
7
9
|
export function setIcon (options?: VxeGlobalIcon) {
|
|
8
10
|
if (options) {
|
|
@@ -14,3 +16,17 @@ export function setIcon (options?: VxeGlobalIcon) {
|
|
|
14
16
|
export function getIcon (key: keyof VxeGlobalIcon) {
|
|
15
17
|
return arguments.length ? XEUtils.get(iconConfigStore, key) : iconConfigStore
|
|
16
18
|
}
|
|
19
|
+
|
|
20
|
+
export function renderGlobalIcon (name: keyof VxeGlobalIcon) {
|
|
21
|
+
const icon = getIcon(name) as VxeGlobalIconConfig
|
|
22
|
+
return renderCustomIcon(icon, name)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function renderCustomIcon (icon: VxeGlobalIconConfig, name: string) {
|
|
26
|
+
if (XEUtils.isFunction(icon)) {
|
|
27
|
+
return h('span', {}, getSlotVNs(icon({ name })))
|
|
28
|
+
}
|
|
29
|
+
return h('i', {
|
|
30
|
+
class: icon
|
|
31
|
+
})
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
|
|
3
|
+
import { VxeComponentSlotType } from '../../types'
|
|
4
|
+
|
|
5
|
+
export function getSlotVNs (vns: VxeComponentSlotType | VxeComponentSlotType[] | undefined) {
|
|
6
|
+
if (XEUtils.isArray(vns)) {
|
|
7
|
+
return vns
|
|
8
|
+
}
|
|
9
|
+
return vns ? [vns] : []
|
|
10
|
+
}
|
package/types/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VNode } from 'vue'
|
|
2
2
|
import { VxeGlobalConfig } from './global-config'
|
|
3
3
|
import { VxeGlobalData } from './global-data'
|
|
4
|
-
import { VxeGlobalIcon } from './global-icon'
|
|
4
|
+
import { VxeGlobalIcon, VxeGlobalIconConfig } from './global-icon'
|
|
5
5
|
import { VxeGlobalThemeName } from './global-theme'
|
|
6
6
|
import { VxeGlobalI18nLocale } from './global-lang'
|
|
7
7
|
import { VxeGlobalEvents, VxeGlobalEventKey, VxeGlobalCreateEventMethod } from './global-event'
|
|
@@ -18,7 +18,7 @@ import { VxeGlobalComponentMethod, VxeGlobalGetComponentMethod, VxeGlobalHasComp
|
|
|
18
18
|
import { VxeGlobalUseFns } from './useFn'
|
|
19
19
|
import { VxeGlobalHooks } from './hooks'
|
|
20
20
|
import { VxeGlobalLog } from './log'
|
|
21
|
-
import { VxeComponentBaseOptions } from '../tool'
|
|
21
|
+
import { VxeComponentBaseOptions, VxeComponentSlotType } from '../tool'
|
|
22
22
|
|
|
23
23
|
/* eslint-disable no-use-before-define */
|
|
24
24
|
|
|
@@ -33,6 +33,8 @@ export function getConfig(key: keyof VxeGlobalConfig, defaultValue?: any): any
|
|
|
33
33
|
export function setIcon(options?: VxeGlobalIcon): VxeUIExport
|
|
34
34
|
export function getIcon(): Required<VxeGlobalIcon>
|
|
35
35
|
export function getIcon(key: keyof VxeGlobalIcon): any
|
|
36
|
+
export function renderGlobalIcon(name: keyof VxeGlobalIcon): VNode
|
|
37
|
+
export function renderCustomIcon(icon: VxeGlobalIconConfig, name: string): VNode
|
|
36
38
|
|
|
37
39
|
export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
|
|
38
40
|
export function getLanguage(): VxeGlobalI18nLocale
|
|
@@ -40,6 +42,8 @@ export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
|
|
|
40
42
|
export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
|
|
41
43
|
export function getI18n(key: string, args?: any): string
|
|
42
44
|
|
|
45
|
+
export function getSlotVNs(vns: VxeComponentSlotType | VxeComponentSlotType[] | undefined): VxeComponentSlotType[]
|
|
46
|
+
|
|
43
47
|
export const component: VxeGlobalComponentMethod
|
|
44
48
|
export const getComponent: VxeGlobalGetComponentMethod
|
|
45
49
|
export const hasComponent: VxeGlobalHasComponentMethod
|
|
@@ -127,6 +131,14 @@ export interface VxeUIExport {
|
|
|
127
131
|
* 设置全局图标
|
|
128
132
|
*/
|
|
129
133
|
setIcon: typeof setIcon
|
|
134
|
+
/**
|
|
135
|
+
* 渲染全局配置图标
|
|
136
|
+
*/
|
|
137
|
+
renderGlobalIcon : typeof renderGlobalIcon
|
|
138
|
+
/**
|
|
139
|
+
* 渲染自定义图标
|
|
140
|
+
*/
|
|
141
|
+
renderCustomIcon : typeof renderCustomIcon
|
|
130
142
|
/**
|
|
131
143
|
* 判断是否已经安装了该语言包,如果已安装则返回 true
|
|
132
144
|
*/
|
|
@@ -208,6 +220,8 @@ export interface VxeUIExport {
|
|
|
208
220
|
*/
|
|
209
221
|
log: VxeGlobalLog
|
|
210
222
|
|
|
223
|
+
getSlotVNs: typeof getSlotVNs
|
|
224
|
+
|
|
211
225
|
/**
|
|
212
226
|
* 注册的组件
|
|
213
227
|
*/
|