Sfoglia il codice sorgente

fix: 修改table强制修改时旋转按钮问题

bill 2 mesi fa
parent
commit
5c2a73f9dd

+ 0 - 1
src/core/components/table/index.ts

@@ -207,7 +207,6 @@ export const matResponse = (
             col.width = minSize.w
             if (rndx === 0) {
               minwNdxs.push(cndx)
-              console.log('===>', col.width)
               w += col.width
             }
           }

+ 2 - 2
src/core/components/table/table.vue

@@ -198,6 +198,7 @@ const sync = (data: TableData) => {
     const tf = new Transform(data.mat);
     setShapeTransform(repShape, tf);
     initData = copy(data);
+    shape.value?.getNode().fire("bound-change");
     transformer.forceUpdate();
   }
 };
@@ -233,11 +234,10 @@ const { shape, tData, data, operateMenus, describes } = useComponentStatus<
       },
       handler(data, mat) {
         matToData(data, mat, initData);
-        // sync(data);
       },
       callback(data) {
         callback();
-        sync(data);
+        nextTick(() => sync(data));
       },
     });
   },

+ 2 - 2
src/core/html-mount/propertys/describes.json

@@ -74,7 +74,7 @@
   },
   "opacity": {
     "type": "num",
-    "label": "透明度",
+    "label": "透明度",
     "props": {
       "min": 0,
       "max": 1,
@@ -85,7 +85,7 @@
   },
   "coverOpcatiy": {
     "type": "num",
-    "label": "背景透明度",
+    "label": "背景透明度",
     "props": {
       "min": 0,
       "max": 1,