amis
amis copied to clipboard
table2或者crud2怎么实现点击高亮
是否关联于某个问题吗:
table2或者crud2怎么实现点击高亮,我用table配置rowClassNameExpr的方法不起作用,取不到当前行name的值
预期的解决方案:
能直接配置参数点击高亮
其他可接受方案:
请简单描述其他你可以接受的效果...
任何附加信息:
请添加任何可以补充说明上述问题的材料,例如图片或视频等...
{
"type": "page",
"title": "Hello world",
"body": [
{
"type": "table2",
"columns": [
{
"name": "a",
"title": "列信息",
"id": "u:dd94cf620971"
},
{
"name": "b",
"title": "xx",
"id": "u:be2f312fb585"
},
{
"name": "c",
"title": "xxx",
"id": "u:e5480b94fb3d"
}
],
"id": "u:46d3c703d031",
"source": "$tab1",
"rowClassNameExpr": "${clickValue && a == clickValue ? 'bg-success' : a}",
"onEvent": {
"rowClick": {
"weight": 0,
"actions": [
{
"args": {
"value": {
"clickValue": "${event.data.item.a}"
}
},
"actionType": "setValue",
"componentId": "u:c96b8e5a5a41"
}
]
}
}
}
],
"id": "u:c96b8e5a5a41",
"data": {
"tab1": [
{
"a": "1",
"b": "1",
"c": "1"
},
{
"a": "2",
"b": "2",
"c": "2"
},
{
"a": "3",
"b": "3",
"c": "3"
}
]
},
"asideResizor": false,
"pullRefresh": {
"disabled": true
}
}