{
const highlight = new Highlight();
splitString(search).forEach((s) => {
- this.#getRanges(tbody, s).forEach((range) => highlight.add(range));
+ findRanges(tbody, s).forEach((range) => highlight.add(range));
});
highlights.set('search', highlight);
},
- () => [this.state.search],
+ // search 进行了节流,所以是依赖 query
+ () => [this.paginationStore ? this.paginationStore.pagination[this.#page]?.ids : this.#search],
);
};
render = () => {
- const { data, page, size, total } = this.#getPageData();
+ const { data, page, size, total, updating } = this.#getPageData();
return html`
@@ -514,6 +539,7 @@ export class DyPatTableElement extends GemElement {
@expand=${(evt: CustomEvent) => this.expand(evt.detail)}
@itemcontextmenu=${this.#onItemContextMenu}
>
+