应用场景:在elementUI中,使用table表格显示数据时,如果碰上要用switch结构转化数据时,应该怎么办?
一开始,我想在computed里写switch结构return出我想要的值,结果发现数据展示不出来。

如何在el-table中如何使用计算属性computed
如何在el-table中如何使用计算属性computed
然后之后想到,可以在methods中用方法的形式 return出我们想要的数据
之后改成这样了
如何在el-table中如何使用计算属性computed
如何在el-table中如何使用计算属性computed
然后就好了。。。

相关文章:

  • 2021-05-30
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-02-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案