vue 表格使用el-select
阿新 • • 發佈:2020-07-17
<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": "預釋出"}],
],
'