5bd17685 by fanguang

fix

1 parent 0bdd6ee0
...@@ -42,20 +42,20 @@ const checkKeys = computed(() => { ...@@ -42,20 +42,20 @@ const checkKeys = computed(() => {
42 return props.treeInfo.checkedKey ?? [] 42 return props.treeInfo.checkedKey ?? []
43 }); 43 });
44 const currentNodeKey = computed(() => { 44 const currentNodeKey = computed(() => {
45 // if (props.treeInfo.currentNodeKey) { 45 if (props.treeInfo.currentNodeKey) {
46 // nextTick(() => { 46 nextTick(() => {
47 // let domItems = treeRef.value?.$el.getElementsByClassName('el-tree-node'); 47 let domItems = treeRef.value?.$el.getElementsByClassName('el-tree-node');
48 // let clientHeight = treeRef.value?.$el.clientHeight; 48 let clientHeight = treeRef.value?.$el.clientHeight;
49 // for (const item of domItems) { 49 for (const item of domItems) {
50 // if (item.getAttribute('data-key') == props.treeInfo.currentNodeKey) { 50 if (item.getAttribute('data-key') == props.treeInfo.currentNodeKey) {
51 // if (item.offsetTop > clientHeight) { 51 if (item.offsetTop > clientHeight) {
52 // item.scrollIntoView({ block: "end", inline: "nearest" }); 52 item.scrollIntoView({ block: "end", inline: "nearest" });
53 // } 53 }
54 // break; 54 break;
55 // } 55 }
56 // } 56 }
57 // }) 57 })
58 // } 58 }
59 return props.treeInfo.currentNodeKey ?? '' 59 return props.treeInfo.currentNodeKey ?? ''
60 }); 60 });
61 const customInfo = computed(() => { 61 const customInfo = computed(() => {
......
...@@ -1565,7 +1565,9 @@ onMounted(() => { ...@@ -1565,7 +1565,9 @@ onMounted(() => {
1565 @tablePageChange="tablePageChange" @tableSwitchBeforeChange="tableSwitchBeforeChange" /> 1565 @tablePageChange="tablePageChange" @tableSwitchBeforeChange="tableSwitchBeforeChange" />
1566 </div> 1566 </div>
1567 </div> 1567 </div>
1568 <Drawer ref="drawerRef" :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick" 1568 <Drawer ref="drawerRef"
1569 class="table-no-scorll"
1570 :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick"
1569 @radioGroupChange="radioGroupChange" @drawerTableBtnClick="tableBtnClick" 1571 @radioGroupChange="radioGroupChange" @drawerTableBtnClick="tableBtnClick"
1570 @drawerTableSelectionChange="tableSelectionChange" @drawerTableToolBtnClick="toolBtnClick" 1572 @drawerTableSelectionChange="tableSelectionChange" @drawerTableToolBtnClick="toolBtnClick"
1571 @drawerTableInputChange="tableInputChange" @drawerToolBtnClick="toolBtnClick" @onUpload="onUpload" 1573 @drawerTableInputChange="tableInputChange" @drawerToolBtnClick="toolBtnClick" @onUpload="onUpload"
...@@ -1592,8 +1594,13 @@ onMounted(() => { ...@@ -1592,8 +1594,13 @@ onMounted(() => {
1592 1594
1593 } 1595 }
1594 </style> 1596 </style>
1595 <style> 1597 <style lang="scss">
1596 .el-scrollbar__bar.is-vertical { 1598 .table-no-scorll {
1599 .el-scrollbar__bar.is-vertical {
1597 display: none!important; 1600 display: none!important;
1598 } 1601 }
1602 }
1603 /* .el-scrollbar__bar.is-vertical {
1604 display: none!important;
1605 } */
1599 </style> 1606 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!