From 9b9637db3bdf1c8274ab6bf6ac1a677a97710cf8 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 16 八月 2023 10:27:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 12f27cd..549fce6 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -456,6 +456,16 @@
         }
       }
     },
+    // editingRows:{
+    //   handler(newval,oldval){
+    //     if(newval){
+    //       const inputElement = document.querySelector(`#inputRef${newval.oid}`);
+    //       if (inputElement) {
+    //         inputElement.focus();
+    //       };
+    //     }
+    //   }
+    // },
     ProData: {
       handler(newval, oldval) {
         if (newval) {
@@ -1809,12 +1819,10 @@
         this.editShows = column.property;
         this.rowOid = row.oid;
         this.CurrentCell = row;
-        if(this.editingRows){
-          const inputElement = document.querySelector(`#inputRef${row.oid}`);
-          if (inputElement) {
-            inputElement.focus();
-          };
-        }
+          // const inputElement = document.querySelector(`#inputRef${row.oid}`);
+          // if (inputElement) {
+          //   inputElement.focus();
+          // };
         if (column.property == 'referConfig') {
           this.referConfigVisble = true;
           this.referConfigOption = {
@@ -1873,10 +1881,10 @@
     saveRows() {
       this.editingRows = null;
       this.editShows = null;
-      const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`);
-      if (inputElement) {
-        inputElement.blur();
-      }
+      // const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`);
+      // if (inputElement) {
+      //   inputElement.blur();
+      // }
     },
     // 鏋氫妇娉ㄥ叆娣诲姞涓�琛岀┖鏁版嵁
     addRow() {

--
Gitblit v1.9.3