UNPKG

tav-ui

Version:
29 lines (26 loc) 935 B
import VXETable from 'vxe-table'; import '../../../hooks/index2.mjs'; import { VxeCellRenderer } from './components/cell2.mjs'; import { VXETablePluginExportXLSX } from './vxe-table-plugin-export2.mjs'; import 'xe-utils'; import { useGlobalConfig } from '../../../hooks/global/useGlobalConfig2.mjs'; const i18nFun = useGlobalConfig("i18nFun"); function setupVxeTable(app) { const VXETableGlobalSettings = { zIndex: 999 }; const VXETableGlobalIcons = { LOADING: "ta-table-pro-loading" }; const setupOptions = Object.assign(VXETableGlobalSettings, { icon: VXETableGlobalIcons, i18n: (key, args) => i18nFun.value?.i18n.global.t(key, args) }); VXETable.renderer.add(VxeCellRenderer.name, VxeCellRenderer.options); VXETable.use(VXETablePluginExportXLSX); VXETable.setup(setupOptions); app?.use(VXETable, setupOptions); return VXETable; } export { setupVxeTable }; //# sourceMappingURL=setup2.mjs.map