🦄 refactor: 封装统一表格组件,便于批量扩展表格能力
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
</el-row>
|
||||
<el-row :gutter="20" style="margin-top: 20px;">
|
||||
<el-col :span="12">
|
||||
<el-table :data="oldResult" style="width: 100%">
|
||||
<KLPTable :data="oldResult" style="width: 100%">
|
||||
<el-table-column prop="attrKey" label="属性名称" />
|
||||
<el-table-column prop="attrValue" label="属性值" />
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- 默认全部选中 -->
|
||||
<el-table :data="newResult" style="width: 100%" @selection-change="handleSelectionChange" :default-sort="{ prop: 'attrKey', order: 'ascending' }">
|
||||
<KLPTable :data="newResult" style="width: 100%" @selection-change="handleSelectionChange" :default-sort="{ prop: 'attrKey', order: 'ascending' }">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="attrKey" label="属性名称">
|
||||
<template slot-scope="scope">
|
||||
@@ -25,7 +25,7 @@
|
||||
<el-input v-model="scope.row.attrValue" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="margin-top: 20px;">
|
||||
|
||||
Reference in New Issue
Block a user