详解如何在你的Vue项目配置vux

2020-06-14 06:16:26易采站长站整理

}
},
{
test: /.(woff2?|eot|ttf|otf)(?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
] }
}

module.exports = vuxLoader.merge(webpackConfig, {
plugins: ['vux-ui']})

我们不需要在main.js里引入,而是在我们需要用到组件库的组件里面通过


import { XHeader, Tabbar } from 'vux'

export default {
components: {
XHeader,
Tabbar
// 需要什么import引入然后加入组件的components里就好了
}
}

唯一要吐糟的就是下拉框真的太丑了…