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

card下不能嵌套hbox组件 #11480

Open
AprildreamMI opened this issue Jan 10, 2025 · 2 comments
Open

card下不能嵌套hbox组件 #11480

AprildreamMI opened this issue Jan 10, 2025 · 2 comments
Labels
doc optimizing document need confirm style Bug or PR related to component's style

Comments

@AprildreamMI
Copy link

描述问题:

card下不能嵌套hbox组件

截图或视频:

image
image

如何复现(请务必完整填写下面内容):

官网直接hbox的示例放到card示例的body下

{
  "type": "page",
  "body": {
    "type": "card",
    "header": {
      "title": "标题",
      "subTitle": "副标题",
      "description": "这是一段描述",
      "avatarClassName": "pull-left thumb-md avatar b-3x m-r",
      "avatar": "data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg t='1631083237695' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2420' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024'%3E%3Cdefs%3E%3Cstyle type='text/css'%3E%3C/style%3E%3C/defs%3E%3Cpath d='M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z' p-id='2421' fill='%23bfbfbf'%3E%3C/path%3E%3Cpath d='M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z' p-id='2422' fill='%23bfbfbf'%3E%3C/path%3E%3C/svg%3E"
    },
    "body": [
      {
        "type": "hbox",
        "className": "b-a bg-dark lter",
        "columns": [
          {
            "type": "plain",
            "text": "Col A",
            "columnClassName": "wrapper-xs b-r"
          },
          "Col B"
        ]
      }
    ]
  }
}
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added doc optimizing document style Bug or PR related to component's style labels Jan 10, 2025
@lhtuling
Copy link

外面套个container容器就行了

Amis低代码前端框架交流群【QQ 1群】:717791727
Amis低代码前端框架交流群【QQ 2群】:721182449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc optimizing document need confirm style Bug or PR related to component's style
Projects
None yet
Development

No branches or pull requests

2 participants