sync working code, and import type-doc

This commit is contained in:
2023-07-17 17:24:49 +08:00
parent 7ab7a7094a
commit 3e9ee59178
43 changed files with 1024 additions and 1553 deletions

View File

@ -51,7 +51,7 @@ const ColumnTypes = {
5: GridTextColumn
};
class Grid {
export class Grid {
#source;
#currentSource;
#parent;
@ -110,8 +110,6 @@ class Grid {
isCheckbox(type) { return type === 3 }
};
static GridColumn = GridColumn;
constructor(container) {
this.#parent = container;
}
@ -412,6 +410,11 @@ class Grid {
}
}
clearHeaderCheckbox() {
const boxes = this.#refs.header.querySelectorAll('.ui-check-wrapper>input');
boxes.forEach(box => box.checked = false);
}
#createHeader() {
const thead = createElement('table', 'ui-grid-header');
if (this.headerVisible === false) {
@ -1552,6 +1555,4 @@ class Grid {
}
}
}
}
export default Grid;
}