<el-table-column label="示例" width="210" align="center"> <template slot-scope="scope"> <el-option v-for="item in Options" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </template> </el-table-column>
后端响应数据:
[{
"env_value": 'pre',
}
"Options": [{"value": 'test', "label": "测试"}, {"value": 'pre', "label": "预发布"}],
],
'