瀏覽代碼

搜索开启/关闭 调整表格高度

wangwei 4 年之前
父節點
當前提交
5b72105deb

+ 2 - 0
src/components/Table/src/BasicTable.vue

@@ -295,6 +295,8 @@
         },
         showTableSearch: () => {
           formState.showSearch = !formState.showSearch;
+          // 重新调整表格高度
+          redoHeight();
         },
       };
       createTableContext({ ...tableAction, wrapRef, getBindValues });

+ 0 - 2
src/components/Table/src/components/settings/ShowFormSearch.vue

@@ -25,8 +25,6 @@
       const { t } = useI18n();
 
       function toggle() {
-        console.log('------------');
-        console.log(`table`, table);
         table.showTableSearch();
       }