MCPcopy
hub / github.com/iChochy/NCE / renderEmptyState

Method renderEmptyState

js/ReadingSystem.js:221–229  ·  view source on GitHub ↗

* 渲染空状态提示 * @param {string} message - 提示信息

(message)

Source from the content-addressed store, hash-verified

219 * @param {string} message - 提示信息
220 */
221 renderEmptyState(message) {
222 if (this.dom.lyricsDisplay) {
223 setHTML(this.dom.lyricsDisplay, `<p class="placeholder">${message}</p>`);
224 }
225 if (this.dom.unitList) {
226 setHTML(this.dom.unitList, '');
227 }
228 this.resetUnitListScroll();
229 }
230
231 /**
232 * 重置单元列表滚动位置

Callers 3

initMethod · 0.95
applyBookChangeMethod · 0.95
loadBookConfigMethod · 0.95

Calls 2

resetUnitListScrollMethod · 0.95
setHTMLFunction · 0.90

Tested by

no test coverage detected