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.
111 lines (110 loc) • 3 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var abandon_exports = {};
__export(abandon_exports, {
VXETable: () => VXETable,
_t: () => _t,
config: () => config,
modal: () => modal,
print: () => print,
readFile: () => readFile,
saveFile: () => saveFile,
setup: () => setup,
t: () => t
});
module.exports = __toCommonJS(abandon_exports);
var import_core = require("@vxe-ui/core");
var import_utils = require("./src/utils");
const setup = (options) => {
return import_core.VxeUI.setConfig(options);
};
import_core.VxeUI.setup = setup;
const config = (options) => {
return import_core.VxeUI.setConfig(options);
};
import_core.VxeUI.config = config;
const t = (key, args) => {
return import_core.VxeUI.getI18n(key, args);
};
import_core.VxeUI.t = t;
const _t = (content, args) => {
return (0, import_utils.getFuncText)(content, args);
};
import_core.VxeUI._t = _t;
const VXETable = import_core.VxeUI;
const saveFile = (options) => {
return import_core.VxeUI.saveFile(options);
};
const readFile = (options) => {
return import_core.VxeUI.readFile(options);
};
const print = (options) => {
return import_core.VxeUI.print(options);
};
const modal = {
/**
* 已废弃,兼容老版本
* @deprecated
*/
get(id) {
return import_core.VxeUI.modal.get(id);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
close(id) {
return import_core.VxeUI.modal.close(id);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
open(options) {
return import_core.VxeUI.modal.open(options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
alert(content, title, options) {
return import_core.VxeUI.modal.alert(content, title, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
confirm(content, title, options) {
return import_core.VxeUI.modal.confirm(content, title, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
message(content, options) {
return import_core.VxeUI.modal.message(content, options);
},
/**
* 已废弃,兼容老版本
* @deprecated
*/
notification(content, title, options) {
return import_core.VxeUI.modal.notification(content, title, options);
}
};