For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-api/event/custom-event.md.
Lynx
  • 简体中文
  • CustomEvent

    表示自定义事件对象,继承自 Event,用于描述元件自定义的状态变化,比如 scroll

    该事件对象包含元件自定义的一些状态信息,开发者可以通过它了解元件的状态变化。

    实例属性

    Info

    自定义事件对象的属性有两种,一种是 params,一种是 detail,后续 params 会被废弃掉,推荐使用 detail

    从 Lynx 3.1 版本开始,自定义事件对象都会有 detail 属性。

    params

    params: object;

    表示元件自定义的一些状态信息。

    detail

    detail: object;

    表示元件自定义的一些状态信息。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。