希望提供 通过实例上的方法 来 切换 预览和编辑模式
功能描述
目前使用中发现,没有预览的模式,只能编辑,很多需求都是分为两种模式:编辑和预览
期望解决方案
目前只能通过 interacting 来设置,而这个属性只是实例化的 一个参数,不是很方便, 使用时需要重新实例化,希望提供实例方法来设置, 可以一次性把配置 插件的禁用(可选的),默认禁用所有,可传参数忽略。 希望被采纳,谢谢啦
可以使用guard,在回调函数里面判断是否触发鼠标事件
可以使用guard,在回调函数里面判断是否触发鼠标事件
这个是指什么意思?
🧑🏻💻 In order to ensure the better, healthy, and sustainable development of our open-source project, and to allow develops in the community who are interested in open source to easily get started and contribute, we have included this issue in the oscp program. You can claim it by replying with "claim." During the process, you will receive one-on-one guidance from project members, and after your contribution is merged, you will be eligible for some official activity incentives.
Reference document:
🧑🏻💻 为了让我们的开源项目能更好的、健康的可持续发展,也让社区对开源感兴趣的同学,能轻轻松松的入门和贡献,我们将这个 issue 纳入到 oscp 计划中,回复「收到」即可认领,过程中能有项目成员的一对一指导,并在合并之后获得官方的一些活动激励。
参考文档:
@sadianliaoer 最简单的做法是两个 X6 实例,然后在点预览的时候,渲染 interacting = false 的实例。不过,也欢迎来 X6 PR,增加方法和 API。