Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To solve the issue ElemeFE#21632 #21633

Closed
wants to merge 2 commits into from

Conversation

heart-to-the-sea
Copy link

Please make sure these boxes are checked before submitting your PR, thank you!

  • [ * ] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • [ * ] Make sure you are merging your commits to dev branch.
  • [ * ] Add some descriptions and refer relative issues for you PR.

@heart-to-the-sea
Copy link
Author

您好,本次申请提交,解决了devTools组件跳转对应源代码的问题 ElemeFE # 21632

本次提交不涉及组件更改,仅仅是对维护组件库开发者开发体验的完善

解决方法是通过在webpack-dev-server启动options参数中配置before方法,将开源的 launch-editor-middleware 中间件引入并使用,此插件是vue作者编写

"launch-editor-middleware中间件仅提供通过指定访问请求路径,+ 配置的对应编辑器的命令行启动指令,实现打开对应编辑器的源代码,

具体cmd命令参考 launch-editor-middleware

经测试,该中间件只能跳转到已启动此项目的编辑器中,并可以跳转到正确的组件目录

具体操作如下

  1. 选中需要打开的组件
    image

  2. 点击打开按钮
    image

  3. 点击
    image

  4. 发送请求
    image

  5. 最终打开文件
    image

@xinguanhua
Copy link
Collaborator

由于该pr代码冲突,已在另外的pr处理

@xinguanhua xinguanhua closed this Jun 2, 2022
@xinguanhua
Copy link
Collaborator

@heart-to-the-sea 你好,我是element-ui官方维护团队的xinguanhua,非常感谢你以pr的方式,为element-ui组件库的完善贡献了一份力量。element-ui有一份礼物将会寄给你,希望能够提供寄件地址及联系方式,可以发送邮件到 xinguanhua@gmail.com

@heart-to-the-sea
Copy link
Author

heart-to-the-sea commented Feb 14, 2023

@heart-to-the-sea 你好,我是element-ui官方维护团队的xinguanhua,非常感谢你以pr的方式,为element-ui组件库的完善贡献了一份力量。element-ui有一份礼物将会寄给你,希望能够提供寄件地址及联系方式,可以发送邮件到 xinguanhua@gmail.com

@xinguanhua 已经通过我的x1911898144@163.com邮箱发送过去了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants