ソースを参照

feat: 统一表格缩小大小

bill 2 ヶ月 前
コミット
07e96e9469
1 ファイル変更1 行追加6 行削除
  1. 1 6
      src/core/components/table/table.vue

+ 1 - 6
src/core/components/table/table.vue

@@ -29,6 +29,7 @@ import {
   defaultStyle,
   TableCollData,
   matResponse,
+  getColMinSize,
 } from "./index.ts";
 import { PropertyUpdate, Operate } from "../../html-mount/propertys/index.ts";
 import { useComponentStatus } from "@/core/hook/use-component.ts";
@@ -124,12 +125,6 @@ watch(
   { flush: "post" }
 );
 
-const getColMinSize = (col: TableCollData) => {
-  const minw = (col.padding || 0) * 2 + (col.fontSize || 12) + 4;
-  const minh = (col.padding || 0) * 2 + (col.fontSize || 12) + 4;
-  return { w: minw, h: minh };
-};
-
 const getOperType = useGetTransformerOperType();
 const matToData = (data: TableData, mat: Transform, initData?: TableData) => {
   if (!initData) {