amis icon indicating copy to clipboard operation
amis copied to clipboard

组件高度问题

Open xichangzhou opened this issue 6 years ago • 1 comments

实现场景:

可以将二边card height调整为一样高吗?

{
    "type":"page",
    "body":[
        {
            "type":"grid",
            "columns":[
                {
                    "type":"card",
                    "header":{
                        "title":"标题1",
                        "subTitle":"副标题1"
                    },
                    "body":[
                        {
                            "type":"tpl",
                            "tpl":"内容1"
                        },
                        {
                            "type":"tpl",
                            "tpl":"内容2"
                        },
                        {
                            "type":"tpl",
                            "tpl":"内容3"
                        }
                    ]
                },
                {
                    "type":"card",
                    "header":{
                        "title":"标题2",
                        "subTitle":"副标题2"
                    },
                    "body":[
                        {
                            "type":"tpl",
                            "tpl":"内容2"
                        }
                    ]
                }
            ]
        }
    ],
    "messages":{
    }
}

xichangzhou avatar Sep 27 '20 06:09 xichangzhou

{
  type: 'page',
  body: [
    {
      type: 'grid',
      columns: [
        {
          type: 'card',
          className: 'h-full',
          header: {
            title: '标题1',
            subTitle: '副标题1'
          },
          body: [
            {
              type: 'tpl',
              tpl: '内容1'
            },
            {
              type: 'tpl',
              tpl: '内容2'
            },
            {
              type: 'tpl',
              tpl: '内容3'
            }
          ]
        },
        {
          type: 'card',
          className: 'h-full',
          header: {
            title: '标题2',
            subTitle: '副标题2'
          },
          body: [
            {
              type: 'tpl',
              tpl: '内容2'
            }
          ]
        }
      ]
    }
  ],
  messages: {}
}

2betop avatar Sep 27 '20 06:09 2betop