amis
amis copied to clipboard
组件高度问题
实现场景:
可以将二边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":{
}
}
{
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: {}
}