feat:add eslint and fix

This commit is contained in:
黄云飞
2022-03-22 14:48:10 +08:00
parent 764fd8bbad
commit c49b7b5978
59 changed files with 1117 additions and 317 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { IElementPosition } from "./Element"
import { IRow } from "./Row"
import { IElementPosition } from './Element'
import { IRow } from './Row'
export interface IDrawOption {
curIndex?: number;
+4 -4
View File
@@ -1,7 +1,7 @@
import { IElement } from ".."
import { EditorMode } from "../dataset/enum/Editor"
import { IHeader } from "./Header"
import { IWatermark } from "./Watermark"
import { IElement } from '..'
import { EditorMode } from '../dataset/enum/Editor'
import { IHeader } from './Header'
import { IWatermark } from './Watermark'
export interface IEditorOption {
defaultMode?: EditorMode;
+4 -4
View File
@@ -1,7 +1,7 @@
import { ElementType } from "../dataset/enum/Element"
import { RowFlex } from "../dataset/enum/Row"
import { IColgroup } from "./table/Colgroup"
import { ITr } from "./table/Tr"
import { ElementType } from '../dataset/enum/Element'
import { RowFlex } from '../dataset/enum/Row'
import { IColgroup } from './table/Colgroup'
import { ITr } from './table/Tr'
export interface IElementBasic {
id?: string;
+3 -3
View File
@@ -1,6 +1,6 @@
import { ElementType } from ".."
import { RowFlex } from "../dataset/enum/Row"
import { IEditorResult } from "./Editor"
import { ElementType } from '..'
import { RowFlex } from '../dataset/enum/Row'
import { IEditorResult } from './Editor'
export interface IRangeStyle {
type: ElementType | null;
+3 -3
View File
@@ -1,6 +1,6 @@
import { IElement } from ".."
import { IElementPosition } from "./Element"
import { ITd } from "./table/Td"
import { IElement } from '..'
import { IElementPosition } from './Element'
import { ITd } from './table/Td'
export interface ICurrentPosition {
index: number;
+2 -2
View File
@@ -1,5 +1,5 @@
import { RowFlex } from "../dataset/enum/Row"
import { IElement, IElementMetrics } from "./Element"
import { RowFlex } from '../dataset/enum/Row'
import { IElement, IElementMetrics } from './Element'
export type IRowElement = IElement & {
metrics: IElementMetrics;
+1 -1
View File
@@ -1,4 +1,4 @@
import { EditorContext } from "../dataset/enum/Editor"
import { EditorContext } from '../dataset/enum/Editor'
export interface ISearchResultBasic {
type: EditorContext;
+2 -2
View File
@@ -1,5 +1,5 @@
import { IElement, IElementPosition } from "../Element"
import { IRow } from "../Row"
import { IElement, IElementPosition } from '../Element'
import { IRow } from '../Row'
export interface ITd {
id?: string;
+1 -1
View File
@@ -1,4 +1,4 @@
import { ITd } from "./Td"
import { ITd } from './Td'
export interface ITr {
id?: string;