From 0e5f14cf081b8cffda12e7c1773fe1b6b69ce2eb Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期三, 20 十一月 2024 16:43:13 +0800
Subject: [PATCH] 问题和整改的新增以及修改页面点击取消按钮添加取消事件

---
 src/components/table/FYTable.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/components/table/FYTable.vue b/src/components/table/FYTable.vue
index 42c7a99..3e5da08 100644
--- a/src/components/table/FYTable.vue
+++ b/src/components/table/FYTable.vue
@@ -91,7 +91,7 @@
       fontSize: 'default'
     };
   },
-  emits: ['search', 'cellClick', 'tablePaste'],
+  emits: ['search', 'cellClick', 'tablePaste', 'sortChange'],
   watch: {
     currentPage(nValue, oValue) {
       if (nValue != oValue) {
@@ -177,11 +177,14 @@
     handlePaste(event) {
       this.$emit('tablePaste', event);
     },
-    doLayout(){
+    doLayout() {
       this.$refs.tableRef.doLayout();
     },
-    handleSortChange({column, prop, order }){
-
+    handleSortChange({ column, prop, order }) {
+      this.$emit('sortChange', { column, prop, order });
+    },
+    clearSort(){
+      this.$refs.tableRef.clearSort();
     }
   },
   mounted() {

--
Gitblit v1.9.3