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

🐛 [Bug]: 自己写的组件在出码后只有一个标签,package.json里没有该组件的信息 #642

Closed
kalvinhu opened this issue Jul 9, 2024 · 4 comments
Labels
question Further information is requested

Comments

@kalvinhu
Copy link

kalvinhu commented Jul 9, 2024

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

以下是materials/components里的json文件
KvnBarchart.json

Step to reproduce

把KvnBarchart放入materials/components文件夹里,然后执行build materials,然后从左边栏里将组件拖入画布,保存然后点击出码

What is expected

出码后能正常显示组件

What is actually happening

出码后不能显示组件

What is your project name

TinyEngine

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: The component I wrote has only one label after being coded, and there is no information about the component in package.json

@chilingling
Copy link
Member

image
最新 develop,mockServer 模式下启动不复现。
麻烦确认下有没有 同步 #527 PR的代码
操作步骤:

  • pnpm splitMaterials 拆分物料
  • materials/components 文件夹下添加链接文件
  • pnpm buildMaterials 构建物料
  • pnpm dev 启动 mockServe 以及设计器
  • 拖入目标组件
  • 出码,package.json 中正常出现 "hrj-custom-components": "1.1.6" 的依赖声明

@chilingling
Copy link
Member

chilingling commented Jul 11, 2024

PS: 画布不显示柱状图的问题。需要修改 isContainer 的配置为 false。

{
  "configure": {
    "isContainer": false
  }
}

image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


PS: The canvas does not display the histogram problem. It is necessary to modify the configuration of isContainer to false.

{
  "configure": {
    "isContainer": false
  }
}

@chilingling chilingling added the wontfix This will not be worked on label Jul 15, 2024
@chilingling chilingling added question Further information is requested and removed wontfix This will not be worked on labels Jul 25, 2024
@wenmine wenmine closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants