fewismuch
fewismuch
When the zoom changes, the guides show the wrong position
> @tianyu3999576 > > Can show me code or screenshot(before, after).  
> @tianyu3999576 > > uhm... zoom is string? > > set zoom as number. results the same,i wrote a demo http://47.75.136.64/guides.html
> @tianyu3999576 > > your guides are overlapping(30px x 30px) > > beacause of overlapping(30px), that happend. Thank you very, very much
> @owen0946 > > add `displayDragProps` props. Update `guides` component. This new feature is great, but the drag event trigger area is so small, it's only 1px, so hopefully the...
sandpack在dumi中可以直接使用,但是sandpack依赖一个sandbox的一个服务,国内网络可能不太好  ```jsx { console.log(1) return btn; };`, '/App.js': `import {Button} from './Button'; export default function App() { return }`, }} options={{ visibleFiles: ['/App.js', '/Button.js'], activeFile: '/Button.js', showLineNumbers: true, showInlineErrors:...
> @fewismuch 有兴趣把它实现到 dumi 默认的 Previewer 里吗,设想的大致效果: > > 1. 新增一个 sandpack 的按钮 > 2. 点击按钮后会把默认的预览换成 sandpack 的组件(最好 sandpack 是通过 umd 按需加载的),同时隐藏默认的源码展示和其他按钮,除非退出 sandpack 模式 > 3. 源码的参数比如 demo 文件内容可以通过 Previewer...
改为灯箱特效,就没办法重新进入编辑了