mingyuLi97
mingyuLi97
放置到 container 容器里,监听点击事件,根据点击的区域设置 focus() ``` this.container.addListener('tap', (e: InteractionEvent) => { const { x, y, width, height } = input.getBounds(); const { x: eX, y: eY } = e.data.global; if (eX...
很希望有这个功能!在这之前,我的做法是: 通过 [脚本](https://github.com/mingyuLi97/blog/blob/master/scripts/index.js) 维护一个 json 文件,在 [config.ts](https://github.com/mingyuLi97/blog/blob/master/docs/.vitepress/config.ts#L95) 中读取以达到自动生成
same error... `Module Error (from ../../node_modules/.pnpm/[email protected]_vsyllalxesco42bbuzcqgel7xq/node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.`
> 很希望有这个功能!在这之前,我的做法是: > > 通过 [脚本](https://github.com/mingyuLi97/blog/blob/master/scripts/index.js) 维护一个 json 文件,在 [config.ts](https://github.com/mingyuLi97/blog/blob/master/docs/.vitepress/config.ts#L95) 中读取以达到自动生成 更新:现在可以使用这个插件[vitepress-plugin-auto-sidebar](https://www.npmjs.com/package/@iminu/vitepress-plugin-auto-sidebar) 来解决自动的问题 支持: 1. 自动成 sidebar 配置,自动取文章标题 2. 当我们修改文件时,可以自动同刷新页面,更新 sidebar 3. 可以对生成的配置做二次操作(修改名称、排序等