天际孤狼

关注

React工作7:利用render渲染

天际孤狼

关注

阅读 227

2022-07-31

{
title: '状态',
dataIndex: 'status',
render: (text, row) => {
let arr = ['', '未开始', '进行中', '已结束', '已作废'];
return <span>{arr[text]}</span>;
},
},



相关推荐

前端王祖蓝

React工作46:react渲染组件

前端王祖蓝 86 0 0

扬帆远航_df7c

react Render

扬帆远航_df7c 198 0 0

悲催博士僧

react基础03--render渲染、组件生命周期、组件通信

悲催博士僧 153 0 0

米小格儿

layui table render渲染的问题

米小格儿 78 0 0

泠之屋

React学习笔记 - Render Props

泠之屋 119 0 0

倪雅各

【React工作记录五十八】函数方式渲染页面

倪雅各 94 0 0

Alex富贵

Unity(三十):Canvas渲染模式 Render Mode

Alex富贵 108 0 0

凶猛的小白兔

React组件什么时候render

凶猛的小白兔 174 0 0

DT_M

vue 由slot插槽引出渲染函数render

DT_M 72 0 0

善解人意的娇娇

58.Vue 使用render方法渲染组件

善解人意的娇娇 86 0 0

精彩评论(0)

0 0 举报