amis icon indicating copy to clipboard operation
amis copied to clipboard

Operation中的按钮可以根据列表中的数据来决定是否显示吗?

Open chareice opened this issue 6 years ago • 2 comments

在一个CRUD列表中,比如针对state为1的行需要提供一个A按钮,state为2的行需要提供B按钮,应该如何实现呢?

chareice avatar Jul 24 '20 06:07 chareice

{
  type:"button"
  label:"A",
  visibleOn:"data.state === 1"
}

RickCole21 avatar Jul 24 '20 06:07 RickCole21

{
  type:"button"
  label:"A",
  visibleOn:"data.state === 1"
}

感谢🙏

chareice avatar Jul 24 '20 06:07 chareice