🧩 前端插件机制

← 返回演示目录

页面用 <div data-plugin="名称" data-options='...'> 声明槽位, 插件文件自注册到 DQ.plugins,由 DQ.plugins.mountAll() 统一挂载。 约定见 docs/guide/前端插件机制.md。

vue-counter(Vue3 计数器)

基于 Vue global 构建,卸载时自动 unmount。

clock(时钟)

带定时器的插件,destroy 自动清理 interval。

chart(ECharts 迷你图)

数据来自 data-options,窗口缩放自适应。

hello(问候)