yq1 9b2ea3bdb1 6月20配置打包 | 4 months ago | |
---|---|---|
config | 4 months ago | |
public | 4 months ago | |
src | 4 months ago | |
static | 4 months ago | |
.env.development | 4 months ago | |
.env.production | 4 months ago | |
.gitignore | 4 months ago | |
README.md | 4 months ago | |
babel.config.js | 4 months ago | |
package-lock.json | 4 months ago | |
package.json | 4 months ago | |
vue.config.js | 4 months ago | |
yarn.lock | 4 months ago |
vue后台管理系统模板 见文章: https://juejin.im/post/5e670edde51d4527110a9b40
http://cgq666.gitee.io/admin-vue
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
import('@/vendor/Export2Excel').then(excel => {
const tHeader = [ // Excel表头
'姓名',
'电话'
]
const dataVal = [ // 对应的数据数组的字段名
'username',
'phone'
]
excel.export_json_to_excel2(tHeader, '这里是需要导入的数据', dataVal, '导出后的文件名称')
npm i -D vue-svg-loader vue-template-compiler
// vue.config.js
module.exports = {
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
},
}
<script>
import daiban from '@/assets/icon/daiban.svg'
export default {
components:{
daiban
}
}
</script>
// 删除SVG文件中的 fill
.index-head-centent-right-list-icon-is{
color: #F515EA !important;
width: 20px;
height: 22px;
fill: currentColor; //重点
}