Skip to content

Commit

Permalink
somechange
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Nov 17, 2018
1 parent f918530 commit 2ed32fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 13 additions & 3 deletions src/components/FormDesigner/ListConfig.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@

<template>
<div id="listconfig_container" style="width:100%">

<el-table>
<el-table-column label="列字段" align="center">

</el-table-column>

<el-table-column label="列标题" align="center">

</el-table-column>
</el-table>
<draggable v-model="config.columnList" :options = "{animation:500}">
<transition-group>
<div
Expand Down Expand Up @@ -60,13 +70,13 @@ export default {
},
methods: {
removeItem(item) {
var index = this.allList.indexOf(item);
var index = this.config.columnList.indexOf(item);
if (index) {
this.allList.splice(index, 1);
this.config.columnList.splice(index, 1);
}
},
addItem() {
this.allList.push({
this.config.columnList.push({
label: "",
key: ""
});
Expand Down
4 changes: 1 addition & 3 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ body {
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
input{
border-radius: 0px;
}

label {
font-weight: 700;
}
Expand Down

0 comments on commit 2ed32fd

Please sign in to comment.