Browse Source

refactor(types): quantityNum

qinlaiqiao 4 years ago
parent
commit
f0b8e00c8a
1 changed files with 35 additions and 0 deletions
  1. 35 0
      types/src/interface/quantityNum.ts

+ 35 - 0
types/src/interface/quantityNum.ts

@@ -0,0 +1,35 @@
+interface IConfig {
+  merge: any; // 合并单元格
+  rowlen: any; // 表格行高
+  columnlen: any; // 表格列宽
+  borderInfo: any; // 边框
+}
+
+interface IFrozenRange {
+  // eslint-disable-next-line camelcase
+  row_focus: number;
+  // eslint-disable-next-line camelcase
+  column_focus: number;
+}
+
+interface IFrozen {
+  type: string;
+  range: IFrozenRange;
+}
+
+export interface IQuantityNumSheet {
+  ID: string;
+  // 单位工程 ID
+  unitID: string;
+  // 工作表名称
+  name: string;
+  // 工作表索引,作为唯一key值使用,新增工作表时会自动赋值一个随机字符串。
+  index: string;
+  // 初始化使用的单元格数据
+  celldata: any[];
+  config: IConfig;
+  // 公式链
+  calcChain: any[];
+  // 冻结行列配置
+  frozen: IFrozen;
+}