- 增加树形结构表格

This commit is contained in:
Julyp
2020-02-06 18:51:14 +08:00
parent cdee69bb82
commit 076d64be9e
7 changed files with 91 additions and 79 deletions

View File

@@ -1,5 +1,6 @@
import {
appendChild,
getAttribute,
createElement,
querySelector,
appendChildren,
@@ -31,8 +32,8 @@ export function replaceColGroup(vm) {
})
}
export function getIntByAttr(el, key, def) {
return Number.parseInt(el.getAttribute(key) || def)
export function getAttrNumber(el, key, def) {
return Number.parseInt(getAttribute(el, key) || def)
}
export function getEmptyIndexInArray(array) {