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]: 设置了默认值给组件但没有生效 #636

Closed
kalvinhu opened this issue Jul 8, 2024 · 2 comments
Closed

🐛 [Bug]: 设置了默认值给组件但没有生效 #636

kalvinhu opened this issue Jul 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kalvinhu
Copy link

kalvinhu commented Jul 8, 2024

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

组件源代码.zip
导入信息:
KvnBarchart.json

Step to reproduce

将组件拖入画布,在kvnBarchart里配的默认宽高为600,但是实际显示的还是组件里默认的300

What is expected

No response

What is actually happening

No response

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 default value is set to the component but it does not take effect

@chilingling chilingling added the bug Something isn't working label Jul 15, 2024
@chilingling
Copy link
Member

@kalvinhu 当前可以使用 snippts 中的代码片段设置默认值:

{
  "snippets": [
    "name": {
        "zh_CN": "Kvn 的柱状图"
      },
      "icon": "button",
      "screenshot": "",
      "snippetName": "KvnBarchart",
      "schema": {
        "props": {
          "width": "600",
          "height": "600"
        }
      }
  ]
}

@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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants