feat:table cell vertical align

This commit is contained in:
Hufe921
2023-03-21 21:34:48 +08:00
parent e68c0bebc3
commit 665e2018aa
15 changed files with 132 additions and 6 deletions
+6 -1
View File
@@ -6,6 +6,7 @@ import { ZERO } from '../dataset/constant/Common'
import { defaultControlOption } from '../dataset/constant/Control'
import { EDITOR_ELEMENT_ZIP_ATTR } from '../dataset/constant/Element'
import { ControlComponent, ControlType } from '../dataset/enum/Control'
import { ITd } from '../interface/table/Td'
interface IFormatElementListOption {
isHandleFirstElement?: boolean;
@@ -308,11 +309,15 @@ export function zipElementList(payload: IElement[]): IElement[] {
delete tr.id
for (let d = 0; d < tr.tdList.length; d++) {
const td = tr.tdList[d]
tr.tdList[d] = {
const zipTd: ITd = {
colspan: td.colspan,
rowspan: td.rowspan,
value: zipElementList(td.value)
}
if (td.verticalAlign) {
zipTd.verticalAlign = td.verticalAlign
}
tr.tdList[d] = zipTd
}
}
}