interface config { languageList : [{ langcode: String, //语言对应的唯一code lang: String, //语言中文描述 vid: String, //语言对应的视频id quality: Array //对应的清晰度列表 }], //语言列表 skip: Boolean, //是否跳过片头片尾 continue: Boolean, //是否联播 curLanguage: String, //当前的清晰度 curQulity: String //当前的清晰度 } declare class ConfigPanel{ constructor(containerId: String, configs: config)//构造函数 static configData: Object show(): null //显示面板 hide(): null //隐藏面板 update(configs: config): null //更新面板数据 on(event: String, callback: Function): null //自定义事件监听 emit(event: String, res: Object): null //触发自定义事件 render(): null //重新渲染面板 }