el-table-virtual-scroll
Version:
The virtual scrolling component developed based on the Table component of Element-UI supports dynamic height and solves the problem of scrolling stuck when the amount of data is large.
32 lines (28 loc) • 773 B
JavaScript
const path = require('path')
const buildDemoFiles = require('./build/buildDemoFiles.js')
const isProduction = process.env.NODE_ENV === 'production'
// const demoFiles = buildDemoFiles()
const useLocalLib = !process.env.npm_config_test // 使用本地的库
const alias = useLocalLib ? {
'el-table-virtual-scroll': path.resolve('../src/index')
} : ''
module.exports = {
publicPath: isProduction ? '././' : '/',
// transpileDependencies: true,
// chainWebpack: config => {
// config
// .plugin('define')
// .tap(args => {
// args[0]['process.env']['demoFiles'] = demoFiles
// return args
// })
// },
configureWebpack: {
// devtool: 'eval-source-map',
resolve: {
alias: {
...alias
}
}
}
}