效果图:

vue   ul  li颜色字体不同

 

 

<footbutton :style="{'color':item.color}" v-for="(item,index) in footlist" :key="index" :item="item">{{item.name}}</footbutton>
footlist: [{
                        id: 7,
                        name: "下载",
                        color: "#888888"
                    },
                    {
                        id: 8,
                        name: "移动",
                        color: "blue",
                     
                    },
                    {
                        id: 9,
                        name: "删除",
                        color: "#ffffff",
                    
                    },
                    {
                        id: 10,
                        name: "分享",
                        color: "#ffffff",
                    
                    },
                    {
                        id: 11,
                        name: "重命名",
                        color: "red",
                 
                    },
                ],

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2021-11-16
相关资源
相似解决方案