commit
8920f2150f
|
@ -0,0 +1,8 @@
|
|||
// https://github.com/michael-ciniawsky/postcss-load-config
|
||||
|
||||
module.exports = {
|
||||
"plugins": {
|
||||
// to edit target browsers: use "browserlist" field in package.json
|
||||
"autoprefixer": {}
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ exports.cssLoaders = function (options) {
|
|||
}
|
||||
|
||||
// generate loader string to be used with extract text plugin
|
||||
function generateLoaders(loader, loaderOptions) {
|
||||
function generateLoaders (loader, loaderOptions) {
|
||||
var loaders = [cssLoader]
|
||||
if (loader) {
|
||||
loaders.push({
|
||||
|
@ -44,12 +44,12 @@ exports.cssLoaders = function (options) {
|
|||
}
|
||||
}
|
||||
|
||||
// http://vuejs.github.io/vue-loader/en/configurations/extract-css.html
|
||||
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
||||
return {
|
||||
css: generateLoaders(),
|
||||
postcss: generateLoaders(),
|
||||
less: generateLoaders('less'),
|
||||
sass: generateLoaders('sass', {indentedSyntax: true}),
|
||||
sass: generateLoaders('sass', { indentedSyntax: true }),
|
||||
scss: generateLoaders('sass'),
|
||||
stylus: generateLoaders('stylus'),
|
||||
styl: generateLoaders('stylus')
|
||||
|
|
|
@ -9,3 +9,7 @@
|
|||
name: 'APP'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import './styles/index.scss'; // 全局自定义的css样式
|
||||
</style>
|
||||
|
|
|
@ -6,11 +6,10 @@ import router from './router';
|
|||
import store from './store';
|
||||
import ElementUI from 'element-ui';
|
||||
import 'element-ui/lib/theme-default/index.css';
|
||||
import 'assets/custom-theme/index.css'; // 换肤版本element-ui css https://github.com/PanJiaChen/custom-element-theme
|
||||
import 'assets/custom-theme/index.css'; // 换肤版本element-ui css
|
||||
import NProgress from 'nprogress'; // Progress 进度条
|
||||
import 'nprogress/nprogress.css';// Progress 进度条 样式
|
||||
import 'normalize.css/normalize.css';// normalize.css 样式格式化
|
||||
import 'styles/index.scss'; // 全局自定义的css样式
|
||||
import 'components/Icon-svg/index'; // 封装的svg组件
|
||||
import 'assets/iconfont/iconfont'; // iconfont 具体图标见https://github.com/PanJiaChen/vue-element-admin/wiki
|
||||
import * as filters from './filters'; // 全局vue filter
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@import './btn.scss';
|
||||
@import './element-ui.scss';
|
||||
@import "./mixin.scss";
|
||||
@import './mixin.scss';
|
||||
body {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
@ -108,7 +108,6 @@ code {
|
|||
margin-top: 30px;
|
||||
}
|
||||
|
||||
|
||||
.editor-container .CodeMirror {
|
||||
height: 100%!important;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<el-table-column prop="name" label="fruitName" width="180"></el-table-column>
|
||||
<el-table-column :key='fruit' v-for='(fruit,index) in formThead' :label="fruit">
|
||||
<template scope="scope">
|
||||
{{scope.row.list[index].value}}
|
||||
{{scope.row[fruit]}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -28,20 +28,16 @@
|
|||
return {
|
||||
tableData: [
|
||||
{
|
||||
name: 'fruit1',
|
||||
list: [
|
||||
{ name: 'apple1', value: 10 },
|
||||
{ name: 'banana1', value: 20 },
|
||||
{ name: 'orange1', value: 20 }
|
||||
]
|
||||
name: 'fruit-1',
|
||||
apple: 'apple-10',
|
||||
banana: 'banana-10',
|
||||
orange: 'orange-10'
|
||||
},
|
||||
{
|
||||
name: 'fruit2',
|
||||
list: [
|
||||
{ name: 'apple2', value: 12 },
|
||||
{ name: 'banana2', value: 22 },
|
||||
{ name: 'orange2', value: 20 }
|
||||
]
|
||||
name: 'fruit-2',
|
||||
apple: 'apple-20',
|
||||
banana: 'banana-20',
|
||||
orange: 'orange-20'
|
||||
}
|
||||
],
|
||||
key: 1, // table key
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column :key='fruit' v-for='(fruit,index) in formThead' :label="fruit">
|
||||
<template scope="scope">
|
||||
{{scope.row.list[index].value}}
|
||||
{{scope.row[fruit]}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -28,20 +28,16 @@
|
|||
return {
|
||||
tableData: [
|
||||
{
|
||||
name: 'fruit1',
|
||||
list: [
|
||||
{ name: 'apple1', value: 10 },
|
||||
{ name: 'banana1', value: 20 },
|
||||
{ name: 'orange1', value: 20 }
|
||||
]
|
||||
name: 'fruit-1',
|
||||
apple: 'apple-10',
|
||||
banana: 'banana-10',
|
||||
orange: 'orange-10'
|
||||
},
|
||||
{
|
||||
name: 'fruit2',
|
||||
list: [
|
||||
{ name: 'apple2', value: 12 },
|
||||
{ name: 'banana2', value: 22 },
|
||||
{ name: 'orange2', value: 20 }
|
||||
]
|
||||
name: 'fruit-2',
|
||||
apple: 'apple-20',
|
||||
banana: 'banana-20',
|
||||
orange: 'orange-20'
|
||||
}
|
||||
],
|
||||
formThead: ['apple', 'banana']
|
||||
|
|
Loading…
Reference in New Issue