第一次发布
This commit is contained in:
29
src/components/SearchColumn/index.vue
Normal file
29
src/components/SearchColumn/index.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-popover
|
||||
class="group-item"
|
||||
placement="left"
|
||||
width="400"
|
||||
trigger="click"
|
||||
title="显示列"
|
||||
>
|
||||
<el-divider style="margin: 5px 0" />
|
||||
<el-row>
|
||||
<el-col v-for="(item, index) in tableColumns" :key="index" :span="12">
|
||||
<el-checkbox v-model="item.show">{{ item.label }}</el-checkbox>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-button slot="reference" :span="3" :size="$store.getters.size"><svg-icon icon-class="iconlayui-myicon-guanli" /> 自定义列</el-button>
|
||||
</el-popover>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
tableColumns: {
|
||||
type: Array,
|
||||
default: null
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user