@vxe-ui/core 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.esm.js +248 -17
- package/dist/all.esm.min.js +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +3 -0
- package/es/index.js +3 -0
- package/es/src/core.js +1 -1
- package/es/src/db-utils.d.ts +2 -0
- package/es/src/db-utils.js +234 -0
- package/es/src/log.js +1 -1
- package/lib/index.common.js +3 -0
- package/lib/index.js +3 -0
- package/lib/index.umd.js +248 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/src/core.js +1 -1
- package/lib/src/db-utils.js +263 -0
- package/lib/src/log.js +1 -1
- package/package.json +1 -1
- package/packages/index.ts +3 -0
- package/packages/src/db-utils.ts +267 -0
- package/types/core/db-utils.d.ts +44 -0
- package/types/core/global-config.d.ts +4 -5
- package/types/core/index.d.ts +7 -0
package/dist/all.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
|
|
5
5
|
// packages_temp/src/core.ts
|
|
6
|
-
var coreVersion = "4.5.
|
|
6
|
+
var coreVersion = "4.5.2";
|
|
7
7
|
var VxeCore = {
|
|
8
8
|
coreVersion,
|
|
9
9
|
uiVersion: "",
|
|
@@ -393,7 +393,7 @@ function createLog(type, name) {
|
|
|
393
393
|
return msg;
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
var version = "4.5.
|
|
396
|
+
var version = "4.5.2";
|
|
397
397
|
var log = {
|
|
398
398
|
create: createLog,
|
|
399
399
|
warn: createLog("warn", `v${version}`),
|
|
@@ -849,8 +849,237 @@ var baseUtils = {
|
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
-
// packages_temp/src/
|
|
852
|
+
// packages_temp/src/db-utils.ts
|
|
853
853
|
import XEUtils16 from "xe-utils";
|
|
854
|
+
var IdbStore = class {
|
|
855
|
+
constructor(key, version2) {
|
|
856
|
+
__publicField(this, "storeName", "vxe_storage");
|
|
857
|
+
__publicField(this, "key");
|
|
858
|
+
__publicField(this, "version");
|
|
859
|
+
__publicField(this, "dbPromise", null);
|
|
860
|
+
__publicField(this, "dbName", "");
|
|
861
|
+
this.key = key;
|
|
862
|
+
this.version = version2;
|
|
863
|
+
}
|
|
864
|
+
getDBName() {
|
|
865
|
+
return `${this.key}_${this.version}`;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* 重置连接缓存,下次调用 openDB 会重新建立连接
|
|
869
|
+
*/
|
|
870
|
+
resetDB() {
|
|
871
|
+
this.dbPromise = null;
|
|
872
|
+
this.dbName = "";
|
|
873
|
+
}
|
|
874
|
+
openDB() {
|
|
875
|
+
const name = this.getDBName();
|
|
876
|
+
if (this.dbPromise && this.dbName === name) {
|
|
877
|
+
return this.dbPromise;
|
|
878
|
+
}
|
|
879
|
+
this.dbName = name;
|
|
880
|
+
this.dbPromise = new Promise((resolve, reject) => {
|
|
881
|
+
const request = indexedDB.open(name, 1);
|
|
882
|
+
request.onupgradeneeded = () => {
|
|
883
|
+
const db = request.result;
|
|
884
|
+
if (!db.objectStoreNames.contains(this.storeName)) {
|
|
885
|
+
db.createObjectStore(this.storeName, { keyPath: "id" });
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
request.onsuccess = () => {
|
|
889
|
+
const db = request.result;
|
|
890
|
+
db.onversionchange = () => {
|
|
891
|
+
db.close();
|
|
892
|
+
this.resetDB();
|
|
893
|
+
};
|
|
894
|
+
db.onclose = () => {
|
|
895
|
+
this.resetDB();
|
|
896
|
+
};
|
|
897
|
+
resolve(db);
|
|
898
|
+
};
|
|
899
|
+
request.onerror = () => {
|
|
900
|
+
reject(request.error || new Error(`IdbStore open failed: ${name}`));
|
|
901
|
+
};
|
|
902
|
+
request.onblocked = () => {
|
|
903
|
+
console.warn(`[IdbStore] open blocked: ${name}`);
|
|
904
|
+
};
|
|
905
|
+
}).catch((err) => {
|
|
906
|
+
this.resetDB();
|
|
907
|
+
throw err;
|
|
908
|
+
});
|
|
909
|
+
return this.dbPromise;
|
|
910
|
+
}
|
|
911
|
+
getById(id) {
|
|
912
|
+
return this.openDB().then(
|
|
913
|
+
(db) => new Promise((resolve, reject) => {
|
|
914
|
+
const req = db.transaction(this.storeName, "readonly").objectStore(this.storeName).get(id);
|
|
915
|
+
req.onsuccess = () => resolve(req.result);
|
|
916
|
+
req.onerror = () => reject(req.error);
|
|
917
|
+
})
|
|
918
|
+
);
|
|
919
|
+
}
|
|
920
|
+
getAll() {
|
|
921
|
+
return this.openDB().then(
|
|
922
|
+
(db) => new Promise((resolve, reject) => {
|
|
923
|
+
const store = db.transaction(this.storeName, "readonly").objectStore(this.storeName);
|
|
924
|
+
if (XEUtils16.isFunction(store.getAll)) {
|
|
925
|
+
const req2 = store.getAll();
|
|
926
|
+
req2.onsuccess = () => resolve(req2.result || []);
|
|
927
|
+
req2.onerror = () => reject(req2.error);
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
const list = [];
|
|
931
|
+
const req = store.openCursor();
|
|
932
|
+
req.onsuccess = () => {
|
|
933
|
+
const cursor = req.result;
|
|
934
|
+
if (cursor) {
|
|
935
|
+
list.push(cursor.value);
|
|
936
|
+
cursor.continue();
|
|
937
|
+
} else {
|
|
938
|
+
resolve(list);
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
req.onerror = () => reject(req.error);
|
|
942
|
+
})
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
updateById(id, data) {
|
|
946
|
+
if (data == null) {
|
|
947
|
+
return this.deleteById(id);
|
|
948
|
+
}
|
|
949
|
+
return this.openDB().then(
|
|
950
|
+
(db) => new Promise((resolve, reject) => {
|
|
951
|
+
const tx = db.transaction(this.storeName, "readwrite");
|
|
952
|
+
tx.objectStore(this.storeName).put({ id, data });
|
|
953
|
+
tx.oncomplete = () => resolve();
|
|
954
|
+
tx.onerror = () => reject(tx.error);
|
|
955
|
+
})
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
deleteById(id) {
|
|
959
|
+
return this.openDB().then(
|
|
960
|
+
(db) => new Promise((resolve, reject) => {
|
|
961
|
+
const tx = db.transaction(this.storeName, "readwrite");
|
|
962
|
+
tx.objectStore(this.storeName).delete(id);
|
|
963
|
+
tx.oncomplete = () => resolve();
|
|
964
|
+
tx.onerror = () => reject(tx.error);
|
|
965
|
+
})
|
|
966
|
+
);
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* 清空当前库的数据
|
|
970
|
+
*/
|
|
971
|
+
clear() {
|
|
972
|
+
return this.openDB().then(
|
|
973
|
+
(db) => new Promise((resolve, reject) => {
|
|
974
|
+
const tx = db.transaction(this.storeName, "readwrite");
|
|
975
|
+
tx.objectStore(this.storeName).clear();
|
|
976
|
+
tx.oncomplete = () => resolve();
|
|
977
|
+
tx.onerror = () => reject(tx.error);
|
|
978
|
+
})
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* 清理非当前版本的旧库
|
|
983
|
+
*/
|
|
984
|
+
cleanupOldDBs() {
|
|
985
|
+
if (!indexedDB.databases) {
|
|
986
|
+
return Promise.resolve();
|
|
987
|
+
}
|
|
988
|
+
const current = this.getDBName();
|
|
989
|
+
const prefix = `${this.key}_`;
|
|
990
|
+
return indexedDB.databases().then((dbs) => {
|
|
991
|
+
dbs.forEach((db) => {
|
|
992
|
+
const n = db.name;
|
|
993
|
+
if (!n || n === current || !n.startsWith(prefix)) {
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
const rest = n.slice(prefix.length);
|
|
997
|
+
if (!rest.includes("_")) {
|
|
998
|
+
indexedDB.deleteDatabase(n);
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
var LocalStorageStore = class {
|
|
1005
|
+
constructor(key, version2) {
|
|
1006
|
+
__publicField(this, "key");
|
|
1007
|
+
__publicField(this, "version");
|
|
1008
|
+
this.key = key;
|
|
1009
|
+
this.version = version2;
|
|
1010
|
+
}
|
|
1011
|
+
readAll() {
|
|
1012
|
+
const storageData = XEUtils16.toStringJSON(localStorage.getItem(this.key) || "");
|
|
1013
|
+
return storageData && String(storageData._v) === String(this.version) ? storageData : { _v: this.version };
|
|
1014
|
+
}
|
|
1015
|
+
writeAll(map) {
|
|
1016
|
+
localStorage.setItem(this.key, XEUtils16.toJSONString(map));
|
|
1017
|
+
}
|
|
1018
|
+
getById(id) {
|
|
1019
|
+
const map = this.readAll();
|
|
1020
|
+
const has = Object.prototype.hasOwnProperty.call(map, id);
|
|
1021
|
+
return Promise.resolve(has && map[id] != null ? { id, data: map[id] } : void 0);
|
|
1022
|
+
}
|
|
1023
|
+
getAll() {
|
|
1024
|
+
const map = this.readAll();
|
|
1025
|
+
const list = [];
|
|
1026
|
+
Object.keys(map).forEach((k) => {
|
|
1027
|
+
if (k !== "_v" && map[k] != null) {
|
|
1028
|
+
list.push({ id: k, data: map[k] });
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
return Promise.resolve(list);
|
|
1032
|
+
}
|
|
1033
|
+
updateById(id, data) {
|
|
1034
|
+
if (data == null) {
|
|
1035
|
+
return this.deleteById(id);
|
|
1036
|
+
}
|
|
1037
|
+
const map = this.readAll();
|
|
1038
|
+
map[id] = data;
|
|
1039
|
+
this.writeAll(map);
|
|
1040
|
+
return Promise.resolve();
|
|
1041
|
+
}
|
|
1042
|
+
deleteById(id) {
|
|
1043
|
+
const map = this.readAll();
|
|
1044
|
+
delete map[id];
|
|
1045
|
+
this.writeAll(map);
|
|
1046
|
+
return Promise.resolve();
|
|
1047
|
+
}
|
|
1048
|
+
clear() {
|
|
1049
|
+
this.writeAll({ _v: this.version });
|
|
1050
|
+
return Promise.resolve();
|
|
1051
|
+
}
|
|
1052
|
+
cleanupOldDBs() {
|
|
1053
|
+
const raw = localStorage.getItem(this.key);
|
|
1054
|
+
if (!raw) {
|
|
1055
|
+
return Promise.resolve();
|
|
1056
|
+
}
|
|
1057
|
+
const storageData = XEUtils16.toStringJSON(raw);
|
|
1058
|
+
if (!storageData || String(storageData._v) !== String(this.version)) {
|
|
1059
|
+
localStorage.removeItem(this.key);
|
|
1060
|
+
}
|
|
1061
|
+
return Promise.resolve();
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
var dbUtils = {
|
|
1065
|
+
/**
|
|
1066
|
+
* 创建存储实例
|
|
1067
|
+
* - driver = 'indexedDB' 且环境支持 => IdbStore
|
|
1068
|
+
* - 其余情况(未传 / 不支持)=> LocalStorageStore
|
|
1069
|
+
*/
|
|
1070
|
+
createStore(key, options) {
|
|
1071
|
+
const opts = Object.assign({}, options);
|
|
1072
|
+
const version2 = opts.version || globalConfigStore.version || 0;
|
|
1073
|
+
const driver = opts.driver;
|
|
1074
|
+
if ((!driver || driver === "indexedDB") && typeof indexedDB !== "undefined") {
|
|
1075
|
+
return new IdbStore(key, version2);
|
|
1076
|
+
}
|
|
1077
|
+
return new LocalStorageStore(key, version2);
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
// packages_temp/src/dom-utils.ts
|
|
1082
|
+
import XEUtils17 from "xe-utils";
|
|
854
1083
|
var reClsMap = {};
|
|
855
1084
|
function getClsRE(cls) {
|
|
856
1085
|
if (!reClsMap[cls]) {
|
|
@@ -915,7 +1144,7 @@ var domUtils = {
|
|
|
915
1144
|
}
|
|
916
1145
|
}
|
|
917
1146
|
}
|
|
918
|
-
|
|
1147
|
+
XEUtils17.each(mapClassName, (val, key) => {
|
|
919
1148
|
if (val) {
|
|
920
1149
|
parts.push(key);
|
|
921
1150
|
}
|
|
@@ -983,7 +1212,7 @@ var scrollbarUtils = {
|
|
|
983
1212
|
};
|
|
984
1213
|
|
|
985
1214
|
// packages_temp/src/popper-utils.ts
|
|
986
|
-
import
|
|
1215
|
+
import XEUtils18 from "xe-utils";
|
|
987
1216
|
function getWrapperElement(panelElem) {
|
|
988
1217
|
if (!panelElem) {
|
|
989
1218
|
return null;
|
|
@@ -993,12 +1222,12 @@ function getWrapperElement(panelElem) {
|
|
|
993
1222
|
return (parentEl === bodyEl ? document.documentElement : parentEl) || null;
|
|
994
1223
|
}
|
|
995
1224
|
function getAppendSelector(appendTo) {
|
|
996
|
-
const selectElem = appendTo &&
|
|
1225
|
+
const selectElem = appendTo && XEUtils18.isFunction(appendTo) ? appendTo({}) : appendTo;
|
|
997
1226
|
return selectElem || "body";
|
|
998
1227
|
}
|
|
999
1228
|
function getAppendElement(appendTo) {
|
|
1000
1229
|
const selectElem = getAppendSelector(appendTo);
|
|
1001
|
-
if (
|
|
1230
|
+
if (XEUtils18.isString(selectElem)) {
|
|
1002
1231
|
return document.querySelector(selectElem) || document.body;
|
|
1003
1232
|
}
|
|
1004
1233
|
return selectElem;
|
|
@@ -1101,16 +1330,16 @@ var popperUtils = {
|
|
|
1101
1330
|
left = -(panelRect.left + panelRect.width + marginSize - visibleWidth);
|
|
1102
1331
|
}
|
|
1103
1332
|
}
|
|
1104
|
-
if (
|
|
1333
|
+
if (XEUtils18.isNumber(top)) {
|
|
1105
1334
|
stys.top = top + "px";
|
|
1106
1335
|
}
|
|
1107
|
-
if (
|
|
1336
|
+
if (XEUtils18.isNumber(bottom)) {
|
|
1108
1337
|
stys.bottom = bottom + "px";
|
|
1109
1338
|
}
|
|
1110
|
-
if (
|
|
1339
|
+
if (XEUtils18.isNumber(left)) {
|
|
1111
1340
|
stys.left = left + "px";
|
|
1112
1341
|
}
|
|
1113
|
-
if (isMinWidth &&
|
|
1342
|
+
if (isMinWidth && XEUtils18.isNumber(minWidth)) {
|
|
1114
1343
|
stys.minWidth = minWidth + "px";
|
|
1115
1344
|
}
|
|
1116
1345
|
if (left === targetLeft) {
|
|
@@ -1153,7 +1382,7 @@ var popperUtils = {
|
|
|
1153
1382
|
var hooks = new store_default();
|
|
1154
1383
|
|
|
1155
1384
|
// packages_temp/src/useFns.ts
|
|
1156
|
-
import
|
|
1385
|
+
import XEUtils19 from "xe-utils";
|
|
1157
1386
|
import { computed, ref, inject, provide } from "vue";
|
|
1158
1387
|
var { getThumbOffsetSize, getThumbSize, getScrollFromClick, getScrollFromDrag } = scrollbarUtils;
|
|
1159
1388
|
function useSize(props) {
|
|
@@ -1177,7 +1406,7 @@ function useVScrollbar(props) {
|
|
|
1177
1406
|
const xeScrollbarInfo = inject("xeScrollbarInfo", null);
|
|
1178
1407
|
const computeIsVScrollbar = computed(() => {
|
|
1179
1408
|
const { useScrollbar } = props;
|
|
1180
|
-
return
|
|
1409
|
+
return XEUtils19.isBoolean(useScrollbar) ? useScrollbar : xeScrollbarInfo ? xeScrollbarInfo.value : null;
|
|
1181
1410
|
});
|
|
1182
1411
|
provide("xeScrollbarInfo", computeIsVScrollbar);
|
|
1183
1412
|
return { computeIsVScrollbar };
|
|
@@ -1364,7 +1593,7 @@ var useFns = {
|
|
|
1364
1593
|
};
|
|
1365
1594
|
|
|
1366
1595
|
// packages_temp/index.ts
|
|
1367
|
-
import
|
|
1596
|
+
import XEUtils20 from "xe-utils";
|
|
1368
1597
|
var installedPlugins = [];
|
|
1369
1598
|
function use(Plugin, options) {
|
|
1370
1599
|
if (Plugin && Plugin.install) {
|
|
@@ -1385,7 +1614,7 @@ function hasComponent(name) {
|
|
|
1385
1614
|
function component(comp) {
|
|
1386
1615
|
if (comp && comp.name) {
|
|
1387
1616
|
components[comp.name] = comp;
|
|
1388
|
-
components[
|
|
1617
|
+
components[XEUtils20.kebabCase(comp.name)] = comp;
|
|
1389
1618
|
}
|
|
1390
1619
|
}
|
|
1391
1620
|
function renderEmptyElement() {
|
|
@@ -1395,9 +1624,9 @@ function checkVersion(version2, pVersion, sVersion) {
|
|
|
1395
1624
|
if (version2) {
|
|
1396
1625
|
const vRest = `${version2}`.match(/(\d+).(\d+).(\d+)/);
|
|
1397
1626
|
if (vRest) {
|
|
1398
|
-
const pV =
|
|
1627
|
+
const pV = XEUtils20.toNumber(vRest[1]);
|
|
1399
1628
|
if (sVersion) {
|
|
1400
|
-
const sV =
|
|
1629
|
+
const sV = XEUtils20.toNumber(vRest[2]);
|
|
1401
1630
|
return pV >= pVersion && sV >= sVersion;
|
|
1402
1631
|
}
|
|
1403
1632
|
return pV >= pVersion;
|
|
@@ -1435,6 +1664,7 @@ var VxeUI = Object.assign(VxeCore, {
|
|
|
1435
1664
|
permission,
|
|
1436
1665
|
zIndex,
|
|
1437
1666
|
baseUtils,
|
|
1667
|
+
dbUtils,
|
|
1438
1668
|
domUtils,
|
|
1439
1669
|
scrollbarUtils,
|
|
1440
1670
|
popperUtils,
|
|
@@ -1461,6 +1691,7 @@ export {
|
|
|
1461
1691
|
component,
|
|
1462
1692
|
coreVersion,
|
|
1463
1693
|
createEvent,
|
|
1694
|
+
dbUtils,
|
|
1464
1695
|
index_default as default,
|
|
1465
1696
|
domUtils,
|
|
1466
1697
|
formats,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ke=Object.defineProperty,Be=(t,e,r)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e,r)=>Be(t,typeof e!="symbol"?e+"":e,r),Pt="4.5.2",I={coreVersion:Pt,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};import{createCommentVNode as Xe}from"vue";import yt from"xe-utils";import He from"dom-zindex";var N={size:"",version:1,zIndex:999,resizeInterval:500},Dt={theme:""};function K(t){const e=!t||t==="default"?"light":t;if(Dt.theme=e,typeof document!="undefined"){const r=document.documentElement;r&&r.setAttribute("data-vxe-ui-theme",e)}return I}function It(){return Dt.theme}function Ct(t){return t&&(t.zIndex&&He.setCurrent(t.zIndex),t.theme&&K(t.theme),yt.merge(N,t)),I}function Wt(t,e){return arguments.length?yt.get(N,t,e):N}var Nt={};import{h as Lt}from"vue";import Rt from"xe-utils";var ct={};import Ae from"xe-utils";function lt(t){return Ae.isArray(t)?t:t?[t]:[]}function kt(t){return t&&Object.assign(ct,t),I}function at(t){return arguments.length?Rt.get(ct,t):ct}function Bt(t){const e=at(t);return ut(e,t)}function ut(t,e){return Rt.isFunction(t)?Lt("span",{},lt(t({name:e}))):Lt("i",{class:t})}import _ from"xe-utils";var C={F2:"F2",F10:"F10",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",PROCESS:"Process",A:"A",X:"X",C:"C",V:"V",D:"D",F:"F",H:"H",M:"M",Y:"Y",Z:"Z",R:"R",P:"P"},ht=_.browse(),Xt={" ":"Spacebar",Apps:C.CONTEXT_MENU,Del:C.DELETE,Up:C.ARROW_UP,Down:C.ARROW_DOWN,Left:C.ARROW_LEFT,Right:C.ARROW_RIGHT},Ht=ht.firefox?"DOMMouseScroll":"mousewheel",ft=[];function T(t){const e=t.type===Ht;ft.forEach(({type:r,cb:n})=>{t.cancelBubble||(r===t.type||e&&r==="mousewheel")&&n(t)})}var At=class{constructor(t,e,r){v(this,"$event"),v(this,"type",""),v(this,"key",""),v(this,"code",""),this.$event=t,t&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code&&(this.code=t.code)),Object.assign(this,e),_.objectEach(r,(n,o)=>{if(_.isFunction(n)){let s=null,c=!1;Object.defineProperty(this,o,{get(){return c||(c=!0,s=n()),s}})}else this[o]=n})}stopPropagation(){const t=this.$event;t&&t.stopPropagation()}preventDefault(){const t=this.$event;t&&t.preventDefault()}},_t=(t,e,r)=>(t instanceof At&&(t=t.$event),new At(t,e,r)),Mt={on(t,e,r){ft.push({comp:t,type:e,cb:r})},off(t,e){_.remove(ft,r=>r.comp===t&&r.type===e)},hasKey(t,e){if(!e)return!1;const{key:r}=t;return e=e.toLowerCase(),r?e===r.toLowerCase()||!!(Xt[r]&&Xt[r].toLowerCase()===e):!1}};ht.isDoc&&(ht.msie||(window.addEventListener("copy",T,!1),window.addEventListener("cut",T,!1),window.addEventListener("paste",T,!1)),document.addEventListener("scroll",T,!0),document.addEventListener("keydown",T,!1),document.addEventListener("contextmenu",T,!1),window.addEventListener("mousedown",T,!1),window.addEventListener("click",T,!1),window.addEventListener("blur",T,!1),window.addEventListener("resize",T,!1),window.addEventListener(Ht,_.throttle(T,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));import Ut from"xe-utils";var jt,L=[],_e=500;function Me(){L.length&&(L.forEach(t=>{t.tarList.forEach(e=>{const{target:r,width:n,heighe:o}=e,s=r.clientWidth,c=r.clientHeight;(s&&n!==s||c&&o!==c)&&(e.width=s,e.heighe=c,setTimeout(t.callback))})}),Ft())}function Ft(){clearTimeout(jt),jt=setTimeout(Me,N.resizeInterval||_e)}var Ue=class{constructor(t){v(this,"tarList",[]),v(this,"callback"),this.callback=t}observe(t){if(t){const{tarList:e}=this;e.some(r=>r.target===t)||e.push({target:t,width:t.clientWidth,heighe:t.clientHeight}),L.length||Ft(),L.some(r=>r===this)||L.push(this)}}unobserve(t){Ut.remove(L,e=>e.tarList.some(r=>r.target===t))}disconnect(){Ut.remove(L,t=>t===this)}},Vt={create(t){return window.ResizeObserver?new window.ResizeObserver(t):new Ue(t)}};import zt from"xe-utils";import{reactive as je}from"vue";var k=je({language:"",langMaps:{}}),Yt=!1,Z={};function Fe(t){return t&&t.__esModule?t.default:t}function mt(t,e){const{langMaps:r,language:n}=k,{i18n:o}=N;if(o)return`${o(t,e)||""}`;if(Yt||(r[n]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${I.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),Yt=!0),!e&&Z[t])return Z[t];const s=zt.toFormatString(zt.get(r[n],t,t),e);return e||(Z[t]=s),s}function $t(t){const{language:e}=k,r=t||"zh-CN";return e!==r&&(k.language=r,Z={}),I}function qt(t,e){return k.langMaps[t]=Object.assign({},Fe(e)),I}function Gt(t){const{langMaps:e}=k;return!!e[t]}function Kt(){const{language:t}=k;return t}import J from"xe-utils";function dt(t,e){return function(r,n){const o=`[vxe ${e||""}] ${mt(r,n)}`;return console[t](o),o}}var Zt="4.5.2",O={create:dt,warn:dt("warn",`v${Zt}`),err:dt("error",`v${Zt}`)},M={},R={mixin(t){return J.each(t,(e,r)=>{R.add(r,e)}),R},get(t){return M[t]||null},add(t,e){if(t&&e){const r=M[t];r?(J.each(e,(n,o)=>{!J.eqNull(r[o])&&r[o]!==n&&O.warn("vxe.error.coverProp",[`Renderer.${t}`,o])}),Object.assign(r,e)):M[t]=e}return R},forEach(t){return J.objectEach(M,t),R},delete(t){return delete M[t],R}};import U from"xe-utils";var Ve=class{constructor(){v(this,"store",{})}mixin(t){return U.each(t,(e,r)=>{this.add(r,e)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,e){const r=this.store[t],n=U.keys(r);return U.each(e,(o,s)=>{n.includes(s)&&O.warn("vxe.error.coverProp",[t,s])}),this.store[t]=r?U.merge(r,e):e,this}delete(t){delete this.store[t]}forEach(t){U.objectEach(this.store,t)}},Jt=Ve,gt=new Jt;Object.assign(gt,{_name:"Validators"});import B from"xe-utils";var ze=class{constructor(){v(this,"store",{})}mixin(t){return B.each(t,(e,r)=>{this.add(r,e)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,e){const r=this.store[t];B.isFunction(e)&&(O.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),e={menuMethod:e});const n=B.keys(r);return B.each(e,(o,s)=>{n.includes(s)&&O.warn("vxe.error.coverProp",[t,s])}),this.store[t]=r?B.merge(r,e):e,this}delete(t){delete this.store[t]}forEach(t){B.objectEach(this.store,t)}},pt=new ze;Object.assign(pt,{_name:"Menus"});import X from"xe-utils";var Ye=class{constructor(){v(this,"store",{})}mixin(t){return X.each(t,(e,r)=>{this.add(r,e)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,e){const r=this.store[t];X.isFunction(e)&&(O.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),e={cellFormatMethod:e});const n=X.keys(r);return X.each(e,(o,s)=>{n.includes(s)&&O.warn("vxe.error.coverProp",[t,s])}),this.store[t]=r?X.merge(r,e):e,this}delete(t){delete this.store[t]}forEach(t){X.objectEach(this.store,t)}},bt=new Ye;Object.assign(bt,{_name:"Formats"});import H from"xe-utils";var $e=class{constructor(){v(this,"store",{})}mixin(t){return H.each(t,(e,r)=>{this.add(r,e)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,e){const r=this.store[t];H.isFunction(e)&&(O.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),e={commandMethod:e});const n=H.keys(r);return H.each(e,(o,s)=>{n.includes(s)&&O.warn("vxe.error.coverProp",[t,s])}),this.store[t]=r?H.merge(r,e):e,this}delete(t){delete this.store[t]}forEach(t){H.objectEach(this.store,t)}},vt=new $e;Object.assign(vt,{_name:"Commands"});import Q from"xe-utils";var j={},F={mixin(t){return Q.each(t,(e,r)=>{F.add(r,e)}),F},get(t){return t?j[t]||[]:[]},add(t,e){Q.isFunction(e)&&(e={tableInterceptorMethod:e});const r=e.tableInterceptorMethod;if(r){let n=j[t];n||(n=j[t]=[]),n.indexOf(r)>-1&&O.warn("vxe.error.coverProp",["Interceptor",t]),n.push(r)}return F},delete(t,e){const r=j[t];if(r){Q.isFunction(e)&&(e={tableInterceptorMethod:e});const n=e?e.tableInterceptorMethod:null;n?Q.remove(r,o=>o===n):delete j[t]}}};import qe from"xe-utils";var P,V={text:"",html:""};function Ge(t){if(!P){P=document.createElement("textarea"),P.id="$VxeCopy";const e=P.style;e.width="48px",e.height="24px",e.position="fixed",e.zIndex="0",e.left="-500px",e.top="-500px",document.body.appendChild(P)}P.value=t}var Qt={getStore(){return V},setStore(t){Object.assign(V,t||{})},copy(t){let e=!1;try{const r=qe.toValueString(t);Ge(r),P.select(),P.setSelectionRange(0,P.value.length),e=document.execCommand("copy"),P.blur(),V.text=r,V.html=""}catch(r){}return e},getText(){return V.text||""}};import Ke from"xe-utils";function z(t,e){let r=!0,n=!1;const o=e||N.permissionMethod;if(t&&o){r=!1,n=!0;let c=!1,E=!1;const S=String(t).split("|");for(let b=0;b<S.length;b++){const Y=S[b];let w=!0,h=!1;const x=o({code:Y});if(Ke.isBoolean(x)?w=x:x&&(w=!!x.visible,h=!!x.disabled),!h&&!E&&(E=!0,n=h),w&&!c&&(c=!0,r=w),c&&E)break}}return{code:t,visible:r,disabled:n}}var te={getCheckInfo(t){return z(t)},checkVisible(t){return z(t).visible},checkDisable(t){return z(t).disabled}};import tt from"dom-zindex";var ee={next(){return tt.getNext()},getLast(){return tt.getCurrent()},nextSub(){return tt.getSubNext()},getSubLast(){return tt.getSubCurrent()}};import re from"xe-utils";var ne={toString(t){return re.eqNull(t)?"":""+t},isEmpty(t){return t==null||t===""},getDefVal(t,e){return re.eqNull(t)?e:t},isEnabled(t){return!!(t&&t.enabled!==!1)},hasEnableConf(t,e){return!!(e&&(t?e.enabled!==!1:e.enabled))}};import et from"xe-utils";var Ze=class{constructor(t,e){v(this,"storeName","vxe_storage"),v(this,"key"),v(this,"version"),v(this,"dbPromise",null),v(this,"dbName",""),this.key=t,this.version=e}getDBName(){return`${this.key}_${this.version}`}resetDB(){this.dbPromise=null,this.dbName=""}openDB(){const t=this.getDBName();return this.dbPromise&&this.dbName===t?this.dbPromise:(this.dbName=t,this.dbPromise=new Promise((e,r)=>{const n=indexedDB.open(t,1);n.onupgradeneeded=()=>{const o=n.result;o.objectStoreNames.contains(this.storeName)||o.createObjectStore(this.storeName,{keyPath:"id"})},n.onsuccess=()=>{const o=n.result;o.onversionchange=()=>{o.close(),this.resetDB()},o.onclose=()=>{this.resetDB()},e(o)},n.onerror=()=>{r(n.error||new Error(`IdbStore open failed: ${t}`))},n.onblocked=()=>{console.warn(`[IdbStore] open blocked: ${t}`)}}).catch(e=>{throw this.resetDB(),e}),this.dbPromise)}getById(t){return this.openDB().then(e=>new Promise((r,n)=>{const o=e.transaction(this.storeName,"readonly").objectStore(this.storeName).get(t);o.onsuccess=()=>r(o.result),o.onerror=()=>n(o.error)}))}getAll(){return this.openDB().then(t=>new Promise((e,r)=>{const n=t.transaction(this.storeName,"readonly").objectStore(this.storeName);if(et.isFunction(n.getAll)){const c=n.getAll();c.onsuccess=()=>e(c.result||[]),c.onerror=()=>r(c.error);return}const o=[],s=n.openCursor();s.onsuccess=()=>{const c=s.result;c?(o.push(c.value),c.continue()):e(o)},s.onerror=()=>r(s.error)}))}updateById(t,e){return e==null?this.deleteById(t):this.openDB().then(r=>new Promise((n,o)=>{const s=r.transaction(this.storeName,"readwrite");s.objectStore(this.storeName).put({id:t,data:e}),s.oncomplete=()=>n(),s.onerror=()=>o(s.error)}))}deleteById(t){return this.openDB().then(e=>new Promise((r,n)=>{const o=e.transaction(this.storeName,"readwrite");o.objectStore(this.storeName).delete(t),o.oncomplete=()=>r(),o.onerror=()=>n(o.error)}))}clear(){return this.openDB().then(t=>new Promise((e,r)=>{const n=t.transaction(this.storeName,"readwrite");n.objectStore(this.storeName).clear(),n.oncomplete=()=>e(),n.onerror=()=>r(n.error)}))}cleanupOldDBs(){if(!indexedDB.databases)return Promise.resolve();const t=this.getDBName(),e=`${this.key}_`;return indexedDB.databases().then(r=>{r.forEach(n=>{const o=n.name;if(!o||o===t||!o.startsWith(e))return;o.slice(e.length).includes("_")||indexedDB.deleteDatabase(o)})})}},Je=class{constructor(t,e){v(this,"key"),v(this,"version"),this.key=t,this.version=e}readAll(){const t=et.toStringJSON(localStorage.getItem(this.key)||"");return t&&String(t._v)===String(this.version)?t:{_v:this.version}}writeAll(t){localStorage.setItem(this.key,et.toJSONString(t))}getById(t){const e=this.readAll(),r=Object.prototype.hasOwnProperty.call(e,t);return Promise.resolve(r&&e[t]!=null?{id:t,data:e[t]}:void 0)}getAll(){const t=this.readAll(),e=[];return Object.keys(t).forEach(r=>{r!=="_v"&&t[r]!=null&&e.push({id:r,data:t[r]})}),Promise.resolve(e)}updateById(t,e){if(e==null)return this.deleteById(t);const r=this.readAll();return r[t]=e,this.writeAll(r),Promise.resolve()}deleteById(t){const e=this.readAll();return delete e[t],this.writeAll(e),Promise.resolve()}clear(){return this.writeAll({_v:this.version}),Promise.resolve()}cleanupOldDBs(){const t=localStorage.getItem(this.key);if(!t)return Promise.resolve();const e=et.toStringJSON(t);return(!e||String(e._v)!==String(this.version))&&localStorage.removeItem(this.key),Promise.resolve()}},oe={createStore(t,e){const r=Object.assign({},e),n=r.version||N.version||0,o=r.driver;return(!o||o==="indexedDB")&&typeof indexedDB!="undefined"?new Ze(t,n):new Je(t,n)}};import Qe from"xe-utils";var Et={};function se(t){return Et[t]||(Et[t]=new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g")),Et[t]}function wt(t,e){return t?t.classList?t.classList.contains(e):!!(t.className&&t.className.match&&t.className.match(se(e))):!1}function ie(t,e){t&&wt(t,e)&&(t.className=t.className.replace(se(e),""))}var ce={isPx(t){return t&&/^\d+(\.\d+)?(px)?$/.test(t)},isScale(t){return t&&/^\d+(\.\d+)?%$/.test(t)},hasClass:wt,removeClass:ie,addClass(t,e){t&&!wt(t,e)&&(ie(t,e),t.className=t.className+" "+e)},buildClass(t,e){const r=[];if(t)for(let n=0;n<t.length;n++){const o=t[n];o&&r.push(""+o)}return Qe.each(e,(n,o)=>{n&&r.push(o)}),r.join(" ")}},St={getThumbSize(t,e,r){if(e<=t)return 0;const n=t/e,o=r*n;return Math.max(20,Math.min(o,r))},getThumbOffsetSize(t,e,r,n,o){const s=r-e;if(s<=0)return 0;const c=n-o;return c<=0?0:Math.min(Math.max(t,0),s)/s*c},getScrollFromClick(t,e,r,n,o){const s=n-o,c=r-e;if(c<=0||s<=0)return 0;let E=t-o/2;return E=Math.min(Math.max(E,0),s),E/s*c},getScrollFromDrag(t,e,r,n,o,s){const c=n-r,E=o-s;if(c<=0||E<=0)return 0;let S=t-e;return S=Math.min(Math.max(S,0),E),S/E*c}};import A from"xe-utils";function le(t){if(!t)return null;const e=document.body,r=t.parentElement;return(r===e?document.documentElement:r)||null}function ae(t){return(t&&A.isFunction(t)?t({}):t)||"body"}function ue(t){const e=ae(t);return A.isString(e)?document.querySelector(e)||document.body:e}var he={updatePlacement(t,e,r){const{defaultTop:n,defaultLeft:o,placement:s,defaultPlacement:c,appendTo:E,teleportTo:S,marginSize:b,isMinWidth:Y}=Object.assign({appendTo:"",teleportTo:!1,marginSize:12,isMinWidth:!0},r);let w="bottom",h="",x="",g=0,$="",i="";const u={};if(e&&t){const l=document.body,f=le(S?ue(E):e);if(f){const a=t.offsetWidth,m=t.offsetHeight,p=e.offsetWidth,d=e.offsetHeight,y=f.getBoundingClientRect(),q=e.getBoundingClientRect(),Ot=t.getBoundingClientRect(),it=l.clientHeight,G=l.clientWidth,We=f.scrollLeft,Ne=f.scrollTop,Le=y.left,Re=y.top,W=Ot.left,D=Ot.top;$=t.offsetWidth,S?(g=(o||W-(p-a)/2)-We,h=(n||D+m)-Ne,s==="top"?(w="top",h=D-d):s||(c==="top"?(w="top",n||(h=D-d),h<b&&(w="bottom",h=D+m),h+d+b>it&&(w="top",h=D-d)):(h+d+b>it&&(w="top",h=D-d),h<b&&(w="bottom",h=D+m))),g+p+b>G&&(g-=g+p+b-G),g<b&&(g=b),h-=Re,g-=Le):(s==="top"?(w="top",x=m):s||(h=m,D+m+d+b>it&&D-m-d>b&&(w="top",h="",x=m)),q.left+q.width+b>G&&(g=-(q.left+q.width+b-G))),A.isNumber(h)&&(u.top=h+"px"),A.isNumber(x)&&(u.bottom=x+"px"),A.isNumber(g)&&(u.left=g+"px"),Y&&A.isNumber($)&&(u.minWidth=$+"px"),g===W?a<=p&&(i=a/2):g<W&&(g+p>W+a?i=W-g+a/2:i=W-g+(p-(W-g))/2)}}return{top:h||0,bottom:x||0,left:g||0,arrowLeft:i||0,style:u,placement:w}},getWrapperElement:le,getAppendSelector:ae,getAppendElement:ue},fe=new Jt;import tr from"xe-utils";import{computed as xt,ref as rt,inject as me,provide as de}from"vue";var{getThumbOffsetSize:nt,getThumbSize:ge,getScrollFromClick:pe,getScrollFromDrag:be}=St;function ve(t){const e=me("xeSizeInfo",null),r=xt(()=>{const{size:n}=t;return n||(e?e.value:null)});return de("xeSizeInfo",r),{computeSize:r}}function Ee(t){return{computePermissionInfo:xt(()=>z(t.permissionCode,t.permissionMethod))}}function we(t){const e=me("xeScrollbarInfo",null),r=xt(()=>{const{useScrollbar:n}=t;return tr.isBoolean(n)?n:e?e.value:null});return de("xeScrollbarInfo",r),{computeIsVScrollbar:r}}var Se=t=>{const{reactData:e,internalData:r}=t,n=rt(),o=rt(),s=rt(),c=rt();return{refTrackXElem:n,refTrackYElem:o,refThumbXElem:s,refThumbYElem:c,updateThumbSize:()=>{const i=t.getScrollViewElem();if(!i||!i.clientHeight||!i.clientHeight)return;const u=n.value,l=u?ge(i.clientWidth,i.scrollWidth,u.clientWidth):0,f=s.value;f&&(f.style.width=l+"px"),e.xThumbWidth=l;const a=o.value,m=a?ge(i.clientHeight,i.scrollHeight,a.clientHeight):0,p=c.value;p&&(p.style.height=m+"px"),e.yThumbHeight=m},updateThumbOffset:()=>{const i=t.getScrollViewElem();if(!i||!i.clientHeight||!i.clientHeight)return;const{xThumbWidth:u,yThumbHeight:l}=e,f=n.value,a=s.value,m=f&&u?nt(i.scrollLeft,i.clientWidth,i.scrollWidth,f.clientWidth,u):0;r.xThumbLeft=m,a&&u&&(a.style.width=u+"px",a.style.transform=`translateX(${m}px)`);const p=o.value,d=c.value,y=p&&l?nt(i.scrollTop,i.clientHeight,i.scrollHeight,p.clientHeight,l):0;r.yThumbTop=y,d&&l&&(d.style.height=l+"px",d.style.transform=`translateY(${y}px)`)},clickTrackXEvent:i=>{const u=i.currentTarget;if(u!==i.target)return;const l=t.getScrollViewElem();if(!l)return;const{xThumbWidth:f}=e,a=u.getBoundingClientRect();l.scrollTo({left:pe(i.clientX-a.left,l.clientWidth,l.scrollWidth,u.clientWidth,f),behavior:"auto"})},clickTrackYEvent:i=>{const u=i.currentTarget;if(u!==i.target)return;const l=t.getScrollViewElem();if(!l)return;const{yThumbHeight:f}=e,a=u.getBoundingClientRect();l.scrollTo({top:pe(i.clientY-a.top,l.clientHeight,l.scrollHeight,u.clientHeight,f),behavior:"auto"})},pointerdownThumbXEvent:i=>{const u=i.currentTarget;r.isThumbDrag=!0,u.setPointerCapture(i.pointerId);const l=t.getScrollViewElem();if(!l)return;const{xThumbWidth:f}=e,a=u.parentElement,m=a.getBoundingClientRect(),p=i.clientX-m.left,d=nt(l.scrollLeft,l.clientWidth,l.scrollWidth,a.clientWidth,f);r.thumbDragOffset=p-d},pointermoveThumbXEvent:i=>{if(!i.currentTarget.hasPointerCapture(i.pointerId))return;const{isThumbDrag:l,thumbDragOffset:f}=r;if(l){const a=t.getScrollViewElem();if(!a)return;const{xThumbWidth:m}=e,d=i.currentTarget.parentElement,y=d.getBoundingClientRect();a.scrollLeft=be(i.clientX-y.left,f,a.clientWidth,a.scrollWidth,d.clientWidth,m)}},cleatPointerThumbEvent:i=>{i.currentTarget.releasePointerCapture(i.pointerId),r.isThumbDrag=!1},pointerdownThumbYEvent:i=>{const u=i.currentTarget;r.isThumbDrag=!0,u.setPointerCapture(i.pointerId);const l=t.getScrollViewElem();if(!l)return;const{yThumbHeight:f}=e,a=u.parentElement,m=a.getBoundingClientRect(),p=i.clientY-m.top,d=nt(l.scrollTop,l.clientHeight,l.scrollHeight,a.clientHeight,f);r.thumbDragOffset=p-d},pointermoveThumbYEvent:i=>{if(!i.currentTarget.hasPointerCapture(i.pointerId))return;const{isThumbDrag:l,thumbDragOffset:f}=r;if(l){const a=t.getScrollViewElem();if(!a)return;const{yThumbHeight:m}=e,d=i.currentTarget.parentElement,y=d.getBoundingClientRect();a.scrollTop=be(i.clientY-y.top,f,a.clientHeight,a.scrollHeight,d.clientHeight,m)}}}},xe={useSize:ve,useVScrollbar:we,usePermission:Ee,useInitVScrollbar:Se};import Tt from"xe-utils";var Te=[];function Oe(t,e){return t&&t.install&&Te.indexOf(t)===-1&&(t.install(st,e),Te.push(t)),st}var ot={};function Pe(t){return ot[t]||null}function ye(t){return!!ot[t]}function De(t){t&&t.name&&(ot[t.name]=t,ot[Tt.kebabCase(t.name)]=t)}function Ie(){return Xe()}function Ce(t,e,r){if(t){const n=`${t}`.match(/(\d+).(\d+).(\d+)/);if(n){const o=Tt.toNumber(n[1]);if(r){const s=Tt.toNumber(n[2]);return o>=e&&s>=r}return o>=e}}return!1}var st=Object.assign(I,{renderEmptyElement:Ie,setTheme:K,getTheme:It,setConfig:Ct,getConfig:Wt,setIcon:kt,getIcon:at,renderGlobalIcon:Bt,renderCustomIcon:ut,setLanguage:$t,hasLanguage:Gt,getLanguage:Kt,setI18n:qt,getI18n:mt,globalEvents:Mt,GLOBAL_EVENT_KEYS:C,createEvent:_t,globalResize:Vt,renderer:R,validators:gt,menus:pt,formats:bt,commands:vt,interceptor:F,clipboard:Qt,log:O,permission:te,zIndex:ee,baseUtils:ne,dbUtils:oe,domUtils:ce,scrollbarUtils:St,popperUtils:he,globalStore:Nt,hooks:fe,component:De,getComponent:Pe,hasComponent:ye,useFns:xe,getSlotVNs:lt,checkVersion:Ce,use:Oe});K();var er=st;export{C as GLOBAL_EVENT_KEYS,I as VxeCore,st as VxeUI,ne as baseUtils,Ce as checkVersion,Qt as clipboard,vt as commands,De as component,Pt as coreVersion,_t as createEvent,oe as dbUtils,er as default,ce as domUtils,bt as formats,Pe as getComponent,Wt as getConfig,mt as getI18n,at as getIcon,Kt as getLanguage,lt as getSlotVNs,It as getTheme,Mt as globalEvents,Vt as globalResize,Nt as globalStore,z as handleCheckInfo,ye as hasComponent,Gt as hasLanguage,fe as hooks,F as interceptor,O as log,pt as menus,te as permission,he as popperUtils,ut as renderCustomIcon,Ie as renderEmptyElement,Bt as renderGlobalIcon,R as renderer,St as scrollbarUtils,Ct as setConfig,qt as setI18n,kt as setIcon,$t as setLanguage,K as setTheme,Oe as use,xe as useFns,Se as useInitVScrollbar,Ee as usePermission,ve as useSize,we as useVScrollbar,gt as validators,ee as zIndex};
|
package/es/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare function use(Plugin: VxeUIPluginObject, options: any[]): import("
|
|
|
34
34
|
permission: import("../types").VxeGlobalPermission;
|
|
35
35
|
zIndex: import("../types").VxeZIndex;
|
|
36
36
|
baseUtils: import("../types").VxeBaseUtils;
|
|
37
|
+
dbUtils: import("../types").VxeDBUtils;
|
|
37
38
|
domUtils: import("../types").VxeDomUtils;
|
|
38
39
|
scrollbarUtils: import("../types").VxeScrollbarUtils;
|
|
39
40
|
popperUtils: import("../types").VxePopperUtils;
|
|
@@ -89,6 +90,7 @@ export declare const VxeUI: import("../types").VxeUIExport & {
|
|
|
89
90
|
permission: import("../types").VxeGlobalPermission;
|
|
90
91
|
zIndex: import("../types").VxeZIndex;
|
|
91
92
|
baseUtils: import("../types").VxeBaseUtils;
|
|
93
|
+
dbUtils: import("../types").VxeDBUtils;
|
|
92
94
|
domUtils: import("../types").VxeDomUtils;
|
|
93
95
|
scrollbarUtils: import("../types").VxeScrollbarUtils;
|
|
94
96
|
popperUtils: import("../types").VxePopperUtils;
|
|
@@ -124,6 +126,7 @@ export * from './src/clipboard';
|
|
|
124
126
|
export * from './src/permission';
|
|
125
127
|
export * from './src/z-index';
|
|
126
128
|
export * from './src/base-utils';
|
|
129
|
+
export * from './src/db-utils';
|
|
127
130
|
export * from './src/dom-utils';
|
|
128
131
|
export * from './src/scrollbar-utils';
|
|
129
132
|
export * from './src/popper-utils';
|
package/es/index.esm.js
CHANGED
|
@@ -17,6 +17,7 @@ import { clipboard } from "./src/clipboard";
|
|
|
17
17
|
import { permission } from "./src/permission";
|
|
18
18
|
import { zIndex } from "./src/z-index";
|
|
19
19
|
import { baseUtils } from "./src/base-utils";
|
|
20
|
+
import { dbUtils } from "./src/db-utils";
|
|
20
21
|
import { domUtils } from "./src/dom-utils";
|
|
21
22
|
import { scrollbarUtils } from "./src/scrollbar-utils";
|
|
22
23
|
import { popperUtils } from "./src/popper-utils";
|
|
@@ -95,6 +96,7 @@ const VxeUI = Object.assign(VxeCore, {
|
|
|
95
96
|
permission,
|
|
96
97
|
zIndex,
|
|
97
98
|
baseUtils,
|
|
99
|
+
dbUtils,
|
|
98
100
|
domUtils,
|
|
99
101
|
scrollbarUtils,
|
|
100
102
|
popperUtils,
|
|
@@ -126,6 +128,7 @@ export * from "./src/clipboard";
|
|
|
126
128
|
export * from "./src/permission";
|
|
127
129
|
export * from "./src/z-index";
|
|
128
130
|
export * from "./src/base-utils";
|
|
131
|
+
export * from "./src/db-utils";
|
|
129
132
|
export * from "./src/dom-utils";
|
|
130
133
|
export * from "./src/scrollbar-utils";
|
|
131
134
|
export * from "./src/popper-utils";
|
package/es/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { clipboard } from "./src/clipboard";
|
|
|
17
17
|
import { permission } from "./src/permission";
|
|
18
18
|
import { zIndex } from "./src/z-index";
|
|
19
19
|
import { baseUtils } from "./src/base-utils";
|
|
20
|
+
import { dbUtils } from "./src/db-utils";
|
|
20
21
|
import { domUtils } from "./src/dom-utils";
|
|
21
22
|
import { scrollbarUtils } from "./src/scrollbar-utils";
|
|
22
23
|
import { popperUtils } from "./src/popper-utils";
|
|
@@ -95,6 +96,7 @@ const VxeUI = Object.assign(VxeCore, {
|
|
|
95
96
|
permission,
|
|
96
97
|
zIndex,
|
|
97
98
|
baseUtils,
|
|
99
|
+
dbUtils,
|
|
98
100
|
domUtils,
|
|
99
101
|
scrollbarUtils,
|
|
100
102
|
popperUtils,
|
|
@@ -126,6 +128,7 @@ export * from "./src/clipboard";
|
|
|
126
128
|
export * from "./src/permission";
|
|
127
129
|
export * from "./src/z-index";
|
|
128
130
|
export * from "./src/base-utils";
|
|
131
|
+
export * from "./src/db-utils";
|
|
129
132
|
export * from "./src/dom-utils";
|
|
130
133
|
export * from "./src/scrollbar-utils";
|
|
131
134
|
export * from "./src/popper-utils";
|
package/es/src/core.js
CHANGED