vxe-table
Version:
A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.
91 lines (90 loc) • 1.75 kB
JavaScript
import { VxeUI } from "@vxe-ui/core";
import { getFuncText } from "./src/utils";
const setup = (options) => {
return VxeUI.setConfig(options);
};
VxeUI.setup = setup;
const config = (options) => {
return VxeUI.setConfig(options);
};
VxeUI.config = config;
const t = (key, args) => {
return VxeUI.getI18n(key, args);
};
VxeUI.t = t;
const _t = (content, args) => {
return getFuncText(content, args);
};
VxeUI._t = _t;
const VXETable = VxeUI;
const saveFile = (options) => {
return VxeUI.saveFile(options);
};
const readFile = (options) => {
return VxeUI.readFile(options);
};
const print = (options) => {
return VxeUI.print(options);
};
const modal = {
/**
* 已废弃,兼容老版本
* @deprecated
*/
get(id) {
return VxeUI.modal.get(id);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
close(id) {
return VxeUI.modal.close(id);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
open(options) {
return VxeUI.modal.open(options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
alert(content, title, options) {
return VxeUI.modal.alert(content, title, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
confirm(content, title, options) {
return VxeUI.modal.confirm(content, title, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
message(content, options) {
return VxeUI.modal.message(content, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
notification(content, title, options) {
return VxeUI.modal.notification(content, title, options);
}
};
export {
VXETable,
_t,
config,
modal,
print,
readFile,
saveFile,
setup,
t
};