MCPcopy Index your code
hub / github.com/Jackywine/Bella / toggle

Method toggle

chatInterface.js:222–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220
221 // 切换聊天窗口显示/隐藏
222 toggle() {
223 console.log('ChatInterface.toggle() 被调用');
224 console.log('切换前 isVisible:', this.isVisible);
225
226 if (this.isVisible) {
227 this.hide();
228 } else {
229 this.show();
230 }
231
232 console.log('切换后 isVisible:', this.isVisible);
233 }
234
235 // 显示聊天窗口
236 show() {

Callers 2

bindEventsMethod · 0.95
script.jsFile · 0.80

Calls 2

hideMethod · 0.95
showMethod · 0.95

Tested by

no test coverage detected