no message

This commit is contained in:
李杨 2018-01-15 17:17:22 +08:00
parent 43a8224a34
commit 87839e7fb3
3 changed files with 32 additions and 20 deletions

View File

@ -50,6 +50,7 @@ export default {
border-radius: $border-radius;
border-width: 1px;
border-style: solid;
font-size: 16px;
}
.col-l {
background-color: lighten($color-info, 40%);

View File

@ -5,22 +5,30 @@
title="基本示例"
url="https://github.com/mholt/PapaParse">
</PageHeader>
<el-upload
:before-upload="handleUpload"
action="default">
<el-button>选择一个CSV文件</el-button>
</el-upload>
<br>
<el-table
v-bind="table"
style="width: 100%">
<el-table-column
v-for="(item, index) in table.columns"
:key="index"
:prop="item.prop"
:label="item.label">
</el-table-column>
</el-table>
<el-row :gutter="10">
<el-col :span="4">
<div class="mb">
<el-button @click="download">下载演示CSV</el-button>
</div>
<el-upload
:before-upload="handleUpload"
action="default">
<el-button type="success">选择本地CSV文件</el-button>
</el-upload>
</el-col>
<el-col :span="20">
<el-table
v-bind="table"
style="width: 100%">
<el-table-column
v-for="(item, index) in table.columns"
:key="index"
:prop="item.prop"
:label="item.label">
</el-table-column>
</el-table>
</el-col>
</el-row>
</Container>
</template>
@ -52,6 +60,9 @@ export default {
}
})
return false
},
download () {
window.location.href='http://fairyever.qiniudn.com/d2admin-vue-demo.csv'
}
}
}

View File

@ -1,5 +1,5 @@
<template>
<Container type="ghost" class="demo-plugin-vue-grid-layout-demo">
<Container type="ghost" class="body">
<GridLayout
v-bind="layout"
@layout-updated="layoutUpdatedHandler">
@ -78,11 +78,11 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.demo-plugin-vue-grid-layout-demo {
.body {
.vue-grid-layout {
margin: -$margin -$margin 0px -$margin;
margin: -10px;
.el-card {
height: 100%;
@extend %unable-select;