keli-ui 0.0.6 → 0.0.8
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/keli-ui.js +232 -116
- package/dist/keli-ui.umd.cjs +1 -1
- package/dist/types/packages/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/types/packages/TableComponents/TableRender/common/tableFrameFilterUtil.d.ts +0 -2
- package/dist/types/packages/types/button.d.ts +0 -25
- package/dist/types/packages/types/componentFrame.d.ts +0 -21
- package/dist/types/packages/types/index.d.ts +0 -5
- package/dist/types/packages/types/queryFrame.d.ts +0 -8
- package/dist/types/packages/types/tableFrame.d.ts +0 -81
- package/dist/types/packages/types/translate.d.ts +0 -20
package/dist/keli-ui.js
CHANGED
|
@@ -5916,7 +5916,7 @@ const globalConfigStore = {
|
|
|
5916
5916
|
const themeConfigStore = {
|
|
5917
5917
|
theme: ""
|
|
5918
5918
|
};
|
|
5919
|
-
function setTheme(name2) {
|
|
5919
|
+
function setTheme$1(name2) {
|
|
5920
5920
|
const theme = !name2 || name2 === "default" ? "light" : name2;
|
|
5921
5921
|
themeConfigStore.theme = theme;
|
|
5922
5922
|
if (typeof document !== "undefined") {
|
|
@@ -5927,33 +5927,33 @@ function setTheme(name2) {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
return VxeCore;
|
|
5929
5929
|
}
|
|
5930
|
-
function getTheme() {
|
|
5930
|
+
function getTheme$1() {
|
|
5931
5931
|
return themeConfigStore.theme;
|
|
5932
5932
|
}
|
|
5933
|
-
function setConfig(options) {
|
|
5933
|
+
function setConfig$1(options) {
|
|
5934
5934
|
if (options) {
|
|
5935
5935
|
if (options.zIndex) {
|
|
5936
5936
|
DomZIndex.setCurrent(options.zIndex);
|
|
5937
5937
|
}
|
|
5938
5938
|
if (options.theme) {
|
|
5939
|
-
setTheme(options.theme);
|
|
5939
|
+
setTheme$1(options.theme);
|
|
5940
5940
|
}
|
|
5941
5941
|
XEUtils.merge(globalConfigStore, options);
|
|
5942
5942
|
}
|
|
5943
5943
|
return VxeCore;
|
|
5944
5944
|
}
|
|
5945
|
-
function getConfig$
|
|
5945
|
+
function getConfig$8(key, defaultValue) {
|
|
5946
5946
|
return arguments.length ? XEUtils.get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
5947
5947
|
}
|
|
5948
5948
|
const globalStore = {};
|
|
5949
5949
|
const iconConfigStore = {};
|
|
5950
|
-
function setIcon(options) {
|
|
5950
|
+
function setIcon$1(options) {
|
|
5951
5951
|
if (options) {
|
|
5952
5952
|
Object.assign(iconConfigStore, options);
|
|
5953
5953
|
}
|
|
5954
5954
|
return VxeCore;
|
|
5955
5955
|
}
|
|
5956
|
-
function getIcon$
|
|
5956
|
+
function getIcon$9(key) {
|
|
5957
5957
|
return arguments.length ? XEUtils.get(iconConfigStore, key) : iconConfigStore;
|
|
5958
5958
|
}
|
|
5959
5959
|
const GLOBAL_EVENT_KEYS$3 = {
|
|
@@ -6075,7 +6075,7 @@ class VxeComponentEvent {
|
|
|
6075
6075
|
const createEvent$3 = (evnt, params1, params2) => {
|
|
6076
6076
|
return new VxeComponentEvent(evnt, params1, params2);
|
|
6077
6077
|
};
|
|
6078
|
-
const globalEvents$
|
|
6078
|
+
const globalEvents$4 = {
|
|
6079
6079
|
on(comp, type, cb) {
|
|
6080
6080
|
eventStore$1.push({ comp, type, cb });
|
|
6081
6081
|
},
|
|
@@ -6168,7 +6168,7 @@ class XEResizeObserver {
|
|
|
6168
6168
|
XEUtils.remove(eventStore, (item) => item === this);
|
|
6169
6169
|
}
|
|
6170
6170
|
}
|
|
6171
|
-
const globalResize$
|
|
6171
|
+
const globalResize$2 = {
|
|
6172
6172
|
create(callback) {
|
|
6173
6173
|
if (window.ResizeObserver) {
|
|
6174
6174
|
return new window.ResizeObserver(callback);
|
|
@@ -6181,7 +6181,7 @@ const i18nConfigStore = reactive({
|
|
|
6181
6181
|
langMaps: {}
|
|
6182
6182
|
});
|
|
6183
6183
|
let checkInstall = false;
|
|
6184
|
-
function getI18n$
|
|
6184
|
+
function getI18n$e(key, args) {
|
|
6185
6185
|
const { langMaps, language } = i18nConfigStore;
|
|
6186
6186
|
const { i18n } = globalConfigStore;
|
|
6187
6187
|
if (i18n) {
|
|
@@ -6195,11 +6195,11 @@ function getI18n$d(key, args) {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
return XEUtils.toFormatString(XEUtils.get(langMaps[language], key, key), args);
|
|
6197
6197
|
}
|
|
6198
|
-
function setLanguage(locale) {
|
|
6198
|
+
function setLanguage$1(locale) {
|
|
6199
6199
|
i18nConfigStore.language = locale || "zh-CN";
|
|
6200
6200
|
return VxeCore;
|
|
6201
6201
|
}
|
|
6202
|
-
function setI18n(locale, data) {
|
|
6202
|
+
function setI18n$1(locale, data) {
|
|
6203
6203
|
i18nConfigStore.langMaps[locale] = Object.assign({}, data);
|
|
6204
6204
|
return VxeCore;
|
|
6205
6205
|
}
|
|
@@ -6213,22 +6213,22 @@ function getLanguage() {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
function createLog(type, name2) {
|
|
6215
6215
|
return function(key, args) {
|
|
6216
|
-
const msg = `[vxe ${name2 || ""}] ${getI18n$
|
|
6216
|
+
const msg = `[vxe ${name2 || ""}] ${getI18n$e(key, args)}`;
|
|
6217
6217
|
console[type](msg);
|
|
6218
6218
|
return msg;
|
|
6219
6219
|
};
|
|
6220
6220
|
}
|
|
6221
6221
|
const version$2 = "4.1.0";
|
|
6222
|
-
const log$
|
|
6222
|
+
const log$2 = {
|
|
6223
6223
|
create: createLog,
|
|
6224
6224
|
warn: createLog("warn", `v${version$2}`),
|
|
6225
6225
|
err: createLog("error", `v${version$2}`)
|
|
6226
6226
|
};
|
|
6227
6227
|
const renderMap = {};
|
|
6228
|
-
const renderer$
|
|
6228
|
+
const renderer$c = {
|
|
6229
6229
|
mixin(opts) {
|
|
6230
|
-
XEUtils.each(opts, (options, name2) => renderer$
|
|
6231
|
-
return renderer$
|
|
6230
|
+
XEUtils.each(opts, (options, name2) => renderer$c.add(name2, options));
|
|
6231
|
+
return renderer$c;
|
|
6232
6232
|
},
|
|
6233
6233
|
get(name2) {
|
|
6234
6234
|
return renderMap[name2] || null;
|
|
@@ -6240,7 +6240,7 @@ const renderer$b = {
|
|
|
6240
6240
|
if (process.env.NODE_ENV === "development") {
|
|
6241
6241
|
XEUtils.each(options, (val, key) => {
|
|
6242
6242
|
if (!XEUtils.eqNull(renders[key]) && renders[key] !== val) {
|
|
6243
|
-
log$
|
|
6243
|
+
log$2.warn("vxe.error.coverProp", [`Renderer.${name2}`, key]);
|
|
6244
6244
|
}
|
|
6245
6245
|
});
|
|
6246
6246
|
}
|
|
@@ -6249,15 +6249,15 @@ const renderer$b = {
|
|
|
6249
6249
|
renderMap[name2] = options;
|
|
6250
6250
|
}
|
|
6251
6251
|
}
|
|
6252
|
-
return renderer$
|
|
6252
|
+
return renderer$c;
|
|
6253
6253
|
},
|
|
6254
6254
|
forEach(callback) {
|
|
6255
6255
|
XEUtils.objectEach(renderMap, callback);
|
|
6256
|
-
return renderer$
|
|
6256
|
+
return renderer$c;
|
|
6257
6257
|
},
|
|
6258
6258
|
delete(name2) {
|
|
6259
6259
|
delete renderMap[name2];
|
|
6260
|
-
return renderer$
|
|
6260
|
+
return renderer$c;
|
|
6261
6261
|
}
|
|
6262
6262
|
};
|
|
6263
6263
|
class Store {
|
|
@@ -6287,7 +6287,7 @@ class Store {
|
|
|
6287
6287
|
const confKeys = XEUtils.keys(conf);
|
|
6288
6288
|
XEUtils.each(options, (item, key) => {
|
|
6289
6289
|
if (confKeys.includes(key)) {
|
|
6290
|
-
log$
|
|
6290
|
+
log$2.warn("vxe.error.coverProp", [name2, key]);
|
|
6291
6291
|
}
|
|
6292
6292
|
});
|
|
6293
6293
|
}
|
|
@@ -6301,9 +6301,9 @@ class Store {
|
|
|
6301
6301
|
XEUtils.objectEach(this.store, callback);
|
|
6302
6302
|
}
|
|
6303
6303
|
}
|
|
6304
|
-
const validators$
|
|
6304
|
+
const validators$2 = new Store();
|
|
6305
6305
|
if (process.env.NODE_ENV === "development") {
|
|
6306
|
-
Object.assign(validators$
|
|
6306
|
+
Object.assign(validators$2, { _name: "Validators" });
|
|
6307
6307
|
}
|
|
6308
6308
|
class VXEMenusStore {
|
|
6309
6309
|
constructor() {
|
|
@@ -6330,7 +6330,7 @@ class VXEMenusStore {
|
|
|
6330
6330
|
const conf = this.store[name2];
|
|
6331
6331
|
if (XEUtils.isFunction(render2)) {
|
|
6332
6332
|
if (process.env.NODE_ENV === "development") {
|
|
6333
|
-
log$
|
|
6333
|
+
log$2.warn("vxe.error.delProp", ["menus -> callback", "menuMethod"]);
|
|
6334
6334
|
}
|
|
6335
6335
|
render2 = {
|
|
6336
6336
|
menuMethod: render2
|
|
@@ -6340,7 +6340,7 @@ class VXEMenusStore {
|
|
|
6340
6340
|
const confKeys = XEUtils.keys(conf);
|
|
6341
6341
|
XEUtils.each(render2, (item, key) => {
|
|
6342
6342
|
if (confKeys.includes(key)) {
|
|
6343
|
-
log$
|
|
6343
|
+
log$2.warn("vxe.error.coverProp", [name2, key]);
|
|
6344
6344
|
}
|
|
6345
6345
|
});
|
|
6346
6346
|
}
|
|
@@ -6354,9 +6354,9 @@ class VXEMenusStore {
|
|
|
6354
6354
|
XEUtils.objectEach(this.store, callback);
|
|
6355
6355
|
}
|
|
6356
6356
|
}
|
|
6357
|
-
const menus$
|
|
6357
|
+
const menus$2 = new VXEMenusStore();
|
|
6358
6358
|
if (process.env.NODE_ENV === "development") {
|
|
6359
|
-
Object.assign(menus$
|
|
6359
|
+
Object.assign(menus$2, { _name: "Menus" });
|
|
6360
6360
|
}
|
|
6361
6361
|
class VXEFormatsStore {
|
|
6362
6362
|
constructor() {
|
|
@@ -6383,7 +6383,7 @@ class VXEFormatsStore {
|
|
|
6383
6383
|
const conf = this.store[name2];
|
|
6384
6384
|
if (XEUtils.isFunction(render2)) {
|
|
6385
6385
|
if (process.env.NODE_ENV === "development") {
|
|
6386
|
-
log$
|
|
6386
|
+
log$2.warn("vxe.error.delProp", ["formats -> callback", "cellFormatMethod"]);
|
|
6387
6387
|
}
|
|
6388
6388
|
render2 = {
|
|
6389
6389
|
cellFormatMethod: render2
|
|
@@ -6393,7 +6393,7 @@ class VXEFormatsStore {
|
|
|
6393
6393
|
const confKeys = XEUtils.keys(conf);
|
|
6394
6394
|
XEUtils.each(render2, (item, key) => {
|
|
6395
6395
|
if (confKeys.includes(key)) {
|
|
6396
|
-
log$
|
|
6396
|
+
log$2.warn("vxe.error.coverProp", [name2, key]);
|
|
6397
6397
|
}
|
|
6398
6398
|
});
|
|
6399
6399
|
}
|
|
@@ -6407,9 +6407,9 @@ class VXEFormatsStore {
|
|
|
6407
6407
|
XEUtils.objectEach(this.store, callback);
|
|
6408
6408
|
}
|
|
6409
6409
|
}
|
|
6410
|
-
const formats$
|
|
6410
|
+
const formats$4 = new VXEFormatsStore();
|
|
6411
6411
|
if (process.env.NODE_ENV === "development") {
|
|
6412
|
-
Object.assign(formats$
|
|
6412
|
+
Object.assign(formats$4, { _name: "Formats" });
|
|
6413
6413
|
}
|
|
6414
6414
|
class VXECommandsStore {
|
|
6415
6415
|
constructor() {
|
|
@@ -6436,7 +6436,7 @@ class VXECommandsStore {
|
|
|
6436
6436
|
const conf = this.store[name2];
|
|
6437
6437
|
if (XEUtils.isFunction(render2)) {
|
|
6438
6438
|
if (process.env.NODE_ENV === "development") {
|
|
6439
|
-
log$
|
|
6439
|
+
log$2.warn("vxe.error.delProp", ["commands -> callback", "commandMethod"]);
|
|
6440
6440
|
}
|
|
6441
6441
|
render2 = {
|
|
6442
6442
|
commandMethod: render2
|
|
@@ -6446,7 +6446,7 @@ class VXECommandsStore {
|
|
|
6446
6446
|
const confKeys = XEUtils.keys(conf);
|
|
6447
6447
|
XEUtils.each(render2, (item, key) => {
|
|
6448
6448
|
if (confKeys.includes(key)) {
|
|
6449
|
-
log$
|
|
6449
|
+
log$2.warn("vxe.error.coverProp", [name2, key]);
|
|
6450
6450
|
}
|
|
6451
6451
|
});
|
|
6452
6452
|
}
|
|
@@ -6460,17 +6460,17 @@ class VXECommandsStore {
|
|
|
6460
6460
|
XEUtils.objectEach(this.store, callback);
|
|
6461
6461
|
}
|
|
6462
6462
|
}
|
|
6463
|
-
const commands$
|
|
6463
|
+
const commands$3 = new VXECommandsStore();
|
|
6464
6464
|
if (process.env.NODE_ENV === "development") {
|
|
6465
|
-
Object.assign(commands$
|
|
6465
|
+
Object.assign(commands$3, { _name: "Commands" });
|
|
6466
6466
|
}
|
|
6467
6467
|
const storeMap = {};
|
|
6468
|
-
const interceptor$
|
|
6468
|
+
const interceptor$2 = {
|
|
6469
6469
|
mixin(options) {
|
|
6470
6470
|
XEUtils.each(options, (render2, type) => {
|
|
6471
|
-
interceptor$
|
|
6471
|
+
interceptor$2.add(type, render2);
|
|
6472
6472
|
});
|
|
6473
|
-
return interceptor$
|
|
6473
|
+
return interceptor$2;
|
|
6474
6474
|
},
|
|
6475
6475
|
get(type) {
|
|
6476
6476
|
return storeMap[type] || [];
|
|
@@ -6489,12 +6489,12 @@ const interceptor$1 = {
|
|
|
6489
6489
|
}
|
|
6490
6490
|
if (process.env.NODE_ENV === "development") {
|
|
6491
6491
|
if (eList.indexOf(callback) > -1) {
|
|
6492
|
-
log$
|
|
6492
|
+
log$2.warn("vxe.error.coverProp", ["Interceptor", type]);
|
|
6493
6493
|
}
|
|
6494
6494
|
}
|
|
6495
6495
|
eList.push(callback);
|
|
6496
6496
|
}
|
|
6497
|
-
return interceptor$
|
|
6497
|
+
return interceptor$2;
|
|
6498
6498
|
},
|
|
6499
6499
|
delete(type, render2) {
|
|
6500
6500
|
const eList = storeMap[type];
|
|
@@ -6533,7 +6533,7 @@ function handleText(text) {
|
|
|
6533
6533
|
}
|
|
6534
6534
|
copyElem.value = text;
|
|
6535
6535
|
}
|
|
6536
|
-
const clipboard = {
|
|
6536
|
+
const clipboard$1 = {
|
|
6537
6537
|
getStore() {
|
|
6538
6538
|
return clipStore;
|
|
6539
6539
|
},
|
|
@@ -6618,7 +6618,7 @@ const permission = {
|
|
|
6618
6618
|
return permissionInfo.disabled;
|
|
6619
6619
|
}
|
|
6620
6620
|
};
|
|
6621
|
-
const hooks$
|
|
6621
|
+
const hooks$9 = new Store();
|
|
6622
6622
|
function useSize(props) {
|
|
6623
6623
|
const xeSizeInfo = inject("xeSizeInfo", null);
|
|
6624
6624
|
const computeSize = computed(() => {
|
|
@@ -6640,7 +6640,7 @@ const useFns$3 = {
|
|
|
6640
6640
|
usePermission
|
|
6641
6641
|
};
|
|
6642
6642
|
const installedPlugins = [];
|
|
6643
|
-
function use(Plugin, options) {
|
|
6643
|
+
function use$1(Plugin, options) {
|
|
6644
6644
|
if (Plugin && Plugin.install) {
|
|
6645
6645
|
if (installedPlugins.indexOf(Plugin) === -1) {
|
|
6646
6646
|
Plugin.install(VxeUI, options);
|
|
@@ -6649,14 +6649,14 @@ function use(Plugin, options) {
|
|
|
6649
6649
|
}
|
|
6650
6650
|
return VxeUI;
|
|
6651
6651
|
}
|
|
6652
|
-
const components$
|
|
6652
|
+
const components$2 = {};
|
|
6653
6653
|
function getComponent$1(name2) {
|
|
6654
|
-
return components$
|
|
6654
|
+
return components$2[name2] || null;
|
|
6655
6655
|
}
|
|
6656
6656
|
function component(comp) {
|
|
6657
6657
|
if (comp && comp.name) {
|
|
6658
|
-
components$
|
|
6659
|
-
components$
|
|
6658
|
+
components$2[comp.name] = comp;
|
|
6659
|
+
components$2[XEUtils.kebabCase(comp.name)] = comp;
|
|
6660
6660
|
}
|
|
6661
6661
|
}
|
|
6662
6662
|
function renderEmptyElement$7() {
|
|
@@ -6664,38 +6664,38 @@ function renderEmptyElement$7() {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
const VxeUI = Object.assign(VxeCore, {
|
|
6666
6666
|
renderEmptyElement: renderEmptyElement$7,
|
|
6667
|
-
setTheme,
|
|
6668
|
-
getTheme,
|
|
6669
|
-
setConfig,
|
|
6670
|
-
getConfig: getConfig$
|
|
6671
|
-
setIcon,
|
|
6672
|
-
getIcon: getIcon$
|
|
6673
|
-
setLanguage,
|
|
6667
|
+
setTheme: setTheme$1,
|
|
6668
|
+
getTheme: getTheme$1,
|
|
6669
|
+
setConfig: setConfig$1,
|
|
6670
|
+
getConfig: getConfig$8,
|
|
6671
|
+
setIcon: setIcon$1,
|
|
6672
|
+
getIcon: getIcon$9,
|
|
6673
|
+
setLanguage: setLanguage$1,
|
|
6674
6674
|
hasLanguage,
|
|
6675
6675
|
getLanguage,
|
|
6676
|
-
setI18n,
|
|
6677
|
-
getI18n: getI18n$
|
|
6678
|
-
globalEvents: globalEvents$
|
|
6676
|
+
setI18n: setI18n$1,
|
|
6677
|
+
getI18n: getI18n$e,
|
|
6678
|
+
globalEvents: globalEvents$4,
|
|
6679
6679
|
GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS$3,
|
|
6680
6680
|
createEvent: createEvent$3,
|
|
6681
|
-
globalResize: globalResize$
|
|
6682
|
-
renderer: renderer$
|
|
6683
|
-
validators: validators$
|
|
6684
|
-
menus: menus$
|
|
6685
|
-
formats: formats$
|
|
6686
|
-
commands: commands$
|
|
6687
|
-
interceptor: interceptor$
|
|
6688
|
-
clipboard,
|
|
6689
|
-
log: log$
|
|
6681
|
+
globalResize: globalResize$2,
|
|
6682
|
+
renderer: renderer$c,
|
|
6683
|
+
validators: validators$2,
|
|
6684
|
+
menus: menus$2,
|
|
6685
|
+
formats: formats$4,
|
|
6686
|
+
commands: commands$3,
|
|
6687
|
+
interceptor: interceptor$2,
|
|
6688
|
+
clipboard: clipboard$1,
|
|
6689
|
+
log: log$2,
|
|
6690
6690
|
permission,
|
|
6691
6691
|
globalStore,
|
|
6692
|
-
hooks: hooks$
|
|
6692
|
+
hooks: hooks$9,
|
|
6693
6693
|
component,
|
|
6694
6694
|
getComponent: getComponent$1,
|
|
6695
6695
|
useFns: useFns$3,
|
|
6696
|
-
use
|
|
6696
|
+
use: use$1
|
|
6697
6697
|
});
|
|
6698
|
-
setTheme();
|
|
6698
|
+
setTheme$1();
|
|
6699
6699
|
function isEnableConf(conf) {
|
|
6700
6700
|
return conf && conf.enabled !== false;
|
|
6701
6701
|
}
|
|
@@ -7043,27 +7043,27 @@ VxeUI.setIcon({
|
|
|
7043
7043
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
7044
7044
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
7045
7045
|
});
|
|
7046
|
-
VxeUI.setTheme;
|
|
7047
|
-
VxeUI.getTheme;
|
|
7048
|
-
VxeUI.setConfig;
|
|
7049
|
-
VxeUI.getConfig;
|
|
7050
|
-
VxeUI.setIcon;
|
|
7051
|
-
VxeUI.getIcon;
|
|
7052
|
-
VxeUI.setLanguage;
|
|
7053
|
-
VxeUI.setI18n;
|
|
7054
|
-
VxeUI.getI18n;
|
|
7055
|
-
VxeUI.globalEvents;
|
|
7056
|
-
VxeUI.globalResize;
|
|
7057
|
-
VxeUI.renderer;
|
|
7058
|
-
VxeUI.validators;
|
|
7059
|
-
VxeUI.menus;
|
|
7060
|
-
VxeUI.formats;
|
|
7061
|
-
VxeUI.commands;
|
|
7062
|
-
VxeUI.interceptor;
|
|
7063
|
-
VxeUI.clipboard;
|
|
7064
|
-
VxeUI.log;
|
|
7065
|
-
VxeUI.hooks;
|
|
7066
|
-
VxeUI.use;
|
|
7046
|
+
const setTheme = VxeUI.setTheme;
|
|
7047
|
+
const getTheme = VxeUI.getTheme;
|
|
7048
|
+
const setConfig = VxeUI.setConfig;
|
|
7049
|
+
const getConfig$7 = VxeUI.getConfig;
|
|
7050
|
+
const setIcon = VxeUI.setIcon;
|
|
7051
|
+
const getIcon$8 = VxeUI.getIcon;
|
|
7052
|
+
const setLanguage = VxeUI.setLanguage;
|
|
7053
|
+
const setI18n = VxeUI.setI18n;
|
|
7054
|
+
const getI18n$d = VxeUI.getI18n;
|
|
7055
|
+
const globalEvents$3 = VxeUI.globalEvents;
|
|
7056
|
+
const globalResize$1 = VxeUI.globalResize;
|
|
7057
|
+
const renderer$b = VxeUI.renderer;
|
|
7058
|
+
const validators$1 = VxeUI.validators;
|
|
7059
|
+
const menus$1 = VxeUI.menus;
|
|
7060
|
+
const formats$3 = VxeUI.formats;
|
|
7061
|
+
const commands$2 = VxeUI.commands;
|
|
7062
|
+
const interceptor$1 = VxeUI.interceptor;
|
|
7063
|
+
const clipboard = VxeUI.clipboard;
|
|
7064
|
+
const log$1 = VxeUI.log;
|
|
7065
|
+
const hooks$8 = VxeUI.hooks;
|
|
7066
|
+
const use = VxeUI.use;
|
|
7067
7067
|
const setup = (options) => {
|
|
7068
7068
|
return VxeUI.setConfig(options);
|
|
7069
7069
|
};
|
|
@@ -7080,6 +7080,67 @@ const _t = (content, args) => {
|
|
|
7080
7080
|
return getFuncText(content, args);
|
|
7081
7081
|
};
|
|
7082
7082
|
VxeUI._t = _t;
|
|
7083
|
+
const VXETable = VxeUI;
|
|
7084
|
+
const saveFile = (options) => {
|
|
7085
|
+
return VxeUI.saveFile(options);
|
|
7086
|
+
};
|
|
7087
|
+
const readFile = (options) => {
|
|
7088
|
+
return VxeUI.readFile(options);
|
|
7089
|
+
};
|
|
7090
|
+
const print = (options) => {
|
|
7091
|
+
return VxeUI.print(options);
|
|
7092
|
+
};
|
|
7093
|
+
const modal = {
|
|
7094
|
+
/**
|
|
7095
|
+
* 已废弃,兼容老版本
|
|
7096
|
+
* @deprecated
|
|
7097
|
+
*/
|
|
7098
|
+
get(id) {
|
|
7099
|
+
return VxeUI.modal.get(id);
|
|
7100
|
+
},
|
|
7101
|
+
/**
|
|
7102
|
+
* 已废弃,兼容老版本
|
|
7103
|
+
* @deprecated
|
|
7104
|
+
*/
|
|
7105
|
+
close(id) {
|
|
7106
|
+
return VxeUI.modal.close(id);
|
|
7107
|
+
},
|
|
7108
|
+
/**
|
|
7109
|
+
* 已废弃,兼容老版本
|
|
7110
|
+
* @deprecated
|
|
7111
|
+
*/
|
|
7112
|
+
open(options) {
|
|
7113
|
+
return VxeUI.modal.open(options);
|
|
7114
|
+
},
|
|
7115
|
+
/**
|
|
7116
|
+
* 已废弃,兼容老版本
|
|
7117
|
+
* @deprecated
|
|
7118
|
+
*/
|
|
7119
|
+
alert(content, title, options) {
|
|
7120
|
+
return VxeUI.modal.alert(content, title, options);
|
|
7121
|
+
},
|
|
7122
|
+
/**
|
|
7123
|
+
* 已废弃,兼容老版本
|
|
7124
|
+
* @deprecated
|
|
7125
|
+
*/
|
|
7126
|
+
confirm(content, title, options) {
|
|
7127
|
+
return VxeUI.modal.confirm(content, title, options);
|
|
7128
|
+
},
|
|
7129
|
+
/**
|
|
7130
|
+
* 已废弃,兼容老版本
|
|
7131
|
+
* @deprecated
|
|
7132
|
+
*/
|
|
7133
|
+
message(content, options) {
|
|
7134
|
+
return VxeUI.modal.message(content, options);
|
|
7135
|
+
},
|
|
7136
|
+
/**
|
|
7137
|
+
* 已废弃,兼容老版本
|
|
7138
|
+
* @deprecated
|
|
7139
|
+
*/
|
|
7140
|
+
notification(content, title, options) {
|
|
7141
|
+
return VxeUI.modal.notification(content, title, options);
|
|
7142
|
+
}
|
|
7143
|
+
};
|
|
7083
7144
|
const { log } = VxeUI;
|
|
7084
7145
|
const version = `table v${"4.13.15"}`;
|
|
7085
7146
|
const warnLog = log.create("warn", version);
|
|
@@ -9108,7 +9169,7 @@ const VxeColumnComponent = defineComponent({
|
|
|
9108
9169
|
return renderVN;
|
|
9109
9170
|
}
|
|
9110
9171
|
});
|
|
9111
|
-
Object.assign({}, VxeColumnComponent, {
|
|
9172
|
+
const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
9112
9173
|
install(app) {
|
|
9113
9174
|
app.component(VxeColumnComponent.name, VxeColumnComponent);
|
|
9114
9175
|
app.component("VxeTableColumn", VxeColumnComponent);
|
|
@@ -9119,6 +9180,7 @@ if (VxeUI.dynamicApp) {
|
|
|
9119
9180
|
VxeUI.dynamicApp.component("VxeTableColumn", VxeColumnComponent);
|
|
9120
9181
|
}
|
|
9121
9182
|
VxeUI.component(VxeColumnComponent);
|
|
9183
|
+
const Column = VxeColumn;
|
|
9122
9184
|
const VxeColgroupComponent = defineComponent({
|
|
9123
9185
|
name: "VxeColgroup",
|
|
9124
9186
|
props: columnProps,
|
|
@@ -9157,7 +9219,7 @@ const VxeColgroupComponent = defineComponent({
|
|
|
9157
9219
|
return renderVN;
|
|
9158
9220
|
}
|
|
9159
9221
|
});
|
|
9160
|
-
Object.assign({}, VxeColgroupComponent, {
|
|
9222
|
+
const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
9161
9223
|
install(app) {
|
|
9162
9224
|
app.component(VxeColgroupComponent.name, VxeColgroupComponent);
|
|
9163
9225
|
app.component("VxeTableColgroup", VxeColgroupComponent);
|
|
@@ -9168,6 +9230,7 @@ if (VxeUI.dynamicApp) {
|
|
|
9168
9230
|
VxeUI.dynamicApp.component("VxeTableColgroup", VxeColgroupComponent);
|
|
9169
9231
|
}
|
|
9170
9232
|
VxeUI.component(VxeColgroupComponent);
|
|
9233
|
+
const Colgroup = VxeColgroup;
|
|
9171
9234
|
const { getI18n: getI18n$a, renderer: renderer$9, renderEmptyElement: renderEmptyElement$5 } = VxeUI;
|
|
9172
9235
|
const renderType$2 = "body";
|
|
9173
9236
|
const TableBodyComponent = defineComponent({
|
|
@@ -25234,6 +25297,7 @@ if (VxeUI.dynamicApp) {
|
|
|
25234
25297
|
VxeUI.dynamicApp.component(VxeGridComponent.name, VxeGridComponent);
|
|
25235
25298
|
}
|
|
25236
25299
|
VxeUI.component(VxeGridComponent);
|
|
25300
|
+
const Grid = VxeGrid;
|
|
25237
25301
|
function useCellView(props) {
|
|
25238
25302
|
const currColumn = computed(() => {
|
|
25239
25303
|
const { renderParams } = props;
|
|
@@ -30311,7 +30375,7 @@ renderer.mixin({
|
|
|
30311
30375
|
}
|
|
30312
30376
|
// 以上已废弃
|
|
30313
30377
|
});
|
|
30314
|
-
Object.assign({}, VxeTableComponent, {
|
|
30378
|
+
const VxeTable = Object.assign({}, VxeTableComponent, {
|
|
30315
30379
|
install(app) {
|
|
30316
30380
|
app.component(VxeTableComponent.name, VxeTableComponent);
|
|
30317
30381
|
}
|
|
@@ -30324,7 +30388,8 @@ if (VxeUI.dynamicApp) {
|
|
|
30324
30388
|
}
|
|
30325
30389
|
VxeUI.component(VxeTableComponent);
|
|
30326
30390
|
VxeUI.tableHandle = tableHandle;
|
|
30327
|
-
|
|
30391
|
+
const Table = VxeTable;
|
|
30392
|
+
const VxeToolbar = Object.assign({}, VxeToolbarComponent, {
|
|
30328
30393
|
install(app) {
|
|
30329
30394
|
app.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
30330
30395
|
}
|
|
@@ -30333,6 +30398,7 @@ if (VxeUI.dynamicApp) {
|
|
|
30333
30398
|
VxeUI.dynamicApp.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
30334
30399
|
}
|
|
30335
30400
|
VxeUI.component(VxeToolbarComponent);
|
|
30401
|
+
const Toolbar = VxeToolbar;
|
|
30336
30402
|
const zhCN = {
|
|
30337
30403
|
vxe: {
|
|
30338
30404
|
base: {
|
|
@@ -31041,6 +31107,17 @@ const zhCN = {
|
|
|
31041
31107
|
}
|
|
31042
31108
|
}
|
|
31043
31109
|
};
|
|
31110
|
+
const components$1 = [
|
|
31111
|
+
VxeColumn,
|
|
31112
|
+
VxeColgroup,
|
|
31113
|
+
VxeGrid,
|
|
31114
|
+
VxeTable,
|
|
31115
|
+
VxeToolbar
|
|
31116
|
+
];
|
|
31117
|
+
function install(app, options) {
|
|
31118
|
+
VxeUI.setConfig(options);
|
|
31119
|
+
components$1.forEach((component2) => component2.install(app));
|
|
31120
|
+
}
|
|
31044
31121
|
if (!VxeUI.hasLanguage("zh-CN")) {
|
|
31045
31122
|
const defaultLanguage = "zh-CN";
|
|
31046
31123
|
VxeUI.setI18n(defaultLanguage, zhCN);
|
|
@@ -40674,9 +40751,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
40674
40751
|
});
|
|
40675
40752
|
const vxeGridContainerRef = ref();
|
|
40676
40753
|
const { height: vxeGridContainerHeight } = useElementSize(vxeGridContainerRef);
|
|
40677
|
-
watch(() => vxeGridContainerHeight, () => {
|
|
40678
|
-
console.log(vxeGridContainerHeight.value);
|
|
40679
|
-
});
|
|
40680
40754
|
let queryData = {};
|
|
40681
40755
|
const btnClick = (data, button, rowIndex) => {
|
|
40682
40756
|
useButtonExec(data, button, rowIndex);
|
|
@@ -40723,7 +40797,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
40723
40797
|
const _component_el_button = resolveComponent("el-button");
|
|
40724
40798
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
40725
40799
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
40726
|
-
createTextVNode(" 高度:" + toDisplayString(unref(vxeGridContainerHeight)) + " ", 1),
|
|
40727
40800
|
__props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$j, {
|
|
40728
40801
|
key: 0,
|
|
40729
40802
|
frame: __props.queryConfig,
|
|
@@ -42822,30 +42895,33 @@ _sfc_main.install = (app) => {
|
|
|
42822
42895
|
app.component(_sfc_main.__name, _sfc_main);
|
|
42823
42896
|
};
|
|
42824
42897
|
const components = [
|
|
42825
|
-
KeliTableRender,
|
|
42826
|
-
KeliTableCardRender,
|
|
42827
|
-
KeliTableTreeRender,
|
|
42828
|
-
KeliTableCheckBoxAsync,
|
|
42829
|
-
KeliTableInput,
|
|
42830
|
-
KeliTableInputNumber,
|
|
42831
|
-
_sfc_main$7,
|
|
42832
|
-
_sfc_main$6,
|
|
42833
|
-
_sfc_main$5,
|
|
42834
|
-
KeliQueryBar,
|
|
42835
|
-
_sfc_main$4,
|
|
42836
|
-
_sfc_main$3,
|
|
42837
|
-
_sfc_main$2,
|
|
42838
|
-
KeliQuerySelect,
|
|
42839
|
-
_sfc_main
|
|
42898
|
+
{ name: "KeTableRender", component: KeliTableRender },
|
|
42899
|
+
{ name: "KeTableCardRender", component: KeliTableCardRender },
|
|
42900
|
+
{ name: "KeTableTreeRender", component: KeliTableTreeRender },
|
|
42901
|
+
{ name: "KeTableCheckBoxAsync", component: KeliTableCheckBoxAsync },
|
|
42902
|
+
{ name: "KeTableInput", component: KeliTableInput },
|
|
42903
|
+
{ name: "KeTableInputNumber", component: KeliTableInputNumber },
|
|
42904
|
+
{ name: "KeTableSelect", component: _sfc_main$7 },
|
|
42905
|
+
{ name: "KeTableSelectAsync", component: _sfc_main$6 },
|
|
42906
|
+
{ name: "KeTableSwitch", component: _sfc_main$5 },
|
|
42907
|
+
{ name: "KeQueryBar", component: KeliQueryBar },
|
|
42908
|
+
{ name: "KeQueryDateTime", component: _sfc_main$4 },
|
|
42909
|
+
{ name: "KeQueryInput", component: _sfc_main$3 },
|
|
42910
|
+
{ name: "KeQueryInputLike", component: _sfc_main$2 },
|
|
42911
|
+
{ name: "KeQuerySelect", component: KeliQuerySelect },
|
|
42912
|
+
{ name: "KeToolBar", component: _sfc_main }
|
|
42840
42913
|
];
|
|
42841
42914
|
const index = {
|
|
42842
42915
|
install(app) {
|
|
42843
42916
|
components.forEach((component2) => {
|
|
42844
|
-
app.component(component2.
|
|
42917
|
+
app.component(component2.name, component2.component);
|
|
42845
42918
|
});
|
|
42846
42919
|
}
|
|
42847
42920
|
};
|
|
42848
42921
|
export {
|
|
42922
|
+
Colgroup,
|
|
42923
|
+
Column,
|
|
42924
|
+
Grid,
|
|
42849
42925
|
KeliQueryBar,
|
|
42850
42926
|
_sfc_main$4 as KeliQueryDateTime,
|
|
42851
42927
|
_sfc_main$3 as KeliQueryInput,
|
|
@@ -42861,5 +42937,45 @@ export {
|
|
|
42861
42937
|
_sfc_main$5 as KeliTableSwitch,
|
|
42862
42938
|
KeliTableTreeRender,
|
|
42863
42939
|
_sfc_main as KeliToolBar,
|
|
42864
|
-
|
|
42940
|
+
Table,
|
|
42941
|
+
Toolbar,
|
|
42942
|
+
VXETable,
|
|
42943
|
+
VxeColgroup,
|
|
42944
|
+
VxeColumn,
|
|
42945
|
+
VxeGrid,
|
|
42946
|
+
VxeTable,
|
|
42947
|
+
VxeToolbar,
|
|
42948
|
+
VxeUI,
|
|
42949
|
+
_t,
|
|
42950
|
+
clipboard,
|
|
42951
|
+
commands$2 as commands,
|
|
42952
|
+
config,
|
|
42953
|
+
index as default,
|
|
42954
|
+
formats$3 as formats,
|
|
42955
|
+
getConfig$7 as getConfig,
|
|
42956
|
+
getI18n$d as getI18n,
|
|
42957
|
+
getIcon$8 as getIcon,
|
|
42958
|
+
getTheme,
|
|
42959
|
+
globalEvents$3 as globalEvents,
|
|
42960
|
+
globalResize$1 as globalResize,
|
|
42961
|
+
hooks$8 as hooks,
|
|
42962
|
+
install,
|
|
42963
|
+
interceptor$1 as interceptor,
|
|
42964
|
+
log$1 as log,
|
|
42965
|
+
menus$1 as menus,
|
|
42966
|
+
modal,
|
|
42967
|
+
print,
|
|
42968
|
+
readFile,
|
|
42969
|
+
renderer$b as renderer,
|
|
42970
|
+
saveFile,
|
|
42971
|
+
setConfig,
|
|
42972
|
+
setI18n,
|
|
42973
|
+
setIcon,
|
|
42974
|
+
setLanguage,
|
|
42975
|
+
setTheme,
|
|
42976
|
+
setup,
|
|
42977
|
+
t$1 as t,
|
|
42978
|
+
use,
|
|
42979
|
+
validators$1 as validators,
|
|
42980
|
+
version$1 as version
|
|
42865
42981
|
};
|