13 lines
450 B
TypeScript
13 lines
450 B
TypeScript
import VXETable from 'vxe-table'
|
|
import 'vxe-table/lib/style.css'
|
|
|
|
function useTable (app: App) {
|
|
app.use(VXETable)
|
|
// 给 vue 实例挂载内部对象,例如:
|
|
// app.config.globalProperties.$XModal = VXETable.modal
|
|
// app.config.globalProperties.$XPrint = VXETable.print
|
|
// app.config.globalProperties.$XSaveFile = VXETable.saveFile
|
|
// app.config.globalProperties.$XReadFile = VXETable.readFile
|
|
}
|
|
|
|
export default useTable |