feat:增加行居中
This commit is contained in:
@@ -172,7 +172,7 @@ export class Draw {
|
||||
height: 0,
|
||||
ascent: 0,
|
||||
elementList: [],
|
||||
rowFlex: this.elementList[0].rowFlex
|
||||
rowFlex: this.elementList?.[1].rowFlex
|
||||
})
|
||||
}
|
||||
for (let i = 0; i < this.elementList.length; i++) {
|
||||
|
||||
@@ -6,6 +6,7 @@ import { Draw } from './core/draw/Draw'
|
||||
import { Command } from './core/command/Command'
|
||||
import { CommandAdapt } from './core/command/CommandAdapt'
|
||||
import { Listener } from './core/listener/Listener'
|
||||
import { RowFlex } from './dataset/enum/Row'
|
||||
|
||||
export default class Editor {
|
||||
|
||||
@@ -54,4 +55,10 @@ export default class Editor {
|
||||
this.command = new Command(new CommandAdapt(draw))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 对外属性
|
||||
export {
|
||||
Editor,
|
||||
RowFlex
|
||||
}
|
||||
Reference in New Issue
Block a user