From ff345ebb3fcece2ebafc3333b895d9481bd9435e Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 04 一月 2023 15:52:56 +0800
Subject: [PATCH] 1.列展示设置 功能基本实现,细节待优化
---
src/components/TableColumnSettings/index.vue | 33 +++++++++++----------------------
1 files changed, 11 insertions(+), 22 deletions(-)
diff --git a/src/components/TableColumnSettings/index.vue b/src/components/TableColumnSettings/index.vue
index daf1bf0..09f214e 100644
--- a/src/components/TableColumnSettings/index.vue
+++ b/src/components/TableColumnSettings/index.vue
@@ -5,8 +5,8 @@
width="265"
trigger="click"
>
- <dnd-list :list1="list1" />
-
+ <!-- <dnd-list :list1="list1" v-bind="$attrs" v-on="$listeners" />-->
+ <dnd-list v-bind="$attrs" v-on="$listeners" />
<el-button
slot="reference"
style="cursor: pointer;position: absolute;padding:0;top:11px;right: 60px;z-index: 99;"
@@ -24,26 +24,15 @@
export default {
name: 'Index',
- components: { DndList },
- props: {
- list1: {
- type: Array,
- default() {
- return []
- }
- }
- },
- data() {
- return {
- // list1: [
- // { id: 1, name: '棰勮瀹屽伐鏃堕棿' },
- // { id: 2, name: '妤兼潕淇�2' },
- // { id: 3, name: '妤兼潕淇�3' },
- // { id: 4, name: '妤兼潕淇�4' }
- // ]
- }
- },
- methods: {}
+ components: { DndList }
+ // props: {
+ // list1: {
+ // type: Array,
+ // default() {
+ // return []
+ // }
+ // }
+ // }
}
</script>
--
Gitblit v1.9.3