|
@@ -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) {
|